/* ------ VARIABLES Y CONFIGURACIÓN BASE ------ */
:root {
    /* Colores principales - Mejorados para accesibilidad */
    --primary-color: #D00000; /* Rojo más oscuro para mejor contraste */
    --primary-hover: #B00000;
    --primary-light: rgba(208, 0, 0, 0.1);
    --primary-dark: #900000;
    
    /* Colores secundarios - Mejorados para accesibilidad */
    --secondary-color: #087F5B; /* Verde más oscuro */
    --secondary-hover: #06664A;
    --secondary-light: rgba(8, 127, 91, 0.1);
    
    /* Colores acento - Mejorados para accesibilidad */
    --yellow-color: #D97706; /* Amarillo más oscuro */
    --yellow-light: rgba(217, 119, 6, 0.1);
    
    /* Colores de texto - Mejorados para accesibilidad */
    --text-dark: #111827; /* Negro más intenso */
    --text-medium: #374151; /* Gris medio más oscuro */
    --text-light: #6B7280; /* Gris claro más oscuro */
    
    /* Colores de fondo */
    --bg-white: #FFFFFF;
    --bg-light: #F9FAFB;
    --bg-lighter: #F1F5F9;
    
    /* Efectos */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.15), 0 4px 6px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    
    /* Bordes y radios */
    --border-color: #D1D5DB; /* Borde más oscuro */
    --card-radius: 16px;
    --btn-radius: 12px;
    --input-radius: 12px;
    
    /* Animaciones */
    --transition-fast: all 0.15s ease;
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
    
    /* Espaciado */
    --container-padding: 24px;
    --section-spacing: 100px;
    --content-width: 1200px;
    
    /* Tipografía */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'DM Sans', 'Inter', sans-serif;
    --focus-ring: 0 0 0 3px rgba(208, 0, 0, 0.4); /* Anillo de focus visible */
}

/* ------ IMPORTACIÓN DE FUENTES ------ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

/* ------ RESET Y ESTILOS BASE ------ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-white);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

button, input, select, textarea {
    font: inherit;
    color: inherit;
}

/* Mejora de accesibilidad: focus visible */
button:focus, 
input:focus, 
select:focus, 
textarea:focus, 
a:focus {
    outline: none;
    box-shadow: var(--focus-ring);
    z-index: 1;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Mejora de accesibilidad: subrayado de enlaces en hover */
a:hover {
    text-decoration: underline;
}

ul, ol {
    list-style: none;
}

/* ------ UTILIDADES Y CLASES COMUNES ------ */
.container {
    width: 100%;
    max-width: var(--content-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
    position: relative;
}

.center {
    text-align: center;
}

.highlight {
    color: var(--primary-color);
    font-weight: 700;
}

.visually-hidden { /* Para lectores de pantalla */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

section {
    position: relative;
    padding: calc(var(--section-spacing) / 2) 0;
}

@media (min-width: 768px) {
    section {
        padding: var(--section-spacing) 0;
    }
}

/* ------ ESTILOS HERO SECTION CON BUSCADOR ------ */
.hero {
    padding: 4rem 0 6rem;
    background: linear-gradient(180deg, var(--bg-white) 0%, var(--bg-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.hero-content {
    width: 100%;
}

.hero-title {
    font-size: 2.8rem;
    font-family: var(--font-display);
    margin-bottom: 1.25rem;
    line-height: 1.1;
    font-weight: 700;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-dark); /* Mejorado: color más oscuro para párrafos */
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.6;
    font-weight: normal; /* Cambiado: de 500 a normal */
}

/* Estilos mejorados para el buscador */
.hero-search {
    background-color: var(--bg-white);
    border-radius: var(--card-radius);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
    padding: 1.5rem;
    margin-bottom: 1.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.hero-search:hover {
    box-shadow: var(--shadow-lg);
}

.search-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.search-input-container,
.search-select-container {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-medium); /* Mejorado: color más oscuro para iconos */
    font-size: 1rem;
    z-index: 2;
}

.search-input,
.search-select {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.5rem;
    background-color: var(--bg-light);
    border: 2px solid var(--border-color); /* Mejorado: borde más visible */
    border-radius: var(--input-radius);
    font-size: 1rem; /* Mejorado: aumentado tamaño de texto */
    transition: all 0.2s ease;
    height: 3.25rem;
    color: var(--text-dark);
    -webkit-appearance: none;
    box-shadow: var(--shadow-sm);
}

.search-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23374151' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.search-input:focus,
.search-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(208, 0, 0, 0.3); /* Anillo de focus mejorado */
    background-color: white;
}

.search-input::placeholder {
    color: var(--text-medium); /* Mejorado: placeholder más oscuro */
}

.search-button {
    width: 100%;
    height: 3.25rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--primary-color); /* Color sólido para mejor contraste */
    border-radius: var(--btn-radius);
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px -1px rgba(208, 0, 0, 0.3);
    border: none;
    color: white;
}

.search-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(208, 0, 0, 0.4);
}

.search-button:active {
    transform: translateY(0);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.button-primary {
    background-color: var(--primary-color); /* Color sólido para mejor contraste */
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--btn-radius);
    font-weight: 600;
    font-size: 1rem; /* Tamaño aumentado */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 2px solid var(--primary-color); /* Borde visible */
}

.button-primary:hover {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(208, 0, 0, 0.4);
}

.button-secondary {
    background-color: var(--bg-white);
    color: var(--text-dark);
    padding: 0.75rem 1.25rem;
    border-radius: var(--btn-radius);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--text-dark); /* Borde más visible */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.button-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.button-outline {
    background-color: transparent;
    color: var(--text-dark);
    padding: 0.75rem 1.25rem;
    border-radius: var(--btn-radius);
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid var(--text-dark); /* Borde más visible */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.button-outline:hover {
    background-color: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.hero-map {
    width: 100%;
    position: relative;
}

#map {
    width: 100%;
    height: 550px;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--border-color); /* Borde más visible */
    margin-left: 10%;
}

.map-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 500;
}

.current-location {
    background-color: white;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border-color);
}

