/* =========================================================
   SER SIN DEJAR DE SER
   Identidad visual del programa

   Vinicio Jarquín · Coaching
========================================================= */


/* =========================================================
   1. VARIABLES
========================================================= */

:root {

    --ssds-fondo: #f6f3ee;
    --ssds-superficie: #ffffff;

    --ssds-texto: #2f2b27;
    --ssds-texto-suave: #746b63;

    --ssds-acento: #8c6b45;
    --ssds-acento-oscuro: #6f5436;
    --ssds-acento-claro: #f1ebe3;

    --ssds-borde: rgba(70, 55, 40, .12);

    --ssds-error-fondo: #fff1ef;
    --ssds-error-texto: #8e3f36;

    --ssds-exito-fondo: #eef5ed;
    --ssds-exito-texto: #456044;

    --ssds-sombra:
        0 14px 34px rgba(57, 42, 28, .07);

    --ssds-radio: 20px;

    --ssds-ancho: 1040px;
    --ssds-lectura: 760px;
}


/* =========================================================
   2. BASE
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {

    margin: 0;

    background:
        var(--ssds-fondo);

    color:
        var(--ssds-texto);

    font-family:
        "Work Sans",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.65;

    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}


/* =========================================================
   3. CONTENEDORES
========================================================= */

.container {

    width:
        min(
            var(--ssds-ancho),
            calc(100% - 32px)
        );

    margin-inline: auto;
}

.reading-width {

    width:
        min(
            var(--ssds-lectura),
            100%
        );

    margin-inline: auto;
}

.section-space {
    margin-top: 28px;
}


/* =========================================================
   4. ENCABEZADO GENERAL DEL PROGRAMA
========================================================= */

.site-header {

    background:
        var(--ssds-acento);

    color: #ffffff;

    text-align: center;

    padding:
        28px 20px 24px;
}

.site-header a {

    display: inline-block;

    text-decoration: none;
}

.site-logo {

    display: block;

    width: min(210px, 70vw);

    max-height: 72px;

    margin:
        0 auto 8px;

    object-fit: contain;
}

.site-role {

    margin: 6px 0 0;

    color:
        rgba(255, 255, 255, .88);

    font-size: .95rem;

    letter-spacing: .01em;
}


/* =========================================================
   5. NAVEGACIÓN SECUNDARIA
========================================================= */

.program-nav {

    padding:
        14px 0;

    border-bottom:
        1px solid var(--ssds-borde);

    background:
        rgba(255, 255, 255, .48);
}

.program-nav-inner {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 16px;

    flex-wrap: wrap;
}

