/* Reset and global styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #555;
    line-height: 1.6;
    background: #fff;
}

/* Colour palette */
:root {
    --primary: #EF7C2F;
    --dark: #1F1F1F;
    --light-bg: #F5F5F5;
    --white: #ffffff;
}

h1, h2, h3 {
    font-family: 'Montserrat', sans-serif;
    color: #333;
    font-weight: 600;
}

.btn-rounded {
    border-radius: 50rem !important; /* súper redondeado tipo pill */
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}



/* ===== Features mejoradas ===== */
/* Sección características ajustada */
/* =========================
   Sección FEATURES (cards)
   ========================= */

/* Contenedor general de la sección */
.features {
    background: var(--white);
    padding: 60px 20px;
    text-align: center;
}

    /* Título y subtítulo (opcional, por si usás .lead) */
    .features h2 {
        font-size: clamp(1.8rem, 2.4vw, 2.2rem);
        margin-bottom: 10px;
        color: var(--dark);
    }

    .features .lead {
        font-size: 1.05rem;
        color: #666;
    }

    /* Gutter reducido: 3 por fila y “casi pegadas” */
    .features .row {
        --bs-gutter-x: 1rem; /* espacio horizontal medio (más compacto) */
        --bs-gutter-y: 1.2rem; /* espacio vertical medio */
    }

/* Tarjeta base */
.feature-card {
    background: #ffffff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.05);
    padding: 1.25rem; /* interno compacto */
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    height: 100%;
}

    /* Hover sutil y profesional */
    .feature-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 10px 24px rgba(0,0,0,.10);
        border-color: rgba(239,124,47,.25); /* usa tu --primary suavizada */
    }

    /* Ícono dentro de la card */
    .feature-card img {
        width: 60px;
        height: 60px;
        object-fit: contain;
        opacity: .98;
        user-select: none;
        pointer-events: none;
        transition: transform .2s ease, opacity .2s ease;
    }

    /* Pequeño “pop” al pasar el mouse por la card */
    .feature-card:hover img {
        transform: translateY(-2px) scale(1.03);
        opacity: 1;
    }

    /* Título y párrafo internos */
    .feature-card .card-title {
        font-weight: 700;
        color: #1F1F1F; /* var(--dark) */
        margin-bottom: .5rem;
    }

    .feature-card .card-text {
        color: #555;
        line-height: 1.6;
        margin: 0; /* compacta el texto para que todas se vean parecidas */
    }

    /* Alturas parejas y botón/lista al pie si en algún momento los agregás */
    .feature-card .card-body {
        display: flex;
        flex-direction: column;
    }

/* RESPONSIVE TUNING */
@media (max-width: 991.98px) {
    /* En tablets: dos por fila con aire cómodo */
    .features .row {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }
}

@media (max-width: 575.98px) {
    /* En móviles: una por fila, icono un toque más chico */
    .feature-card img {
        width: 56px;
        height: 56px;
    }

    .feature-card {
        padding: 1rem;
    }
}
/* Forzar que las feature-card ocupen el ancho completo de la col */
.feature-card {
    width: 100%; /* toma todo el ancho disponible */
    height: 100%; /* fuerza misma altura en la fila */
    margin: 0; /* elimina márgenes innecesarios */
    padding: 1.25rem; /* interno, no externo */
    box-sizing: border-box;
}
.icon-feature {
    font-size: 4rem; /* tamaño grande */
    color: var(--primary); /* tu color corporativo */
    display: inline-block;
    line-height: 1;
    transition: transform .2s ease, color .2s ease;
}

.feature-card:hover .icon-feature {
    transform: scale(1.1);
    color: #d96722; /* tono hover */
}






/* ===================== CONTADORES (UNIFICADO) ===================== */
#contadores {
    background: #fff;
    padding: 90px 20px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

    /* (opcional) Variante con gradiente animado sutil */
    #contadores.contadores--vibrant::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(120deg, rgba(239,124,47,0.08), rgba(255,160,110,0.08), rgba(255,255,255,0));
        background-size: 200% 200%;
        animation: mdtGradient 12s ease-in-out infinite;
        z-index: -1;
        pointer-events: none;
    }

@keyframes mdtGradient {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}

/* GRID responsivo: 4 / 2 / 1 columnas */
#contadores .counters-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
    justify-items: center; /* centra cada tarjeta dentro de su celda */
}

/* Tarjeta */
#contadores .counter-box {
    width: 100%;
    max-width: 340px; /* controla el ancho sin forzar wrap */
    padding: 40px 56px;
    background: var(--light-bg, #fff);
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 6px 14px rgba(0,0,0,.08);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

    #contadores .counter-box:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 28px rgba(0,0,0,.12);
        border-color: rgba(239,124,47,.28);
    }

