/* ================= HERO ================= */

/*.hero-custom {
    padding: 140px 20px 60px;
    background: url('hero-fondo.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    min-height: 720px;
}*/

.hero-custom {
    padding: 140px 20px 60px;
    /* Un degradado radial que parece una luz iluminando el centro */
    background: radial-gradient(circle at right bottom, #0033ff 0%, #001144 20%, #000000 80%);
    color: white;
    min-height: 720px;
}


.hero-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 900;
}

.hero-text span {
    color: #3bfff2;
}

.hero-text p {
    font-size: 1.4rem;
    margin: 20px 0;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-button {
        display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    padding: 18px 40px;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    color: white;
    border-radius: 8px;
    font-weight: 400; /* 🔥 sin negrita */
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0, 114, 255, 0.3);
}

.hero-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 114, 255, 0.5);
}

.hero-button.video {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    box-shadow: none;
}

.hero-button.video:hover {
    background: rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-3px);
}


/* IMAGE */

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 75%;
    filter: drop-shadow(0px 20px 40px rgba(0,0,0,0.4));
}



/* ================= BENEFICIOS ================= */
.hero-beneficios {
    display: flex;
    flex-direction: column;
    gap: 8px; /* espacio controlado entre líneas */
    margin: 15px 0;
}

.hero-beneficios div {
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 500;
}

/* ================= SECTIONS ================= */

.section {
    padding: 80px 20px;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.dark {
    background: #0b7f86;
    color: white;
}

/* GRID */

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px,1fr));
    gap: 30px;
    max-width: 1100px;
    margin: auto;
}

/* CARD */

/* .card {
    background: linear-gradient(135deg, #00c9a7, #005f73);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    transition: 0.3s;
    color: white; 
} */

.card {
    
    border-radius: 10px;
    padding: 40px 25px;
    transition: 0.3s;
    color: rgb(23, 46, 82);
    text-align: center;
}

/* ICONO (opcional) */
.card-icon {
    max-width: 60%;
    
    margin: 0 auto 40px;

    overflow: hidden; /* 🔥 CLAVE */
    display: flex;
}

/* IMAGEN OCUPA TODO */
.card-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 🔥 llena el círculo */
}

/* TEXTO */

.card h3 {
    margin-bottom: 10px;
}

.card p {
    font-size: 0.95rem;
    color: #383c3c;
}

/* HOVER */

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}


.icono {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: white;
    box-shadow: 0 10px 25px rgba(0, 114, 255, 0.3);
}
/* ================= DEMO ================= */

.demo-container img {
    max-width: 320px;
}

/* ================= CTA ================= */

.cta {
    padding: 140px 20px;
    background: linear-gradient(135deg, #1549b3, #395ba5);
    color: white;
    text-align: center;
}

.cta-container {
    max-width: 800px;
    margin: auto;
}

.cta h2 {
    font-size: 2.6rem;
    margin-bottom: 15px;
}

.cta p {
    font-size: 1.2rem;
    color: #cfd8dc;
    margin-bottom: 35px;
}

/* BOTON NUEVO PRO */
.cta-button {
    display: inline-block;
    padding: 18px 50px;
    background: linear-gradient(135deg, #ff3b3b, #ff7a00);
    color: white;
    border-radius: 50px;
    font-weight:400;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 60, 60, 0.25);
}

.cta-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(255, 60, 60, 0.35);
}

/* ================= SOLUCION ================= */

.solution-container {
    max-width: 1200px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

/* TEXTO */

.solution-text {
    flex: 1;
    text-align: left;
}

.solution-text h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.solution-text span {
    color: #95f4f4;
}

.solution-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #545454;
}

/* ITEMS */

.solution-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.solution-items div {
    background: rgba(255,255,255,0.05);
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 500;
}

/* IMAGEN */

.solution-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.solution-image img {
    max-width: 100%;
    filter: drop-shadow(0px 20px 40px rgba(0,0,0,0.5));
}


/* ================= COMPAT 2 LIGHT ================= */

