/* =============================================
   Crediprosperar - Hoja de estilos principal
   Última revisión: Mayo 2026
   ============================================= */

:root {
    --primary-red: #E63946;
    --primary-red-dark: #C1121F;
    --primary-red-light: #FF6B6B;
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --light-gray: #E9ECEF;
    --dark-gray: #0F4C5C;
    --text-dark: #212529;
    --text-gray: #6C757D;
    --soft-red-bg: linear-gradient(135deg, rgba(230, 57, 70, 0.03) 0%, rgba(230, 57, 70, 0.08) 100%);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

/* --- Reset y base global --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fuente global: aplicamos Poppins a todo excepto pseudo-elementos
   para no interferir con los íconos de Font Awesome */
* {
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Forzamos Poppins en elementos de formulario y texto
   por si el navegador aplica fuente del sistema por defecto */
input,
textarea,
select,
button,
label,
p,
h1, h2, h3, h4, h5, h6,
a,
li,
td,
th {
    font-family: 'Poppins', sans-serif;
}

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

/* Jerarquía tipográfica base */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

/* --- Botones generales --- */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: var(--primary-red-dark);
    border-color: var(--primary-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-red);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* --- Títulos de sección reutilizables --- */
.section-title {
    font-size: 2.5rem;
    color: var(--dark-gray);
    text-align: center;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-gray);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

/* --- Encabezado fijo (sticky header) --- */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--white);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    z-index: 1000;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}


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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 48px;  /* Reducido de 60px */
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-header {
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    color: var(--white);
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    border: none;
    transition: var(--transition);
    animation: header-glow 3s infinite;
}

@keyframes header-glow {
    0% {
        box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    }

    50% {
        box-shadow: 0 4px 25px rgba(230, 57, 70, 0.6);
    }

    100% {
        box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
    }
}

.btn-header:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.4);
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-red-dark) 0%, var(--primary-red) 100%);
    animation: none;
}

@media (max-width: 768px) {
    .btn-header {
        display: none;
    }
}


.nav-list {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-list a {
    font-weight: 700;
    color: var(--dark-gray);
    transition: var(--transition);
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-red);
    transition: var(--transition);
}

.nav-list a:hover {
    color: var(--primary-red);
}

.nav-list a:hover::after {
    width: 100%;
}

/* Menú desplegable de escritorio */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--white);
    min-width: 220px;
    box-shadow: var(--shadow);
    border-radius: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    z-index: 1000;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown:hover .arrow,
.dropdown.active .arrow {
    transform: rotate(180deg);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--dark-gray);
    font-weight: 500;
}

.dropdown-menu a::after {
    display: none;
}

.dropdown-menu a:hover {
    background-color: var(--off-white);
    color: var(--primary-red);
}

.arrow {
    font-size: 0.8em;
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.3s ease;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--dark-gray);
    transition: var(--transition);
}

/* --- Sección Hero (banner principal) --- */
.hero {
    position: relative;
    background-color: var(--dark-gray);
    overflow: hidden;
    min-height: 680px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--light-gray);
}

/* Carrusel de fondo con marco lateral */
.hero-bg-carousel {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 60px; /* Margen blanco a la izquierda */
    right: 60px; /* Margen blanco a la derecha */
    z-index: 1;
    overflow: hidden;
}

.hero-bg-carousel .carousel-slides-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
}

.hero-bg-carousel .carousel-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out;
}

.hero-bg-carousel .carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-bg-carousel .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Degradado muy suave para legibilidad del texto en el carrusel de fondo */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.75) 25%, rgba(255, 255, 255, 0.4) 55%, transparent 85%);
    pointer-events: none;
    z-index: 2;
}

.hero-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 60px 80px; /* padding lateral para alejarse del marco blanco */
    box-sizing: border-box;
}

