/* --- Google Fonts (Inter) --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* --- Variables de Color (Paleta Xpertos - Vino) --- */
:root {
    /* CAMBIO: Quitamos el azul #004a99 y ponemos el VINO */
    --primary-color: #CC443F; 
    --primary-dark: #A23D47;
    
    --secondary-color: #007bff; /* Este se puede quedar para detalles menores */
    
    --text-dark: #202124;
    --text-light: #5f6368;
    --background-light: #ffffff;
    --background-gray: #f8f9fa;
    --border-color: #dadce0;
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Colores de Productos (Se mantienen igual) */
    --product-blue: #004a99;
    --product-cyan: #00a9e0;
    --product-green: #009a4d;
    --product-purple: #6c4f8d;
}

/* --- Reseteo Básico --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px; /* Base para REM */
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-dark);
    background: var(--background-light);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* --- CORRECCIÓN: Espacio para que el menú flotante no tape el contenido --- */
    padding-top: 80px; 
}

img, svg, video {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

/* --- Clases Utilitarias --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 5rem 0; /* Más espacio */
}

.section-padding-gray {
    padding: 5rem 0;
    background-color: var(--background-gray);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    text-align: center;
    max-width: 650px;
    margin: 0 auto 3.5rem auto; /* Centrado y con más margen inferior */
}

.text-center {
    text-align: center;
}
/*-----------------------------------------------------------------------------------------------------------------------------------------------*/
.cta-button {
    display: inline-block;
    background: var(--primary-color);
    color: var(--background-light);
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background-color 0.3s ease;
    border: 1px solid var(--primary-color);
}

.cta-button:hover {
    background: var(--primary-dark);
    color: var(--background-light);
}

.cta-button-secondary {
    display: inline-block;
    background: var(--background-light);
    color: var(--primary-color);
    padding: 11px 23px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.cta-button-secondary:hover {
    background: var(--background-gray);
    border-color: var(--text-light);
    color: var(--primary-dark);
}

/* --- Mejora específica para el Botón de Cotización (Caja Azul/Productos) --- */

.product-cta-box .cta-button-secondary {
    /* 1. Cambio de color: Degradado Vino Vibrante (en lugar de blanco plano) */
    background: linear-gradient(135deg, var(--primary-color) 0%, #a33632 100%);
    
    /* 2. Texto blanco para máximo contraste */
    color: #ffffff !important;
    border: none;
    
    /* 3. Forma y Tamaño: Más grande y redondo (Píldora) */
    border-radius: 50px;
    padding: 18px 40px; /* Más grande que los normales */
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    
    /* 4. Sombra para profundidad */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    
    /* 5. Aseguramos que se posicione bien */
    display: inline-block;
    position: relative;
    z-index: 2;
}

/* Animación al pasar el mouse (Hover) */
.product-cta-box .cta-button-secondary:hover {
    /* Sube y crece ligeramente */
    transform: translateY(-5px) scale(1.05);
    
    /* Brilla más */
    background: linear-gradient(135deg, #d65a55 0%, var(--primary-color) 100%);
    
    /* Sombra más pronunciada */
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
    
    /* Aseguramos que el borde no aparezca */
    border-color: transparent;
    color: #ffffff !important;
}

/* --- HEADER PREMIUM (Efecto Cristal) --- */
.site-header {
    /* Fijamos la barra para que flote */
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000; /* Siempre encima */
    
    /* EFECTO CRISTAL */
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); /* Safari */
    
    /* Sombra y borde sutil */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px; /* Más altura para elegancia */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Logo */
.logo-image img {
    max-height: 55px;
    width: auto;
    transition: transform 0.3s ease;
}
.logo-image:hover img {
    transform: scale(1.05);
}

/* Navegación Escritorio */
.main-nav ul {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0; /* Reseteamos márgenes viejos */
}

.main-nav a {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-dark);
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
    background: transparent !important;
}

/* Animación de Subrayado */
.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color); /* Color Vino */
    transition: width 0.3s ease-in-out;
    border-radius: 2px;
}

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

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

.main-nav a.active {
    color: var(--primary-color);
    font-weight: 600;
}
.main-nav a.active::after {
    width: 100%;
}

/* Botón Móvil (Hamburguesa) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Responsivo Móvil */
@media (max-width: 768px) {
    .nav-container {
        height: 70px;
    }
    
    .menu-toggle {
        display: flex;
    }

    /* Menú desplegable móvil */
    .main-nav ul {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        gap: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(0,0,0,0.05);
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        display: none; /* Oculto por defecto */
    }
    
    .main-nav ul.nav-active {
        display: flex;
        animation: fadeIn 0.3s ease;
    }
    
    .main-nav a {
        width: 100%;
        text-align: center;
        padding: 1.5rem;
        border-bottom: 1px solid rgba(0,0,0,0.03);
    }
    
    /* Sin animación de línea en móvil */
    .main-nav a::after { content: none; }
    
    .main-nav a:hover, .main-nav a.active {
        background: rgba(204, 68, 63, 0.05) !important;
        color: var(--primary-color);
    }

    /* Animación X del botón */
    .menu-toggle.is-active span:nth-child(1) { transform: rotate(45deg) translate(5px, 6px); }
    .menu-toggle.is-active span:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -6px); }
}

/* --- Nueva Welcome Section (Hero) --- */
.welcome-section {
    padding: 4rem 0 2rem 0;
    text-align: center;
}

