/* ==========================================================================
   CONTENEDOR DE ANCHO COMPLETO PARA BANNERS
   ========================================================================== */
.banner-full-width {
    max-width: 100% !important; width: 100% !important; margin-top: -1px !important; margin-bottom: 0 !important; padding: 0 !important; border: none !important;
}

/* ==========================================================================
   CONTENEDOR DE BANNER SIN ESPACIOS (ANTI-LÍNEA BLANCA)
   ========================================================================== */
.banner-container-flush {
    background: #0b2240; line-height: 0 !important; font-size: 0 !important; width: 100%; margin: 0 !important; padding: 0 !important; border: none !important;
}

.banner-container-flush img {
    width: 100%; height: auto; max-height: 500px; object-fit: cover; object-position: center; display: block; margin: 0 !important; padding: 0 !important;
    border: none !important;
}


/* ==========================================================================
   HITOS Y CONTADORES
   ========================================================================== */
.hitos-container {
    padding: 0px 5% 10px 5%; background-color: transparent; width: 100%;
}
    
.hitos-container .section-inner {
    background-color: #f8f9fa; padding: 0px 20px; border-top: 1px solid #eaeaea; border-bottom: 1px solid #eaeaea; max-width: 1200px;
    border-radius: 8px; margin: 0 auto;
}

.hitos-grid-compact {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 20px;
}

.hito-card-compact {
    background: white; padding: 20px 15px; border-top: 4px solid var(--ms-blue); box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    display: flex; flex-direction: column; align-items: center; text-align: center; border-radius: 6px; transition: transform 0.2s ease;
}

.hito-card-compact:hover { 
    transform: translateY(-3px); 
}

.hito-card-compact h4 { 
    color: var(--ms-blue); margin-bottom: 6px; font-size: 0.9rem; font-weight: 700; 
}

.hito-card-compact p { 
    font-size: 0.78rem; color: #555; line-height: 1.4; 
}

.counter-number { 
    font-size: 2.5rem; font-weight: 700; color: var(--valery); margin-bottom: 4px; line-height: 1; 
}

.subtitle-gestion {
    text-align: center; color: var(--text-secondary); font-size: 1rem; margin-bottom: 5px;
} 
media (min-width: 768px) {
    .hitos-grid-compact {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ==========================================================================
   TASA BCV
   ========================================================================== */

.tasa-bcv-display {
    text-align: center; font-size: 0.95rem; color: var(--success);  font-weight: 600;
}    

#tasa-valor {
    color: #0067b8; 
}

/* ==========================================================================
   BOTONES Y FAQ
   ========================================================================== */
.btn-primary {
    background: linear-gradient(135deg, #0067b8 0%, #0078d4 100%); color: white; padding: 12px 25px; text-decoration: none;
    font-weight: 600; border-radius: 4px; box-shadow: 0 4px 15px rgba(0, 103, 184, 0.3); transition: all 0.3s ease; border: none;
    cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
}

.btn-primary:hover {
    transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0, 103, 184, 0.4);
}

.faq-section-clean { 
    background-color: #ffffff; color: #333; padding: 5px 0px; width: 100%;
}

.faq-header-clean { 
    text-align: center; margin-bottom: 5px; 
}

.faq-header-clean h2 { 
    font-size: 2.3rem; color: #1a1a1a; margin-bottom: 10px; font-weight: 800; 
}

.faq-header-clean p {
    text-align: center;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.4;
    margin: 0 auto;
}

.yo-highlight { 
    color: #0056b3; 
    border-bottom: 4px solid #0056b3; 
}

.faq-wrapper { 
    max-width: 1400px; margin: 0 auto; width: 100%; padding: 0 20px; box-sizing: border-box;
}

.faq-card { 
    border: 1px solid #eaeaea; border-radius: 10px; margin-bottom: 12px; background: #fff; width: 100%;
}

.faq-btn { 
    width: 100%; padding: 20px 25px; background: none; border: none; text-align: left; font-size: 1.05rem; font-weight: 600; 
    color: #2c3e50; cursor: pointer; display: flex; justify-content: space-between; align-items: center; 
}

.faq-btn::after { 
    content: '+'; font-size: 1.5rem; color: #0056b3; transition: transform 0.3s; 
}

.faq-card.active { 
    border-color: #0056b3; background-color: #fcfdfe; 
}

.faq-card.active .faq-btn::after { 
    content: '−'; transform: rotate(180deg); 
}

.faq-content { 
    max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
}

.faq-content p { 
    padding: 0 25px 25px 25px; color: #4a5568; line-height: 1.7; font-size: 0.95rem; margin: 0; 
}

/* ==========================================================================
   ENLACE IR A INICIO
   ========================================================================== */

.back-to-top-container {
    text-align: center; margin: 20px 0; padding-bottom: 0;
}

.back-to-top-link {
    color: #0067b8; text-decoration: none; font-weight: 600; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 5px;
    transition: color 0.2s ease;
}

.back-to-top-link:hover {
    color: #004578;
}

/* ==========================================================================
   BANNER NIVEL 3 Y SOPORTE
   ========================================================================== */
.banner-n3 {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 20px 5%;
    text-align: center;
    border-left: 8px solid var(--valery);
}

.banner-n3 h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    letter-spacing: -0.04em;
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 40%, #0078d4 100%);
    background-clip: text; -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 4px 8px rgba(0,0,0,0.3));
}