.hero-left {
    max-width: 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Controles en los marcos laterales */
.hero-carousel-controls {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    z-index: 4;
}

.hero-carousel-controls .carousel-control {
    pointer-events: auto;
    background-color: var(--white);
    border: 1px solid var(--light-gray);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.hero-carousel-controls .prev {
    margin-left: 8px; /* Centrado en el marco de 60px */
}

.hero-carousel-controls .next {
    margin-right: 8px; /* Centrado en el marco de 60px */
}

.hero-carousel-controls .carousel-control:hover {
    background-color: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(230, 57, 70, 0.25);
}

/* Dots indicadores del carrusel (visibles solo en móvil) */
.hero-carousel-dots {
    display: none;
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    gap: 7px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.55);
    border: 2px solid rgba(255,255,255,0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot.active {
    background: var(--primary-red);
    border-color: var(--primary-red);
    transform: scale(1.25);
}

@media (max-width: 768px) {
    .hero-carousel-dots {
        display: flex;
    }
}

/* Responsivo para el carrusel en tablet y móviles */
@media (max-width: 768px) {
    .hero-bg-carousel {
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        position: absolute;
    }
    
    .hero-overlay {
        background: linear-gradient(to bottom, rgba(255,255,255,0.60) 0%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.15) 100%);
    }
    
    .hero-wrapper {
        padding: 50px 20px;
        text-align: center;
    }
    
    .hero-left {
        max-width: 100%;
        align-items: center;
        width: 100%;
    }
    
    .hero-left p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }
    
    .hero-carousel-controls {
        display: none; /* Ocultar controles en móvil */
    }
}

.hero-tag {
    display: inline-block;
    background: var(--primary-red);
    color: var(--white);
    padding: 5px 16px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 22px;
    width: fit-content;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 18px;
    line-height: 1.15;
    color: var(--text-dark);
    font-weight: 800;
}

.hero h1 .highlight {
    color: var(--primary-red);
}

.hero p {
    font-size: 1.05rem;
    margin-bottom: 32px;
    color: var(--text-dark);
    font-weight: 500;
    max-width: 480px;
    line-height: 1.7;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8); /* Sombra de texto suave blanca para dar mayor claridad sobre cualquier imagen */
}