.welcome-section h1 {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.welcome-section p {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 2.5rem auto; /* Este margen inferior empujará el botón */
}

.welcome-section .welcome-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* --- Sección Productos (Estilo Apple/Google) --- */
.modern-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.modern-card {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 16px; /* Bordes redondeados pronunciados */
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
}

.modern-card:hover {
    border-color: var(--text-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.product-icon {
    /* Hacemos el contenedor flexible */
    width: 100%;
    height: 60px; /* Damos una altura fija para alinear los logos */
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}
.product-icon img {
    /* La imagen se ajustará sin deformarse */
    max-width: 200%;
    max-height: 200%;
    height: auto;
    width: auto;
}

/* Mantenemos los colores de los ENLACES, pero ya no de los iconos */
.product-contabilidad .card-link { color: var(--product-blue); }
.product-nominas .card-link { color: var(--product-cyan); }
.product-comercial .card-link { color: var(--product-green); }
.product-virtual .card-link { color: var(--product-purple); }
.product-respaldos .card-link { color: var(--product-blue); } /* Re-usamos azul */
.product-evalua .card-link { color: var(--product-cyan); } /* Re-usamos cian */

.modern-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.modern-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
    flex-grow: 1; 
}

.modern-card .card-link {
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    margin-top: 1.5rem;
    display: inline-block;
    transition: transform 0.2s ease;
}

.modern-card .card-link::after {
    content: ' →';
    transition: transform 0.2s ease;
    display: inline-block;
}

.modern-card .card-link:hover::after {
    transform: translateX(4px);
}

/* Colores de los enlaces */
.product-contabilidad .card-link { color: var(--product-blue); }
.product-nominas .card-link { color: var(--product-cyan); }
.product-comercial .card-link { color: var(--product-green); }
.product-virtual .card-link { color: var(--product-purple); }


/* --- Sección Nosotros (Index) --- */
.nosotros-flex { /* <--- CAMBIO AQUÍ */
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 4rem;
}

.nosotros-texto h2 {
    text-align: left;
    font-size: 2rem;
}
.nosotros-texto p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.nosotros-img img {
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

/* --- Footer (Estilo Google) --- */
.site-footer {
    background: var(--background-gray);
    color: var(--text-light);
    padding: 4rem 1rem 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr; /* Más espacio para la dirección */
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.footer-col p,
.footer-col li {
    margin-bottom: 0.5rem;
}

.footer-col a {
    color: var(--text-light);
}

.footer-col a:hover {
    color: var(--primary-color);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.85rem;
}

/* --- Diseño Responsivo (Mobile-First) --- */

@media (max-width: 900px) {
    .nosotros-flex { /* <--- CAMBIO AQUÍ */
        grid-template-columns: 1fr;
    }
    .nosotros-img {
        order: -1; /* Imagen arriba en móvil */
        margin-bottom: 2rem;
    }
    .nosotros-texto h2 {
        text-align: center;
    }

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

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }
    .section-subtitle {
        font-size: 1rem;
    }
    .welcome-section h1 {
        font-size: 2rem;
    }
    .welcome-section .welcome-subtitle {
        font-size: 1.1rem;
    }

    /* --- Navegación Móvil --- */
    .main-nav ul {
        display: none; 
        flex-direction: column;
        background: var(--background-light);
        position: absolute;
        top: 64px; /* Debajo del header */
        left: 0;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .main-nav ul.nav-active {
        display: flex;
    }

    .main-nav li {
        margin: 0;
    }

    .main-nav a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
        text-align: center;
        width: 100%;
        border-radius: 0;
    }
    .main-nav a:hover {
        background: var(--background-gray);
    }
    .main-nav li:last-child a {
        border-bottom: none;
    }

    .menu-toggle {
        display: flex;
    }
    
    .menu-toggle.is-active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }
    .menu-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }
}


/* --- INICIO: SECCIÓN AÑADIDA (Marcas) --- */
#marcas {
    padding: 3rem 0;
    background-color: var(--background-gray);
    border-top: 1px solid var(--border-color);
}
.brands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    align-items: center;
}
.brand-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Placeholder - reemplazar con img */
    background: #e0e0e0;
    height: 80px;
    border-radius: 8px;
    color: var(--text-light);
    font-weight: 600;
}
/* --- FIN: SECCIÓN AÑADIDA (Marcas) --- */


/* --- INICIO: SECCIÓN AÑADIDA (Páginas Interiores) --- */
.page-hero {
    background-color: var(--background-gray);
    padding: 4rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}
.page-hero h1 {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}
.page-hero .page-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* Estilos para nosotros.php */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.about-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 2rem;
}
.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}
.mission-card, .vision-card {
    background: var(--background-gray);
    border: 1px solid var(--border-color);
    padding: 2.5rem;
    border-radius: 16px;
}
.mission-card h2, .vision-card h2 {
    font-size: 1.75rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.mission-card p, .vision-card p {
    font-size: 1rem;
    color: var(--text-light);
}

.video-wrapper {
    margin-top: 4rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.video-wrapper iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
}
/* --- FIN: SECCIÓN AÑADIDA (Páginas Interiores) --- */


/* --- INICIO: SECCIÓN AÑADIDA (Página de Contacto) --- */

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr; /* Formulario un poco más grande */
    gap: 4rem;
}

/* Estilos del Formulario */
.contact-form-wrapper {
    background: var(--background-gray);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    font-family: var(--font-family);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-light);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 74, 153, 0.2);
}

.form-group-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

/* Estilos de la Info de Contacto */
.contact-info-wrapper {
    padding-top: 1rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    line-height: 1.5;
}

