
:root {
    --background: rgb(16, 3, 17);
    --foreground: #ffffff;
    --accent: #FFC107; /* Amarillo Scena */
    --accent-hover: #e0a800;
    --accent-glow: rgba(255, 193, 7, 0.6);
    --gradient-text: linear-gradient(90deg, #D946EF 0%, #7200ab 100%);
    --gradient-btn: linear-gradient(90deg, #FFC107 0%, #D946EF 50%, #7200ab 100%);
    --muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.1);
    --font-main: 'Inter', system-ui, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background);
    color: var(--foreground);
    font-family: var(--font-main);
    line-height: 1.5;
    overflow-x: hidden;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0; width: 100%; height: 96px;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000; display: flex; align-items: center;
}

.nav-container {
    width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px;
    display: flex; justify-content: space-between; align-items: center;
}

.nav-logo img { height: 120px; width: auto; }

.nav-menu { display: flex; align-items: center; gap: 32px; list-style: none; }

.nav-item {
    color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 600; transition: 0.3s;
}

.nav-item:hover { color: var(--foreground); }

/* BOTÓN NAV (Más grande y con Glow) */
/* BOTÓN NAV - Ajuste para que funcione en móviles */
.btn-cotizar-nav {
    display: inline-block; /* Importante para que respete el padding */
    background: var(--gradient-btn);
    color: #fff !important; /* Asegura el color blanco */
    border: none; 
    padding: 14px 28px; 
    border-radius: 100px;
    font-weight: 800; 
    text-transform: uppercase; 
    font-size: 14px;
    cursor: pointer; 
    box-shadow: 0 0 25px rgba(217, 70, 239, 0.5);
    transition: 0.3s ease;
    text-decoration: none; /* Quita el subrayado del link */
    position: relative;
    z-index: 1001; /* Asegura que esté por encima de cualquier capa del menú */
}

.btn-cotizar-nav:hover { transform: scale(1.05); box-shadow: 0 0 35px rgba(217, 70, 239, 0.8); }

/* HERO SECTION */
.hero {
    position: relative; 
    min-height: 100vh; 
    display: flex;
    align-items: center; 
    justify-content: center; 
    text-align: center;
    padding: 120px 20px 60px; 
    overflow: hidden;
    
    /* SOLUCIÓN: */
    z-index: 1; /* Pone el Hero por encima del fondo dinámico */
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.3)), url('TU-IMAGEN.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Opcional: efecto parallax */
}

.hero-bg {
    position: absolute; inset: 0;
    background-image: url('/assets/fondos/hero-background.jpeg');
    background-size: cover; background-position: center; z-index: -2;
}

.hero-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.9) 100%);
    z-index: -1;
}

/* BADGE CON CONTORNO Y DESENFOQUE */
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 24px; background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 100px; color: #e2e8f0; margin-bottom: 32px;
    font-size: 14px; font-weight: 500;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.8rem); font-weight: 800;
    color: white; line-height: 1.1; margin-bottom: 24px; letter-spacing: -0.02em;
}