.hero-buttons {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: var(--primary-red);
    color: var(--white);
    padding: 13px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 2px solid var(--primary-red);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-hero-primary:hover {
    background: var(--primary-red-dark);
    border-color: var(--primary-red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.35);
    color: var(--white);
}

.btn-hero-secondary {
    background: transparent;
    color: var(--text-dark);
    padding: 13px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 2px solid var(--light-gray);
    transition: var(--transition);
}

.btn-hero-secondary:hover {
    border-color: var(--primary-red);
    color: var(--primary-red);
    transform: translateY(-2px);
}

/* Barra de estadísticas debajo del hero */
.hero-stats {
    background: var(--white);
    border-top: 1px solid var(--light-gray);
    padding: 22px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.hero-stats .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.stat-icon {
    width: 42px;
    height: 42px;
    background: rgba(230, 57, 70, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-red);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.stat-text strong {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
}

.stat-text span {
    font-size: 0.82rem;
    color: var(--text-gray);
    margin-top: 2px;
    display: block;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--light-gray);
}

/* Logos de marcas aliadas en la barra de stats */
.stat-brands {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.stat-brands small {
    font-size: 0.75rem;
    color: var(--text-gray);
    font-weight: 500;
}

.brand-logos {
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand-logo-text {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--dark-gray);
    letter-spacing: -0.3px;
}

.brand-logo-text.red { color: var(--primary-red); }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Sección de beneficios / por qué elegirnos --- */
.benefits {
    padding: 80px 0 20px;
    background-color: var(--white);
    text-align: center;
    border-top: 1px solid var(--light-gray);
}

.benefits-tag {
    display: inline-block;
    color: var(--primary-red);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.benefits-title {
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--dark-gray);
}

.benefits-title .highlight {
    color: var(--primary-red);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.benefit-card {
    background: var(--white);
    border-radius: 12px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: 0 4px 25px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.benefit-icon {
    width: 65px;
    height: 65px;
    background: rgba(230, 57, 70, 0.08);
    color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 20px;
}

.benefit-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.benefit-card p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* --- Sección cómo funciona (pasos) --- */
.how-it-works {
    padding: 80px 0;
    background: var(--soft-red-bg);
    text-align: center;
    border-top: 1px solid var(--light-gray);
}

.steps-wrapper {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
}

.step-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 0 15px;
}

/* Línea punteada que conecta los pasos entre sí */
.step-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 45px;
    left: calc(50% + 50px);
    width: calc(100% - 100px);
    border-top: 2px dashed rgba(230, 57, 70, 0.3);
    z-index: 1;
}

.step-icon-wrapper {
    position: relative;
    margin-bottom: 25px;
    z-index: 2;
}

.step-number {
    position: absolute;
    top: 0px;
    left: -15px;
    width: 35px;
    height: 35px;
    background: #ffe5e5;
    color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    z-index: 3;
}

.step-icon {
    width: 90px;
    height: 90px;
    background: var(--white);
    color: var(--primary-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 0 10px 25px rgba(230, 57, 70, 0.08);
}

.step-item h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.step-item p {
    font-size: 0.9rem;
    color: var(--text-gray);
    line-height: 1.6;
    max-width: 220px;
}

/* --- Sección de servicios --- */
.services {
    padding: 80px 0;
    background-color: var(--white);
    border-top: 1px solid var(--light-gray);
}

.services-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.service-card {
    background-color: var(--white);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-top: 4px solid var(--primary-red);
    flex: 1 1 280px;
    max-width: 340px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 65px;
    height: 65px;
    background: rgba(230, 57, 70, 0.08);
    color: var(--primary-red);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    transition: var(--transition);
    position: relative;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.service-icon i {
    font-size: 1.6rem;
    z-index: 2;
}

.service-card:hover .service-icon {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-5px) rotate(5deg);
    box-shadow: 0 10px 20px rgba(230, 57, 70, 0.3);
}

/* Botón "Ver detalles" de las tarjetas de servicio */
.btn-detail {
    margin-top: 15px;
    background: var(--white);
    border: 2px solid var(--primary-red);
    color: var(--primary-red);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-detail:hover {
    background: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(230, 57, 70, 0.3);
}

.service-card h3 {
    font-size: 1.25rem;
    color: var(--dark-gray);
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-gray);
    font-size: 0.9rem;
}

/* --- Sección simulador de préstamos --- */
.simulator {
    padding: 80px 0;
    background: var(--soft-red-bg);
    border-top: 1px solid var(--light-gray);
}

.simulator-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background-color: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.simulator-inputs {
    display: flex;
    flex-direction: column;
    gap: 35px;
    justify-content: center;
}

.simulator-note {
    font-size: 0.85rem;
    color: var(--text-gray);
    line-height: 1.6;
    border-left: 3px solid var(--primary-red);
    padding-left: 15px;
    font-style: italic;
    margin-top: 10px;
}

.input-group label {
    display: block;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 15px;
    font-size: 1rem;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.slider-container input[type="range"] {
    flex: 1;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: linear-gradient(to right, var(--primary-red) 0%, var(--primary-red) var(--value-percent, 50%), #ddd var(--value-percent, 50%), #ddd 100%);
    border-radius: 5px;
    outline: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    background: var(--primary-red);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(230, 57, 70, 0.4);
    transition: var(--transition);
}

.slider-container input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.6);
}

.slider-container input[type="range"]::-moz-range-thumb {
    width: 24px;
    height: 24px;
    background: var(--primary-red);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 10px rgba(230, 57, 70, 0.4);
}

.slider-value {
    background-color: var(--primary-red);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 8px;
    font-weight: 700;
    min-width: 100px;
    text-align: center;
    font-size: 1rem;
}

.slider-value .currency,
.slider-value .unit {
    font-size: 0.9rem;
    font-weight: 400;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.simulator-disclaimer {
    margin-top: 40px;
    font-size: 0.9rem;
    color: var(--text-dark);
    text-align: center;
    font-style: italic;
    line-height: 1.6;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.8;
}

/* Panel de resultados del simulador */
.simulator-results {
    background-color: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.result-card {
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    border-radius: 12px;
    margin-bottom: 25px;
}

.result-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--white);
}

.result-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.result-value {
    color: var(--white);
    font-size: 2rem;
    font-weight: 700;
}

.result-details {
    margin-bottom: 25px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--light-gray);
    color: var(--text-gray);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row.total {
    font-weight: 700;
    color: var(--dark-gray);
    font-size: 1.1rem;
    border-top: 2px solid var(--primary-red);
    border-bottom: none;
    padding-top: 15px;
    margin-top: 5px;
}

/* --- Sección de canales de pago --- */
.payment-section {
    padding: 80px 0;
    background-color: var(--white);
    border-top: 1px solid var(--light-gray);
}

.payment-box {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px 25px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.payment-description {
    color: var(--text-gray);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.7;
}

.payment-logos {
    display: flex;
    justify-content: center;
    gap: 35px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.payment-logo-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--light-gray);
    border-radius: 16px;
    padding: 24px 28px 16px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    text-decoration: none;
    min-width: min(150px, 42vw);
}

.payment-logo-btn:hover {
    transform: translateY(-5px);
    border-color: var(--primary-red);
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.3);
    background: var(--white);
}

.payment-logo-img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 12px;
}

.payment-logo-btn img {
    width: 100px;
    height: auto;
    object-fit: contain;
}

.payment-logo-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.3px;
}

.payment-logo-soon {
    cursor: not-allowed;
    opacity: 0.8;
}

.payment-logo-soon:hover {
    transform: none;
    border-color: var(--light-gray);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
}

.soon-badge {
    position: absolute;
    top: -16px;
    right: -16px;
    background-color: var(--primary-red);
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 12px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
    z-index: 10;
    white-space: nowrap;
}

/* --- Sección nosotros / quiénes somos --- */
.about {
    padding: 80px 0;
    background: linear-gradient(135deg, #0F4C5C 0%, #1B6B7A 100%);
}

.about .section-title {
    color: var(--white);
}

.about-description {
    text-align: center;
    color: var(--light-gray);
    max-width: 700px;
    margin: 30px auto 0;
    font-size: 0.95rem;
    line-height: 1.8;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

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

.about-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-red);
    margin-bottom: 5px;
}

.about-text {
    color: var(--light-gray);
    font-size: 0.9rem;
}

/* --- Sección de contacto --- */
.contact {
    padding: 80px 0;
    background: var(--soft-red-bg);
    border-top: 1px solid var(--light-gray);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    justify-content: center;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(230, 57, 70, 0.1);
    padding: 12px;
    border-radius: 10px;
    color: var(--primary-red);
    min-width: 48px;
}

.contact-form {
    background-color: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

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

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--off-white);
    resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-red);
    background-color: var(--white);
}