/* Ícono */
#contadores .counter-icon {
    font-size: 3.8rem;
    color: var(--primary);
    line-height: 1;
    display: inline-block;
    margin-bottom: 16px;
    transition: transform .2s ease, filter .2s ease, color .2s ease;
}

#contadores .counter-box:hover .counter-icon {
    transform: translateY(-3px) scale(1.08);
    color: #d96722;
    filter: drop-shadow(0 6px 16px rgba(239,124,47,.35));
}

/* Número + etiqueta */
#contadores .counter {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 8px;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 2px 2px rgba(255,255,255,0.7);
}

#contadores .label {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
}

/* Animación de entrada */
@keyframes counterPopIn {
    0% {
        opacity: 0;
        transform: translateY(15px) scale(0.96)
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

#contadores .counter-anim {
    animation: counterPopIn .6s ease-out both;
}

    #contadores .counter-anim.delay-1 {
        animation-delay: .15s;
    }

    #contadores .counter-anim.delay-2 {
        animation-delay: .30s;
    }

/* Breakpoints */
@media (max-width: 991.98px) { /* tablet */
    #contadores .counters-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #contadores .counter {
        font-size: 3.4rem;
    }

    #contadores .counter-icon {
        font-size: 3.2rem;
    }

    #contadores .counter-box {
        max-width: 420px;
        padding: 32px 40px;
    }
}

@media (max-width: 575.98px) { /* móvil */
    #contadores .counters-grid {
        grid-template-columns: 1fr;
    }

    #contadores .counter {
        font-size: 3.2rem;
    }

    #contadores .counter-icon {
        font-size: 3rem;
    }

    #contadores .counter-box {
        max-width: 440px;
        padding: 28px;
    }
}

@media (min-width: 1400px) { /* monitores grandes */
    #contadores .counter-box {
        max-width: 360px;
    }
}



/* Botones flotantes de scroll */
/* Botones flotantes */
.btn-scroll {
    position: fixed;
    right: 18px;
    z-index: 1040;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: none;
    background: var(--primary);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
    transition: transform .15s ease, opacity .2s ease;
    opacity: 0;
    pointer-events: none;
}

    .btn-scroll:hover {
        opacity: .9;
    }

    .btn-scroll:active {
        transform: scale(.95);
    }

    .btn-scroll:focus-visible {
        outline: 2px solid #FFD200; /* acento secundario */
        outline-offset: 2px;
    }

.btn-to-top {
    bottom: 78px;
}

.btn-to-bottom {
    bottom: 18px;
}

.btn-scroll.is-visible {
    opacity: 1;
    pointer-events: auto;
}




/* ===== SECCIÓN MÁS QUE PAGOS (consolidado y limpio) ===== */

/* Banda y contenedor */
#mas.masque {
    position: relative;
    padding: 4rem 0; 
}

#mas .mas-container {
    /* grid = control fino del solape sin romper layout global */
    display: grid;
    grid-template-columns: 1.1fr 1fr; /* card más ancho que imagen */
    align-items: center;
    justify-content: center;
    gap: 2rem;
    position: relative;
}

/* Imagen (va por encima del card) */
#mas .mas-image img {
    position: relative;
    z-index: 2; /* foto arriba */
    max-width: 560px; /* más chica para que se luzca el card */
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Card de texto (se mete debajo pero su contenido NO queda tapado) */
#mas .overlap-card {
    position: relative;
    z-index: 1; /* debajo de la imagen */
    width: 720px; /* más largo */
    max-width: 95%;
    justify-self: end; /* lo acerca a la imagen */
    margin: 0;
    margin-right: -160px; /* 🔸 se mete bajo la foto */
    padding: 2.5rem 3rem;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.04);
    box-shadow: 0 8px 28px rgba(0,0,0,0.10);
    text-align: left; /* texto alineado a la izquierda */
}

    /* Título con subrayado de acento (tu estilo) */
    #mas .overlap-card h2 {
        font-weight: 700;
        margin-bottom: 1rem;
        position: relative;
        display: inline-block;
    }

        #mas .overlap-card h2::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -6px;
            width: 100%;
            height: 3px;
            background: linear-gradient(90deg, var(--primary), rgba(239,124,47,0.4));
            border-radius: 2px;
            opacity: .75;
        }

 
#mas .overlap-card--accent {
    border: 1px solid rgba(239,124,47,0.18);
    box-shadow: 0 10px 32px rgba(0,0,0,0.12), 0 0 0 4px rgba(239,124,47,0.03);
}

    #mas .overlap-card--accent::before {
        content: "";
        position: absolute;
        left: 0;
        top: 18px;
        bottom: 18px;
        width: 6px;
        border-radius: 6px;
        background: linear-gradient(180deg, var(--primary), #ffb081);
        box-shadow: 0 0 0 1px rgba(239,124,47,0.15), 0 8px 18px rgba(239,124,47,0.25);
    }