.compat2 {
    padding: 200px 20px;
    text-align: center;
    background: 
        linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)),
        url('fondo-obd2.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

/* 👇 CONTENIDO CENTRADO */
.compat2-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* TITULO */
.compat2 h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.compat2 span {
    color: #ff3e3e;
}

.compat2-sub {
    font-size: 1.2rem;
    color: #cbcbcb;
}

/* ================= VIDEO HERO ================= */

.hero-video {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-video video {
    max-width: 520px; /* antes 420px */
    max-width: 440px;
    border-radius: 0;
    box-shadow: 0 20px 40px rgba(0, 157, 255, 0.4);
    object-fit: cover;
    
}




/* CONTENEDOR */
.antes-despues {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* CAJA */
.box-img {
    position: relative;
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* IMAGEN */
.box-img img {
    width: 100%;
    display: block;
}

/* LABEL */
.label {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 8px 14px;
    font-weight: 800;
    border-radius: 6px;
    font-size: 0.85rem;
}

/* COLORES */
.label.antes {
    background: #ef4444;
    color: white;
}

.label.despues {
    background: #22c55e;
    color: rgb(255, 255, 255);
}



/* TESTIMONIOS */
/* ================= TESTIMONIOS ================= */

.testimonios {
    background: #f8fafc;
}

/* TEXTO ARRIBA */
.testimonios p {
    text-align: center;
    font-size: 1.1rem;
    color: #6b7280;
}

/* CARD TESTIMONIO */
.testimonios .card {
    background: white;
    border-radius: 14px;
    padding: 30px 25px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: 0.3s;
}

/* HOVER */
.testimonios .card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 45px rgba(0,0,0,0.12);
}

/* TEXTO TESTIMONIO */
.testimonios .card p {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* NOMBRE */
.testimonios .card h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #111827;
}

/* ROL / DETALLE */
.testimonios .card span {
    font-size: 0.9rem;
    color: #6b7280;
}

/* ICONO ESTRELLA */
.testimonios .icono {
    width: 50px;
    height: 50px;
    font-size: 22px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 8px 20px rgba(251, 191, 36, 0.3);
}

.stars {
    color: #f59e0b;
    margin-bottom: 10px;
    font-size: 18px;
}


/* ================= MODAL PAGO ================= */

/* CONTENEDOR DEL MODAL */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: rgba(0,0,0,0.75);
    z-index: 9999;
}

/* ================= ESTRUCTURA DEL MODAL ================= */
.modal-content {
    background: #1e293b;
    color: white;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 0px;
    padding: 25px;
    max-width: 420px;
    width: 90%;
    margin: 0 auto;

    /* Scroll interno */
    max-height: 90vh;
    overflow-y: auto;
}

/* Scroll visual */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
}

.modal-content h3 {
    margin-bottom: 15px;
    font-size: 22px;
    text-align: center;
}

/* ================= BOTONES ================= */
/*BOTON IA */
.btn-ia {
    display: flex;
    align-items: center;
    justify-content: center; /* 🔥 centra contenido */
    gap: 8px;
width: 100%;
    background: linear-gradient(45deg, #ff3c5f, #ff8c00);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.4s ease;
}

.btn-ia:hover {
        background: linear-gradient(135deg, #2563eb, #06b6d4);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
   transform: none;
}



/* BOTÓN CANCELAR */
.btn-link {
    display: block;
    margin: 15px auto 0;
    background: transparent;
    color: #94a3b8;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    transition: 0.2s;
}

.btn-link:hover {
    color: #ffffff;
    transform: scale(1.05);
}

/* ================= RESUMEN DEL PLAN ================= */
.plan-resumen {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    padding: 12px;
    text-align: center;
    margin-bottom: 20px;
}

#planNombre {
    font-weight: 600;
    font-size: 15px;
}

#planPrecio {
    color: #00ffcc;
    font-size: 20px;
    font-weight: bold;
}

/* ================= BLOQUES DE PASOS ================= */
.paso-box {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.paso-titulo {
    font-size: 12px;
    font-weight: bold;
    color: #00ffcc;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.paso-texto {
    font-size: 14px;
    color: #cbd5e1;
    margin-bottom: 12px;
}

/* ================= TÉRMINOS ================= */
.terminos-box {
    margin: 15px 0 20px;
    padding: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
}

.check-terminos {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
}

.check-terminos input {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin: 0;
    cursor: pointer;
}

.check-terminos span {
    display: inline;
}

.check-terminos a {
    color: #f1c40f;
    text-decoration: none;
    font-weight: 600;
}

.check-terminos a:hover {
    text-decoration: underline;
}


/* ================= TÉRMINOS ================= */
.terminos-box {
    margin: 15px 0 20px;
    padding: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
}

.check-terminos {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
}

.check-terminos input {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin: 0;
    cursor: pointer;
}

.check-terminos span {
    display: inline;
}

.check-terminos a {
    color: #f1c40f;
    text-decoration: none;
    font-weight: 600;
}

.check-terminos a:hover {
    text-decoration: underline;
}


.pago-seguro-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.pago-seguro-content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 20px;
}

.pago-seguro-texto {
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1px;
}

.mp-logo {
    width: 120px;
    height: auto;
}
/* ================= INPUT ================= */
#comprobanteInput {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #0f172a;
    color: white;
    box-sizing: border-box;
}

