/* =========================================
   RESET PRINCIPAL Y VARIABLES DE COLOR
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: #111111;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.products-page {
    max-width: 1300px;
    margin: 0 auto;
}

/* =========================================
   HERO SECTION 
   ========================================= */
.hero {
    padding: 180px 40px 110px 40px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 51, 51, 0.12) 0%, rgba(11, 11, 11, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-tag {
    background-color: rgba(255, 51, 51, 0.08);
    color: #ff3333;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 51, 51, 0.25);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 25px;
}

.hero h1 span {
    color: #ff3333;
}

.hero p {
    color: #cccccc;
    font-size: 18px;
    max-width: 750px;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn-primary-big, .btn-secondary-big {
    padding: 15px 35px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary-big {
    background-color: #ff3333;
    color: #ffffff;
}

.btn-primary-big:hover {
    background-color: #cc0000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 51, 51, 0.3);
}

.btn-secondary-big {
    background-color: #1a1a1a;
    color: #ffffff;
    border: 1px solid #2a2a2a;
}

.btn-secondary-big:hover {
    border-color: #ffffff;
    background-color: #222222;
}

/* =========================================
   SECCIONES Y ELEMENTOS COMUNES
   ========================================= */
.section-container {
    max-width: 1200px;
    margin: 0 auto 120px auto;
    padding: 0 40px;
}

.section-title {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 50px;
}

.section-title span {
    color: #ff3333;
}

/* --- CARDS DE CARACTERÍSTICAS --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    padding: 35px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: #ff3333;
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 51, 51, 0.15) 0%, rgba(255, 51, 51, 0.02) 100%);
    border: 1px solid rgba(255, 51, 51, 0.3);
    color: #ff3333;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    margin-bottom: 25px;
}

.feature-card h3 { font-size: 20px; margin-bottom: 12px; }
.feature-card p { color: #cccccc; font-size: 14px; line-height: 1.6; }

/* =========================================
   SERVICIOS ESPECIALES (Tarjetas Horizontales)
   ========================================= */
.services-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.service-card {
    display: flex;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s;
}

.service-card:hover {
    border-color: #ff3333;
}

.service-card.reverse {
    flex-direction: row-reverse;
}

.service-content {
    flex: 1;
    padding: 40px;
}

.service-tag {
    display: inline-block;
    background-color: rgba(255, 51, 51, 0.1);
    color: #ff3333;
    padding: 6px 15px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.service-content h3 {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.service-content h3 span {
    color: #ff3333;
}

.service-content p {
    color: #cccccc;
    font-size: 15px;
    margin-bottom: 25px;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.service-list li {
    color: #aaaaaa;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-list i {
    color: #ff3333;
    font-size: 16px;
    width: 20px;
}

.service-list strong {
    color: #ffffff;
}

.service-visual {
    flex: 0.8;
    background: radial-gradient(circle, rgba(255, 51, 51, 0.05) 0%, rgba(17, 17, 17, 1) 100%);
    border-left: 1px solid #2a2a2a;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 120px;
    color: rgba(255, 51, 51, 0.15);
}

.service-card.reverse .service-visual {
    border-left: none;
    border-right: 1px solid #2a2a2a;
}

/* =========================================
   LÍNEA DE TIEMPO DEL EXAMEN
   ========================================= */
.section-subtitle {
    text-align: center;
    color: #cccccc;
    font-size: 16px;
    max-width: 800px;
    margin: -30px auto 50px auto;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    position: relative;
}

/* Línea conectora de fondo */
.timeline-grid::before {
    content: '';
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background-color: #2a2a2a;
    z-index: 0;
}

.timeline-item {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 40px 30px 30px 30px;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: transform 0.3s;
}

.timeline-item:hover {
    transform: translateY(-5px);
    border-color: #ff3333;
}

.timeline-icon {
    width: 60px;
    height: 60px;
    background-color: #ff3333;
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: -70px auto 20px auto; 
    border: 6px solid #111111;
    box-shadow: 0 5px 15px rgba(255, 51, 51, 0.3);
}

.timeline-item h4 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ffffff;
}

.timeline-item p {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================
   OFERTAS (MAQUETACIÓN TIPO BUNDLES)
   ========================================= */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.offer-card {
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.offer-card:hover {
    border-color: #ff3333;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.offer-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(255, 51, 51, 0.1);
    color: #ff3333;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(255, 51, 51, 0.25);
    text-transform: uppercase;
}

/* Variación premium para las ofertas más destacadas */
.offer-card.premium-badge {
    border-color: #333333;
}
.offer-card.premium-badge .offer-badge {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    border-color: rgba(46, 204, 113, 0.25);
}
.offer-card.premium-badge:hover {
    border-color: #2ecc71;
}

.offer-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 20px;
}

.offer-desc {
    color: #cccccc;
    font-size: 14px;
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.6;
}

.offer-discount {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    border-top: 1px solid #2a2a2a;
    padding-top: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.offer-discount span {
    font-size: 13px;
    color: #888888;
    font-weight: 500;
}

/* =========================================
   NUEVA SECCIÓN CONTACTO (TRIPLE B)
   ========================================= */
.contact-wrapper {
    display: flex;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.contact-map {
    flex: 1.2; /* El mapa ocupa un poco más de espacio visual */
    min-height: 450px;
    background-color: #0a0a0a;
    border-right: 1px solid #2a2a2a;
}

.contact-info-box {
    flex: 1;
    padding: 45px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-box h3 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 30px;
    color: #ffffff;
}

.contact-info-box h3 span {
    color: #ff3333;
}

.info-group {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.info-group i {
    font-size: 20px;
    color: #ff3333;
    margin-top: 3px;
    width: 25px;
    text-align: center;
}

.info-group strong {
    color: #ffffff;
    font-size: 15px;
    display: block;
    margin-bottom: 3px;
}

.info-group p {
    color: #cccccc;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.contact-hours {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    padding-top: 25px;
    border-top: 1px dashed #2a2a2a;
}

.hour-block h4 {
    color: #ff3333;
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 8px;
    font-weight: 700;
}

.hour-block p {
    color: #cccccc;
    font-size: 13px;
    line-height: 1.6;
}

/* =========================================
   WIDGET WHATSAPP FLOTANTE
   ========================================= */
.wa-widget-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'Poppins', sans-serif;
}

/* --- Botón Flotante --- */
.wa-floating-btn {
    width: 60px;
    height: 60px;
    background-color: #25D366; /* Verde oficial de WA para reconocimiento instantáneo */
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 32px;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.wa-floating-btn:hover {
    transform: scale(1.1);
}

.wa-tooltip {
    position: absolute;
    right: 75px;
    background-color: #1a1a1a;
    color: #fff;
    font-size: 13px;
    padding: 8px 15px;
    border-radius: 20px;
    border: 1px solid #2a2a2a;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateX(10px);
}

/* Triangulito del tooltip */
.wa-tooltip::after {
    content: '';
    position: absolute;
    right: -5px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 5px solid #2a2a2a;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

.wa-floating-btn:hover .wa-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* --- Ventana de Chat --- */
.wa-chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background-color: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.wa-chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.wa-chat-header {
    background-color: #111111;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #2a2a2a;
}

.wa-header-info { display: flex; align-items: center; gap: 12px; }
.wa-avatar { width: 40px; height: 40px; background-color: rgba(255,51,51,0.1); color: #ff3333; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 18px; border: 1px solid rgba(255,51,51,0.3); }
.wa-header-info h4 { color: #fff; font-size: 15px; margin-bottom: 2px; }
.wa-header-info span { color: #25D366; font-size: 12px; font-weight: 500; }

.wa-close { background: none; border: none; color: #888; font-size: 20px; cursor: pointer; transition: 0.2s; }
.wa-close:hover { color: #fff; }

.wa-chat-body { padding: 25px 20px; min-height: 150px; }

/* Animación Escribiendo */
.wa-typing { display: flex; gap: 5px; background-color: #222; padding: 12px 18px; border-radius: 20px; width: fit-content; border-bottom-left-radius: 4px; border: 1px solid #2a2a2a; }
.wa-typing .dot { width: 8px; height: 8px; background-color: #ff3333; border-radius: 50%; animation: waBounce 1.4s infinite ease-in-out both; }
.wa-typing .dot:nth-child(1) { animation-delay: -0.32s; }
.wa-typing .dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes waBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Mensaje y Botón de Redirección */
.wa-message { background-color: #222; padding: 15px; border-radius: 12px; border-bottom-left-radius: 4px; border: 1px solid #2a2a2a; animation: fadeIn 0.4s ease; }
.wa-message p { color: #ccc; font-size: 14px; margin-bottom: 15px; line-height: 1.5; }
.wa-message p:first-child { color: #fff; font-weight: 600; font-size: 15px; margin-bottom: 8px;}

.btn-wa-redirect { display: flex; align-items: center; justify-content: center; gap: 8px; background-color: #25D366; color: #000; padding: 12px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: 14px; transition: 0.2s; }
.btn-wa-redirect:hover { background-color: #20b858; transform: translateY(-2px); }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }


/* --- RESPONSIVE GENERAL --- */
@media (max-width: 992px) {
    .hero h1 { font-size: 42px; }
    .features-grid { grid-template-columns: 1fr; gap: 20px; }
    .section-container { padding: 0 20px; margin-bottom: 80px; }
    .service-card, .service-card.reverse { flex-direction: column; }
    .service-visual { padding: 60px 0; border: none !important; border-top: 1px solid #2a2a2a !important; }
    .timeline-grid { grid-template-columns: 1fr; gap: 50px; }
    .timeline-grid::before { display: none }

    .contact-wrapper { 
        flex-direction: column; 
    }
    .contact-map { 
        border-right: none; 
        border-bottom: 1px solid #2a2a2a; 
        min-height: 350px; 
    }
    .contact-hours {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .hero { padding: 130px 20px 70px 20px; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .btn-primary-big, .btn-secondary-big { width: 100%; justify-content: center; }
        .wa-tooltip { display: none; } 
}