.banner-n3 .highlight {
    text-transform: uppercase;
    font-style: normal;
    text-shadow: 0 0 30px rgba(0, 120, 212, 0.5);
} 

   .soporte-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 25px; margin-top: 30px;
}

.soporte-intro {
    max-width: 800px; margin: 0 auto 40px auto; font-size: 1.1rem; color: #ccc;
}

.soporte-item {
    background: rgba(45, 45, 45, 0.6); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.1); padding: 30px; border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.soporte-item:hover {
    transform: translateY(-10px); background: rgba(55, 55, 55, 0.8); border-color: var(--valery); box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.soporte-icon {
    font-size: 1.5rem; margin-bottom: 15px; display: block;
}

.soporte-item h3 {
    font-size: 1rem; color: var(--valery); margin-bottom: 10px; font-weight: 600; 
}

.soporte-item p {
    font-size: 0.85rem !important; color: #bbb !important; line-height: 1.4 !important; margin-bottom: 0 !important;
}

@media (max-width: 992px) {
    .soporte-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .soporte-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   SECCION LICENCIAS
   ========================================================================== */
.licenciamiento-section {
    padding: 0px 5% 10px 5%;
}

.main-title-licenciamiento {
    font-size: 2.8rem; font-weight: 400; color: #1a1a1a; text-align: center; margin-bottom: 15px; letter-spacing: -0.03em; line-height: 1.2;
}

.brand-color {
    color: var(--valery); display: inline-block; font-size: 2.8rem; font-weight: 800;
}

.catalog-btn-container {
    text-align: center; margin: 20px 0 35px 0;
}

.catalog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: #f0f4f8;
    color: var(--ms-blue);
    border: 1px solid #d0e1ed;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.catalog-btn:hover {
    background-color: #e1edf7;
    transform: translateY(-2px);
}

/* IMPORTANTE: Definición estricta de ancho de tarjeta para control de scroll horizontal */
.version-card {
    flex: 0 0 92%; /* Celular: Ocupa el 100% de la pista visible para avanzar de 1 en 1 */
    max-width: 420px; 
    scroll-snap-align: center; /* Alinea perfectamente la tarjeta al centro al deslizar */
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%); 
    padding: 16px 14px; 
    border-top: 5px solid var(--valery);
    border-radius: 12px; 
    box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    display: flex; 
    flex-direction: column;  
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center; 
    align-items: center; 
    border-left: 1px solid #e2e8f0; 
    border-right: 1px solid #e2e8f0; 
    border-bottom: 1px solid #e2e8f0;
    border: 1px solid #e2e8f0;
    position: relative;
}

/* Responsividad para pantallas más anchas donde caben múltiples tarjetas */
@media (min-width: 768px) {
    .version-card {
        flex: 0 0 calc(50% - 10px);
    }
}

@media (min-width: 1024px) {
    .version-card {
        flex: 0 0 calc(33.333% - 14px);
    }
}

.version-card:hover {
    transform: translateY(-8px) scale(1.01); border-top-color: #004d88;  box-shadow: 0 20px 35px -5px rgba(0, 103, 184, 0.16), 
                0 10px 15px -5px rgba(0, 0, 0, 0.06);
}    

.version-card .claim-text {
    font-size: 0.8rem; font-style: italic; font-weight: 700; white-space: nowrap; margin-bottom: 8px; letter-spacing: -0.2px;
}