#comprobanteInput:focus {
    border-color: #00ffcc;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,255,204,0.2);
}

/* ================= MENSAJE ERROR ================= */
.error-text {
    min-height: 18px;
    margin-top: 8px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #ff4d4d;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 480px) {
    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .modal-content h3 {
        font-size: 20px;
    }

    .btn-ia {
        padding: 14px;
        font-size: 14px;
    }

    .check-terminos {
        font-size: 13px;
    }
}

/* ================= FIN MODAL PAGO ================= */



.play-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.play-icon {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: 0.3s;
    margin-right: 10px;
}

.play-icon::before {
    content: '';
    border-left: 8px solid white;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    margin-left: 2px;
}

.hero-button.video:hover .play-icon {
    border-color: white;
    transform: scale(1.1);
}
.play-icon {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(59,130,246,0.4); }
  70% { box-shadow: 0 0 0 15px rgba(59,130,246,0); }
  100% { box-shadow: 0 0 0 0 rgba(59,130,246,0); }
}


/* ================= TITULO GRADIENT ================= */
.titulo-gradient {
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


.modal-video {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-video.active {
    display: flex;
}

.modal-video-box {
    width: 90%;
    max-width: 900px;
    position: relative;
}

.modal-video-box video {
    width: 100%;
    border-radius: 12px;
}

.cerrar-video {
    position: absolute;
    top: -45px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}


/* ================= TERMINOS Y CONDICIONES ================= */

.terminos-box {
    margin: 5px 0 10px;
}

.check-terminos {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255,255,255,0.85);
    cursor: pointer;
}

.check-terminos input {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin: 0;
    cursor: pointer;
}

.check-terminos span {
    display: inline;
}

.check-terminos a {
    color: #f1c40f;
    text-decoration: none;
    font-weight: 600;
}

.check-terminos a:hover {
    text-decoration: underline;
}

/* ================= RESPONSIVE OPTIMIZADO ================= */

@media (max-width: 768px) {
    /* HERO: Ajuste de espaciado y jerarquía */
    .hero-custom {
        padding: 120px 20px 60px; /* Reducimos padding superior */
    }

    .hero-container {
        flex-direction: column;
        text-align: left;
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 2.4rem; /* Tamaño más equilibrado */
        line-height: 1.2;
    }

    .hero-text p {
        font-size: 1.15rem;
        margin: 15px 0 25px;
    }

    .hero-buttons {
        flex-direction: column; /* Botones uno sobre otro en móviles */
        gap: 12px;
        align-items: center;
    }

    .hero-button {
        width: 100%;
        max-width: 300px;
        padding: 16px 30px;
    }

    .hero-video video {
        max-width: 100%;
        border-radius: 12px; /* Un poco de redondeo queda mejor en móvil */
    }

    /* GRID Y CARDS */
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .card {
        padding: 40px 20px;
    }

    /* ANTES Y DESPUÉS (Comparativa) */
    .antes-despues {
        flex-direction: column;
        align-items: center;
    }

    .box-img {
        max-width: 100%;
    }

    /* SECCIÓN SOLUCIÓN */
    .solution-container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .solution-text {
        text-align: center;
    }

    .solution-text h2 {
        font-size: 2.1rem;
    }

    /* CTA (Llamado a la acción) */
    .cta h2 {
        font-size: 2rem;
    }

    .cta-button {
        width: 100%;
        max-width: 280px;
        padding: 16px 20px;
    }

    /* MODAL DE PAGO: Vital para la conversión */
    .modal-content {
        padding: 20px 15px;
        width: 95%; /* Un poco más ancho en móviles */
        
    }

    .modal-content h3 {
        font-size: 1.3rem;
    }

    #planPrecio {
        font-size: 1.6rem;
    }

    .paso-texto {
        font-size: 13px; /* Mejoramos legibilidad */
    }
}

/* ================= CELULARES MUY CHICOS (iPhone SE / etc) ================= */

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 2.0rem;
    }

    .compat2 h2 {
        font-size: 1.8rem;
    }

    .card-icon {
        max-width: 50%; /* Iconos un poco más controlados */
    }
}