/*  barra abajo en vez de vertical
#mas .overlap-card--accent::before{
  left: 18px; right: 18px; bottom: 0; top: auto; height: 6px; width: auto; border-radius: 6px;
}
*/

/* RESPONSIVE */
@media (max-width: 991.98px) {
    #mas .mas-container {
        grid-template-columns: 1fr; /* apilar */
        gap: 1.25rem; 
    }

    #mas .mas-image img {
        max-width: 100%;
    }

    #mas .overlap-card {
        justify-self: center;
        width: 100%;
        max-width: 100%;
        margin-right: 0; /* sin solape en mobile */
        margin-top: -40px; /* “asoma” desde arriba sin tapar texto */
        padding: 2rem; 
    }

    #mas .overlap-card--accent::before {
        top: 14px;
        bottom: 14px;
        width: 5px;
    }
}

/* Accesibilidad: respetar preferencias de movimiento */
@media (prefers-reduced-motion: reduce) {
    #mas .overlap-card, #mas .overlap-card--accent {
        transition: none !important;
    }
}


/* Ajuste para que el texto no se meta debajo de la imagen */
#mas .overlap-card  {
    text-align: left !important; /* texto alineado a la izquierda */
    padding-right: 160px !important; /* margen interno a la derecha */
}
/* Fondo con parallax para Grupo Málaga */
.parallax-section {
    background-image: url('fondo-grupo-malaga.jpg');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    min-height: 500px;
    position: relative;
}

    .parallax-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
    }

    .parallax-section .container {
        position: relative;
        z-index: 2;
    }

.text-container {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 768px) {
    .text-container {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Opcional: reducir padding derecho en móviles */
@media (max-width: 991.98px) {
    #mas .overlap-card   {
        padding-right: 5px !important; /* o 0, según prefieras */ 
    }
}
@media (max-width: 767.98px) {
    #mas .mas-container {
        grid-template-columns: 1fr !important; /* una columna en mobile/sm */
    }
}

/* Ocultar la imagen en MOBILE (XS+SM: <768px) */
@media (max-width: 767.98px) {
    #mas .mas-image {
        display: none !important;
    }
}


/*Para video de fondo*/
.bg-video {
    position: relative;
    min-height: 600px;
    overflow: hidden;
}

.bg-video__media {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover; /* rellena todo el espacio */
    z-index: 0;
}

.bg-video__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1;
}

.bg-video .container {
    position: relative;
    z-index: 2;
}

/* Parallax suave para el video */
.bg-video {
    perspective: 1px; /* ayuda a dar sensación de profundidad en algunos navegadores */
}

.bg-video__media {
    will-change: transform;
    transition: transform 0.06s linear; /* suaviza el movimiento */
}

/* Desactivar en mobile por rendimiento */
@media (max-width: 767.98px) {
    .bg-video__media {
        transition: none;
    }
}

/* Respeta usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
    .bg-video__media {
        transition: none !important;
        transform: translate(-50%, -50%) !important; /* sin parallax */
    }
}

.bg-video .content-box {
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
    color: #fff;
}

@supports not ((backdrop-filter: blur(4px))) {
    .bg-video .content-box {
        background: rgba(0,0,0,0.45);
    }
}

@media (max-width: 767.98px) {
    .bg-video .content-box {
        margin: 0 1rem;
        padding: 1.25rem;
    }
}

 
/* Variante fondoClaro: sin overlay oscuro, recuadro claro */
/* Variante fondoClaro: recuadro blanco translúcido y texto oscuro */
.bg-video.fondoClaro .bg-video__overlay {
    background: rgba(0,0,0,0.5); /* mantenemos el oscurecido del video */
}

.bg-video.fondoClaro .content-box {
    background: rgba(255, 255, 255, 0.2); /* blanco translúcido */
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.9);
    backdrop-filter: blur(6px);
    color: #fff;
}

@supports not ((backdrop-filter: blur(4px))) {
    .bg-video.fondoClaro .content-box {
        background: rgba(255,255,255,0.95); /* fallback */
    }
}

.bg-video.fondoClaro .content-box h2,
.bg-video.fondoClaro .content-box p,
.bg-video.fondoClaro .content-box strong {
    color: #fff !important; /* texto oscuro */
}

@media (max-width: 767.98px) {
    .bg-video.fondoClaro .content-box {
        margin: 0 1rem;
        padding: 1.25rem;
    }
}



 

@keyframes gradMove {
    0% {
        background-position: 0% 50%
    }

    50% {
        background-position: 100% 50%
    }

    100% {
        background-position: 0% 50%
    }
}
 

