:root {
    --valery-blue: #0067b8;
    --text-soft: #5f6368;
    --line-thin: #e0e0e0;
    --ms-blue: #0067b8;
    --text-secondary: #616161;
    --bg-gray: #f8f9fa; /* Definido para evitar error de var no encontrada */
    --white: #ffffff;
    --text-dark: #333;
    --success: #107c10; /* Añadido para consistencia con tus textos verdes */
}

body {
    background-color: var(--bg-gray);
    font-family: 'Segoe UI', sans-serif;
    color: var(--text-dark);
    margin: 0;
}

/* --- Nav Optimizado --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 5% !important;
    background: var(--white);
    border-bottom: 1px solid #e6e6e6;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.social-links { display: flex; gap: 15px; align-items: center; }
.social-links a { text-decoration: none; transition: transform 0.2s ease; display: flex; align-items: center; }
.social-links a:hover { transform: scale(1.1); }
.social-icon { width: 24px; height: 24px; filter: grayscale(1) opacity(0.7); transition: 0.3s; }
.social-links a:hover .social-icon { filter: grayscale(0) opacity(1); }

.logo { font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.nav-tag { font-weight: 600; color: var(--ms-blue); }
.nav-subtag { font-weight: 400; color: var(--text-secondary); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.5px; }

.top-bar {
    padding-top: 10px !important;
    padding-bottom: 5px !important;
    border-bottom: 1px solid #f0f0f0;
}

.container { max-width: 1300px; margin: 0 auto; padding: 30px; }

/* --- Header Principal --- */
.main-header {
    text-align: center;
    padding: 20px 20px 10px 20px; /* Ajustado */
    font-family: 'Segoe UI', Arial, sans-serif;
}

.main-header h1 {
    font-size: clamp(1.5rem, 5vw, 2.4rem); /* Texto responsive */
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.vigencia {
    font-size: 1rem;
    color: #777;
    margin: 0 0 10px 0;
    font-weight: 400;
}

    /* Estilo para la Tasa BCV */
    .tasa-bcv-display {
        text-align: center;
        font-size: 0.95rem;
        color: var(--success); /* El verde que ya usas */
        font-weight: 600;
    }   

    #tasa-valor {
        color: #0067b8;
        margin-left: 5px;
    }


.highlight { color: var(--valery-blue); }

/* --- MATRIZ DE PRECIOS RESPONSIVA (CORREGIDO) --- */
.matriz-wrapper {
    margin: 20px auto 10px auto; /* 10px abajo para que la nota esté cerca pero no pegada */
    width: 95%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    max-width: 1200px;
  /*  margin: 20px auto;  Separación vertical */
    padding: 0; /* Quitamos padding interno para que el sticky funcione bien */
    
    /* MAGIA RESPONSIVA AQUÍ: */
    width: 95%; /* Ocupa casi todo el ancho en móvil */
    overflow-x: auto; /* Permite scroll horizontal */
    -webkit-overflow-scrolling: touch; /* Suavidad en iPhone */
    position: relative;
}

.matriz-precios {
    width: 100%;
    min-width: 800px; /* OBLIGATORIO: Fuerza a la tabla a ser ancha y activar el scroll */
    border-collapse: collapse;
    background: #ffffff;
    font-family: 'Segoe UI', sans-serif;
}

/* Fijar la primera columna (Títulos) */
.matriz-precios td:first-child,
.matriz-precios th:first-child {
    position: sticky;
    left: 0;
    background-color: #ffffff;
    z-index: 10;
    border-right: 2px solid #f0f0f0; /* Sombra sutil para separar */
    box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}

.matriz-precios th {
    background-color: #fff;
    color: var(--text-soft);
    font-weight: 600;
    font-size: 0.75rem;
    padding: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
}

/* Logos y líneas */
.row-logos td {
    padding-bottom: 15px;
    border: none !important;
    background-color: #fff; /* Asegura fondo blanco en sticky */
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 10px;
}

.logo-container img {
    height: 40px; /* Reducido un poco para móvil */
    width: auto;
    margin-bottom: 15px;
    object-fit: contain;
}

.row-logos td:not(:first-child) .logo-container::after {
    content: "";
    width: 100%;
    height: 1px;
    background-color: var(--valery-blue);
    border-radius: 2px;
}

/* Celdas generales */
.matriz-precios td {
    padding: 12px 8px;
    border-bottom: 1px solid #f0f0f0;
    text-align: center;
    color: #3c4043;
    vertical-align: middle;
    height: 70px; /* Altura fija para alineación */
}

/* Estilo primera columna (Texto lateral) */
.matriz-precios tbody td:first-child {
    text-align: left;
    font-weight: 500;
    color: #777;
    padding-left: 15px;
    font-size: 0.85rem;
    min-width: 140px; /* Ancho mínimo para el título */
}

/* Precios */
.price-box {
    font-weight: 700;
    font-size: 1rem;
    color: #333;
    line-height: 1.2;
}