.back-link {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    color:
        var(--ssds-acento-oscuro);

    font-weight: 700;

    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.program-name {

    color:
        var(--ssds-texto-suave);

    font-size: .9rem;
}


/* =========================================================
   6. HERO
========================================================= */

.hero {

    padding:
        52px 0 46px;

    text-align: center;
}

.hero h1 {

    max-width: 900px;

    margin:
        0 auto;

    font-family:
        "Fraunces",
        Georgia,
        serif;

    font-size:
        clamp(2.35rem, 6vw, 4.3rem);

    font-weight: 500;

    line-height: 1.05;

    letter-spacing: -.025em;

    color:
        var(--ssds-texto);
}

.hero p {

    max-width: 760px;

    margin:
        18px auto 0;

    color:
        var(--ssds-texto-suave);

    font-size:
        clamp(1rem, 2vw, 1.15rem);

    line-height: 1.7;
}


/* =========================================================
   7. TÍTULOS
========================================================= */

.section-title,
.card-title {

    margin:
        0 0 14px;

    font-family:
        "Fraunces",
        Georgia,
        serif;

    font-weight: 500;

    line-height: 1.15;

    color:
        var(--ssds-texto);
}

.section-title {
    font-size:
        clamp(1.65rem, 4vw, 2.2rem);
}

.card-title {
    font-size:
        clamp(1.45rem, 3vw, 1.9rem);
}

.eyebrow {

    margin:
        0 0 8px;

    color:
        var(--ssds-acento);

    font-size: .78rem;

    font-weight: 800;

    letter-spacing: .09em;

    text-transform: uppercase;
}


/* =========================================================
   8. TARJETAS
========================================================= */

.card,
.form-card,
.tool-card {

    background:
        var(--ssds-superficie);

    border:
        1px solid var(--ssds-borde);

    border-radius:
        var(--ssds-radio);

    box-shadow:
        var(--ssds-sombra);
}

.card {

    padding:
        clamp(24px, 5vw, 38px);
}

.card-text {

    margin:
        0 0 16px;

    color:
        var(--ssds-texto-suave);
}

.card-text:last-child {
    margin-bottom: 0;
}


/* =========================================================
   9. ACCESO DE PARTICIPANTES
========================================================= */

.access-intro {

    padding:
        44px 0 16px;

    text-align: center;
}

.access-intro h1 {

    margin: 0;

    font-family:
        "Fraunces",
        Georgia,
        serif;

    font-size:
        clamp(2.2rem, 6vw, 3.8rem);

    font-weight: 500;

    line-height: 1.08;
}

.access-intro p {

    max-width: 690px;

    margin:
        16px auto 0;

    color:
        var(--ssds-texto-suave);

    font-size: 1.03rem;
}

.access {

    padding:
        24px 0 58px;
}

.access-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 22px;

    align-items: start;
}

.form-card {

    padding:
        clamp(24px, 4vw, 32px);
}

.form-card h2 {

    margin:
        0 0 8px;

    font-family:
        "Fraunces",
        Georgia,
        serif;

    font-size:
        clamp(1.5rem, 3vw, 1.9rem);

    font-weight: 500;
}

.form-intro {

    margin:
        0 0 24px;

    color:
        var(--ssds-texto-suave);

    font-size: .95rem;
}

.tag {

    display: inline-block;

    margin-bottom: 12px;

    padding:
        5px 10px;

    border-radius: 999px;

    background:
        var(--ssds-acento-claro);

    color:
        var(--ssds-acento-oscuro);

    font-size: .75rem;

    font-weight: 800;

    letter-spacing: .02em;
}


/* =========================================================
   10. FORMULARIOS
========================================================= */

.field {
    margin-bottom: 18px;
}

.field label {

    display: block;

    margin-bottom: 6px;

    color:
        var(--ssds-texto);

    font-size: .92rem;

    font-weight: 700;
}

.field input,
.field textarea,
.field select {

    width: 100%;

    min-height: 50px;

    padding:
        12px 14px;

    border:
        1px solid rgba(70, 55, 40, .18);

    border-radius: 12px;

    background: #ffffff;

    color:
        var(--ssds-texto);

    outline: none;

    transition:
        border-color .15s ease,
        box-shadow .15s ease;
}

.field textarea {

    min-height: 130px;

    resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {

    border-color:
        var(--ssds-acento);

    box-shadow:
        0 0 0 3px
        rgba(140, 107, 69, .10);
}

.field-help {

    margin:
        6px 0 0;

    color:
        var(--ssds-texto-suave);

    font-size: .8rem;
}


/* =========================================================
   11. BOTONES
========================================================= */

.button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 48px;

    padding:
        11px 20px;

    border: 0;

    border-radius: 12px;

    background:
        var(--ssds-acento);

    color: #ffffff;

    font-weight: 800;

    text-decoration: none;

    cursor: pointer;

    transition:
        background .15s ease,
        transform .15s ease;
}

.button:hover {

    background:
        var(--ssds-acento-oscuro);

    transform:
        translateY(-1px);
}

.button:active {
    transform: translateY(0);
}

.button-outline {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 48px;

    padding:
        10px 20px;

    border:
        1px solid var(--ssds-acento);

    border-radius: 12px;

    background: transparent;

    color:
        var(--ssds-acento-oscuro);

    font-weight: 800;

    text-decoration: none;

    cursor: pointer;
}