/* Hero section */
.hero {
    position: relative;
    background-image: url('../../img/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 90vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    margin-top: 0px;
}

    .hero::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, rgba(239,124,47,0.55), rgba(0,0,0,0.55));
        z-index: 0;
    }

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1500px;
    padding: 20px;
    margin-top: 5%;
    padding: clamp(20px, 2.5vw, 36px);


    /* Panel translúcido + glass */
    background: rgba(0, 0, 0, 0.10); /* opacidad ajustable */
    -webkit-backdrop-filter: blur(6px) saturate(120%);
    backdrop-filter: blur(6px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: #fff;
    /*text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);*/
}

.hero p {
    font-size: 1.5rem; /* un poco más grande */
    margin-bottom: 1.5rem;
    color: #ffffff; /* blanco pleno */
    font-weight: 600; /* más sólido */
    line-height: 1.7; /* mejor aire */
    /*text-shadow: 0 2px 6px rgba(0,0,0,0.8),*/ /* sombra fuerte */
    /*0 0 8px rgba(0,0,0,0.6);*/ /* halo extra */
}

/* Ajustes responsivos: un toque más opaco en móviles para legibilidad */
@media (max-width: 575.98px) {
    .hero-content {
        background: rgba(0, 0, 0, 0.07);
        padding: 20px;
        /* margen izquierdo y derecho responsivo */
        margin-left: clamp(12px, 4vw, 24px);
        margin-right: clamp(12px, 4vw, 24px);
    }
}

/* iOS/Android con notch: respeta las "safe areas" */
@supports (margin: max(0px)) {
    @media (max-width: 575.98px) {
        .hero-content {
            margin-left: max(clamp(12px, 4vw, 24px), env(safe-area-inset-left));
            margin-right: max(clamp(12px, 4vw, 24px), env(safe-area-inset-right));
        }
    }
}

/*margen un poco mayor en tablets chicas */
@media (min-width: 576px) and (max-width: 767.98px) {
    .hero-content {
        margin-left: clamp(16px, 3vw, 32px);
        margin-right: clamp(16px, 3vw, 32px);
    }
}

/* Botones corporativos MDTPagos */
.btn-mdt {
    background-color: #EF7C2F;
    border-color: #EF7C2F;
    color: #fff;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

    .btn-mdt:hover,
    .btn-mdt:focus {
        background-color: #d96722; /* un tono más oscuro para hover */
        border-color: #d96722;
        color: #fff;
    }

.btn-outline-mdt {
    color: #EF7C2F;
    border: 1px solid #EF7C2F;
    background: #fff;
}

    .btn-outline-mdt:hover {
        background-color: #EF7C2F;
        color: #fff;
    }

/* Título con barra corta que se estira */
.h-underline-fusion {     
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-size: clamp(3rem, 4.5vw, 4.05rem) !important; /* antes: clamp(2rem, 3vw, 2.7rem) */
    position: relative;
    display: inline-block;
}

    .h-underline-fusion {
        font-weight: 700;
        letter-spacing: -0.02em;
        line-height: 1.1;
        font-size: clamp(2rem, 3vw, 2.7rem) !important;
        position: relative;
        display: inline-block;
    }
    /* Barra corta central (decorativa) y base de la animación */
    .h-underline-fusion::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -10px;
        height: 3px;
        width: 56px; /* barra inicial corta */
        background: var(--primary);
        border-radius: 2px;
        transform: translateX(-50%) scaleX(1);
        transform-origin: center center;
        transition: transform .45s ease, width .45s ease;
        z-index: 1;
    }
    /* Animación: al hover o al entrar en pantalla */
    .h-underline-fusion:hover::after,
    .h-underline-fusion.in-view::after {
        width: 140px; /* se estira, pero no a todo el ancho */
        transform: translateX(-50%) scaleX(1);
    }

.h-underline-fusion2 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-size:  clamp(2rem, 3vw, 2.7rem);
    position: relative;
    display: inline-block;
}

.h-underline-fusion2 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-size: clamp(2rem, 3vw, 2.7rem) !important;
    position: relative;
    display: inline-block;
}
    /* Barra corta central (decorativa) y base de la animación */
    .h-underline-fusion2::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -10px;
        height: 3px;
        width: 56px; /* barra inicial corta */
        background: var(--primary);
        border-radius: 2px;
        transform: translateX(-50%) scaleX(1);
        transform-origin: center center;
        transition: transform .45s ease, width .45s ease;
        z-index: 1;
    }
    /* Animación: al hover o al entrar en pantalla */
    .h-underline-fusion2:hover::after,
    .h-underline-fusion2.in-view::after {
        width: 140px; /* se estira, pero no a todo el ancho */
        transform: translateX(-50%) scaleX(1);
    }
