/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Header */
header {
    background-color: #1a56db;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 2rem;
}

header .tagline {
    margin-top: 5px;
    font-weight: 300;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #1a56db;
    color: white;
    border: none;
}

.btn-primary:hover {
    background-color: #1e429f;
}

.btn-secondary {
    background-color: white;
    color: #1a56db;
    border: 1px solid #1a56db;
}

.btn-secondary:hover {
    background-color: #f0f4ff;
}

/* Hero section */
.hero {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 60px 0;
}

.hero-content {
    flex: 1;
}

.hero-image {
    flex: 1;
    border-radius: 8px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #1a56db;
}

.cta-buttons {
    margin-top: 30px;
    display: flex;
    gap: 15px;
}

/* Categories */
.categories {
    padding: 60px 0;
    background-color: white;
}

.categories h2 {
    text-align: center;
    margin-bottom: 40px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.category-card {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.category-card h3 {
    margin-bottom: 10px;
    color: #1a56db;
}

/* How it works */
.how-it-works {
    padding: 60px 0;
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 40px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.step {
    text-align: center;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #1a56db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-weight: bold;
}

.step h3 {
    margin-bottom: 10px;
    color: #1a56db;
}

/* Form styles */
.form-section {
    max-width: 800px;
    margin: 40px auto;
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.form-intro {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group textarea {
    resize: vertical;
}

.help-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.checkbox {
    display: flex;
    align-items: flex-start;
}

.checkbox input {
    margin-top: 5px;
    margin-right: 10px;
}

.form-actions {
    margin-top: 30px;
}

/* Map styles */
.map-section {
    max-width: 1000px;
    margin: 40px auto;
}

.map-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    align-items: center;
}

.filter-group label {
    margin-right: 10px;
}

.map-container {
    height: 500px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.map-legend {
    margin-bottom: 30px;
}

.map-legend h3 {
    margin-bottom: 10px;
}

.map-legend ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.legend-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 5px;
}

.legend-icon.alumbrado { background-color: #FFC107; }
.legend-icon.agua { background-color: #2196F3; }
.legend-icon.baches { background-color: #FF5722; }
.legend-icon.basura { background-color: #4CAF50; }
.legend-icon.transporte { background-color: #9C27B0; }
.legend-icon.seguridad { background-color: #F44336; }

.map-stats {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.map-stats h3 {
    margin-bottom: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.stat-card {
    text-align: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #1a56db;
    margin-bottom: 5px;
}

/* Footer */
footer {
    background-color: #1a56db;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: 60px;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
    }
}
/* Estilos para el contenedor de ubicaci贸n */
.location-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.location-container input {
    flex: 1;
}

#get-location-btn {
    white-space: nowrap;
}

#location-status {
    margin-top: 5px;
}

.location-success {
    color: #28a745;
}

.location-error {
    color: #dc3545;
}

/* Base styles */
:root {
  --primary-color: #1a56db;
  --primary-dark: #0f3c9e;
  --primary-light: #e6eeff;
  --text-dark: #333333;
  --text-light: #666666;
  --white: #ffffff;
  --gray-light: #f8f9fa;
  --gray-medium: #e9ecef;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.1);
  --radius-sm: 4px;
  --radius-md: 8px;
  --font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--gray-light);
  font-size: 16px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.875rem;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

/* Header */
header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 1.25rem 0;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 {
  font-size: 1.75rem;
  margin-bottom: 0;
}

header .tagline {
  font-size: 0.95rem;
  opacity: 0.9;
  font-weight: 400;
  display: block;
  margin-top: 0.25rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  border: none;
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Hero section */
.hero {
  padding: 4rem 0;
  display: flex;
  align-items: center;
  background: linear-gradient(to bottom, var(--white), var(--gray-light));
}

.hero-content {
  flex: 1;
  padding-right: 3rem;
}

.hero-image {
  flex: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform 0.5s;
}

.hero-image:hover {
  transform: perspective(1000px) rotateY(0);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s;
}

.hero-image:hover img {
  transform: scale(1.05);
}

.hero h2 {
  color: var(--primary-color);
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.hero p {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 90%;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
}

/* Categories */
.categories {
  padding: 5rem 0;
  background-color: var(--white);
}

.categories h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.category-card {
  background-color: var(--gray-light);
  border-radius: var(--radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--gray-medium);
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 1.25rem;
  background-color: var(--primary-light);
  width: 5rem;
  height: 5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  color: var(--primary-color);
}

.category-card h3 {
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.category-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* How it works */
.how-it-works {
  padding: 5rem 0;
  background-color: var(--primary-light);
}

.how-it-works h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.step {
  text-align: center;
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s;
  position: relative;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.step-number {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-weight: bold;
  font-size: 1.25rem;
}

.step h3 {
  margin-bottom: 0.75rem;
  color: var(--primary-color);
}

.step p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* Footer */
footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 2rem 0;
  text-align: center;
}

footer p {
  margin-bottom: 0;
  opacity: 0.9;
  font-size: 0.9rem;
}

/* Map styles */
.map-section {
  max-width: 1000px;
  margin: 3rem auto;
}

.map-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  background-color: var(--white);
  padding: 1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.filter-group {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 200px;
}

.filter-group label {
  margin-right: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
}

.filter-group select {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid var(--gray-medium);
  border-radius: var(--radius-sm);
  background-color: var(--white);
  cursor: pointer;
}

.map-container {
  height: 500px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-medium);
}

.map-legend {
  margin-bottom: 2rem;
  background-color: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.map-legend h3 {
  margin-bottom: 1rem;
  color: var(--primary-color);
  font-size: 1.25rem;
}

.map-legend ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.legend-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.legend-icon.alumbrado { background-color: #FFDC00; }
.legend-icon.agua { background-color: #2A81CB; }
.legend-icon.baches { background-color: #FF9900; }
.legend-icon.basura { background-color: #2AAD27; }
.legend-icon.transporte { background-color: #9C2BCB; }
.legend-icon.seguridad { background-color: #CB2B3E; }

.map-stats {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.map-stats h3 {
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  text-align: center;
  font-size: 1.25rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.stat-card {
  text-align: center;
  padding: 1.25rem;
  background-color: var(--gray-light);
  border-radius: var(--radius-sm);
  transition: transform 0.3s;
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-size: 2.25rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* Location related styles */
.location-container {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1rem;
}

.location-container input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--gray-medium);
  border-radius: var(--radius-sm);
}

#get-location-btn {
  white-space: nowrap;
  padding: 0.75rem 1rem;
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color 0.3s;
}

#get-location-btn:hover {
  background-color: var(--primary-dark);
}

#location-status {
  margin-top: 0.5rem;
  font-size: 0.9rem;
}

.location-success {
  color: #28a745;
}

.location-error {
  color: #dc3545;
}

/* Responsive styles */
@media (max-width: 992px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.65rem;
  }
  
  .hero {
    padding: 3rem 0;
  }
  
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero-content {
    padding-right: 2rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }
  
  .hero {
    flex-direction: column;
    padding: 2.5rem 0;
  }
  
  .hero-content {
    padding-right: 0;
    order: 2;
    text-align: center;
  }
  
  .hero-image {
    margin-bottom: 2rem;
    order: 1;
    transform: none;
  }
  
  .hero p {
    max-width: 100%;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .category-grid, .steps {
    gap: 1.25rem;
  }
  
  .map-filters {
    flex-direction: column;
    gap: 1rem;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .map-legend ul {
    flex-direction: column;
    gap: 0.5rem;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .hero h2 {
    font-size: 1.75rem;
  }
  
  .category-icon {
    width: 4rem;
    height: 4rem;
    font-size: 2.25rem;
  }
  
  .step {
    padding: 1.5rem;
  }
  
  .map-container {
    height: 350px;
  }
  
  .stat-number {
    font-size: 1.75rem;
  }
}

/* Estilos para encabezado con imágenes */
.hero {
    background-color: #1a56db;
    color: #ffffff;
    padding: 2.5rem 1.5rem 4.5rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    height: 70px;
    background: #ffffff;
    border-radius: 50% 50% 0 0;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    width: 100%;
}

.header-image {
    max-width: 65%;
    height: auto;
    margin: 0 auto;
    display: block;
}

.image-top {
    margin-bottom: 1rem;
}

/* Sobrescribe cualquier estilo existente para el tagline */
.hero .tagline {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 0.75rem;
    text-align: center;
}

/* Ajustes para pantallas más grandes */
@media (min-width: 768px) {
    .header-image {
        max-width: 50%;
    }
    
    .hero .tagline {
        font-size: 1.3rem;
        margin-top: 1rem;
    }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 374px) {
    .header-image {
        max-width: 75%;
    }
}

<!DOCTYPE html>
<html lang="es">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Ciudad en Tus Manos</title>
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
    <link rel="stylesheet" href="styles.css">
</head>
<body>
    <header>
        <div class="container">
            <div class="header-content">
                <h1 class="logo">Ciudad en Tus Manos</h1>
                <p class="tagline">Reporta. Visibiliza. Cambia.</p>
            </div>
        </div>
    </header>
    
    <section class="hero">
        <div class="container">
            <div class="hero-content">
                <h2 class="hero-title">Juntos podemos mejorar nuestra ciudad</h2>
                <p class="hero-description">Reporta problemas urbanos que afectan tu comunidad y ayúdanos a crear un registro ciudadano de las necesidades no atendidas.</p>
                
                <div class="buttons-container">
                    <a href="reportar.html" class="btn btn-primary">Reportar un problema</a>
                    <a href="mapa.html" class="btn btn-secondary">Ver mapa de reportes</a>
                </div>
            </div>
        </div>
    </section>
    
    <section class="features">
        <div class="container">
            <h2 class="features-title">¿Cómo funciona?</h2>
            
            <div class="features-grid">
                <div class="feature-card">
                    <div class="feature-icon">1</div>
                    <h3 class="feature-title">Reporta</h3>
                    <p class="feature-description">Documenta con fotos y ubicación exacta los problemas que encuentres en tu comunidad.</p>
                </div>
                
                <div class="feature-card">
                    <div class="feature-icon">2</div>
                    <h3 class="feature-title">Visualiza</h3>
                    <p class="feature-description">Explora el mapa para ver todos los problemas reportados y sus estados actuales.</p>
                </div>
                
                <div class="feature-card">
                    <div class="feature-icon">3</div>
                    <h3 class="feature-title">Actúa</h3>
                    <p class="feature-description">Utiliza esta información para exigir a las autoridades atención a las necesidades de tu comunidad.</p>
                </div>
            </div>
            
            <img src="img/ciudad-ilustracion.png" alt="Problemas urbanos" class="city-image" onerror="this.src='https://via.placeholder.com/250x150?text=Ciudad+en+Tus+Manos'">
        </div>
    </section>
</body>
</html>