.contact-item strong {
    font-weight: 600;
    color: var(--text-dark);
    display: block;
    margin-bottom: 0.25rem;
}

.contact-item p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.contact-item p a {
    color: var(--primary-color);
    font-weight: 500;
}
.contact-item p a:hover {
    text-decoration: underline;
}

.map-wrapper {
    margin-top: 2rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.map-wrapper iframe {
    display: block;
    width: 100%;
    height: 350px;
    border: 0;
}

/* Responsivo para Contacto */
@media (max-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-form-wrapper {
        padding: 2rem;
    }
    .contact-info-wrapper {
        margin-top: 2rem;
    }
}

@media (max-width: 600px) {
    .form-group-grid {
        grid-template-columns: 1fr;
    }
}

/* --- INICIO: SECCIÓN AÑADIDA (Precios - soporte.php) --- */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch; /* Asegura que las tarjetas tengan la misma altura si están en la misma fila */
}

.pricing-card {
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
}

.pricing-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.pricing-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.pricing-header .price {
    font-size: 1.25rem;
    color: var(--text-light);
}

.pricing-header .price span {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.pricing-features {
    flex-grow: 1; /* Empuja el botón hacia abajo */
    margin-bottom: 2rem;
}

.pricing-features li {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

/* Ícono de 'check' simple */
.pricing-features li::before {
    content: '✓';
    color: var(--product-green); /* Re-usamos el color verde */
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 0.75rem;
}

.pricing-card .cta-button {
    width: 100%;
    text-align: center;
}

/* Estilo para la tarjeta destacada */
.pricing-card.featured {
    border-color: var(--primary-color);
    border-width: 2px;
    box-shadow: 0 8px 20px rgba(0, 74, 153, 0.1);
}

.featured-badge {
    display: inline-block;
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--primary-color);
    color: var(--background-light);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.pricing-card.featured .cta-button {
    background: var(--primary-color);
    color: var(--background-light);
}

.pricing-card.featured .cta-button:hover {
    background: var(--primary-dark);
}

@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }
}

/* --- FIN: SECCIÓN AÑADIDA (Precios - soporte.php) --- */

/* --- CTA BOX FINAL (DISEÑO PREMIUM VINO) --- */

/* 1. La Caja Contenedora (Degradado Vino Elegante) */
.product-cta-box {
    /* Degradado lineal con tus colores de marca para dar profundidad */
    background: linear-gradient(135deg, var(--primary-color) 0%, #a33632 100%);
    
    padding: 4rem 2rem; /* Espacio interno generoso */
    border-radius: 24px; /* Bordes modernos y suaves */
    text-align: center;
    color: #ffffff; /* Texto blanco para máximo contraste */
    
    /* Sombra suave y colorida debajo para que "flote" */
    box-shadow: 0 20px 40px rgba(204, 68, 63, 0.25);
    
    position: relative;
    overflow: hidden; /* Necesario para el efecto de brillo */
    margin-top: 4rem;
}

/* Un toque sutil de "brillo" en la esquina para darle más vida y volumen */
.product-cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    transform: rotate(45deg);
    pointer-events: none;
}

.product-cta-box h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    position: relative; /* Para quedar sobre el brillo */
    z-index: 2;
}

.product-cta-box p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 2.5rem;
    color: #ffffff;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

/* 2. El Botón (Blanco y llamativo) */
/* Sobreescribimos los estilos del botón secundario SOLO dentro de esta caja */
.product-cta-box .cta-button-secondary {
    background: #ffffff; /* Botón blanco puro */
    color: var(--primary-color) !important; /* Texto color vino fuerte */
    border: none; /* Sin bordes grises */
    
    /* Forma de Píldora Grande */
    border-radius: 50px;
    padding: 18px 40px;
    font-size: 1.1rem;
    font-weight: 800; /* Texto más grueso */
    letter-spacing: 0.5px;
    
    /* Sombra para que parezca un botón físico */
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Animación de rebote */
    display: inline-block;
    position: relative;
    z-index: 2;
}

/* Animación al pasar el mouse (Hover) */
.product-cta-box .cta-button-secondary:hover {
    transform: translateY(-5px) scale(1.05); /* Se eleva y crece */
    box-shadow: 0 20px 30px rgba(0,0,0,0.25); /* Sombra más grande */
    background: #ffffff; /* Se mantiene blanco */
    color: var(--primary-dark) !important; /* El texto se oscurece un poco */
}

/* --- INICIO: SECCIÓN AÑADIDA (Mensajes Formulario) --- */
.form-status-message {
    padding: 1.25rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    border: 1px solid transparent;
}
.form-status-message.success {
    background-color: #e6f7ec; /* Un verde claro */
    border-color: var(--product-green); /* Reutilizamos variable de color */
    color: var(--product-green);
}
.form-status-message.error {
    background-color: #fdecea; /* Un rojo claro */
    border-color: #c9252d; /* Un rojo oscuro */
    color: #c9252d;
}
/* --- FIN: SECCIÓN AÑADIDA (Mensajes Formulario) --- */
/* --- INICIO: SECCIÓN AÑADIDA (Navegación Activa) --- */
.main-nav a.active {
    color: var(--text-dark); /* Texto más oscuro */
    font-weight: 600; /* Un poco más de énfasis */
    background-color: var(--background-gray); /* Fondo gris sutil */
}
/* --- FIN: SECCIÓN AÑADIDA --- */
/* --- INICIO: SECCIÓN AÑADIDA (Botón Ver Más Productos) --- */
.ver-mas-productos {
    text-align: center;
    margin-top: 3rem; /* Espacio superior después del grid */
}
/* --- FIN: SECCIÓN AÑADIDA --- */