/* (Opcional) Animación de aparición del título */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.h-anim {
    animation: fadeUp .5s ease-out both;
}




 
























/* CTAs genéricos */
.cta-btn {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 0.75rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

    .cta-btn:hover {
        background: #d96722;
    }

/* Features section */
.features {
    background: var(--white);
    padding: 60px 20px;
    text-align: center;
}

    .features h2 {
        font-size: 1.8rem;
        margin-bottom: 30px;
        color: var(--dark);
    }

.feature-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.card {
    background: #fafafa;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    width: 260px;
    padding: 30px 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 6px 10px rgba(0,0,0,0.08);
    }

    .card .icon {
        font-size: 2.5rem;
        color: var(--primary);
        margin-bottom: 15px;
    }

    .card .icon-img {
        width: 60px;
        height: 60px;
        object-fit: contain;
        margin-bottom: 15px;
    }

    .card h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
        color: var(--dark);
    }

    .card p {
        font-size: 0.95rem;
        color: #666;
    }

/* Grupo section */
.grupo {
    background: var(--white);
    color: var(--dark);
    padding: 60px 20px;
}

.grupo-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
    gap: 40px;
}

.grupo-logo {
    flex: 0 0 200px;
    text-align: center;
}

    .grupo-logo img {
        width: 200px;
        max-width: 90%;
    }

.grupo-text {
    flex: 1;
    min-width: 260px;
    max-width: 550px;
}

    .grupo-text h2 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
        color: var(--dark);
    }

    .grupo-text p {
        font-size: 1.05rem;
        line-height: 1.6;
        color: #555;
    }

    .grupo-text a {
        color: var(--primary);
        text-decoration: none;
    }

        .grupo-text a:hover {
            text-decoration: underline;
        }

/* Contact section */
/* ================================
   Contacto Modern - Formulario
================================= */ 
.contacto-modern {
    padding: 3rem 0;
}

.contacto-head h2 {
    font-weight: 700;
    margin-bottom: .5rem;
}

.contacto-head p {
    color: #555;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* Formulario */
.form-field {
    position: relative;
    display: flex;
    flex-direction: column;
}

    .form-field label {
        font-weight: 500;
        margin-bottom: .25rem;
        color: #333;
    }

    /* Inputs y textarea */
    .form-field input,
    .form-field textarea {
        border: none;
        border-bottom: 2px solid #ccc;
        background: transparent;
        padding: .5rem 0;
        font-size: 1rem;
        outline: none;
        transition: border-color .3s;
        width: 100%;
    }

        .form-field input:focus,
        .form-field textarea:focus {
            border-color: var(--primary);
        }

    /* Línea decorativa */
    .form-field .line {
        position: absolute;
        bottom: 0;
        left: 0;
        height: 2px;
        width: 0;
        background: var(--primary);
        transition: width .3s;
    }

    .form-field input:focus + .line,
    .form-field textarea:focus + .line {
        width: 100%;
    }

    /* Textarea */
    .form-field textarea {
        resize: vertical;
    }

/* Checkbox personalizado */
.check {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    cursor: pointer;
    font-size: .9rem;
    color: #333;
}

    .check input {
        display: none;
    }

.check-mark {
    width: 18px;
    height: 18px;
    border: 2px solid var(--primary);
    border-radius: 4px;
    flex-shrink: 0;
    position: relative;
    margin-top: 2px;
}

.check input:checked + .check-mark {
    background: var(--primary);
}

    .check input:checked + .check-mark::after {
        content: "";
        position: absolute;
        left: 4px;
        top: 0px;
        width: 6px;
        height: 12px;
        border: solid #fff;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

/* Hint */
.hint {
    font-size: .85rem;
    color: #777;
    margin-top: .5rem;
}

.hp {
    display: none;
} 


/* Responsive adjustments */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .card {
        width: 90%;
        max-width: 400px;
    }

    .grupo-content {
        flex-direction: column;
        text-align: center;
    }

    .grupo-logo {
        margin-bottom: 20px;
    }
}

 

/* Tarjetas y QR */
.medios-section { 
    background: #fff;
    padding: 60px 20px;
    text-align: center;
}

    .medios-section h2 {
        font-size: 1.8rem;
        margin-bottom: 10px;
        color: var(--dark);
    }

    .medios-section p {
        font-size: 1.05rem;
        margin-bottom: 30px;
        color: #666;
    }

.logos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

    .logos-grid img.logo {
        height: 40px;
        max-width: 90px;
        object-fit: contain;
        padding: 8px;
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    }

.logo-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.logoMedioPago {
    max-height: 50px;
    object-fit: contain;
}


/* Footer*/
.site-footer {
    background: #151515;
    position: relative;
    overflow: clip;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-accent {
    height: 4px;
    background: linear-gradient(90deg,#F58634, #FFD200);
}

.footer-logo {
    max-height: 76px;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,.25));
}

/* Texto/enlaces */
.footer-title {
    font-weight: 700;
    letter-spacing: .2px;
    margin-bottom: .75rem;
    cursor: default;
}

.footer-list li {
    margin-bottom: .4rem;
}

.footer-link {
    color: rgba(255,255,255,.75); /* gris claro suave */
    text-decoration: none;
    position: relative;
    transition: color .2s ease;
}

    .footer-link:hover {
        color: #ffb84d; /* naranja suave, no chillón */
    }

    .footer-link:focus-visible {
        outline: 2px solid #ffb84d;
        outline-offset: 2px;
        border-radius: 4px;
    }

.text-secondary {
    color: rgba(255,255,255,.6) !important;
}

/* Chip de email + botón copiar */
/* Versión estable (desktop y mobile) */
.email-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .5rem .75rem;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    flex-wrap: nowrap; /* no envolver */
    white-space: nowrap; /* una sola línea */
    width: auto; /* 👈 shrink-to-fit */
    max-width: 100%; /* no desbordar contenedor */
    overflow: hidden; /* permite elipsis en el <a> */
}