.current-location i {
    color: var(--primary-color);
}

@media (min-width: 576px) {
    .hero-title {
        font-size: 3rem;
    }

    .search-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 768px) {
    .hero-container {
        flex-direction: row;
    }

    .hero-content,
    .hero-map {
        width: 50%;
    }

    .hero-title {
        font-size: 3.25rem;
    }
    
    .search-form {
        grid-template-columns: 1fr 1fr;
    }
    
    .search-button {
        min-width: 150px;
    }
}

@media (min-width: 992px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .search-form {
        grid-template-columns: 1.5fr 1fr auto;
    }
    
    .search-button {
        min-width: 140px;
        margin: 0;
    }
}

@media (min-width: 1024px) {
    .hero-title {
        font-size: 4rem;
    }
}

/* ------ CARACTERÍSTICAS ------ */
.features-section {
    background-color: var(--bg-light);
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-eyebrow {
    display: inline-block;
    padding: 0.375rem 1rem;
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-weight: 700; /* Mejorado: más grueso */
    font-size: 0.875rem;
    border-radius: 2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title {
    font-size: 2.5rem;
    font-family: var(--font-display);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-dark);
}

.section-description {
    color: var(--text-dark); /* Color más oscuro */
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto;
    font-weight: normal; /* Cambiado: de 500 a normal */
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-card {
    background-color: var(--bg-white);
    border-radius: var(--card-radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 2px solid var(--border-color); /* Borde más visible */
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background-color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
    border: 1px solid var(--primary-color); /* Borde adicional */
}

.feature-icon-wrapper i {
    font-size: 2rem;
    color: var(--primary-color);
}

.feature-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.feature-content p {
    color: var(--text-dark); /* Color más oscuro */
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    font-weight: normal; /* Cambiado: de 500 a normal */
}

.feature-stat {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 2rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-display);
}

.stat-text {
    color: var(--text-medium);
    font-size: 1rem;
    font-weight: normal; /* Cambiado: de 600 a normal */
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ------ APP MÓVIL ------ */
.app-section {
    background-color: var(--bg-white);
    padding: 5rem 0;
    position: relative;
}

.app-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.app-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    background-color: var(--primary-light);
    color: var(--primary-color);
    font-weight: 700; /* Mejorado: más grueso */
    font-size: 0.875rem;
    border-radius: 2rem;
    margin-bottom: 1rem;
    border: 1px solid var(--primary-color); /* Borde adicional */
}

.app-title {
    font-size: 2.5rem;
    font-family: var(--font-display);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: var(--text-dark);
}

.app-description {
    color: var(--text-dark); /* Color más oscuro */
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
    font-weight: normal; /* Cambiado: de 500 a normal */
}

.app-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.app-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.app-feature-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    background-color: var(--primary-light);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--primary-color); /* Borde adicional */
}