/* --- INICIO: SECCIÓN AÑADIDA (Slider "Servicios" Apple-style) --- */
.slider-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap; /* Para que se vea bien en móviles */
}

.slider-link {
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-light);
    background: var(--background-gray);
    border: 1px solid var(--border-color);
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 20px; /* Estilo "píldora" */
    transition: all 0.3s ease;
}

.slider-link:hover {
    background: #e9ecef; /* Un gris un poco más oscuro */
    color: var(--text-dark);
}

.slider-link.active {
    color: var(--background-light);
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.slider-viewport {
    width: 100%;
    overflow: hidden; /* Oculta los otros slides */
}

.slider-track {
    display: flex;
    width: 400%; /* 100% * 4 slides */
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1); /* Transición suave */
}

.slider-panel {
    width: 25%; /* 100% / 4 slides */
    flex-shrink: 0;
    padding: 1rem 2rem; /* Espacio interno */
    box-sizing: border-box; /* Importante para que el padding no rompa el width */
    text-align: center;
}

.slider-panel h3 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.slider-panel p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 700px; /* Centra el contenido */
    margin: 0 auto; /* Centra el contenido */
}

/* Ajustes responsivos para el slider */
@media (max-width: 768px) {
    .slider-panel {
        padding: 1rem 0; /* Menos padding en móvil */
    }
    .slider-panel h3 {
        font-size: 1.5rem;
    }
    .slider-panel p {
        font-size: 1rem;
    }
}
/* --- FIN: SECCIÓN AÑADIDA (Slider "Servicios") --- */

/* --- INICIO: SECCIÓN AÑADIDA (Tabs "Nosotros") --- */
.tabs-nav {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 2.5rem;
}

.tab-link {
    font-family: var(--font-family);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    background: none;
    border: none;
    cursor: pointer;
    padding: 1rem 1.5rem;
    margin-bottom: -2px; /* Pone el botón "sobre" el borde */
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.tab-link:hover {
    color: var(--text-dark);
    background-color: var(--background-gray);
}

.tab-link.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Ocultar paneles de tabs por defecto */
.tab-content {
    display: none;
}

/* Mostrar solo el panel activo */
.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

/* Animación simple de fade-in */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.tab-content h2 {
    margin-bottom: 1.5rem;
}

.tab-content p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Lista para la pestaña "Por qué" */
.why-us-list {
    list-style: none;
    padding-left: 0;
}
.why-us-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}
.why-us-list .check-icon {
    color: var(--product-green);
    font-size: 1.2rem;
    font-weight: 700;
    margin-right: 0.75rem;
    margin-top: 0.25rem;
}
.why-us-list p {
    margin: 0;
}
/* --- FIN: SECCIÓN AÑADIDA (Tabs "Nosotros") --- */

/* --- INICIO: SECCIÓN AÑADIDA (Carrusel Productos) --- */

/* 1. Keyframe para la animación de scroll infinito */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-1980px); } /* 6 tarjetas * (300px + 30px) = 1980px */
}