/* TEXTO DEGRADADO (MORADO ORIGINAL) */
.text-gradient {
    background: var(--gradient-text);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-p {
    color: var(--muted); font-size: clamp(1rem, 3vw, 1.25rem);
    max-width: 700px; margin: 0 auto 48px;
}

.text-white { color: #ffffff; font-weight: 600; }

/* BOTONES HERO */
.hero-btns { display: flex; gap: 24px; justify-content: center; align-items: center; }

.btn-main {
    background: var(--gradient-btn);
    color: white; padding: 20px 45px; border-radius: 100px;
    font-size: 1.1rem; font-weight: 800; text-decoration: none; text-transform: uppercase;
    box-shadow: 0 0 40px rgba(217, 70, 239, 0.7), 0 0 20px var(--accent-glow);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-main:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 0 60px rgba(217, 70, 239, 0.9); }

.btn-sec {
    border: 2px solid var(--accent); color: var(--accent);
    padding: 20px 45px; border-radius: 100px; font-size: 1.1rem; font-weight: 700;
    text-decoration: none; display: flex; align-items: center; gap: 12px;
    box-shadow: 0 0 25px var(--accent-glow); transition: 0.3s;
}

.btn-sec:hover { background: rgba(255, 193, 7, 0.1); box-shadow: 0 0 45px var(--accent-glow); }

/* TRUST ROW */
.trust-row { margin-top: 80px; display: flex; gap: 30px; justify-content: center; flex-wrap: wrap; color: #64748b; font-size: 15px; }
.dot { color: var(--accent); text-shadow: 0 0 10px var(--accent); }

/* MENÚ MÓVIL */
.menu-toggle { display: none; cursor: pointer; flex-direction: column; gap: 6px; background: none; border: none; }
.bar { width: 30px; height: 3px; background: var(--accent); transition: 0.4s; border-radius: 2px; }

/* ... (tus otros estilos de navbar) ... */

/* --- Estilos del Menú Móvil --- */
@media (max-width: 960px) {
    .nav-menu {
        position: fixed;
        top: -110vh; /* Totalmente fuera de vista */
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.98);
        display: flex;
        flex-direction: column;
        justify-content: flex-start; /* Alineado al inicio para subirlo */
        align-items: center;
        padding-top: 120px; /* Espacio para que no choque con el logo */
        transition: all 0.5s cubic-bezier(0.77, 0.2, 0.05, 1.0);
        z-index: 998;
    }

    .nav-menu.active {
        top: 0; /* Aparece desde arriba */
    }

    /* Ajuste de los items para que estén más juntos y arriba */
    .nav-menu li {
        margin-bottom: 30px;
    }

    /* --- Animación de la Hamburguesa a "X" --- */
    .menu-toggle {
        display: flex;
        z-index: 1001; /* Siempre por encima del menú */
    }

    /* Cuando el menú está activo, las barras forman una X */
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
        background-color: var(--accent);
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
        background-color: var(--accent);
    }
}
@media (max-width: 768px) {
    /* Contenedor de botones: uno sobre otro */
    .hero-btns {
        flex-direction: column; /* Apila los botones verticalmente */
        width: 100%;
        max-width: 400px; /* Evita que en tablets se estiren demasiado */
        margin: 0 auto;
        gap: 16px; /* Espacio entre los botones */
    }

    /* Ajuste de tamaño para ambos botones */
    .btn-main, .btn-sec {
        width: 100%; /* Ocupan todo el ancho del contenedor */
        padding: 16px 20px; /* Padding más cómodo para dedos */
        font-size: 1rem; /* Letra un poco más pequeña para que no se rompa */
        justify-content: center;
        min-width: unset; /* Quitamos el ancho mínimo previo */
    }

    /* Título un poco más pequeño para que no ocupe toda la pantalla */
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 20px;
    }

}

/* Estilo del botón hamburguesa (barras) */
.bar {
    width: 30px;
    height: 3px;
    background-color: var(--accent);
    margin: 3px 0;
    transition: all 0.3s ease-in-out;
    display: block;
}

/* Animación Hamburguesa */
.menu-toggle.is-active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
.menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }


/*============================================================================================================================================*/
/* SERVICIOS */
/*============================================================================================================================================*/
.services {
    padding: 100px 20px;
    background-color: transparent !important;
    color: #fff;
}

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

.services-header .subtitle {
    color: #FFC107;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 15px;
}

.services-header .title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 20px;
}

.services-grid {
    display: grid;
    /* Esto obliga a que cada carta mida al menos 350px. 
       Si no hay espacio, saltarán a la siguiente fila automáticamente */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 30px; /* Aumentamos el espacio entre cartas */
    max-width: 1400px; /* Permite que el contenedor sea más ancho si la pantalla lo es */
    margin: 0 auto;
    padding: 20px;
}

/* LÓGICA DE LA TARJETA 3D */
.service-card {
    background-color: transparent;
    height: 450px;
    perspective: 1000px; /* Necesario para el efecto 3D */
    opacity: 0;
    transform: translateY(50px); /* Empieza 50px más abajo */
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}
.service-card.appear {
    opacity: 1;
    transform: translateY(0); /* Sube a su posición original */
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.service-card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Cara Frontal */
.card-front img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-title-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    text-align: left;
}

/* Cara Trasera */
.card-back {
    background: #111;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    transform: rotateY(180deg);
}

.card-back i {
    width: 60px;
    height: 60px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 20px;
    color: #FFC107;
    border: 1px solid rgba(255, 193, 7, 0.2);
}


.card-back h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
}

.card-back p {
    color: #94a3b8;
    line-height: 1.6;
}

.sectores-footer {
    margin-top: 50px; /* Espacio respecto a las cartas */
    text-align: center;
}

.sectores-footer p {
    color: #94a3b8; /* Gris suave para que no compita con las cartas */
    font-size: 1.1rem;
    font-weight: 400;
}

