: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;
}

* {
    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;
}

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: 50px;
    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;
}

/* Enlace "Trabaja con nosotros" — mismo estilo que los nav links */
.nav-link-trabaja {
    font-weight: 700;
    color: var(--dark-gray);
    transition: var(--transition);
    position: relative;
    font-size: inherit;
}

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

.nav-link-trabaja:hover {
    color: var(--primary-red);
}

.nav-link-trabaja:hover::after {
    width: 100%;
}

@media (max-width: 768px) {
    .nav-link-trabaja {
        display: 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: #FFF0F1;
    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 80px;
    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 {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.result-icon img {
    height: 65px;
    width: auto;
    object-fit: contain;
}

.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 {
    position: relative;
    padding: 90px 0;
    background: var(--white);
    border-top: 1px solid var(--light-gray);
    overflow: hidden;
}

.payment-bg-dots {
    position: absolute;
    width: 140px;
    height: 140px;
    opacity: 0.12;
    pointer-events: none;
    background-image: radial-gradient(#0D9488 1.5px, transparent 1.5px);
    background-size: 16px 16px;
}

.payment-bg-dots-top {
    right: 40px;
    top: 40px;
}

.payment-bg-dots-bottom {
    left: 40px;
    bottom: 40px;
}

.payment-box {
    text-align: center;
    max-width: 1040px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 60px 45px;
    border-radius: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.01);
}

.payment-top-icon {
    width: 48px;
    height: 48px;
    background: #E6F4F1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0D9488;
    margin: 0 auto 20px;
}

.payment-top-icon svg {
    width: 22px;
    height: 22px;
}

.payment-title-divider {
    width: 50px;
    height: 3px;
    background-color: #0D9488;
    margin: 12px auto 20px;
}

.payment-description {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 45px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Tarjetas de pago */
.payment-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 45px;
}

.payment-card-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--white);
    border: 1.5px solid #E2E8F0;
    border-radius: 24px;
    padding: 35px 25px 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
    min-height: 290px;
    justify-content: flex-start;
}

/* Tarjeta Wompi Recomendada (borde gris por defecto) */
.card-recommended {
    border-color: #E2E8F0;
    border-width: 1.5px;
}

/* Efecto hover para las tarjetas interactivas */
.payment-card-item:not(.card-soon):hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(13, 148, 136, 0.08);
    border-color: #0D9488;
}

.recommended-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translate(-50%, 5px);
    background: #0D9488;
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    padding: 6px 14px;
    border-radius: 50px;
    white-space: nowrap;
    z-index: 10;

    /* Oculto por defecto */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mostrar badge recomendado en hover */
.card-recommended:hover .recommended-badge {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

/* Tarjeta Bemovil Próximamente */
.card-soon {
    pointer-events: none;
    background-color: #FCFCFC;
}

.soon-badge-pill {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #F36B7F;
    color: var(--white);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 50px;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(243, 107, 127, 0.3);
    z-index: 10;
}

.card-logo-wrapper {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.payment-card-item h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #0A2540;
    margin-bottom: 10px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #10B981;
    font-weight: 500;
    margin-bottom: 10px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slide elements up slightly on hover */
.payment-card-item:not(.card-soon):hover .card-logo-wrapper {
    transform: translateY(-8px);
}

.payment-card-item:not(.card-soon):hover h3 {
    transform: translateY(-5px);
}

.payment-card-item:not(.card-soon):hover .card-security-badge {
    transform: translateY(-2px);
}

.card-security-badge svg {
    flex-shrink: 0;
}

.btn-pay-platform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background-color: #0D9488;
    color: var(--white);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: 0 0 22px 22px;
    text-decoration: none;

    /* Oculto por defecto */
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-pay-platform svg {
    width: 16px;
    height: 16px;
}

.btn-pay-platform:hover {
    background-color: #0F766E;
    color: var(--white);
}

/* Mostrar botón en hover */
.payment-card-item:not(.card-soon):hover .btn-pay-platform {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Banner de seguridad */
.payment-security-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #EDF7F6;
    border-radius: 50px;
    padding: 12px 24px;
    margin: 0 auto 40px;
    width: fit-content;
    max-width: 100%;
}

.security-lock-circle {
    width: 28px;
    height: 28px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0D9488;
    flex-shrink: 0;
}

.security-lock-circle svg {
    width: 14px;
    height: 14px;
}

.payment-security-banner p {
    font-size: 0.88rem;
    color: #0F766E;
    font-weight: 500;
    margin: 0;
}

/* Beneficios footer */
.payment-benefits-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #F1F5F9;
    padding-top: 35px;
    flex-wrap: wrap;
}

.benefit-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 0 30px;
    min-width: 220px;
    position: relative;
}