/* 2. El Contenedor (Viewport) */
.slider-container-productos {
    width: 100%;
    overflow: hidden;
    position: relative;
    /* Efecto de difuminado en los bordes */
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* 3. La Pista (Track) que se mueve */
.slider-track-productos {
    display: flex;
    /* Ancho total: 12 tarjetas * (300px + 30px gap) = 3960px */
    width: 3960px;
    animation: scroll 40s linear infinite; /* 40s = velocidad */
}

/* 4. Pausar la animación al pasar el mouse */
.slider-container-productos:hover .slider-track-productos {
    animation-play-state: paused;
}

/* 5. Estilo de las tarjetas DENTRO del slider */
.slider-track-productos .modern-card {
    width: 300px; /* Ancho fijo para cada tarjeta */
    flex-shrink: 0; /* Evita que las tarjetas se encojan */
    margin: 1rem 15px; /* Da un espacio de 30px entre tarjetas */
    box-sizing: border-box;
}

/* --- FIN: SECCIÓN AÑADIDA --- */

/* --- INICIO: SECCIÓN AÑADIDA (NUEVA Página Detalle de Producto) --- */

/* 1. El Hero (Logo + Título) */
.product-page-hero {
    padding: 4rem 1rem;
    background-color: var(--background-gray); /* Fondo base */
    border-bottom: 1px solid var(--border-color);
}

/* Tinte de color específico por producto */
.product-contabilidad-bg {
    /* Un azul muy claro para que coincida con el color de la marca */
    background-color: #e6f0f8; 
}

.hero-content-grid {
    display: grid;
    grid-template-columns: 200px 1fr; /* Columna fija para el logo */
    align-items: center;
    gap: 2.5rem; /* Más espacio */
    max-width: 1100px;
    margin: 0 auto;
}

.hero-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-logo-container img {
    max-width: 100%;
    height: auto;
}

.hero-text-container h1 {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-text-container .description {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* 2. El Contenido (Beneficios) */
.product-page-content {
    /* Hacemos la columna de beneficios más legible y centrada */
    max-width: 900px; 
    margin: 0 auto;
}

.product-page-content h2 {
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
    text-align: center;
}

/* 3. Lista de beneficios (Reutilizamos la clase) */
.benefits-list {
    list-style: none;
    padding-left: 0;
}
.benefits-list li {
    display: flex;
    align-items: flex-start;
    font-size: 1.05rem; /* Un poco más grande */
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}
/* El checkmark de la lista */
.benefits-list li::before {
    content: '✓';
    color: var(--product-green); /* Reusamos el color verde */
    font-weight: 700;
    font-size: 1.2rem;
    margin-right: 1rem;
    margin-top: 0.15rem;
}

/* 4. CTA Box (El mismo de antes, pero verificamos) */
.product-cta-box {
    background: var(--primary-color);
    color: var(--background-light);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    margin-top: 4rem; /* Más espacio */
}
.product-cta-box h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.product-cta-box p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* 5. Responsivo */
@media (max-width: 768px) {
    .hero-content-grid {
        grid-template-columns: 1fr; /* Logo arriba, texto abajo */
        text-align: center;
    }
    .hero-logo-container {
        margin-bottom: 1rem;
        max-width: 150px; /* Logo más pequeño en móvil */
        margin: 0 auto 1.5rem auto;
    }
    .hero-text-container h1 {
        font-size: 2rem;
    }
    .hero-text-container .description {
        font-size: 1.1rem;
    }
    .product-page-content h2 {
        font-size: 1.8rem;
    }
}
/* --- FIN: SECCIÓN AÑADIDA --- */
/* Responsivo para el detalle de producto */
@media (max-width: 900px) {
    .product-detail-grid {
        grid-template-columns: 1fr;
    }
    .product-detail-image {
        order: -1;
        margin-bottom: 2rem;
    }
    .product-detail-content h1 {
        font-size: 2rem;
    }
}

/* --- INICIO: SECCIÓN MODIFICADA (Página Detalle Nóminas) --- */

/* Tinte de fondo para el Hero de Nóminas */
.product-nominas-bg {
    background-color: #e5f6fc; /* Un cian muy claro */
}

/* 2. Slider de Características (DRAG-TO-SCROLL) */
.feature-slider-container {
    background: var(--background-gray);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 3rem 0;
}

.feature-slider-viewport {
    width: 100%;
    max-width: 1200px; /* Hacemos el viewport más ancho */
    margin: 0 auto;
    display: flex;
    overflow-x: auto; /* ¡Magia! Habilita el scroll horizontal */
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
    padding-bottom: 1.5rem; /* Espacio para el scrollbar (que ocultaremos) */
    /* Efecto de difuminado en los bordes */
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

/* Ocultar la barra de scroll */
.feature-slider-viewport::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
.feature-slider-viewport {
    -ms-overflow-style: none;  /* IE y Edge */
    scrollbar-width: none;  /* Firefox */
}

.feature-slider-track {
    display: flex;
    flex-wrap: nowrap; /* Evita que los paneles salten de línea */
    gap: 1.5rem; /* Espacio entre paneles */
}

.feature-slider-panel {
    width: 350px; /* Ancho fijo para cada panel */
    flex-shrink: 0; /* Evita que se encojan */
    padding: 1.5rem;
    box-sizing: border-box;
    background: var(--background-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.feature-slider-panel h3 {
    font-size: 1.1rem; /* Un poco más pequeño para la tarjeta */
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-slider-panel ul {
    list-style: none;
    padding-left: 0;
}
.feature-slider-panel li {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
}
.feature-slider-panel li::before {
    content: '✓';
    color: var(--product-cyan);
    font-weight: 700;
    position: absolute;
    left: 0;
    top: 0;
}

/* 3. Sección "Fácil de Usar" */
.easy-to-use-section {
    max-width: 900px;
    margin: 4rem auto 0 auto;
    text-align: center;
}
.easy-to-use-section h2 {
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}
.easy-to-use-section .description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* 4. Footer "Complementa este sistema" */
.complement-slider {
    padding: 4rem 0;
    background-color: var(--background-gray);
    border-top: 1px solid var(--border-color);
}
.complement-slider .section-title {
    font-size: 2rem;
}

/* --- FIN: SECCIÓN MODIFICADA --- */

/* --- INICIO: SECCIÓN AÑADIDA (Carrusel Infinito Footer) --- */

/* 1. Keyframe para la animación del footer */
@keyframes scroll-footer {
    0% { transform: translateX(0); }
    /* 5 tarjetas * (300px + 30px) = 1650px */
    100% { transform: translateX(-1650px); }
}

/* 2. El Contenedor (Viewport) */
.complement-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* 3. La Pista (Track) que se mueve */
.complement-slider-track {
    display: flex;
    /* 10 tarjetas total * (300px + 30px) = 3300px */
    width: 3300px; 
    animation: scroll-footer 35s linear infinite; /* 35s = velocidad */
}

/* 4. Pausar la animación al pasar el mouse */
.complement-slider-container:hover .complement-slider-track {
    animation-play-state: paused;
}

/* 5. Estilo de las tarjetas DENTRO del slider */
.complement-slider-track .modern-card {
    width: 300px; /* Ancho fijo */
    flex-shrink: 0;
    margin: 1rem 15px;
    box-sizing: border-box;
}
/* --- FIN: SECCIÓN AÑADIDA --- */

/* --- INICIO: SECCIÓN AÑADIDA (Página Detalle Comercial) --- */

/* Tinte de fondo para el Hero de Comercial */
.product-comercial-bg {
    background-color: #e6f5f0; /* Un verde muy claro */
}

/* Párrafo de descripción debajo del H2 de beneficios */
.product-page-content .product-section-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
}

/* Etiqueta "Nueva versión" en la lista de beneficios */
.benefits-list li span.new-version {
    font-weight: 600;
    color: var(--product-green);
    margin-left: 8px;
    font-size: 0.8rem;
    background: #ddf3e7; /* Un verde más sutil */
    padding: 2px 8px;
    border-radius: 6px;
    display: inline-block;
}

/* --- FIN: SECCIÓN AÑADIDA --- */

/* --- INICIO: SECCIÓN AÑADIDA (Página Detalle Virtual) --- */

/* Tinte de fondo para el Hero de Virtual */
.product-virtual-bg {
    background-color: #f3eef7; /* Un morado muy claro */
}

/* Estilos para la nueva lista de beneficios con categorías */
.benefits-with-categories {
    max-width: 900px;
    margin: 0 auto;
}

.benefits-with-categories h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--product-purple); /* Re-usamos el color morado */
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-top: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Usamos la lista de beneficios que ya teníamos */
.benefits-with-categories .benefits-list {
    margin-bottom: 2rem;
}
/* --- FIN: SECCIÓN AÑADIDA --- */

/* --- INICIO: SECCIÓN AÑADIDA (Página Detalle Respaldos) --- */

/* Tinte de fondo para el Hero de Respaldos */
.product-respaldos-bg {
    background-color: #e6f0f8; /* Un azul muy claro (re-usando el de contabilidad) */
}
/* --- FIN: SECCIÓN AÑADIDA --- */

/* --- INICIO: SECCIÓN AÑADIDA (Página Detalle Evalúa 035) --- */

/* Tinte de fondo para el Hero de Evalúa 035 */
.product-evalua-bg {
    background-color: #e5f6fc; /* Un cian muy claro (re-usando el de nóminas) */
}
/* --- FIN: SECCIÓN AÑADIDA --- */

/* --- INICIO: SECCIÓN AÑADIDA (Nuevos Estilos "Nosotros") --- */

/* Sección PAC (Proveedor Autorizado) */
.pac-section {
    padding: 4rem 1rem;
    background-color: var(--background-gray);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.pac-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
}
.pac-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}
.pac-text h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}
.pac-text p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
}

/* Sección Colaboradores (para hacer el texto legible) */
.colaboradores-content {
    max-width: 800px;
    margin: 0 auto;
}
.colaboradores-content h2 {
    text-align: center;
    margin-bottom: 2rem;
}
.colaboradores-content p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Caja de Cita (Estilo Apple) */
.quote-box {
    text-align: center;
    padding: 3rem 1rem;
    max-width: 750px;
    margin: 0 auto;
}
.quote-box blockquote {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.5;
    margin: 0;
    position: relative;
    padding: 0 2rem;
}
/* Comillas estilizadas */
.quote-box blockquote::before {
    content: '“';
    font-family: 'Times New Roman', Times, serif;
    font-size: 5rem;
    color: var(--primary-color);
    position: absolute;
    left: -1rem;
    top: -1.5rem;
    opacity: 0.3;
}

/* Responsivo para la sección PAC (CORREGIDO - MÁS GRANDE) */
@media (max-width: 768px) {
    .pac-grid {
        /* Columna del logo MÁS GRANDE (160px) */
        grid-template-columns: 160px 1fr; 
        gap: 1.5rem; /* Mantenemos el espacio reducido */
    }
    .pac-image {
        /* (no se necesita nada aquí) */
    }
    .pac-text h2 {
        font-size: 1.3rem; /* Mantenemos el texto ajustado */
    }
}

/*---------------------------------------------------------------------------------------------------------COPIA POR SI SALE MAL*/
/* --- INICIO: CARRUSEL SINCRONIZADO (TEXTO + IMAGEN) --- */

/* Contenedor principal del componente */
.sync-carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 1100px; /* Ancho máximo para que no se estire demasiado */
    margin: 0 auto 4rem auto; /* Centrado y con margen inferior */
    min-height: 400px; /* Altura mínima para evitar saltos */
    display: flex;
    align-items: center;
}

/* Cada "slide" contiene texto e imagen */
.sync-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% Texto | 50% Imagen */
    gap: 3rem;
    align-items: center;
    opacity: 0; /* Oculto por defecto */
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s; /* Transición suave */
    z-index: 1;
}