/* --- Mapa de ubicación en la sección de contacto --- */
.contact-map {
    margin-top: 50px;
    position: relative;
}

.map-wrapper {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(230, 57, 70, 0.12);
    transition: var(--transition);
}

.map-wrapper:hover {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.16);
    transform: translateY(-3px);
}

/* Cabecera decorativa del mapa */
.map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
    gap: 12px;
}

.map-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.map-header-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    flex-shrink: 0;
    animation: map-pin-bounce 2s ease-in-out infinite;
}

@keyframes map-pin-bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-4px); }
}

.map-header-text h4 {
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.map-header-text span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.78rem;
    font-weight: 400;
}

/* Badge "Cómo llegar" */
.map-directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 50px;
    text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.map-directions-btn:hover {
    background: rgba(255, 255, 255, 0.32);
    border-color: rgba(255, 255, 255, 0.7);
    transform: translateX(2px);
    color: var(--white);
}

/* Iframe del mapa */
.map-iframe-container {
    position: relative;
    width: 100%;
    height: 380px;
    display: block;
    overflow: hidden;
}

.map-iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    min-height: 100%;
}

/* Pie del mapa: badges de info */
.map-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 14px 24px;
    background: var(--off-white);
    border-top: 1px solid var(--light-gray);
    flex-wrap: wrap;
}

.map-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-gray);
}

.map-badge i {
    color: var(--primary-red);
    font-size: 0.85rem;
}

.map-badge-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--light-gray);
}

/* Responsive: móvil */
@media (max-width: 768px) {
    .map-wrapper {
        border-radius: 14px;
    }

    .map-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 14px 18px;
    }

    .map-directions-btn {
        align-self: flex-start;
    }

    .map-iframe-container {
        height: 280px;
        position: relative;
        display: block;
        overflow: hidden;
    }

    .map-iframe-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        border: none;
        display: block;
    }

    .map-footer {
        gap: 14px;
        padding: 12px 16px;
    }
}

@media (max-width: 480px) {
    .map-iframe-container {
        height: 240px;
    }

    .map-badge-dot {
        display: none;
    }
}

/* --- Sección preguntas frecuentes (FAQ) --- */
.faq {
    padding: 80px 0;
    background-color: var(--white);
    border-top: 1px solid var(--light-gray);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: var(--white);
}

.faq-question {
    width: 100%;
    padding: 25px 30px;
    background-color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-gray);
    text-align: left;
    transition: var(--transition);
}

.faq-item.active .faq-question {
    background-color: var(--primary-red);
    color: var(--white);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: var(--off-white);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 25px 30px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* --- Pie de página (footer) --- */
.footer {
    background-color: var(--white);
    padding: 100px 0 60px; /* Aumentado padding vertical */
    color: var(--text-dark);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--light-gray);
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red) 0%, var(--primary-red-dark) 100%);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 60px; /* Aumentado gap entre columnas */
    margin-bottom: 80px; /* Aumentado espacio inferior */
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 35px; /* Aumentado gap interno de columna */
}