.email-link {
    color: #fff;
    text-decoration: none;
    transition: opacity .2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 1 auto; /* 👈 NO se estira a ocupar todo */
    min-width: 0;
}

.btn-copy {
    flex: 0 0 auto; /* tamaño fijo, pegado al link */
    appearance: none;
    border: 0;
    cursor: pointer;
    padding: .35rem .7rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 999px;
    background: linear-gradient(90deg,#FFD200,#F58634);
    color: #1b1b1b;
    transition: transform .1s ease, opacity .2s ease;
}

/* Mobile: no fuerces 100% */
@media (max-width: 575.98px) {
    .email-chip {
        display: inline-flex !important;
        width: auto !important; /* 👈 evita ocupar el 100% */
        max-width: 100% !important; /* se corta con elipsis si hace falta */
        justify-content: flex-start !important;
    }
}

    .email-link:hover {
        opacity: .85;
    }
    

.btn-copy {
    appearance: none;
    border: 0;
    cursor: pointer;
    padding: .35rem .7rem;
    font-weight: 600;
    line-height: 1;
    border-radius: 999px;
    background: linear-gradient(90deg,#FFD200,#F58634);
    color: #1b1b1b;
    transition: transform .1s ease, opacity .2s ease;
}

    .btn-copy:hover {
        opacity: .95;
    }

    .btn-copy:active {
        transform: scale(.98);
    }

    .btn-copy:focus-visible {
        outline: 2px solid #FFD200;
        outline-offset: 2px;
    }

/* Badges y suaves */
.bg-brand-soft {
    background: linear-gradient(90deg, rgba(245,134,52,.2), rgba(255,210,0,.2)) !important;
}

/* Línea inferior */
.footer-bottom {
    background: #0f0f0f;
    border-top: 1px solid rgba(255,255,255,.06);
}
 

/* Colapsables mobile (solo si querés ese comportamiento) */
@media (max-width: 767.98px) {
    .footer-title {
        cursor: pointer;
        margin-bottom: .25rem;
    }

    .footer-list, .footer-contact {
        display: none;
    }

        .footer-list.is-open, .footer-contact.is-open {
            display: block;
        }
}

/* Animaciones sutiles */
@media (prefers-reduced-motion: no-preference) {
    .footer-link::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -3px;
        height: 2px;
        width: 0;
        background: linear-gradient(90deg,#FFD200,#F58634);
        transition: width .2s ease;
    }

    .footer-link:hover::after {
        width: 100%;
    }
}


/* ======= Footer: Mobile tweaks ======= */
@media (max-width: 767.98px) {
    .site-footer .container {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .site-footer .row > [class*="col-"] {
        text-align: center;
    }

    /* Logo más proporcional y centrado */
    .footer-logo {
        max-height: 60px;
        margin: 0 auto;
        display: block;
    }

    /* Despejes y separadores suaves entre bloques */
    .site-footer .row > [class*="col-"] + [class*="col-"] {
        padding-top: 1rem;
        border-top: 1px solid rgba(255,255,255,.08);
    }

    /* Enlaces: tipografía y “tap targets” más cómodos */
    .footer-list li {
        margin-bottom: .65rem;
    }

    .footer-link {
        display: inline-block;
        padding: .25rem .5rem;
    }

   
 

    /* Títulos como botones (para colapsar) */
    .footer-title {
        display: inline-flex;
        align-items: center;
        gap: .5rem;
        padding: .25rem .5rem;
        border-radius: 8px;
        background: rgba(255,255,255,.04);
    }

        .footer-title::after {
            content: "▾";
            font-size: .9rem;
            opacity: .75;
            transition: transform .2s ease;
        }

        .footer-title.is-open::after {
            transform: rotate(180deg);
        }

    /* Por defecto oculto en mobile (si tenés muchos ítems) */
    .footer-list, .footer-contact {
        display: none;
    }

        .footer-list.is-open, .footer-contact.is-open {
            display: block;
            margin-top: .75rem;
        }

    /* Línea inferior con más aire */
    .footer-bottom {
        padding-top: .9rem !important;
        padding-bottom: .9rem !important;
    }
}

/* Opcional: botones de scroll más chicos en mobile si los usás */
/* ======= Footer: Mobile (todo visible) ======= */
@media (max-width: 767.98px) {
    .site-footer .container {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .site-footer .row > [class*="col-"] {
        text-align: center;
    }

    /* Logo centrado y proporcionado */
    .footer-logo {
        max-height: 60px;
        margin: 0 auto;
        display: block;
    }

    /* Separadores suaves entre bloques */
    .site-footer .row > [class*="col-"] + [class*="col-"] {
        padding-top: 1rem;
        border-top: 1px solid rgba(255,255,255,.08);
    }

    /* Enlaces más “tocables” */
    .footer-list li {
        margin-bottom: .65rem;
    }

    .footer-link {
        display: inline-block;
        padding: .25rem .5rem;
    } 

    /* Títulos como texto normal (sin caret) */
    .footer-title {
        display: block;
        padding: 0;
        background: transparent;
        border-radius: 0;
    }

        .footer-title::after {
            content: none;
        }

    /* Mostrar SIEMPRE el contenido en mobile */
    .footer-list, .footer-contact {
        display: block !important;
        margin-top: .75rem;
    }

    .footer-bottom {
        padding-top: .9rem !important;
        padding-bottom: .9rem !important;
    }
}

@media (min-width: 768px) {
    .site-footer .col-md-4:last-child {
        text-align: right;
    }

        .site-footer .col-md-4:last-child .footer-logo {
            margin-left: auto; /* empuja el logo a la derecha */
            margin-right: 0;
        }
}

/* Botones de scroll un poco más chicos en mobile (si los usás) */
@media (max-width: 575.98px) {
    .btn-scroll {
        width: 40px;
        height: 40px;
        font-size: 18px;
        right: 14px;
    }

    .btn-to-top {
        bottom: 72px;
    }

    .btn-to-bottom {
        bottom: 18px;
    }
}



/*Navbar*/
.navbar-nav {
    align-items: center; /* default desktop */
}

/* En mobile (<992px) centramos los enlaces */
@media (max-width: 991.98px) {
    .navbar-nav {
        text-align: center;
        width: 100%;
    }

        .navbar-nav .nav-item {
            flex: 0 0 100%; /* cada ítem ocupa toda la fila */
        }

        .navbar-nav .nav-link {
            justify-content: center;
            display: flex;
        }
}

.navbar-modern {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: all .3s ease;
    border-image: linear-gradient(90deg, var(--primary), #ff9f5f) 1;
}

    .navbar-modern.shrink {
        padding-top: .4rem !important;
        padding-bottom: .4rem !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    }

/* Logo */
.logo-navbar {
    height: clamp(50px, 9vw, 72px);
    width: auto;
}

/* Links (desktop y hereda mobile) */
.navbar-modern .nav-link {
    font-weight: 600;
    color: #333;
    position: relative;
    transition: color .3s ease;
}

@media (min-width: 992px) {
    .navbar-modern .nav-link::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -4px;
        width: 0;
        height: 2px;
        background: var(--primary);
        transform: translateX(-50%);
        transition: width .25s ease;
        border-radius: 2px;
    }

    .navbar-modern .nav-link:hover::after,
    .navbar-modern .nav-link.active::after {
        width: 100%;
    }

    .navbar-modern .nav-link:hover,
    .navbar-modern .nav-link.active {
        color: var(--primary);
    }
}

/* Toggler en fondo claro */
.navbar-light .navbar-toggler {
    border: none;
}

.navbar-light .navbar-toggler-icon {
    filter: contrast(1.2);
}

/* CTA tamaño correcto */
.btn-nav-cta {
    padding: .45rem 1rem;
    border-radius: 999px;
}

/* ===== Ajustes MOBILE/TABLET (collapse estándar) ===== */
@media (max-width: 991.98px) {
    /* Fondo del panel colapsado (sin pantalla completa) */
    #navContent {
        background: rgba(255,255,255,0.98);
        backdrop-filter: saturate(140%) blur(6px);
        border-top: 1px solid rgba(0,0,0,.06);
        padding: .5rem 1rem 1rem;
    }

        /* Ítems con buen tap target y separadores suaves */
        #navContent .nav-link {
            padding: .75rem 0 !important;
            border-bottom: 1px solid rgba(0,0,0,.06);
        }

        #navContent .nav-item:last-child .nav-link {
            border-bottom: 0;
        }

    /* CTA no gigante, pero cómoda en mobile */
    .btn-nav-cta {
        display: inline-block;
        width: 100%;
        margin-top: .75rem;
    }
}

/* ===== Espaciado desktop para que no “se apriete” ===== */
@media (min-width: 992px) {
    .navbar-nav.gap-lg-3 > .nav-item {
        margin-left: .25rem;
        margin-right: .25rem;
    }

    .navbar-modern .nav-link {
        padding-left: .25rem;
        padding-right: .25rem;
    }
}
[id] {
    scroll-margin-top: 96px;
}

@media (max-width: 991.98px) {
    [id] {
        scroll-margin-top: 80px;
    }
}


/* ===== Validación del formulario de contacto ===== */
.needs-validation.was-validated .form-field input:invalid,
.needs-validation.was-validated .form-field textarea:invalid,
.form-field .is-invalid {
    border-bottom-color: #dc3545 !important; /* rojo error */
    box-shadow: none !important;
}

.needs-validation.was-validated .form-field input:valid,
.needs-validation.was-validated .form-field textarea:valid {
    border-bottom-color: #28a745 !important; /* verde ok */
}

/* Mostrar el texto de ayuda de Bootstrap cuando hay error */
.form-field .invalid-feedback {
    display: none;
    color: #b02a37;
    font-size: .9rem;
    margin-top: .35rem;
}

.needs-validation.was-validated .form-field :invalid ~ .invalid-feedback,
.form-field .is-invalid ~ .invalid-feedback {
    display: block;
}

/* Checkbox consentimiento: estado inválido */
.form-check-input.is-invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 .15rem rgba(220,53,69,.15);
}

    .form-check-input.is-invalid ~ .form-check-label {
        color: #b02a37;
    }