/* El slide activo se muestra */
.sync-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
    position: relative; /* Para que ocupe espacio en el flujo */
}

/* Estilos del Texto */
.sync-text-content {
    padding-right: 1rem;
}
.sync-text-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}
.sync-text-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1rem;
}

/* Estilos de la Imagen */
.sync-image-content {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.sync-image-content img {
    max-width: 100%;
    max-height: 400px; /* Altura máxima controlada */
    border-radius: 16px;
    box-shadow: var(--shadow-medium);
    object-fit: cover;
}

/* Indicadores (Puntos) opcionales */
.sync-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}
.sync-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ccc;
    cursor: pointer;
    transition: background-color 0.3s;
}
.sync-dot.active {
    background-color: var(--primary-color);
}

/* Responsivo */
@media (max-width: 900px) {
    .sync-slide {
        grid-template-columns: 1fr; /* Una sola columna */
        position: relative; /* En móvil, apilamos, no absolute */
        opacity: 1; /* Mostramos todo en móvil o usamos JS para slider móvil */
        visibility: visible;
        display: none; /* Ocultamos los no activos con display */
    }
    .sync-slide.active {
        display: flex; /* Flex columna */
        flex-direction: column-reverse; /* Imagen arriba, texto abajo (opcional) */
    }
    .sync-text-content {
        padding-right: 0;
        text-align: center;
    }
}
/* --- FIN: CARRUSEL SINCRONIZADO --- */

