/* =========================================================
   Estilos generales - Yo Me Cuido Digital
   ========================================================= */

:root {
    --color-fondo: #0f172a;
    --color-fondo-claro: #f1f5f9;
    --color-panel: #020617;
    --color-acento: #4f46e5;
    --color-acento-secundario: #22c55e;
    --color-texto-claro: #f9fafb;
    --color-texto-suave: #cbd5f5;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--color-fondo-claro);
    color: #0f172a;
}

/* =========================================================
   ENCABEZADO
   ========================================================= */

.encabezado {
    position: relative;
    overflow: hidden;
    color: var(--color-texto-claro);
    background: radial-gradient(circle at top left,
    #22c1c3 0,
    #2962ff 35%,
    #1d3557 70%,
    #020617 100%);
    padding: 1.2rem 1.5rem 2.5rem;
}

/* Fondos decorativos dinámicos */
.encabezado::before,
.encabezado::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    opacity: 0.18;
    filter: blur(0.35rem);
    animation: flotando 18s infinite alternate ease-in-out;
}

.encabezado::before {
    width: 420px;
    height: 420px;
    background: conic-gradient(from 210deg,
    #38bdf8,
    #22c55e,
    #facc15,
    #38bdf8);
    top: -140px;
    left: -160px;
}

.encabezado::after {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, #0ea5e9, transparent 60%);
    bottom: -120px;
    right: -120px;
    animation-duration: 22s;
}

@keyframes flotando {
    0% { transform: translateY(0) translateX(0); }
    100% { transform: translateY(18px) translateX(14px); }
}

.encabezado-contenido {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
}

/* Barra superior con botón */
.encabezado-barra {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-bottom: 1.4rem;
}

.btn-iniciar-sesion {
    padding: 0.55rem 1.6rem;
    border-radius: 999px;
    border: none;
    background: var(--color-acento-secundario);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(10, 148, 98, 0.4);
    transition: transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.btn-iniciar-sesion:hover {
    background: #16a34a;
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(22, 163, 74, 0.55);
}

/* Textos centrales */
.encabezado-textos {
    text-align: center;
    padding: 0 1rem;
}

.badge-proyecto {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.2rem 0.8rem;
    margin-bottom: 0.4rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.45);
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--color-acento-secundario);
}

.encabezado-titulo {
    font-size: clamp(2rem, 3vw + 1.2rem, 3.1rem);
    font-weight: 700;
    margin: 0 0 0.6rem;
    letter-spacing: 0.03em;
}

.encabezado-subtitulo {
    font-size: clamp(1rem, 1.2vw + 0.6rem, 1.2rem);
    margin: 0.15rem 0;
    font-weight: 400;
    color: var(--color-texto-suave);
}

.encabezado-acciones {
    margin-top: 1.2rem;
    display: flex;
    justify-content: center;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.btn-accion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.6rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s ease,
    color 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.btn-accion.principal {
    background: var(--color-acento);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.5);
}

.btn-accion.principal:hover {
    background: #6366f1;
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(79, 70, 229, 0.7);
}

.btn-accion.secundario {
    background: transparent;
    color: #e5e7eb;
    border-color: rgba(226, 232, 240, 0.7);
}

.btn-accion.secundario:hover {
    background: rgba(15, 23, 42, 0.45);
}

/* Logos */
.encabezado-logos {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.4rem;
    flex-wrap: wrap;
}

.encabezado-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    min-width: 90px;
}

.encabezado-logo img {
    max-height: 80px;
    width: auto;
    display: block;
    filter: drop-shadow(0 6px 12px rgba(15, 23, 42, 0.65));
    transition: transform 0.2s ease, filter 0.2s ease;
}

.encabezado-logo span {
    font-size: 0.78rem;
    opacity: 0.9;
}

.encabezado-logo:hover img {
    transform: translateY(-3px) scale(1.03);
    filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.9));
}

/* =========================================================
   CONTENIDO PRINCIPAL / FORMULARIO
   ========================================================= */

.contenido-principal {
    max-width: 1100px;
    margin: 2rem auto 3rem;
    padding: 0 1rem;
}

.tarjeta-etapa {
    background: var(--color-panel);
    color: var(--color-texto-claro);
    border-radius: 1.2rem;
    padding: 1.8rem 1.6rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.4);
    margin-bottom: 1.8rem;
}

.titulo-etapa {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.badge-etapa {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.16);
}

.titulo-etapa h2 {
    font-size: 1.25rem;
    margin: 0;
}

/* Formulario */
.contenedor-formulario {
    margin-top: 0.8rem;
}

.contenedor-formulario label {
    display: block;
    font-size: 0.95rem;
    margin-top: 0.9rem;
    margin-bottom: 0.25rem;
}

.contenedor-formulario select,
.contenedor-formulario input,
.contenedor-formulario textarea {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(148, 163, 184, 0.9);
    background: #020617;
    color: var(--color-texto-claro);
    font-family: inherit;
    font-size: 0.95rem;
}

.contenedor-formulario textarea {
    min-height: 80px;
    resize: vertical;
}

.contenedor-formulario small {
    color: #9ca3af;
}

.btn-enviar {
    margin-top: 1.4rem;
    padding: 0.75rem 1.4rem;
    border-radius: 999px;
    border: none;
    background: var(--color-acento);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    width: 100%;
    max-width: 260px;
    display: inline-flex;
    justify-content: center;
    box-shadow: 0 12px 28px rgba(79, 70, 229, 0.65);
    transition: background 0.15s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.btn-enviar:hover {
    background: #6366f1;
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(79, 70, 229, 0.9);
}

.respuesta-mensaje {
    margin-top: 1rem;
    font-size: 0.9rem;
}

/* Segunda etapa: tarjetas de sugerencias */
.grid-sugerencias {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0.8rem;
}

.tarjeta-sugerencia {
    background: #020617;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 0.9rem 0.95rem;
    font-size: 0.9rem;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.7);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tarjeta-sugerencia:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.tarjeta-sugerencia h3 {
    font-size: 0.98rem;
    margin-top: 0;
    margin-bottom: 0.35rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 992px) {
    .grid-sugerencias {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .encabezado {
        padding: 1rem 1rem 2.1rem;
    }

    .encabezado-barra {
        justify-content: center;
    }

    .encabezado-logos {
        gap: 1.6rem;
    }

    .encabezado-logo img {
        max-height: 72px;
    }

    .tarjeta-etapa {
        padding: 1.4rem 1.2rem;
    }
}

@media (max-width: 560px) {
    .encabezado {
        padding: 0.9rem 0.9rem 1.8rem;
    }

    .btn-iniciar-sesion {
        width: 100%;
        max-width: 230px;
    }

    .encabezado-logos {
        flex-direction: column;
    }

    .grid-sugerencias {
        grid-template-columns: 1fr;
    }
}