/* Mensaje general del formulario */
/* ===== Mensajes modernos (reemplaza la visual de .alert para #contactStatus) ===== */
#contactStatus.alert {
    /* Acento por defecto (se sobreescribe por variante) */
    --accent: var(--primary);
    background: #fff;
    color: var(--ink);
    border: 1px solid rgba(0,0,0,.06);
    border-left: 6px solid var(--accent);
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(0,0,0,.08);
    padding: .9rem 1rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    text-align: left; /* El contenido puede traer <ul class="text-start"> y se ve bien */
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    animation: notice-in .28s ease-out both;
}

    /* Puntito de estado minimalista */
    #contactStatus.alert::before {
        content: "";
        width: 12px;
        height: 12px;
        border-radius: 50%;
        background: var(--accent);
        flex: 0 0 12px;
    }

    /* Variantes (se activan con alert-*) */
    #contactStatus.alert.alert-success {
        --accent: #22c55e;
    }
    /* verde moderno */
    #contactStatus.alert.alert-danger {
        --accent: #ef4444;
    }
    /* rojo moderno */
    #contactStatus.alert.alert-warning {
        --accent: #f59e0b;
    }
    /* amarillo moderno */
    #contactStatus.alert.alert-info {
        --accent: #0ea5e9;
    }
    /* celeste moderno */

    /* Listas dentro del mensaje (cuando mandás varios errores) */
    #contactStatus.alert ul {
        margin: .35rem 0 0;
        padding-left: 1.05rem;
    }

    #contactStatus.alert li {
        margin: .15rem 0;
    }

/* Animación de entrada */
@keyframes notice-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modo oscuro (opcional, si el SO del usuario lo pide) */
@media (prefers-color-scheme: dark) {
    #contactStatus.alert {
        background: #16181b;
        color: #e8eaed;
        border: 1px solid rgba(255,255,255,.09);
        box-shadow: 0 12px 32px rgba(0,0,0,.45);
    }
}




/* Botón en modo “enviando” */
.btn-loading {
    pointer-events: none;
    cursor: wait;
    opacity: .9;
}

.btn .spinner-border {
    vertical-align: text-bottom;
}


/* ===== Overlay de envío (UpdatePanel) ===== */
.contact-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,.65);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050; /* sobre el resto */
}

.contact-overlay__box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .75rem;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    padding: 1rem 1.25rem;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

.contact-overlay .spinner-border {
    width: 2.5rem;
    height: 2.5rem;
    color: #EF7C2F;
}

.contact-overlay p {
    color: #4c5863;
    font-weight: 600;
}
 