/* --- INICIO: Estilos para Imágenes 80% (Index) --- */

/* Grid Principal: Texto | Imagen */
.tab-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 50% / 50% */
    gap: 3rem;
    /* 'stretch' hace que la columna de imagen sea igual de alta que la de texto */
    align-items: stretch; 
    text-align: left;
}

.tab-content-grid .text-content {
    padding-right: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra el texto verticalmente */
}

/* Contenedor de la Imagen (Centrado) */
.single-image-container {
    display: flex;
    align-items: center; /* Centra la imagen verticalmente */
    justify-content: center; /* Centra la imagen horizontalmente */
    height: 100%; /* Toma toda la altura disponible del grid */
    width: 100%;
}

/* La Imagen al 80% */
.single-image-container img {
    width: 90%; /* Un poco de margen a los lados */
    height: 90%; /* 80% de la altura del texto */
    object-fit: cover; /* Recorta inteligentemente para llenar sin deformar */
    border-radius: 16px; /* Bordes un poco más redondeados */
    box-shadow: var(--shadow-medium);
    transition: transform 0.3s ease;
}

.single-image-container img:hover {
    transform: scale(1.02);
}

/* Responsivo (Móviles) */
@media (max-width: 768px) {
    .tab-content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .tab-content-grid .text-content {
        padding-right: 0;
        text-align: center;
    }
    .single-image-container {
        height: auto; /* En móvil la altura es automática */
        margin-bottom: 1rem;
    }
    .single-image-container img {
        width: 100%;
        height: 250px; /* Altura fija en móvil */
    }
}
/* --- FIN: Estilos para Imágenes 80% --- */

/* --- INICIO: Hero Pantalla Completa (Splash) --- */

.hero-fullscreen {
    position: relative;
    width: 100%;
    height: 100vh; /* 100% de la altura de la ventana visible */
    display: flex;
    align-items: center; /* Centrar verticalmente */
    justify-content: center; /* Centrar horizontalmente */
    background: url('/img/xpertoscontpaqi.png') no-repeat center center;
    background-size: cover; /* La imagen cubre todo el espacio sin deformarse */
    text-align: center;
    color: #ffffff; /* Texto blanco para contraste */
    margin-bottom: 2rem;
}

/* Capa oscura para mejorar lectura del texto */
.hero-fullscreen::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Oscuridad al 50% */
    z-index: 1;
}

/* El contenido debe estar por encima de la capa oscura */
.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
    animation: fadeUp 1.2s ease-out; /* Pequeña animación de entrada */
}

.hero-content h1 {
    font-size: 3.5rem; /* Título grande */
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2.5rem;
    color: #f0f0f0;
    font-weight: 400;
}

/* Animación de entrada suave */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2.5rem; }
    .hero-content p { font-size: 1.2rem; }
}

/* --- FIN: Hero Pantalla Completa --- */

/* --- INICIO: Estilos para Logo de Imagen --- */

/* Ajuste del contenedor del enlace */
.logo-image {
    display: flex;
    align-items: center;
    height: 100%; /* Ocupa el alto del navbar */
    text-decoration: none;
}

/* Ajuste de la imagen del logo */
.logo-image img {
    max-height: 50px; /* Altura máxima para que no rompa el header */
    width: auto;      /* El ancho se ajusta automático */
    object-fit: contain;
}

/* En móviles, quizás quieras que sea un poquito más pequeño */
@media (max-width: 768px) {
    .logo-image img {
        max-height: 40px;
    }
}
/* --- FIN: Estilos para Logo de Imagen --- */

/* --- Estilos Mejorados para Misión/Visión --- */

/* La rejilla principal */
.mission-vision-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: stretch; /* Para que ambas tarjetas tengan la misma altura */
}

/* La tarjeta interactiva */
.interactive-card {
    background: #fff;
    border-radius: 24px; /* Más redondeado */
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Sombra suave inicial */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Animación con rebote suave */
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden; /* Para contener el zoom de la imagen */
    display: flex;
    flex-direction: column;
}

/* Efecto al pasar el mouse (Hover) */
.interactive-card:hover {
    transform: translateY(-10px); /* Se eleva */
    box-shadow: 0 20px 40px rgba(204, 68, 63, 0.15); /* Sombra color vino suave */
    border-color: rgba(204, 68, 63, 0.2);
}

/* Contenedor de imagen para el efecto zoom */
.card-image-wrapper {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease; /* Zoom lento y elegante */
}

.interactive-card:hover .card-image-wrapper img {
    transform: scale(1.05); /* Zoom sutil al 105% */
}

/* Títulos */
.interactive-card h3 {
    font-size: 1.8rem;
    color: var(--primary-color); /* Color Vino */
    margin-bottom: 1rem;
    font-weight: 700;
}

/* Texto general */
.interactive-card p {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* --- Lista de Visión Estilizada --- */
.vision-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.vision-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-light);
}

/* El ícono de check personalizado */
.icon-box {
    background-color: rgba(204, 68, 63, 0.1); /* Fondo vino muy clarito */
    color: var(--primary-color);
    min-width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-weight: bold;
    font-size: 14px;
    margin-top: 2px; /* Alineación óptica */
}

/* --- ANIMACIONES Y VIDA (Agregado al final) --- */