.app-feature-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.app-feature-item p {
    color: var(--text-dark); /* Color más oscuro */
    font-size: 1rem;
    font-weight: normal; /* Cambiado: de 500 a normal */
}

.app-download {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.app-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.qr-code {
    background-color: white;
    width: 120px;
    height: 120px;
    border-radius: 12px;
    padding: 10px;
    box-shadow: var(--shadow);
    border: 2px solid var(--border-color); /* Borde más visible */
}

.qr-placeholder {
    width: 100%;
    height: 100%;
    background: repeating-conic-gradient(#d1d5db 0% 25%, #9ca3af 0% 50%) 
        50% / 10px 10px; /* Colores más oscuros */
    border-radius: 8px;
}

.app-qr p {
    font-size: 0.875rem;
    color: var(--text-dark); /* Color más oscuro */
    font-weight: normal; /* Cambiado: de 600 a normal */
}

.app-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.app-store-button {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background-color: var(--text-dark);
    color: white;
    padding: 0.875rem 1.5rem;
    border-radius: var(--btn-radius);
    transition: var(--transition);
    border: 2px solid var(--text-dark); /* Borde visible */
}

.app-store-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    background-color: black;
}

.app-store-button i {
    font-size: 2rem;
}

.button-text {
    display: flex;
    flex-direction: column;
}

.small-text {
    font-size: 0.75rem;
    opacity: 0.9; /* Más visible */
}

.large-text {
    font-size: 1.125rem;
    font-weight: 600;
}

.app-mockup {
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
}

.phone-device {
    position: relative;
    width: 280px;
    height: 570px;
    background-color: #000; /* Negro más oscuro */
    border-radius: 40px;
    padding: 15px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
}

.phone-screen {
    flex: 1;
    background-color: white;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.phone-notch {
    width: 120px;
    height: 25px;
    background-color: #000;
    border-radius: 0 0 20px 20px;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.phone-button {
    width: 40px;
    height: 5px;
    background-color: #333; /* Más visible */
    border-radius: 3px;
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
}

.app-ui {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-ui-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 1.5rem 1rem;
}

.app-ui-location {
    font-weight: 600;
    color: var(--text-dark);
}

.app-ui-actions {
    display: flex;
    gap: 1rem;
}

.app-ui-actions i {
    color: var(--text-dark); /* Más visible */
}

.app-ui-map {
    flex: 1;
    background: linear-gradient(
        190deg, 
        #f8fafc 0%, 
        #e2e8f0 100%
    );
    position: relative;
}

.app-ui-map::before {
    content: '';
    width: 120px;
    height: 120px;
    background-color: rgba(208, 0, 0, 0.2); /* Color mejorado */
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.app-ui-map::after {
    content: '';
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: var(--shadow);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.app-ui-card {
    background-color: white;
    border-radius: 30px 30px 0 0;
    padding: 1.5rem;
    margin-top: -20px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 5;
    border-top: 2px solid var(--border-color); /* Borde superior visible */
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-header h3 {
    font-size: 1.125rem;
    font-weight: 700; /* Más grueso */
    color: var(--text-dark);
}

.card-filter {
    background-color: var(--bg-light);
    padding: 0.5rem 0.875rem;
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--text-dark); /* Más oscuro */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid var(--border-color); /* Borde visible */
}

.app-ui-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.app-ui-list-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: 12px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.app-ui-list-item:hover {
    background-color: var(--bg-light);
    border-color: var(--border-color);
}

.station-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: var(--text-dark);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700; /* Más grueso */
}

.station-info {
    flex: 1;
}

.station-name {
    font-weight: 700; /* Más grueso */
    font-size: 0.875rem;
    color: var(--text-dark);
}

.station-distance {
    font-size: 0.75rem;
    color: var(--text-medium);
    font-weight: normal; /* Cambiado: normal en lugar de 500 */
}

.station-price {
    font-weight: 700;
    color: var(--text-dark); /* Más oscuro */
}

.station-price.highlight {
    color: var(--primary-color);
}

@media (min-width: 768px) {
    .app-content {
        flex-direction: row;
    }
    
    .app-info {
        width: 50%;
    }
    
    .app-mockup {
        width: 50%;
    }
    
    .app-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .app-features {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .app-download {
        flex-direction: row;
        align-items: center;
    }
}

/* ------ TESTIMONIOS ------ */
.testimonials-section {
    background-color: var(--bg-light);
    padding: 5rem 0;
}

.testimonials-slider {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

.testimonial-card {
    background-color: white;
    border-radius: var(--card-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    position: relative;
    transition: var(--transition);
    border: 2px solid var(--border-color); /* Borde más visible */
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.testimonial-rating {
    margin-bottom: 1.5rem;
    color: var(--yellow-color);
}

.testimonial-text {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text-dark); /* Más oscuro */
    font-weight: normal; /* Cambiado: de 500 a normal */
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--primary-color); /* Borde visible */
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background-color: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700; /* Más grueso */
}

.author-info h4 {
    font-weight: 700; /* Más grueso */
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.author-info p {
    font-size: 0.875rem;
    color: var(--text-medium);
    font-weight: normal; /* Cambiado: normal en lugar de 500 */
}

@media (min-width: 768px) {
    .testimonials-slider {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ------ CALL TO ACTION ------ */
.cta-section {
    background-color: var(--bg-white);
    padding: 5rem 0;
}

.cta-card {
    background: var(--primary-dark); /* Color sólido para mejor contraste */
    border-radius: var(--card-radius);
    overflow: hidden;
    position: relative;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    border: 2px solid var(--primary-dark); /* Borde visible */
}

.cta-content {
    color: white;
    position: relative;
    z-index: 2;
}

.cta-title {
    font-size: 3rem;
    font-family: var(--font-display);
    margin-bottom: 1.5rem;
}

.cta-title .highlight {
    color: white;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.5); /* Más visible */
    text-underline-offset: 5px;
}

.cta-text {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 500px;
    opacity: 1; /* Totalmente visible */
    font-weight: normal; /* Cambiado: normal en lugar de 500 */
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background-color: white;
    color: var(--primary-dark); /* Mejor contraste */
    border-radius: var(--btn-radius);
    font-weight: 700; /* Más grueso */
    font-size: 1.125rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
    border: 2px solid white; /* Borde visible */
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background-color: var(--bg-light);
}

.cta-image {
    position: relative;
    height: 200px;
}

.floating-icons {
    position: absolute;
    width: 100%;
    height: 100%;
}

.floating-icon {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.2); /* Más contraste */
    border: 1px solid rgba(255, 255, 255, 0.5); /* Borde visible */
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    animation: floatIcon 4s ease-in-out infinite;
}

.floating-icon:nth-child(1) {
    top: 0;
    left: 20%;
    animation-delay: 0s;
}

.floating-icon:nth-child(2) {
    top: 50%;
    left: 0;
    animation-delay: 1s;
}

.floating-icon:nth-child(3) {
    bottom: 0;
    left: 30%;
    animation-delay: 2s;
}

.floating-icon:nth-child(4) {
    top: 20%;
    right: 10%;
    animation-delay: 1.5s;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@media (min-width: 768px) {
    .cta-card {
        flex-direction: row;
        align-items: center;
    }
    
    .cta-content, .cta-image {
        width: 50%;
    }
}

/* Footer */
.footer {
    background-color: var(--bg-white);
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.footer-link {
    color: var(--text-medium);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link:hover {
    color: var(--primary-color);
}

.footer-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 1.5rem 0;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--text-medium);
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Mejoras de accesibilidad para el footer */
.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-light);
    color: var(--text-dark);
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary-light);
    color: var(--primary-color);
}

/* Responsive para el footer */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ------ MEDIA QUERIES GENERALES ------ */
@media (min-width: 768px) {
    :root {
        --section-spacing: 120px;
    }
    
    .section-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    :root {
        --section-spacing: 150px;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
}

/* ------ ESTILOS ADICIONALES PARA ACCESIBILIDAD ------ */
/* Indicator for external links */
a[target="_blank"]::after {
    content: " ";
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23D00000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    margin-left: 0.2em;
}

/* Skip link para accesibilidad y navegación por teclado */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    z-index: 100;
    font-weight: 700;
}

.skip-link:focus {
    top: 0;
}

/* Mejora del outline para elementos focusables */
:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: none;
}

/* Indicadores de textos obligatorios en formularios */
.required::after {
    content: " *";
    color: var(--primary-color);
    font-weight: bold;
}