.benefit-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 10%;
    height: 80%;
    width: 1px;
    background-color: #E2E8F0;
}

.benefit-icon-teal {
    color: #0D9488;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-icon-teal svg {
    width: 22px;
    height: 22px;
}

.benefit-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.benefit-text strong {
    font-size: 0.95rem;
    color: #0A2540;
    font-weight: 700;
    line-height: 1.2;
}

.benefit-text span {
    font-size: 0.82rem;
    color: #718096;
}

@media (max-width: 850px) {
    .payment-cards-container {
        grid-template-columns: 1fr;
        max-width: 350px;
        margin: 0 auto 40px;
    }

    .btn-pay-wompi {
        width: 100%;
        margin: 20px 0 0;
        border-radius: 12px;
    }
}

@media (max-width: 768px) {
    .payment-box {
        padding: 40px 20px;
    }

    .benefit-item {
        padding: 15px 0;
    }

    .benefit-item:not(:last-child)::after {
        display: none;
    }

    .payment-security-banner {
        border-radius: 20px;
        padding: 12px 16px;
    }
}

/* --- 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 {
    position: relative;
    padding: 90px 0;
    background: radial-gradient(circle at 10% 20%, rgba(230, 57, 70, 0.02) 0%, rgba(230, 57, 70, 0.05) 90%), #FFFBFB;
    border-top: 1px solid var(--light-gray);
    overflow: hidden;
}

.contact-bg-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.04) 0%, rgba(230, 57, 70, 0) 70%);
    pointer-events: none;
}

.contact-bg-circle-1 {
    width: 600px;
    height: 600px;
    left: -200px;
    bottom: -200px;
}

.contact-bg-circle-2 {
    width: 400px;
    height: 400px;
    right: -100px;
    top: -100px;
}

.contact-bg-dots {
    position: absolute;
    width: 140px;
    height: 140px;
    opacity: 0.15;
    pointer-events: none;
    background-image: radial-gradient(#E63946 1.5px, transparent 1.5px);
    background-size: 16px 16px;
}

.contact-bg-dots-top {
    right: 40px;
    top: 40px;
}

.contact-bg-dots-bottom {
    left: 40px;
    bottom: 40px;
}

.contact-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 5;
}

.contact-icon-top {
    width: 32px;
    height: 32px;
    color: #E63946;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon-top svg {
    width: 100%;
    height: 100%;
}

.contact .section-title {
    font-size: 2.6rem;
    color: #0A2540;
    margin-bottom: 10px;
}

.contact .section-subtitle {
    color: #718096;
    font-size: 1.1rem;
    margin-bottom: 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 40px;
    align-items: start;
    position: relative;
    z-index: 5;
}

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

.info-card {
    background: var(--white);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.005);
}

.info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.05);
}

/* Card unificada: contiene todas las filas de contacto en una sola */
.info-card-unified {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
}

.info-row-divider {
    height: 1px;
    background-color: #F1F5F9;
    margin: 0 24px;
}

/* Encabezado interno de la card unificada */
.info-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.04) 0%, rgba(230, 57, 70, 0.02) 100%);
    border-radius: 16px 16px 0 0;
}

.info-card-header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(230, 57, 70, 0.1);
    color: #E63946;
    flex-shrink: 0;
}

.info-card-header-icon svg {
    width: 20px;
    height: 20px;
}

.info-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0A2540;
    margin: 0 0 2px;
}

.info-card-subtitle {
    font-size: 0.82rem;
    color: #718096;
    margin: 0;
}

.info-icon-wrapper {
    flex-shrink: 0;
}

.info-icon-new {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(230, 57, 70, 0.05);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #E63946;
}

.info-icon-new svg {
    width: 20px;
    height: 20px;
}

.info-content {
    text-align: left;
}

.info-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0A2540;
    margin-bottom: 4px;
}

.info-content p {
    font-size: 0.95rem;
    color: #4A5568;
    margin: 0;
    line-height: 1.4;
}

.info-content p a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.info-content p a:hover {
    color: #E63946;
}

/* Tarjeta Formulario */
.contact-form-card {
    background-color: var(--white);
    padding: 45px;
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.005);
}