/* 1. Animación de Flotar (Levitación) para imagen Hero */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

.anim-float {
    animation: float 5s ease-in-out infinite;
}

/* 2. Animación de Entrada (Fade In Up) para textos */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.anim-fade-up {
    animation: fadeInUp 1s ease-out forwards;
    opacity: 0; /* Comienza invisible */
}

/* Retrasos para que no aparezca todo al mismo tiempo */
.delay-200 { animation-delay: 0.2s; }
.delay-400 { animation-delay: 0.4s; }

/* 3. Párrafos Interactivos (Sección Equipo) */
/* Esto le da vida al texto sin cambiar el layout */
.interactive-text p {
    padding: 1.5rem; /* Un poco de aire */
    border-radius: 12px;
    border-left: 4px solid transparent; /* Borde invisible inicial */
    transition: all 0.3s ease;
    cursor: default;
    background: transparent;
}

.interactive-text p:hover {
    background: #ffffff; /* Fondo blanco al pasar el mouse */
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); /* Sombra suave */
    transform: translateX(10px); /* Se mueve un poco a la derecha */
    border-left-color: var(--primary-color); /* Aparece la línea color vino */
}

/* Ajuste para que el contenedor de equipo permita estos efectos */
.colaboradores-content {
    /* Aseguramos que los efectos no se corten */
    overflow: visible; 
}

/* --- SECCIÓN MARCAS (Estilo "Cápsulas Vivas") --- */
#marcas {
    padding: 5rem 0;
    background-color: var(--background-gray);
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.brands-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem; /* Buen espacio entre ellas */
    flex-wrap: wrap;
    margin-top: 3rem;
}

/* El contenedor del logo (La Cápsula) */
.brand-pill {
    background: #ffffff;
    border-radius: 50px; /* Bordes muy redondeados */
    padding: 1.5rem 4rem; /* Espacio interno generoso */
    
    /* Sombra suave inicial */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0,0,0,0.02);
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Animación suave */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 250px; /* Ancho mínimo para presencia */
    height: 120px;    /* Altura fija para uniformidad */
}

/* Efecto al pasar el mouse */
.brand-pill:hover {
    transform: translateY(-8px) scale(1.05); /* Se eleva y crece un poco */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12); /* Sombra más fuerte */
    border-color: rgba(0,0,0,0.05);
}

/* La imagen del logo */
.brand-pill img {
    max-height: 60px; /* Altura considerablemente mayor */
    width: auto;
    max-width: 180px; /* Permitimos más anchura */
    object-fit: contain;
    
    /* Sin filtros, a todo color */
    filter: none; 
    opacity: 1;
    transition: transform 0.3s ease;
}

/* Pequeño zoom extra a la imagen interna al hacer hover */
.brand-pill:hover img {
    transform: scale(1.1);
}

/* Ajuste móvil */
@media (max-width: 768px) {
    .brands-grid {
        gap: 2rem;
    }
    .brand-pill {
        padding: 1rem 2rem;
        min-width: 180px;
        height: 90px;
    }
    .brand-pill img {
        max-height: 45px;
    }
}

/* --- GRAND HERO (Entrada Impactante) --- */
.grand-hero {
    /* Ocupa el 85% de la altura de la pantalla del usuario */
    min-height: 85vh; 
    
    /* Centrado perfecto (Vertical y Horizontal) */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    
    /* Fondo: Un "foco" de luz sutil en el centro */
    background: radial-gradient(circle at center, #ffffff 0%, #f3f4f6 100%);
    
    text-align: center;
    padding: 2rem;
    position: relative;
}

/* La Imagen Principal (Logo Grande) */
.hero-brand-img {
    width: 200%;
    max-width: auto; /* Tamaño máximo generoso pero no gigante */
    height: 200%;
    
    /* Animación de entrada */
    opacity: 0; /* Empieza invisible */
    transform: scale(0.3); /* Empieza un poco más pequeña */
    animation: heroEntrance 2.5s cubic-bezier(0.22, 1, 0.36, 1) forwards; /* Efecto "pop" elegante */
}

/* El Texto y Botón debajo (Secundarios) */
.hero-content-wrapper {
    margin-top: auto;
    max-width: auto;
    
    /* Aparecen un poco después de la imagen */
    opacity: 0;
    animation: fadeUp 1s ease-out 0.5s forwards; /* 0.5s de retraso */
}

.hero-content-wrapper h1 {
    font-size: 1.8rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero-content-wrapper p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Definición de la animación de entrada */
@keyframes heroEntrance {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* --- BOTÓN VIBRANTE --- */
.btn-vibrante {
    background-color: #ff4757; /* Un rojo llamativo (o usa tu color corporativo) */
    color: white;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    animation: palpitar 2s infinite; /* Aquí está la magia */
    margin-top: 20px;
    display: inline-block;
    text-decoration: none;
}

.btn-vibrante:hover {
    background-color: #ff6b81;
    transform: scale(1.05);
    animation: none; /* Se detiene al pasar el mouse */
}

@keyframes palpitar {
    0% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7); transform: scale(1); }
    70% { box-shadow: 0 0 0 20px rgba(255, 71, 87, 0); transform: scale(1.05); }
    100% { box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); transform: scale(1); }
}

/* --- VENTANA MODAL (POPUP) --- */
.modal-overlay {
    display: none; /* Oculto por defecto */
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    animation: slideDown 0.3s ease-out;
}

.close-modal {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 2rem;
    cursor: pointer;
    color: #333;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}