.brand-col {
    padding-right: 40px;
}

.footer-logo .logo-img {
    height: 44px; /* Reducido de 55px */
    margin-bottom: 20px;
    object-fit: contain;
    max-width: 180px;
}

.footer-desc {
    color: var(--text-gray);
    font-size: 0.95rem;
    line-height: 1.8; /* Aumentado interlineado */
}

.footer-title {
    color: var(--dark-gray);
    font-size: 1.25rem; /* Ligeramente más grande */
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    padding-bottom: 15px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 3px; /* Línea más gruesa */
    background-color: var(--primary-red);
}

.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 18px; /* Aumentado espacio entre links */
}

.footer-links a {
    color: var(--text-gray);
    transition: var(--transition);
    font-size: 1rem; /* Ligeramente más grande */
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-red);
    transform: translateX(8px); /* Animación más marcada */
}

.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px; /* Aumentado espacio entre items de contacto */
    margin-top: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.contact-item i {
    color: var(--primary-red);
    font-size: 1.2rem;
    width: 25px;
}

.social-links {
    display: flex;
    gap: 18px; /* Aumentado espacio entre redes */
    margin-top: 10px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 12px;
    background-color: var(--off-white);
    border: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-gray);
    font-size: 1.3rem;
    transition: var(--transition);
}

.social-btn:hover {
    transform: translateY(-8px);
    background-color: var(--primary-red);
    color: var(--white);
    border-color: var(--primary-red);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.3);
}