.button-outline:hover {

    background:
        var(--ssds-acento-claro);
}

.w-100 {
    width: 100%;
}


/* =========================================================
   12. MENSAJES
========================================================= */

.message-wrap {
    padding-top: 18px;
}

.message {

    padding:
        14px 16px;

    border-radius: 12px;

    font-weight: 700;
}

.message.error {

    background:
        var(--ssds-error-fondo);

    color:
        var(--ssds-error-texto);

    border:
        1px solid rgba(142, 63, 54, .12);
}

.message.success {

    background:
        var(--ssds-exito-fondo);

    color:
        var(--ssds-exito-texto);

    border:
        1px solid rgba(69, 96, 68, .12);
}


/* =========================================================
   13. PANEL DEL PARTICIPANTE
========================================================= */

.participant-welcome {

    padding:
        42px 0 18px;
}

.participant-welcome h1 {

    margin: 0;

    font-family:
        "Fraunces",
        Georgia,
        serif;

    font-size:
        clamp(2rem, 5vw, 3.2rem);

    font-weight: 500;

    line-height: 1.1;
}

.participant-welcome p {

    margin:
        10px 0 0;

    color:
        var(--ssds-texto-suave);
}

.panel-actions {

    display: flex;

    gap: 10px;

    flex-wrap: wrap;

    margin-top: 20px;
}


/* =========================================================
   14. LISTADO DE MÓDULOS
========================================================= */