.contact-form-new {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group-new {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group-new label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0A2540;
    text-align: left;
}

.form-group-new input,
.form-group-new textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    color: #334155;
    transition: all 0.2s ease;
    background-color: #F8FAFC;
    resize: none;
}

.form-group-new input::placeholder,
.form-group-new textarea::placeholder {
    color: #A0AEC0;
}

.form-group-new input:focus,
.form-group-new textarea:focus {
    outline: none;
    border-color: #E63946;
    background-color: var(--white);
    box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.08);
}

.btn-send-message {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px;
    background-color: #DE3B49;
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-send-icon {
    width: 16px;
    height: 16px;
}

.btn-send-message:hover {
    background-color: #C1121F;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(222, 59, 73, 0.3);
}

.contact-form-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 0.85rem;
    color: #718096;
}

.security-shield-svg {
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .contact-form-card {
        padding: 30px 20px;
    }

    .info-card {
        padding: 20px;
    }

    .contact .section-title {
        font-size: 2.2rem;
    }
}

/* --- Sección preguntas frecuentes (FAQ) --- */
.faq {
    padding: 80px 0;
    background-color: #FFF5F6;
    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%;
    }
}


/* ================================================
   SECCIÓN DE SERVICIOS
   ================================================ */

.services-section {
    padding: 90px 0;
    background: var(--white);
}

.services-header {
    text-align: center;
    margin-bottom: 52px;
}

.services-header .section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0A2540;
    margin-bottom: 12px;
}

.services-header .section-subtitle {
    font-size: 1rem;
    color: #64748B;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Grid de tarjetas */
.services-row {
    display: flex;
    gap: 28px;
    justify-content: center;
}

.services-row-top {
    margin-bottom: 28px;
}

.services-row-bottom {
    max-width: 780px;
    margin: 0 auto;
}

/* Tarjeta individual */
.service-card {
    background: var(--white);
    border: 1.5px solid #E8ECF0;
    border-top: 4px solid #E63946;
    border-radius: 20px;
    padding: 36px 28px 28px;
    flex: 1;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(230, 57, 70, 0.1);
    border-top-color: #C1121F;
}

/* Ícono */
.service-icon-wrapper {
    width: 75px;
    height: 75px;
    background: #FFF0F1;
    border: 2px solid #FFE4E6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    transition: transform 0.3s ease;
    overflow: hidden;
}

.service-card:hover .service-icon-wrapper {
    transform: scale(1.08);
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
    transform: scale(1.45);
}

/* Texto */
.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0A2540;
    margin-bottom: 12px;
    line-height: 1.4;
}

.service-card p {
    font-size: 0.9rem;
    color: #64748B;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 22px;
}

/* Botón VER DETALLES */
.btn-service-detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    color: #E63946;
    border: 2px solid #E63946;
    border-radius: 50px;
    padding: 10px 22px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.btn-service-detail:hover {
    background: #E63946;
    color: var(--white);
}

/* Responsive servicios */
@media (max-width: 900px) {
    .services-row-top {
        flex-wrap: wrap;
    }

    .service-card {
        max-width: 100%;
        min-width: calc(50% - 14px);
    }
}

@media (max-width: 600px) {

    .services-row,
    .services-row-bottom {
        flex-direction: column;
    }

    .service-card {
        max-width: 100%;
        min-width: unset;
    }
}


/* ================================================
   SECCIÓN DE UBICACIÓN / MAPA
   ================================================ */

.location-section {
    padding: 80px 0;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.location-section::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(230, 57, 70, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.location-header {
    text-align: center;
    margin-bottom: 40px;
}

.location-icon-top {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FFEEF0, #FFDDE0);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.location-icon-top svg {
    width: 28px;
    height: 28px;
    stroke: #E63946;
}

.location-header .section-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0A2540;
    margin-bottom: 10px;
}

.location-header .section-subtitle {
    font-size: 1rem;
    color: #64748B;
}

/* Mapa full-width */
.location-map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    border: 1.5px solid #E8ECF0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
}

.location-map-wrapper iframe {
    width: 100%;
    height: 420px;
    display: block;
    border: 0;
}

/* Botón debajo del mapa */
.location-actions {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.btn-get-directions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #E63946;
    color: var(--white);
    border-radius: 50px;
    padding: 13px 30px;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.25);
}

.btn-get-directions:hover {
    background: #C1121F;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(230, 57, 70, 0.3);
}

.btn-get-directions svg {
    width: 16px;
    height: 16px;
    stroke: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
    .location-map-wrapper iframe {
        height: 300px;
    }
}