.social-btn.facebook:hover { background-color: #1877F2; border-color: #1877F2; }
.social-btn.instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); border-color: transparent; }
.social-btn.tiktok:hover { background-color: #000000; border-color: #000000; }
.social-btn.whatsapp:hover { background-color: #25D366; border-color: #25D366; }

.footer-bottom {
    padding-top: 40px;
    border-top: 1px solid var(--light-gray);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.footer-bottom-links span {
    font-weight: 700;
    color: var(--dark-gray);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* =============================================
   Responsive: adaptaciones por breakpoint
   ============================================= */

/* Tablets grandes — hasta 1200px */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }

    .services-grid {
        gap: 20px;
    }

    .service-card {
        flex: 1 1 260px;
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
        gap: 30px;
    }
}

/* Hero en tablet grande */
@media (max-width: 1024px) {
    .hero {
        min-height: 600px;
    }
    .hero-bg-carousel {
        left: 30px;
        right: 30px;
    }
    .hero-left {
        max-width: 460px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
}

/* Móviles y tablets pequeñas — hasta 768px (solo para el hero) */
@media (max-width: 768px) {
    .hero {
        min-height: 520px;
    }
    /* En móvil el carrusel ocupa todo el ancho */
    .hero-bg-carousel {
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
    }
    .hero-overlay {
        background: linear-gradient(to bottom,
            rgba(255,255,255,0.55) 0%,
            rgba(255,255,255,0.25) 50%,
            rgba(255,255,255,0.10) 100%);
    }
    .hero-wrapper {
        padding: 50px 20px;
        box-sizing: border-box;
        width: 100%;
    }
    .hero-left {
        max-width: 100%;
        width: 100%;
        text-align: center;
        align-items: center;
    }
    .hero-tag {
        margin: 0 auto 18px;
    }
    .hero h1 {
        font-size: 1.9rem;
    }
    .hero p {
        max-width: 100%;
    }
    .hero-buttons {
        justify-content: center;
        width: 100%;
    }
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        max-width: 320px;
        text-align: center;
        justify-content: center;
    }
    /* Stats en móvil: 2 columnas */
    .hero-stats .container {
        justify-content: center;
        gap: 12px;
    }
    .stat-divider {
        display: none;
    }
    .stat-item {
        flex: 1 1 45%;
        justify-content: center;
        text-align: center;
        padding: 8px 4px;
    }
    .stat-brands {
        width: 100%;
        align-items: center;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .steps-wrapper {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .step-item:not(:last-child)::after {
        display: none;
    }
}

/* Móviles pequeños — hasta 480px (hero) */
@media (max-width: 480px) {
    .hero {
        min-height: 460px;
    }
    .hero h1 { font-size: 1.5rem; }
    .hero p { font-size: 0.88rem; }
    .btn-hero-primary, .btn-hero-secondary {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        text-align: center;
    }
    .hero-buttons { flex-direction: column; width: 100%; gap: 10px; }
    /* Stats en 1 columna en pantallas muy pequeñas */
    .stat-item {
        flex: 1 1 100%;
    }
}

/* Tablets — hasta 1024px (layout general y secciones) */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 35px;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .simulator-box {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .brand-col {
        grid-column: 1 / -1;
        text-align: center;
        padding-right: 0;
    }

    .footer-logo {
        display: flex;
        justify-content: center;
    }

    .footer-contact-info {
        align-items: center;
    }

    /* Reducimos padding vertical en tablets para ganar espacio */
    .services,
    .simulator,
    .payment-section,
    .about,
    .contact,
    .faq {
        padding: 70px 0;
    }
}

/* Tablets medianas — hasta 900px */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .service-card {
        flex: 1 1 220px;
        padding: 30px 20px;
    }

    .payment-box {
        padding: 40px 30px;
    }

    .contact-form {
        padding: 30px;
    }
}

/* Móviles y tablets pequeñas — hasta 768px */
@media (max-width: 768px) {

    /* Hamburguesa y menú móvil */
    .menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--white);
        padding: 20px 30px 30px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        transform: translateY(-200%);
        transition: transform 0.4s ease, opacity 0.4s ease;
        opacity: 0;
        z-index: 999;
        width: 100%;
        max-width: 100vw;
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
    }

    .nav-list>li {
        border-bottom: 1px solid var(--light-gray);
    }

    .nav-list>li:last-child {
        border-bottom: none;
    }

    .nav-list a {
        display: block;
        padding: 14px 0;
        font-size: 1rem;
    }

    .nav-list a::after {
        display: none;
    }

    /* Dropdown adaptado a móvil (estático, no flotante) */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0 0 0 20px;
        background-color: var(--off-white);
        border-radius: 8px;
        margin-top: 5px;
        display: none;
        flex-direction: column;
    }

    .dropdown.active .dropdown-menu {
        display: flex;
    }

    .dropdown-menu a {
        padding: 10px 15px;
        font-size: 0.95rem;
    }

    .hero {
        min-height: 520px;
        background-attachment: scroll;
    }

    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    /* Títulos de sección en móvil */
    .section-title {
        font-size: 1.8rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }

    /* Tarjetas de servicio en columna */
    .services {
        padding: 50px 0;
    }

    .services-grid {
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        width: 100%;
        max-width: 100%;
        flex: none;
    }

    /* Simulador en una sola columna */
    .simulator {
        padding: 50px 0;
    }

    .simulator-box {
        padding: 25px 20px;
        border-radius: 15px;
    }

    .simulator-inputs {
        gap: 25px;
    }

    .slider-value {
        min-width: 100px;
        font-size: 1rem;
        padding: 8px 12px;
    }

    /* Ajuste de tamaño del resultado */
    .result-value {
        font-size: 2rem;
    }

    /* Sección de pagos */
    .payment-section {
        padding: 50px 0;
    }

    .payment-box {
        padding: 35px 20px;
        margin: 0 10px;
    }

    .payment-logos {
        gap: 15px;
    }

    .payment-logo-btn img {
        width: 50px;
    }

    /* Sección nosotros */
    .about {
        padding: 60px 0;
    }

    .about-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 30px;
    }

    .about-number {
        font-size: 2.5rem;
    }

    .about-description {
        font-size: 1rem;
    }

    /* Formulario de contacto */
    .contact {
        padding: 50px 0;
    }

    .contact-form {
        padding: 25px 20px;
    }

    /* Acordeón de preguntas frecuentes */
    .faq {
        padding: 50px 0;
    }

    .faq-question {
        font-size: 1rem;
        padding: 20px;
    }

    .faq-answer p {
        padding: 20px;
    }

    /* Footer en 2 columnas para tablet */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    /* Logo un poco más pequeño */
    .logo-img {
        height: 40px;
    }
}