.tool-list {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.tool-card {

    display: block;

    padding:
        24px;

    color:
        var(--ssds-texto);

    text-decoration: none;

    transition:
        transform .15s ease,
        box-shadow .15s ease,
        border-color .15s ease;
}

a.tool-card:hover {

    transform:
        translateY(-2px);

    border-color:
        rgba(140, 107, 69, .30);

    box-shadow:
        0 18px 38px rgba(57, 42, 28, .10);
}

.tool-card h3 {

    margin:
        8px 0 6px;

    font-family:
        "Fraunces",
        Georgia,
        serif;

    font-size: 1.25rem;

    font-weight: 500;

    line-height: 1.25;
}

.tool-card p {

    margin: 0;

    color:
        var(--ssds-texto-suave);

    font-size: .92rem;
}

.tool-status {

    display: inline-block;

    color:
        var(--ssds-acento);

    font-size: .74rem;

    font-weight: 800;

    letter-spacing: .06em;

    text-transform: uppercase;
}

.tool-card-pending {

    opacity: .58;

    box-shadow: none;
}


/* =========================================================
   15. PROGRESO
========================================================= */

progress {

    width: 100%;

    height: 12px;

    overflow: hidden;

    border: 0;

    border-radius: 999px;

    background:
        var(--ssds-acento-claro);
}

progress::-webkit-progress-bar {

    background:
        var(--ssds-acento-claro);

    border-radius: 999px;
}

progress::-webkit-progress-value {

    background:
        var(--ssds-acento);

    border-radius: 999px;
}

progress::-moz-progress-bar {

    background:
        var(--ssds-acento);

    border-radius: 999px;
}


/* =========================================================
   16. PREGUNTAS Y EJERCICIOS
========================================================= */

.module-main {

    padding:
        34px 0 60px;
}

.question-card {

    margin-bottom: 18px;

    padding:
        clamp(22px, 4vw, 30px);

    background:
        var(--ssds-superficie);

    border:
        1px solid var(--ssds-borde);

    border-radius:
        var(--ssds-radio);

    box-shadow:
        var(--ssds-sombra);
}

.question-number {

    display: block;

    margin-bottom: 8px;

    color:
        var(--ssds-acento);

    font-size: .77rem;

    font-weight: 800;

    letter-spacing: .07em;

    text-transform: uppercase;
}

.question-card h2,
.question-card h3 {

    margin:
        0 0 16px;

    font-family:
        "Fraunces",
        Georgia,
        serif;

    font-weight: 500;

    line-height: 1.3;
}

.question-card textarea {

    width: 100%;

    min-height: 140px;

    padding:
        14px;

    border:
        1px solid rgba(70, 55, 40, .18);

    border-radius: 12px;

    background: #ffffff;

    color:
        var(--ssds-texto);

    font: inherit;

    resize: vertical;

    outline: none;
}

.question-card textarea:focus {

    border-color:
        var(--ssds-acento);

    box-shadow:
        0 0 0 3px
        rgba(140, 107, 69, .10);
}


/* =========================================================
   17. RESPUESTAS DEL PARTICIPANTE
========================================================= */

.responses-list {

    display: grid;

    gap: 18px;
}

.response-module {

    padding:
        clamp(24px, 4vw, 34px);

    background:
        var(--ssds-superficie);

    border:
        1px solid var(--ssds-borde);

    border-radius:
        var(--ssds-radio);

    box-shadow:
        var(--ssds-sombra);
}

.response-module h2 {

    margin:
        0 0 20px;

    font-family:
        "Fraunces",
        Georgia,
        serif;

    font-weight: 500;
}

.response-item {

    padding:
        18px 0;

    border-top:
        1px solid var(--ssds-borde);
}

.response-item:first-of-type {

    padding-top: 0;

    border-top: 0;
}

.response-question {

    margin:
        0 0 8px;

    font-weight: 700;
}

.response-answer {

    margin: 0;

    color:
        var(--ssds-texto-suave);

    white-space: pre-wrap;
}


/* =========================================================
   18. FRASES Y CIERRES
========================================================= */

.frase-final {

    max-width: 760px;

    margin:
        0 auto;

    font-family:
        "Fraunces",
        Georgia,
        serif;

    font-size:
        clamp(1.4rem, 3vw, 2rem);

    font-weight: 500;

    font-style: italic;

    line-height: 1.45;

    text-align: center;

    color:
        var(--ssds-acento-oscuro);
}


/* =========================================================
   19. PIE
========================================================= */

.site-footer {

    margin-top: 48px;

    padding:
        28px 20px 34px;

    border-top:
        1px solid var(--ssds-borde);

    color:
        var(--ssds-texto-suave);

    text-align: center;

    font-size: .87rem;
}

.site-footer p {

    margin:
        3px 0;
}


/* =========================================================
   20. UTILIDADES
========================================================= */

.text-center {
    text-align: center;
}

.text-muted {
    color:
        var(--ssds-texto-suave);
}

.hidden {
    display: none !important;
}


/* =========================================================
   21. TABLET Y MÓVIL
========================================================= */

@media (max-width: 760px) {

    .site-header {

        padding:
            22px 16px 20px;
    }

    .site-logo {
        width: min(190px, 72vw);
    }

    .hero {

        padding:
            38px 0 32px;
    }

    .access-intro {

        padding:
            34px 0 12px;
    }

    .access-grid,
    .tool-list {

        grid-template-columns: 1fr;
    }

    .program-nav-inner {

        align-items: flex-start;

        flex-direction: column;

        gap: 6px;
    }

    .card,
    .form-card,
    .tool-card,
    .question-card,
    .response-module {

        border-radius: 16px;
    }

    .panel-actions {

        flex-direction: column;
    }

    .panel-actions .button,
    .panel-actions .button-outline {

        width: 100%;
    }
}


/* =========================================================
   22. IMPRESIÓN / GUARDAR RESPUESTAS EN PDF
========================================================= */

@media print {

    body {

        background: #ffffff;

        color: #000000;
    }

    .site-header,
    .program-nav,
    .panel-actions,
    .button,
    .button-outline,
    .no-print {

        display: none !important;
    }

    .container,
    .reading-width {

        width: 100%;

        max-width: none;
    }

    .card,
    .response-module,
    .question-card {

        box-shadow: none;

        border:
            1px solid #dddddd;

        break-inside: avoid;
    }

    .site-footer {

        border: 0;

        margin-top: 24px;
    }
}