.precio-bs {
    display: block;
    color: #0067b8 !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    margin-top: 4px;
}

/* --- Sinergia Estratégica (Aliados) --- */
.sinergia-section {
    margin-top: 0px;
    padding: 10px 20px 0 20px !important;
    background-color: #fff;
}

.sinergia-header {
    text-align: center;
    margin-bottom: 10px !important;
}

.sinergia-header h2 {
    font-size: clamp(1.5rem, 4vw, 1.8rem);
    color: #333;
    margin: 0 0 5px 0 !important;
}

.sinergia-header p {
    font-size: 1rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto 15px;
}

.icon-geo { width: 14px; height: 14px; fill: #0067b8; margin-right: 5px; }

/* Scroll Horizontal Aliados */
.aliados-scroll-container {
    width: 100%;
    overflow-x: auto;
    padding: 5px 0 10px 0;
    margin-bottom: 0;
    -webkit-overflow-scrolling: touch;
}

.aliados-flex-row {
    display: flex;
    justify-content: center; /* Centrado en desktop */
    gap: 20px;
    min-width: max-content; /* Permite scroll si no cabe */
    padding: 10px; /* Espacio para sombras */
}

/* Tarjetas */
.aliado-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    width: 180px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    flex-shrink: 0; /* Evita que se aplasten en móvil */
}

.principal-consultor {
    border: 2px solid #0067b8 !important;
    box-shadow: 0 8px 16px rgba(0, 103, 184, 0.15) !important;
}

.aliado-foto-container {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 15px;
    border: 2px solid #0067b8;
}

.aliado-img { width: 100%; height: 100%; object-fit: cover; }

.aliado-zona {
    font-size: 0.75rem;
    color: #666;
    display: flex;
    flex-direction: column; /* Apila los elementos de zona */
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    gap: 3px;
}

.zona-linea { display: flex; align-items: center; gap: 5px; }

.aliado-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #25D366;
    color: #fff !important;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.3s;
}
.aliado-wa:hover { background-color: #1ebc57; }

.aliado-wa img { width: 14px; filter: brightness(0) invert(1); }

.especialidad {
    font-weight: 700;
    color: #0067b8;
    margin-bottom: 5px;
    font-size: 0.85rem;
}

/* Ajustes Rosiel Card */
.principal-consultor .aliado-info h4 { margin-bottom: 0px !important; line-height: 1.0; }
.principal-consultor .aliado-info .especialidad { margin-top: 4px; margin-bottom: 6px; }

/* --- NOTAS LEGALES RESPONSIVAS 
.notas-legales-section {
    padding: 1px 5%;
    background-color: #f9f9f9;
    border-top: 1px solid #eee;
    margin-top: 0px;
    margin-bottom: 0px;
}--- */

/* --- NOTAS LEGALES ALINEADAS CON LA TABLA --- */
.notas-legales-section {
    max-width: 1200px; /* MISMO ANCHO QUE LA TABLA */
    margin: 10px auto 5px auto; /* Centrado y alineado con la tabla */
    padding: 0; /* Quitamos el padding lateral para que el grid mande */
    background-color: transparent; /* Fondo transparente para que use el del body o blanco */
    border-top: none; 
    width: 95%; /* Consistencia con el wrapper de la tabla en móvil */
}
/*
.notas-container h3 {
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 15px;
}*/

.notas-container {
    width: 100%;
}

.notas-container h3 {
    color: var(--text-dark);
    font-size: 1rem;
    margin-bottom: 15px;
    padding-left: 5px; /* Pequeño ajuste para alinear con el inicio del texto de la tabla */
    display: flex;
    align-items: center;
    gap: 8px;
}
/*
.lista-notas {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Grid automático */
/*    gap: 15px;
    margin-bottom: 0px;
}*/

.lista-notas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Bloques más anchos */
    gap: 20px;
    list-style: none;
    padding: 0;
}
/*
.lista-notas li {
    background: #fff;
    padding: 15px;
    border-left: 4px solid var(--valery-blue);
    border-radius: 4px;
    font-size: 0.9rem;
    color: #555;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    line-height: 1.4;
}*/

.lista-notas li {
    background: #fff;
    padding: 20px;
    border-radius: 12px; /* Bordes redondeados como la tabla */
    border: 1px solid #eee; /* Borde suave */
    border-left: 5px solid var(--valery-blue);
    font-size: 0.88rem;
    color: var(--text-soft);
    box-shadow: 0 4px 10px rgba(0,0,0,0.04); /* Sombra elegante */
    line-height: 1.5;
    transition: transform 0.3s ease;
}

.lista-notas li:hover {
    transform: translateY(-3px);
}

/* --- TABLA 2: CARACTERÍSTICAS (Compacta) --- */
/* Forzamos anulación de altura para esta tabla específicamente */
#cuerpoCaracteristicas tr {
    height: auto !important;
}