/* Móviles — hasta 600px */
@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }

    /* CRTICO: hero-wrapper lleva también clase container;
       usamos !important para que el padding vertical del hero no se pierda */
    .hero-wrapper.container {
        padding: 44px 20px !important;
    }

    .header {
        padding: 10px 0;
    }

    .logo-img {
        height: 34px;
    }

    /* Hero text — mejor contraste sobre imagen */
    .hero h1 {
        font-size: 1.65rem;
        text-shadow: 0 1px 6px rgba(255,255,255,0.9);
    }

    .hero p {
        font-size: 0.9rem;
        text-shadow: 0 1px 4px rgba(255,255,255,0.85);
    }

    .hero-tag {
        font-size: 0.68rem;
    }

    .btn {
        padding: 12px 24px;
        font-size: 15px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    /* Sliders del simulador en columna */
    .slider-container {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .slider-container input[type="range"] {
        width: 100%;
    }

    .slider-value {
        width: 100%;
        min-width: unset;
        text-align: center;
    }

    .slider-labels {
        font-size: 0.78rem;
    }

    /* Logos de pago en fila adaptable */
    .payment-box {
        padding: 30px 16px;
        margin: 0;
    }

    .payment-logos {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .payment-logo-btn {
        width: auto;
        min-width: 110px;
        max-width: 140px;
        padding: 12px 14px 10px;
    }

    .payment-logo-btn img {
        width: 60px;
    }

    /* Grilla de datos de nosotros */
    .about-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .info-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
        padding: 16px;
    }

    /* Footer en 1 columna centrada */
    .footer {
        padding: 50px 0 20px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-links {
        align-items: center;
    }

    .footer-contact-info {
        align-items: center;
    }

    .contact-item {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-logo {
        display: flex;
        justify-content: center;
    }

    .footer-logo .logo-img {
        height: 36px;
    }
}

/* Móviles pequeños — hasta 480px */
@media (max-width: 480px) {
    .section-title {
        font-size: 1.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .about-number {
        font-size: 2rem;
    }

    .about-text {
        font-size: 0.85rem;
    }

    .simulator-box {
        padding: 20px 15px;
    }

    .result-value {
        font-size: 1.7rem;
    }

    .contact-form {
        padding: 20px 15px;
    }

    .faq-question {
        font-size: 0.95rem;
        padding: 16px;
    }

    .faq-answer p {
        padding: 16px;
        font-size: 0.9rem;
    }

    .footer-grid {
        gap: 30px;
    }

    /* Cookie banner en móvil pequeño */
    .cookie-actions {
        flex-direction: column;
        width: 100%;
    }

    .cookie-actions .btn {
        width: 100%;
        text-align: center;
    }
}

/* Móviles muy pequeños — hasta 360px */
@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

    /* Mismo fix: hero-wrapper.container no pierde su padding vertical */
    .hero-wrapper.container {
        padding: 36px 16px !important;
    }

    .hero h1 {
        font-size: 1.25rem;
        text-shadow: 0 1px 6px rgba(255,255,255,0.9);
    }

    .hero p {
        font-size: 0.82rem;
        text-shadow: 0 1px 4px rgba(255,255,255,0.85);
    }

    .btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .logo-img {
        height: 30px;
    }

    .simulator-box {
        padding: 16px 12px;
    }

    .contact-form {
        padding: 16px 12px;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    .service-card h3 {
        font-size: 1.2rem;
    }

    .slider-value {
        font-size: 0.9rem;
    }

    .result-value {
        font-size: 1.5rem;
    }
}

/* --- Botón flotante de WhatsApp --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    animation: none;
}

.whatsapp-float svg {
    fill: white;
    width: 32px;
    height: 32px;
}

@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 25px rgba(37, 211, 102, 0.7);
    }

    100% {
        box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    }
}

/* WhatsApp flotante en móvil */
@media (max-width: 600px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 54px;
        height: 54px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* .btn-detail ya está definido arriba junto a .service-card */

/* --- Modal de detalle de servicios --- */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    border-radius: 24px;
    width: 100%;
    max-width: 900px;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: modalScale 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modalScale {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 30px;
    font-weight: 700;
    color: var(--text-gray);
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--primary-red);
}

.modal-body {
    display: flex;
    flex-wrap: wrap;
}

.modal-image {
    flex: 1;
    min-width: min(400px, 100%);
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 350px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



.modal-info {
    flex: 1;
    min-width: min(300px, 100%);
    padding: 40px;
    display: flex;
    flex-direction: column;
}

#modalTitle {
    color: var(--dark-gray);
    font-size: 2rem;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--primary-red);
    display: inline-block;
    padding-bottom: 5px;
}

#modalDescription {
    color: var(--text-gray);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 25px;
}

#modalFeatures {
    margin-bottom: 30px;
    padding-left: 0;
}

#modalFeatures li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    color: var(--text-dark);
    font-weight: 500;
}

