/* ================= HERO CUSTOM PRO ================= */

.hero-custom {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    background: #0f172a;
    color: white;
}

/* 🔥 FONDOS MODERNOS */
.hero-custom::before {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #00ffcc, transparent);
    top: -300px;
    left: -300px;
    filter: blur(120px);
}

.hero-custom::after {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #ff3c5f, transparent);
    bottom: -300px;
    right: -300px;
    filter: blur(120px);
}

/* CONTENIDO */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
}

/* TAG */
.hero-tag {
    color: #00ffcc;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 14px;
    letter-spacing: 1px;
}

/* TITULO */
.hero-custom h1 {
    font-size: 52px;
    line-height: 1.2;
    margin-bottom: 20px;
}

/* SUB */
.hero-sub {
    color: #cbd5e1;
    margin-bottom: 30px;
    font-size: 18px;
}

/* BOX */
.hero-box {
    display: flex;
    flex-direction: column; /* Apila el botón abajo */
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.hero-box textarea {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    color: white;
    font-size: 16px;
    resize: none; /* Evita redimensionar manual */
    overflow-y: auto; /* Activa scroll si crece mucho */
    max-height: 150px; /* Altura máxima antes de hacer scroll */
    min-height: 24px;
    font-family: 'Poppins', sans-serif;
    padding: 5px;
    margin-bottom: 10px;
}

.hero-box .btn-ia {
    align-self: flex-end; /* Alinea el botón a la derecha */
    width: fit-content;
}

/* INPUT */
.hero-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 15px;
    color: white;
    font-size: 16px;
}

.hero-box input::placeholder {
    color: #94a3b8;
}

/* BOTON */
.hero-box button {
    font-size: 22px;
    background: linear-gradient(45deg, #ff3c5f, #ff8c00);
    color: white;
    border: none;
    padding: 15px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.hero-box button:hover {
    transform: none;
}

/*BOTON IA */
.btn-ia {
    display: flex;
    align-items: center;
    justify-content: center; /* 🔥 centra contenido */
    gap: 8px;

    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;
}

/* ICONO */
.icon-ia {
    width: 20px;
    height: 20px;
    fill: white;
    animation: sparkle 1.5s infinite ease-in-out;
    
}

@keyframes sparkle {
    0% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0.7; }
}

/* ================= SECCION PRECIOS ================= */

.precios {
    padding: 100px 20px;
    background: #0f172a;
    color: white;
    text-align: center;
    position: relative; /* 🔥 clave */
    overflow: hidden;   /* 🔥 para que no se desborde */
}

/* 🔴 GRADIENT CONTINUADO (ARRIBA DERECHA) */
.precios::after {
    content: "";
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #ff3c5f, transparent);
    
    top: -300px;     /* 🔥 lo subimos */
    right: -300px;   /* 🔥 mismo efecto lateral */
    
    filter: blur(120px);
    z-index: 0;
}

/* 🔥 asegurar que el contenido quede arriba */
.precios > * {
    position: relative;
    z-index: 1;
}

.precios h2 {
    font-size: 40px; /* 🔥 más grande */
    margin-bottom: 10px;
}

.precios-sub {
    color: #cbd5e1;
    margin-bottom: 50px;
    font-size: 18px;
}

.precios-container {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

.plan {
    background: rgba(255,255,255,0.05);
    padding: 35px;
    border-radius: 15px;
    width: 280px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s;
}

.plan h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.precio {
    font-size: 32px; /* 🔥 más grande */
    margin-bottom: 20px;
    font-weight: bold;
}

.plan ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.plan ul li {
    font-size: 18px; /* 🔥 probá 16 o 17 */
    margin: 10px 0;
    color: #cbd5e1;
}

.plan button {
    width: 100%;
}

/* DESTACADO */
.destacado {
    border: 2px solid #06b6d4;
    transform: scale(1.07);
    box-shadow: 0 0 25px rgba(6,182,212,0.3);
}

.mini-info {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 10px;
}

.pago-seguro {
    margin-top: 60px;
    font-size: 20px;
    color: #94a3b8;
}

/* ================= COMO FUNCIONA ================= */
.como-funciona {
    padding: 100px 20px;
    background: #0f172a;
    color: white;
    text-align: center;
}

.como-funciona h2 {
    font-size: 36px;
    margin-bottom: 50px;
}

.pasos {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.paso {
    width: 260px;
}

.paso span {
    display: inline-block;
    background: linear-gradient(135deg, #2563eb, #06b6d4);
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    font-weight: bold;
    margin-bottom: 15px;
}

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

.paso p {
    color: #cbd5e1;
}


/* ================= PREGUNTAS FRECUENTES ================= */
.faq-container {
    max-width: 800px;
    margin: auto;
}

.faq {
    padding: 100px 20px;
    background: #0f172a;
    color: white;
    text-align: center;
}

.faq h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 40px;
}

/* CAJA */
.faq-item {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
}

/* PREGUNTA */
.faq-question {
    padding: 15px;
    cursor: pointer;
    font-weight: 600;
}

/* RESPUESTA */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    color: #cbd5e1;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

/* ACTIVO */
.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 15px;
}

/* ================= VENTANA ADENTRO DE LA PAGINA ================= */

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px); /* 🔥 glass effect */
    z-index: 999;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: linear-gradient(145deg, #0f172a, #020617);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid #4c5f7e;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    animation: modalIn 0.3s ease;
}

/* título */
.modal-content h3 {
    color: #e2e8f0;
    margin-bottom: 15px;
    font-size: 18px;
}

/* inputs */
.modal-content input,
.modal-content select {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #1e293b;
    background: #020617;
    color: #fff;
    outline: none;
    transition: 0.2s;
}

.modal-content input::placeholder {
    color: #64748b;
}

.modal-content input:focus,
.modal-content select:focus {
    border-color: #f97316;
    box-shadow: 0 0 0 2px rgba(249,115,22,0.2);
}

/* botones */
.modal-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    gap: 10px;
}

.modal-actions button {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
}

/* cancelar */
#cerrarModal {
    background: transparent;
    color: #94a3b8;
}

#cerrarModal:hover {
    color: #fff;
}

/* analizar */
#confirmarIA {
    background: linear-gradient(90deg, #ff3d3d, #ff7a18);
    color: #fff;
    font-weight: 600;
}

/* animación */
@keyframes modalIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .hero-custom h1 {
        font-size: 40px;
    }

.hero-box {
        flex-direction: column;
        align-items: stretch;
    }

    /* Hacemos que el botón ocupe todo el ancho disponible */
    .hero-box .btn-ia {
        align-self: stretch; /* Esto hace que se estire al ancho del contenedor */
        width: 100%;
        justify-content: center; /* Centra el icono y el texto */
        margin-top: 10px; /* Separación entre el textarea y el botón */
    }


    .hero-box textarea {
        min-height: 80px; /* Un poco más de espacio inicial en celular */
    }
    
    .hero-box input {
        text-align: center; /* 🔥 centra texto input */
    }

    .btn-ia {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}