.sectores-footer a {
    color: #ffffff; /* El enlace resalta en blanco */
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.sectores-footer a:hover {
    color: #D946EF; /* Color de marca al pasar el mouse */
    text-decoration: underline;
}
/* RESPONSIVO PARA MÓVILES */
@media (max-width: 768px) {
    .services {
        padding: 60px 15px; /* Menos espacio en los bordes para móviles */
    }

    .services-header .title {
        font-size: 1.8rem; /* Título más pequeño para que no se corte */
    }

    .services-grid {
        grid-template-columns: 1fr; /* Una sola columna: tarjetas una sobre otra */
        gap: 20px;
    }

    .service-card {
        height: 380px; /* Reducimos un poco la altura en celulares */
    }

    .card-back {
        padding: 25px; /* Menos relleno interno para ganar espacio */
    }

    .card-back h3 {
        font-size: 20px;
    }

    .card-back p {
        font-size: 14px;
    }
}

/*============================================================================================================================================*/
/* PORTAFOLIO */
/*============================================================================================================================================*/
/* --- SECCIÓN PORTAFOLIO --- */
.portfolio-header {
    text-align: center;
    margin-bottom: 60px; /* Más espacio hacia abajo */
}
.portfolio { 
    padding: 80px 20px; 
    background: transparent !important;
}

.portfolio-title {
    font-size: 3rem; /* Título más imponente */
    margin-bottom: 20px;
}

.portfolio-desc {
    color: #94a3b8;
    text-align: center; /* Asegura el centrado total */
    font-size: 1.4rem; /* Subtítulo más grande como pediste */
    max-width: 900px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

.text-purple-gradient {
    background: linear-gradient(90deg, #D946EF 0%, #7200ab 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Filtros */
.portfolio-filters { 
    display: flex; 
    justify-content: center; 
    gap: 15px; 
    margin-bottom: 50px; 
    flex-wrap: wrap; 
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8; 
    padding: 10px 25px; 
    border-radius: 30px; 
    cursor: pointer; 
    transition: 0.3s;
}

.filter-btn.active { 
    background: #D946EF; 
    color: #fff; 
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.4); 
}

/* Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    max-width: 1500px;
    margin: 0 auto;
}

/* Tarjeta y Animación de Scroll */
.portfolio-item {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.8s ease-out;
}

.portfolio-item.appear { 
    opacity: 1; 
    transform: translateY(0); 
}

.portfolio-card {
    position: relative; 
    height: 400px; 
    border-radius: 15px; 
    overflow: hidden;
    background: #111; 
    cursor: pointer;
}

.portfolio-card img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.6s ease, filter 0.6s ease; 
}

/* --- OVERLAY: Ahora no se desplaza hacia afuera --- */
.portfolio-overlay-content {
    position: absolute;
    inset: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* Alineado al fondo */
    align-items: flex-start;
    z-index: 2;
}

/* Categoría Rosa: Siempre en su esquina */
.card-category {
    background: #d846efb0; /* Morado Scena */
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Bloque de Información (Título y Texto) */
.portfolio-info {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
}

.portfolio-info h3 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    padding-top: 10px; /* Espacio entre categoría y título al aparecer */
}


.hover-text {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.4;
    /* El texto empieza invisible */
    opacity: 0;
    transition: opacity 0.4s ease;
}
.portfolio-card:hover {
    box-shadow: 0 0 20px rgba(217, 70, 239, 0.3);
}
/* --- EFECTOS AL PASAR EL MOUSE (HOVER) --- */
.portfolio-card:hover img {
    transform: scale(1.05);
    filter: brightness(0.5);
}

/* Sube todo el conjunto: categoría + textos */
.portfolio-card:hover .portfolio-overlay-content {
    transform: translateY(0);
}
.portfolio-card:hover .hover-text {
    opacity: 1; /* El párrafo aparece suavemente */
}

/* Revela el título y descripción */
.portfolio-card:hover .portfolio-info {
    max-height: 100px;
    opacity: 1;
    margin-top: 5px;
}
/* La categoría sube para dejar espacio al H3 */
.portfolio-card:hover .card-category {
    transform: translateY(0); /* Ajuste natural por flujo flex */
}


/* --- RESPONSIVO PARA CELULARES --- */
@media (max-width: 768px) {
    .portfolio-title {
        font-size: 2.5rem; /* Título un poco más pequeño en móviles */
    }
    .portfolio-desc {
        font-size: 1.1rem;
    }
    
    .portfolio-grid { 
        grid-template-columns: 1fr; 
        padding: 0 10px;
    }
    
    .portfolio-card { 
        height: 350px; 
    }

    /* En móviles, permitimos que se vea un poco más del contenido por defecto */
    .portfolio-overlay-content {
        transform: translateY(85px);
    }
}

@media (max-width: 480px) {
    .portfolio-card { 
        height: 300px; 
    }
    .portfolio-overlay-content {
        padding: 20px;
    }
}
/*==========================================================================
  ESTILOS RESPONSIVOS PARA PORTAFOLIO (MÓVIL)
==========================================================================*/
@media (max-width: 768px) {
    /* 1. Las categorías aparecen fijas por defecto */
    .portfolio-overlay-content {
        transform: translateY(0) !important;
        background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 70%);
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        padding: 15px;
    }

    .card-category {
        opacity: 1 !important;
        transform: none !important;
        display: inline-block;
        margin-bottom: 5px;
        width: fit-content;
    }

    /* 2. El título se oculta por defecto para que aparezca al dar click */
    .portfolio-info {
        max-height: 0;
        opacity: 0;
        transition: all 0.4s ease;
    }

    /* 3. Acción al dar click (simulado con :active o el foco táctil) */
    .portfolio-card:active .portfolio-info,
    .portfolio-card:focus .portfolio-info {
        max-height: 100px;
        opacity: 1;
        margin-top: 5px;
    }

    /* 4. Efecto visual en la imagen al tocar */
    .portfolio-card:active img {
        transform: scale(1.05);
        filter: brightness(0.4);
    }
}

/*============================================================================================================================================*/
/* SECTORES */
/*============================================================================================================================================*/
.sectores {
    padding: 80px 20px;
    background-color: transparent !important; /* Fondo oscuro de la imagen */
    text-align: center;
    color: #fff;
}

.sectores .subtitle {
    color: #FFC107;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 14px;
    margin-bottom: 15px;
}

.sectores .title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.sectores .title span {
    background: linear-gradient(90deg, #D946EF, #7200ab);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sectores .description {
    color: #94a3b8;
    max-width: 700px;
    margin: 0 auto 50px;
}

/* Grid de 4 columnas */
.sectores-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1500px;
    margin: 0 auto;
}

.sector-card {
    background: rgba(110, 110, 110, 0.276);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 40px 20px;
    transition: transform 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sector-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.06);
}