.version-card:nth-child(1) .claim-text { color: #b30036; } 
.version-card:nth-child(2) .claim-text { color: #1e7e34; } 
.version-card:nth-child(3) .claim-text { color: #1d4ed8; } 
.version-card:nth-child(4) .claim-text { color: #047857; } 
.version-card:nth-child(5) .claim-text { color: #b45309; } 

.version-card > p {
    font-size: 0.82rem; color: #555; line-height: 1.4; margin-bottom: 20px; flex-grow: 1; 
}

.version-logo { 
    max-width: 140px; height: 60px; object-fit: contain; margin-bottom: 4px; 
}

.price-box {
    background: #ffffff; border: 1px solid #dbeafe; border-radius: 8px; padding: 8px 10px; margin: 6px 0 10px 0;
    text-align: center; box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05); display: flex; flex-direction: column; gap: 2px;
    width: 100%; transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.price-box:hover {
    border-color: #93c5fd; box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.price-box .iva-tag {
    display: inline-block; background-color: #f1f5f9; color: #475569; font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.5px; padding: 2px 8px; border-radius: 4px; margin-bottom: 2px; align-self: center; line-height: 1.2;
}

.btn-whatsapp {
    display: inline-flex; white-space: nowrap; font-size: 0.82rem; padding: 9px 12px; align-items: center; justify-content: center;
    gap: 6px; width: 100%; background-color: var(--ms-blue); color: white; text-align: center; text-decoration: none;
    border-radius: 6px; font-weight: 600; margin-top: auto; box-shadow: 0 2px 5px rgba(0,0,0,0.08);
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-whatsapp:hover {
    background-color: #004d88; transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.12);
}

/* ==========================================================================
   TASA BCV
   ========================================================================== */
.tasa-bcv-display {
    text-align: center; font-size: 0.95rem; color: var(--success);  font-weight: 600;
}    

#tasa-valor {
    color: #0067b8; 
}

/* ==========================================================================
   ESTILOS DE FLECHAS Y CONTROLES DEL CARRUSEL
   ========================================================================== */
.licencias-carousel-container {
    position: relative; 
    width: 100%;
    display: flex;
    align-items: center;
    overflow: visible;
    padding: 0;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    border: none;
    width: 32px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease, opacity 0.2s ease;
    opacity: 0.75;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

.carousel-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    opacity: 1;
    transform: translateY(-50%) scale(1.05);
}

.carousel-prev {
    left: 2px;
}

.carousel-next {
    right: 2px;
}

.versions-grid {
    display: flex; 
    gap: 15px; 
    overflow-x: auto; 
    scrollbar-width: none;
    scroll-snap-type: x mandatory; 
    scroll-behavior: smooth; 
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding: 10px 20px;
}

.versions-grid::-webkit-scrollbar {
    display: none;
}

/* Contenedor principal a ancho de pantalla completo (full-width) */
.microsoft-hero-banner {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%); /* Degradado fluido estilo Microsoft */
    color: #ffffff;
    padding: 55px 5%;
    overflow: hidden;
}

/* Contenedor interno para alinear y limitar el ancho máximo */
.hero-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap; /* Se adapta perfectamente a celulares */
    flex-direction: row-reverse;
}

/* Lado izquierdo: Textos */
.hero-text-side {
    flex: 1;
    min-width: 280px;
}

.hero-text-side h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero-text-side p {
    font-size: 1.05rem;
    color: #cbd5e1;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Botón limpio y elegante */
.hero-btn {
    display: inline-block;
    background-color: #ffffff;
    color: #0f172a;
    padding: 12px 28px;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-btn:hover {
    background-color: #e2e8f0;
    transform: translateY(-2px);
}

/* Lado derecho: Imagen del monitor */
.hero-image-side {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}

.hero-image-side img {
    max-width: 100%;       /* Asegura que la imagen sea flexible y no rebase su contenedor */
    height: auto;          /* Mantiene perfectamente las proporciones originales del monitor */
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.3)); /* Le da una sombra flotante con profundidad sobre el degradado azul */
}

/* Ajustes para versión móvil */
@media (max-width: 768px) {
    .microsoft-hero-banner {
        padding: 40px 5% 20px 5%
    }
    .hero-content-wrapper {
        flex-direction: column-reverse; /* Pone la imagen arriba o abajo según prefieras */
        text-align: center;
        gap: 5px;
    }
}