#cuerpoCaracteristicas td {
    height: auto !important; 
    padding: 8px 10px !important;
    border-bottom: 1px solid #f5f5f5;
    font-size: 0.88rem;
    text-align: center;
    color: #444;
    /* Quitamos cualquier negrita heredada */
    font-weight: 400 !important; 
}

/* Ajuste específico para la primera columna (Nombres) */
#cuerpoCaracteristicas td:first-child {
    text-align: left;
    padding-left: 20px !important;
    min-width: 220px;
    /* Forzamos texto normal en lugar de negrita */
    font-weight: 400 !important; 
}
/* Estilo para los checks verdes */
.check-cell {
    color: var(--valery-green) !important;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Cebra para lectura fácil */
#cuerpoCaracteristicas tr:nth-child(even) {
    background-color: #fafafa;
}

/* Quitamos la negrita de los <strong> si los usaste en el JS */
#cuerpoCaracteristicas td strong {
    font-weight: 400 !important;
}

/* --- Sección Evaluación Gratuita (REVISADO Y CENTRADO) --- */
.evaluacion-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 60px 5%; /* Aumenté el padding para dar más aire */
    border-top: 1px solid #dee2e6;
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.evaluacion-container {
    max-width: 900px; /* Un poco más estrecho mejora la lectura del centro */
    width: 100%;
    margin: 0 auto;
    background: #ffffff;
    padding: 45px 30px; /* Más padding interno para elegancia */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 103, 184, 0.1);
    text-align: center; /* Centra el texto de h3 y p */
}

.evaluacion-content {
    display: flex;
    flex-direction: column; /* Alineación vertical */
    align-items: center;    /* Centra horizontalmente el contenido */
    justify-content: center;
    gap: 20px;              /* Espacio uniforme entre elementos */
}

.evaluacion-text h3 {
    color: #0067b8;
    margin: 0 0 12px 0;
    font-size: 1.8rem; /* Tamaño más cercano a tu imagen de referencia */
    font-weight: 700;
}

.evaluacion-text p {
    color: #5f6368;
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    max-width: 700px; /* Limita el ancho del párrafo para que no se vea infinito */
    line-height: 1.5;
}

.btn-evaluacion {
    display: inline-block;
    background-color: #3169bd; /* Color azul según imagen de referencia */
    color: #ffffff !important;
    text-decoration: none;
    padding: 16px 35px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(49, 105, 189, 0.3);
    margin-top: 10px;
}

.btn-evaluacion:hover {
    background-color: #265499;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(49, 105, 189, 0.4);
}

/* Responsive optimizado */
@media (max-width: 768px) {
    .evaluacion-container {
        padding: 35px 20px;
    }
    .evaluacion-text h3 { 
        font-size: 1.4rem; 
    }
    .evaluacion-text p {
        font-size: 0.95rem;
    }
    .btn-evaluacion {
        width: 100%; /* El botón ocupa todo el ancho en móvil para fácil toque */
        padding: 15px 20px;
    }
}

/* --- FOOTER --- */
.main-footer {
    background-color: #f5f5f5;
    padding: 30px 20px;
    font-family: 'Segoe UI', sans-serif;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.brand-name { font-weight: bold; font-size: 1.1rem; margin: 0; }
.brand-phrase { font-style: italic; color: #666; font-size: 0.9rem; margin: 5px 0; }

.footer-bottom {
    max-width: 1000px;
    margin: 20px auto 0;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- MEDIA QUERIES (Móvil) --- */
@media (max-width: 768px) {
    .aliados-flex-row {
        justify-content: flex-start; /* Alinea a la izquierda para hacer scroll natural */
        padding-left: 20px;
    }
    
    .footer-container {
        flex-direction: column;
        text-align: center;
    }

    /* Pista visual para scroll de tabla */
    .matriz-wrapper::after {
        content: "← Desliza para ver por Versión →";
        display: block;
        text-align: center;
        padding: 8px;
        background: #eef6ff;
        color: var(--valery-blue);
        font-size: 0.75rem;
        font-weight: 600;
        border-top: 1px solid #dcebfb;
    }
}

/* --- RESPONSIVO PARA EL BOTÓN DE EVALUACIÓN --- */
@media (max-width: 768px) {
    .btn-evaluacion {
        display: block;          /* Ocupa todo el ancho disponible */
        width: 100%;             /* Se expande al contenedor */
        padding: 15px 10px;      /* Reducimos el padding lateral para que no se corte el texto */
        font-size: 0.95rem;      /* Ajustamos el tamaño de fuente para pantallas pequeñas */
        text-align: center;      /* Asegura que el texto esté centrado */
        box-sizing: border-box;  /* Evita que el padding sume al ancho total */
        margin-top: 20px;        /* Espacio consistente con el texto de arriba */
    }

    .evaluacion-container {
        padding: 30px 20px;      /* Menos espacio interno en el cuadro blanco en móvil */
    }

    .evaluacion-content-centered h3 {
        font-size: 1.4rem;       /* Título más pequeño para que no ocupe tantas líneas */
    }
}