/* Estilos de Iconos */
.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.sector-card h3 {
    font-size: 1rem;
    font-weight: 500;
    color: #e2e8f0;
}

.icon-box i {
    font-size: 1.8rem; /* Tamaño del icono */
    color: white;      /* Color del icono dentro del cuadro */
}

/* Colores de fondo de los iconos extraídos de la imagen */
.bg-rosa { background-color: #e65561; }
.bg-morado { background-color: #8a63f2; }
.bg-azul { background-color: #58a9e1; }
.bg-verde { background-color: #5db98b; }
.bg-naranja { background-color: #f2a644; }
.bg-fucsia { background-color: #d65ee1; }
.bg-azul-oscuro { background-color: #4d7df2; }
.bg-amarillo { background-color: #ebb942; }
.bg-morado2 { background-color: #9d00f8; }

/*==========================================================================
  SECTORES: DOS COLUMNAS EN CELULARES
==========================================================================*/
@media (max-width: 480px) {
    .sectores-grid {
        /* Cambiamos de 1fr a dos columnas iguales */
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 12px; /* Reducimos el espacio para que quepan bien */
        padding: 0 10px;
    }

    .sector-card {
        padding: 20px 10px; /* Reducimos padding interno para ganar espacio */
    }

    .icon-box {
        width: 50px; /* Iconos un poco más pequeños para móviles */
        height: 50px;
        margin-bottom: 15px;
    }

    .sector-card h3 {
        font-size: 0.85rem; /* Ajustamos el texto para que no se amontone */
        text-align: center;
    }
}

/*============================================================================================================================================*/
/* POR QUE ELEGIRNOS */
/*============================================================================================================================================*/
/* Sección Principal */
.porque-elegirnos {
    padding: 100px 0;
    background-color: transparent !important; /* Color exacto del fondo oscuro */
    color: #ffffff;
    overflow: hidden;
}

.flex-container {
    display: flex;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 80px;
    align-items: center;
}

/* --- Columna de Texto --- */
.info-side {
    flex: 1;
}

.info-side .subtitle {
    color: #b38e44; /* Dorado cobrizo de la imagen */
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.info-side .title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 30px;
    color: #ffffff;
    /* Eliminamos cualquier restricción de ancho para que fluya como párrafo */
    max-width: 100%; 
}

.info-side .title span {
    /* CAMBIO CLAVE: Cambiamos 'block' por 'inline' para que sea un solo párrafo */
    display: inline; 
    background: linear-gradient(90deg, #d946ef 0%, #7e22ce 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.info-side .description {
    color: #94a3b8; /* Gris azulado de la captura */
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 500px;
}

/* --- Grid de Tarjetas --- */
.benefits-grid {
    flex: 1.2;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.benefit-card {
    background-color: #161a22; /* Fondo de tarjeta sutilmente más claro */
    padding: 40px 30px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.03); /* Borde casi invisible por defecto */
    transition: all 0.4s ease;
    cursor: default;
}

/* La tarjeta de Soporte 24/7 ya tiene el borde por defecto en la imagen */
.benefit-card.highlight {
    border: 1px solid rgba(179, 142, 68, 0.5); 
}

/* EFECTO HOVER SOLICITADO */
.benefit-card:hover {
    transform: translateY(-5px);
    border: 1px solid #eab308; /* Contorno amarillo */
    box-shadow: 0 0 25px rgba(234, 179, 8, 0.3); /* Sombra amarilla brillante */
}

/* Iconos y Textos internos */
.benefit-card i {
    color: #b38e44; /* Dorado de los iconos */
    font-size: 1.6rem;
    margin-bottom: 25px;
    display: block;
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.benefit-card p {
    color: #94a3b8; /* Gris suave para el texto de descripción */
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Adaptación móvil */
@media (max-width: 992px) {
    .flex-container { flex-direction: column; text-align: center; }
    .info-side .description { margin: 0 auto; }
    .benefits-grid { grid-template-columns: 1fr; width: 100%; }
}

/*============================================================================================================================================*/
/* CARRUSEL */
/*============================================================================================================================================*/
/*==========================================================================*/
/* CARRUSEL INFINITO - DIGITALNET (FULL COLOR)                             */
/*==========================================================================*/
.partners-carousel-section {
    padding: 100px 0;
    background-color: #0b0d11; /* Fondo oscuro Scena */
    overflow: hidden;
}

.carousel-header {
    text-align: center;
    margin-bottom: 60px;
}

.carousel-header .title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
}

.carousel-header .title span {
    background: linear-gradient(90deg, #d946ef, #7e22ce);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.carousel-header .description {
    color: #94a3b8;
    font-size: 1.3rem;
}



.carousel-track {
    display: flex;
    width: max-content;
    align-items: center;
    will-change: transform;
}

.partner-logo {
    flex-shrink: 0;
    width: 500px; /* Antes era 400px, lo subimos para logos más anchos */
    padding: 0 60px; /* Más aire entre marcas */
    display: flex;
    justify-content: center;
    align-items: center;
}

.partner-logo img {
    max-width: 100%;
    height: auto;
    max-height: 160px; /* Antes era 120px, ahora son mucho más visibles */
    object-fit: contain;
    filter: none; 
    opacity: 1;
    transition: transform 0.3s ease;
}

/* 3. Ajustamos el contenedor principal para que no corte los logos grandes */
.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 60px 0; /* Aumentamos el relleno vertical */
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.partner-logo:hover img {
    transform: scale(1.08); 
}

@media (max-width: 768px) {
    .carousel-header .title { font-size: 2.5rem; }
    .partner-logo { width: 220px; padding: 0 25px; }
    .partner-logo img { max-height: 120px; }
}

/*============================================================================================================================================*/
/* CONTACTO */
/*============================================================================================================================================*/

.contacto {
    padding: 100px 0;
    background-color: transparent !important; /* Fondo oscuro principal */
    color: #ffffff;
    font-family: 'Inter', sans-serif;
}

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

/* Encabezado */
.contacto-header {
    text-align: center;
    margin-bottom: 60px;
}

.contacto-header .subtitle {
    color: #b38e44; /* Dorado distintivo */
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.contacto-header .title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.contacto-header .title span {
    background: linear-gradient(90deg, #d946ef, #7e22ce); /* Degradado rosa-morado */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contacto-header .description {
    color: #94a3b8;
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Layout Flex */
.contacto-flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Formulario */
.contacto-form {
    flex: 2;
    background-color: #161a22; /* Fondo de tarjeta */
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-row {
    display: flex;
    gap: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    background-color: #0b0d11; /* Fondo inputs */
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    color: #ffffff;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: #d946ef;
}

.form-group textarea {
    height: 150px;
    resize: none;
}

.btn-enviar {
    width: 100%;
    background: linear-gradient(90deg, #d946ef, #7e22ce);
    color: #ffffff;
    padding: 18px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-enviar:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(217, 70, 239, 0.3);
}

/* Info Cards Lateral */
.contacto-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background-color: #161a22;
    padding: 30px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
/* Espacio entre Cajamarca y Cobertura */
.mt-spacing {
    margin-top: 12px; /* Ajusta este valor según prefieras más o menos espacio */
}

/* Estilo opcional para que la palabra "Cobertura" resalte como en tus otras secciones */
.info-card p span {
    color: #c5a25d; /* Dorado de la marca */
    font-weight: 700;
}

/* Estilo de los párrafos en la info-card para asegurar consistencia */
.info-card p {
    color: #94a3b8; /* Gris azulado de la imagen */
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 0;
}

.icon-box-gold {
    color: #b38e44;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: rgba(179, 142, 68, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.info-card h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-card p {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* --- MODAL DE CARGA Y ÉXITO --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none; /* Se activa con JS */
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #161a22;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    max-width: 450px;
    width: 90%;
    border: 1px solid #d946ef;
    position: relative;
}

/* Spinner de carga */
.loader {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.1);
    border-top: 5px solid #d946ef;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

/* Contenido de éxito */
.success-content i {
    font-size: 5rem;
    color: #10b981;
    margin-bottom: 20px;
}

.success-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.success-content p {
    color: #94a3b8;
    margin-bottom: 30px;
}

.btn-close {
    background: #334155;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* --- RESPONSIVO --- */
@media (max-width: 992px) {
    .contacto-flex {
        flex-direction: column;
    }
    .contacto-form, .contacto-info {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    .contacto-header .title {
        font-size: 2.2rem;
    }
}
/*============================================================================================================================================*/
/* FOOTER */
/*============================================================================================================================================*/
.main-footer {
    background-color: #0b0d11; /* Fondo negro profundo */
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
}

.footer-layout {
    display: flex;
    justify-content: space-between; /* Logo - Menú - Copyright */
    align-items: center;
    max-width: 1400px; /* Ancho amplio para que se vea como la imagen */
    margin: 0 auto;
    padding: 0 40px;
}

/* Columna Izquierda: Logo */
.footer-logo-img {
    height: 150px; /* Tamaño discreto según la imagen */
    width: auto;
    display: block;
}

/* Columna Central: Menú */
.footer-menu {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

.footer-menu a {
    color: #94a3b8; /* Gris suave */
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: #ffffff;
}

/* Columna Derecha: Copyright */
.footer-right p {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0;
    white-space: nowrap;
}

/* --- RESPONSIVO --- */
@media (max-width: 1024px) {
    .footer-layout {
        flex-direction: column; /* Se apilan en tablets/celulares */
        gap: 20px;
        text-align: center;
    }
    
    .footer-menu {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .footer-menu {
        flex-direction: column; /* Menú vertical en celulares muy pequeños */
        gap: 10px;
    }
}

/* ================================================= */
/* 8. WHATSAPP Y FOOTER */
/* ================================================= */
.whatsapp-float-premium {
    position: fixed;
    bottom: 40px;
    right: 40px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Texto "Escríbenos" (Tooltip) */
.tooltip-whatsapp {
    position: absolute;
    right: 75px;
    background-color: #161a22; /* Fondo oscuro de tu marca */
    color: white;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: 1px solid #b38e44; /* Borde dorado */
}

/* Mostrar tooltip al pasar el mouse */
.whatsapp-float-premium:hover .tooltip-whatsapp {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

.whatsapp-float-premium:hover {
    transform: scale(1.1);
    background-color: #20ba5a;
}

/* Anillo de Pulso Animado */
.pulse-ring {
    content: '';
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #25d366;
    position: absolute;
    top: 0;
    left: 0;
    animation: pulse-whatsapp 2s infinite;
}

@keyframes pulse-whatsapp {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

@media (max-width: 768px) {
    .whatsapp-float-premium {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 25px;
    }
    .tooltip-whatsapp { display: none; } /* Ocultar texto en móvil para no estorbar */

}