#modalFeatures li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: 900;
}

.modal-nota {
    font-size: 0.8rem;
    color: var(--text-gray);
    font-style: italic;
    margin-bottom: 20px;
    padding-left: 5px;
    line-height: 1.5;
    opacity: 0.85;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: auto;
}

.modal-actions .btn {
    flex: 1;
    min-width: 140px;
    text-align: center;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.modal-actions .btn-wa {
    background-color: #25D366;
    color: var(--white);
    border: none;
}

.modal-actions .btn-wa:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.modal-actions .btn-secondary {
    background-color: transparent;
    color: var(--primary-red);
    border: 2px solid var(--primary-red);
}

.modal-actions .btn-secondary:hover {
    background-color: var(--primary-red);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.3);
}

@media (max-width: 768px) {
    .modal-content {
        border-radius: 16px;
        max-height: 92vh;
        overflow-y: auto;
    }

    .modal-image {
        min-width: 100%;
        min-height: 200px;
        max-height: 220px;
    }

    .modal-info {
        padding: 24px 20px;
    }

    #modalTitle {
        font-size: 1.5rem;
    }

    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }

    .modal-actions .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .modal {
        padding: 12px;
    }

    .modal-image {
        min-height: 160px;
        max-height: 180px;
    }

    .modal-info {
        padding: 20px 16px;
    }

    #modalTitle {
        font-size: 1.3rem;
    }
}

/* --- Banner de consentimiento de cookies --- */
.cookie-banner {
    position: fixed;
    bottom: -150%;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
    padding: 20px 0;
    z-index: 9999;
    transition: bottom 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border-top: 3px solid var(--primary-red);
}

.cookie-banner.show {
    bottom: 0;
}

.cookie-banner .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cookie-content {
    flex: 1;
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.5;
}

.cookie-content a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
}

.cookie-actions {
    display: flex;
    gap: 15px;
}

.cookie-actions .btn {
    white-space: nowrap;
    padding: 10px 25px;
    font-size: 0.95rem;
}

.cookie-actions .btn-secondary {
    background: transparent;
    color: var(--text-gray);
    border: 1px solid var(--light-gray);
}

.cookie-actions .btn-secondary:hover {
    background: var(--light-gray);
    color: var(--dark-gray);
}

@media (max-width: 768px) {
    .cookie-banner .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* =============================================
   Pantalla de carga (Loader Premium - Fondo Blanco)
   ============================================= */
#loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #ffffff 0%, #f8f9fa 100%);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.6s;
    opacity: 1;
    visibility: visible;
}

#loader-wrapper.fade-out {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.loader-circle-container {
    position: relative;
    width: 140px;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.loader-logo {
    width: 65px;
    height: auto;
    z-index: 2;
    animation: logo-pulse 2s infinite ease-in-out;
}

.loader-circle {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
}

.loader-circle.outer {
    width: 120px;
    height: 120px;
    border-top-color: #E63946;
    border-bottom-color: #E63946;
    animation: spin-clockwise 2.5s infinite linear;
}

.loader-circle.inner {
    width: 90px;
    height: 90px;
    border-left-color: #FF6B6B;
    border-right-color: #FF6B6B;
    animation: spin-counter-clockwise 1.5s infinite linear;
}

.loader-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0f4c5c;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    text-transform: uppercase;
    animation: fade-in-up-loader 0.8s ease forwards;
}

.loader-text {
    font-size: 0.95rem;
    color: #6c757d;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
    animation: fade-in-up-loader 1s ease forwards;
}

.loader-bar-container {
    width: 180px;
    height: 3px;
    background: rgba(15, 76, 92, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.loader-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #E63946, transparent);
    position: absolute;
    left: -100%;
    animation: loading-bar-progress 2s infinite ease-in-out;
}

/* Animations */
@keyframes spin-clockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes spin-counter-clockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(-360deg); }
}

@keyframes logo-pulse {
    0%, 100% { 
        transform: scale(1); 
        filter: drop-shadow(0 0 8px rgba(230, 57, 70, 0.2)); 
    }
    50% { 
        transform: scale(1.1); 
        filter: drop-shadow(0 0 20px rgba(230, 57, 70, 0.5)); 
    }
}

@keyframes fade-in-up-loader {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes loading-bar-progress {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}