/* ==============================================
   Movilidad Saludable - Estilos Globales
   Tema: Movilidad Urbana + Salud
   Paleta: Gradiente naranja movimiento-azul ciclista
   ============================================== */

/* === IMPORTACIÓN DE FUENTES === */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800&family=Open+Sans:wght@300;400;500;600;700&family=Inconsolata:wght@400;500;600;700&display=swap');

/* === VARIABLES CSS === */
:root {
    /* Colores principales */
    --color-naranja: #FF9800;
    --color-azul: #2196F3;
    --color-verde: #4CAF50;
    --color-gris: #616161;
    --color-blanco: #FFFFFF;
    --color-negro: #212121;
    
    /* Gradientes */
    --gradiente-principal: linear-gradient(135deg, #FF9800 0%, #2196F3 100%);
    --gradiente-hover: linear-gradient(135deg, #FB8C00 0%, #1E88E5 100%);
    
    /* Tipografía */
    --font-titulos: 'Raleway', sans-serif;
    --font-cuerpo: 'Open Sans', sans-serif;
    --font-labels: 'Inconsolata', monospace;
    
    /* Tamaños de texto */
    --size-titulo: 45px;
    --size-cuerpo: 17px;
    --size-caption: 13px;
    --line-height: 1.75;
    
    /* Anchos de contenedor */
    --ancho-wide: 1200px;
    --ancho-medium: 920px;
    --ancho-compact: 720px;
    
    /* Sombras */
    --sombra-suave: 0 4px 12px rgba(0, 0, 0, 0.1);
    --sombra-media: 0 8px 24px rgba(0, 0, 0, 0.15);
    --sombra-fuerte: 0 12px 32px rgba(0, 0, 0, 0.2);
}

/* === RESET Y BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-cuerpo);
    font-size: var(--size-cuerpo);
    line-height: var(--line-height);
    color: var(--color-negro);
    background-color: var(--color-blanco);
    overflow-x: hidden;
}

/* === TIPOGRAFÍA === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-titulos);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.2rem;
    color: var(--color-negro);
}

h1 {
    font-size: var(--size-titulo);
}

h2 {
    font-size: 38px;
}

h3 {
    font-size: 30px;
}

h4 {
    font-size: 24px;
}

p {
    margin-bottom: 1.2rem;
    color: var(--color-gris);
}

a {
    text-decoration: none;
    color: var(--color-azul);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-naranja);
}

/* Labels especiales */
.label, label {
    font-family: var(--font-labels);
    font-size: var(--size-caption);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* === HEADER Y NAVEGACIÓN === */
header {
    background: var(--gradiente-principal);
    padding: 1.2rem 0;
    box-shadow: var(--sombra-suave);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: var(--ancho-wide);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    font-size: 2rem;
}

.logo h1 {
    font-size: 24px;
    color: var(--color-blanco);
    margin: 0;
    font-weight: 700;
}

.logo p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: var(--color-blanco);
    font-weight: 600;
    font-size: 15px;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* Menú móvil */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--color-blanco);
    cursor: pointer;
}

/* === HERO === */
.hero {
    height: 85vh;
    min-height: 500px;
    background: var(--gradiente-principal);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="20" cy="20" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="2" fill="white" opacity="0.1"/><circle cx="50" cy="80" r="2" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.hero-content {
    max-width: var(--ancho-medium);
    text-align: center;
    color: var(--color-blanco);
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 56px;
    color: var(--color-blanco);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 22px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

/* === BOTONES === */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-cuerpo);
}

.btn-primary {
    background: var(--color-blanco);
    color: var(--color-azul);
    box-shadow: var(--sombra-media);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--sombra-fuerte);
    color: var(--color-naranja);
}

.btn-secondary {
    background: transparent;
    color: var(--color-blanco);
    border: 2px solid var(--color-blanco);
}

.btn-secondary:hover {
    background: var(--color-blanco);
    color: var(--color-azul);
}

.btn-verde {
    background: var(--color-verde);
    color: var(--color-blanco);
}

.btn-verde:hover {
    background: #45a049;
    transform: translateY(-2px);
}

.btn-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* === SECCIONES === */
section {
    padding: 5rem 2rem;
}

.container {
    max-width: var(--ancho-wide);
    margin: 0 auto;
}

.container-medium {
    max-width: var(--ancho-medium);
    margin: 0 auto;
}

.container-compact {
    max-width: var(--ancho-compact);
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    color: var(--color-azul);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradiente-principal);
    border-radius: 2px;
}

/* === GRID DE BENEFICIOS === */
.beneficios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.beneficio-card {
    background: var(--color-blanco);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--sombra-suave);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.beneficio-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--sombra-media);
    border-color: var(--color-verde);
}

.beneficio-icon {
    font-size: 48px;
    margin-bottom: 1rem;
    background: var(--gradiente-principal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.beneficio-card h3 {
    font-size: 22px;
    color: var(--color-azul);
    margin-bottom: 1rem;
}

.beneficio-card p {
    font-size: 16px;
    line-height: 1.7;
}

/* === ESTADÍSTICAS === */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-box {
    text-align: center;
    padding: 2rem;
    background: var(--color-blanco);
    border-radius: 12px;
    box-shadow: var(--sombra-suave);
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    background: var(--gradiente-principal);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: var(--font-titulos);
}

.stat-label {
    font-family: var(--font-labels);
    font-size: var(--size-caption);
    color: var(--color-gris);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* === MAPAS === */
.mapa-container {
    background: var(--color-blanco);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--sombra-suave);
    margin: 3rem 0;
}

.mapa-placeholder {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #e3f2fd 0%, #fff3e0 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gris);
    font-style: italic;
}

/* === FORMULARIOS === */
.form-container {
    background: var(--color-blanco);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: var(--sombra-media);
    max-width: var(--ancho-compact);
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--color-negro);
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    font-family: var(--font-cuerpo);
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-azul);
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
}

.checkbox-group label {
    font-size: 14px;
    line-height: 1.5;
}

/* === FOOTER === */
footer {
    background: linear-gradient(135deg, #263238 0%, #37474F 100%);
    color: var(--color-blanco);
    padding: 3rem 2rem 1.5rem;
}

.footer-container {
    max-width: var(--ancho-wide);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--color-blanco);
    font-size: 20px;
    margin-bottom: 1.2rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    line-height: 1.8;
}

.footer-section a:hover {
    color: var(--color-naranja);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-info span {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* === UTILIDADES === */
.bg-gradient {
    background: var(--gradiente-principal);
}

.bg-light {
    background: #f5f5f5;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
    :root {
        --size-titulo: 36px;
        --size-cuerpo: 16px;
    }
    
    .header-container {
        flex-wrap: wrap;
    }
    
    .menu-toggle {
        display: block;
    }
    
    nav {
        display: none;
        width: 100%;
        margin-top: 1rem;
    }
    
    nav.active {
        display: block;
    }
    
    nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    nav a {
        display: block;
        width: 100%;
        padding: 1rem;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 38px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .beneficios-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .form-container {
        padding: 2rem 1.5rem;
    }
}
