/* ============================================================
   Tipografía elegante
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============================================================
   Fondo corporativo: blanco cálido, suave, sin gradientes
   ============================================================ */
body {
    background-color: #f4f5f7;
    background-image:
        radial-gradient(circle at 20% 10%, rgba(30, 58, 95, 0.04) 0%, transparent 45%),
        radial-gradient(circle at 85% 90%, rgba(30, 58, 95, 0.04) 0%, transparent 45%);
    min-height: 100vh;
    padding: 60px 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    color: #2b2f36;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   Tarjeta principal
   ============================================================ */
.contenedor {
    background: #ffffff;
    width: 100%;
    max-width: 760px;
    border-radius: 8px;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 8px 30px rgba(15, 23, 42, 0.06);
    border: 1px solid #e6e8ec;
    padding: 56px 60px 48px;
    position: relative;
}

/* Línea decorativa superior sutil */
.contenedor::before {
    content: '';
    position: absolute;
    top: 0;
    left: 60px;
    right: 60px;
    height: 3px;
    background: #1e3a5f;
    border-radius: 0 0 3px 3px;
}

/* ============================================================
   Encabezado
   ============================================================ */
.encabezado {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 26px;
    border-bottom: 1px solid #eceef1;
}

.encabezado h1 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    color: #1e3a5f;
    font-size: 2.1em;
    font-weight: 600;
    letter-spacing: 0.3px;
    margin-bottom: 10px;
    line-height: 1.2;
}

.encabezado p {
    color: #5a6270;
    font-size: 0.98em;
    font-weight: 400;
    letter-spacing: 0.2px;
}

.subtitulo {
    color: #1e3a5f !important;
    font-weight: 500 !important;
    font-size: 0.85em !important;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    margin-top: 10px;
}

/* ============================================================
   Preguntas
   ============================================================ */
.pregunta {
    margin-bottom: 32px;
}

.etiqueta {
    display: block;
    color: #2b2f36;
    font-weight: 500;
    font-size: 0.98em;
    letter-spacing: 0.1px;
    margin-bottom: 14px;
    line-height: 1.55;
}

.etiqueta em {
    color: #1e3a5f;
    font-style: italic;
    font-weight: 500;
}

/* ============================================================
   Estrellas
   ============================================================ */
.estrellas {
    display: flex;
    gap: 8px;
    font-size: 2.1em;
    user-select: none;
    cursor: pointer;
    margin-bottom: 6px;
}

.estrella {
    color: #d7dae0;
    transition: color 0.18s ease, transform 0.18s ease;
    line-height: 1;
}

.estrella:hover,
.estrella.hover,
.estrella.activa {
    color: #c9a227; /* dorado corporativo, sobrio */
    transform: scale(1.08);
}

/* ============================================================
   Radios P4
   ============================================================ */
.opciones-radio {
    display: flex;
    gap: 32px;
    margin-top: 10px;
}

.radio-opcion {
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.96em;
    color: #3a4150;
    transition: color 0.18s ease;
}

.radio-opcion:hover {
    color: #1e3a5f;
}

.radio-opcion input[type="radio"] {
    accent-color: #1e3a5f;
    width: 17px;
    height: 17px;
    cursor: pointer;
}

/* ============================================================
   Textareas
   ============================================================ */
textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #d7dae0;
    border-radius: 6px;
    font-size: 0.95em;
    font-family: inherit;
    color: #2b2f36;
    background: #fbfbfc;
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    margin-top: 10px;
    line-height: 1.5;
}

textarea::placeholder {
    color: #9aa2ad;
    font-weight: 300;
}

textarea:focus {
    outline: none;
    border-color: #1e3a5f;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.08);
}

/* ============================================================
   Botón
   ============================================================ */
.boton-enviar {
    width: 100%;
    padding: 15px 20px;
    background: #1e3a5f;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.98em;
    font-weight: 500;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.22s ease, box-shadow 0.22s ease, transform 0.15s ease;
    margin-top: 14px;
}

.boton-enviar:hover {
    background: #162c48;
    box-shadow: 0 6px 18px rgba(30, 58, 95, 0.22);
    transform: translateY(-1px);
}

.boton-enviar:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(30, 58, 95, 0.18);
}

.boton-enviar:focus-visible {
    outline: 2px solid #1e3a5f;
    outline-offset: 3px;
}

/* ============================================================
   Errores y utilidades
   ============================================================ */
.error {
    color: #a4343a; /* rojo sobrio, no estridente */
    font-size: 0.82em;
    display: block;
    margin-top: 6px;
    min-height: 16px;
    font-weight: 400;
    letter-spacing: 0.1px;
}

.oculto {
    display: none !important;
}

/* ============================================================
   Mensaje de agradecimiento (pantalla final)
   ============================================================ */
.mensaje-exito {
    margin-top: 0;
    padding: 60px 40px;
    background: #ffffff;
    color: #1e3a5f;
    border: 1px solid #e6e8ec;
    border-top: 3px solid #1e3a5f;
    border-radius: 8px;
    text-align: center;
    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.04),
        0 8px 30px rgba(15, 23, 42, 0.06);
    animation: aparecerMensaje 0.5s ease-out;
}

.mensaje-exito h2 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2em;
    font-weight: 600;
    color: #1e3a5f;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.mensaje-exito p {
    color: #5a6270;
    font-size: 1em;
    font-weight: 400;
    letter-spacing: 0.2px;
    line-height: 1.5;
}

/* Pequeña animación de aparición */
@keyframes aparecerMensaje {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 600px) {
    .mensaje-exito {
        padding: 44px 26px;
    }
    .mensaje-exito h2 {
        font-size: 1.6em;
    }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 600px) {
    body {
        padding: 25px 14px;
    }
    .contenedor {
        padding: 36px 26px 32px;
    }
    .contenedor::before {
        left: 26px;
        right: 26px;
    }
    .encabezado h1 {
        font-size: 1.55em;
    }
    .estrellas {
        font-size: 1.85em;
        gap: 6px;
    }
    .opciones-radio {
        flex-direction: column;
        gap: 12px;
    }
    .boton-enviar {
        font-size: 0.9em;
        padding: 14px;
    }
}