/* =====================
   VARIABLES
===================== */
:root {
    --verde_medio: #178369;
    --verde_claro: #3AB394;
    --verde_oscuro: #0B3827;
    --otro_verde: #145c44;;
    --bg-main: #f5f6f7;
    --bg-surface: #ffffff;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    --font: citrine-variable, sans-serif;
    --light-red: #d36b74;
    --dark-red: #cf4452;
    --yellow: #fef3c7;
}
/* =====================
   BODY
===================== */
body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg-main);
    font-family: var(--font);
    color: var(--text-main);

    display: flex;
    flex-direction: column;
    /* align-items: center;      */
    /* justify-content: center;   */
    overflow-x: hidden;       /* EVITAR SCROLL HORIZONTAL */
}

.logo-forms {
    margin-bottom: 32px;
    padding: 24px 48px;
    box-sizing: border-box;
}

.logo-forms img {
    height: 40px;
    width: auto;

}

.layout-forms {
    width: 100%;
    max-width: 1200px;
    padding: 32px 16px 64px;
    box-sizing: border-box;
    margin: 0 auto;
}


/* ===================
    DETAILS IN LEGAL PAGES      
   =================== */

.page-container {
    justify-content: left;
    align-items: center;
    text-align: left;
}


.page-container h1 {
    color: var(--verde_medio);
    font-size: 2.0rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--verde_medio);
    padding-bottom: 0.3rem;
    text-align: left;
}

.page-container h2 {
color: var(--verde_medio);
font-size: 1.4rem;
margin-top: 2rem;
margin-bottom: 1rem;
text-align: left;
}

.page-container h3 {
color: var(--verde_medio);
font-size: 1.0rem;
margin-top: 2rem;
margin-bottom: 1rem;
text-align: left;
}

.page-container strong {
font-weight: 400;
}

.page-container p {
margin-bottom: 1rem;
font-size: 14px;
text-align: left;
}

.page-container ul {
margin-left: 1.5rem;
margin-bottom: 1rem;
text-align: left;
}

.page-container li {
margin-bottom: 0.5rem;
font-size: 14px;
text-align: left;
}

.page-container a {
    color: var(--verde_medio);
    text-decoration: underline;
}


/* =====================
   FORM CARDS
===================== */

.card {
    background: var(--bg-surface);
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 32px 32px 28px;
    margin-bottom: 40px;
    width: 100%;
    box-sizing: border-box;
}
/* 
.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 24px;
}

.card p {
    font-size: 14px;
    margin-top: 12px;
    text-align: center;

} */

.card p.success-message {
    color: var(--verde_medio);
}

.card p.error-message {
    color: var(--red-border);
}

.card p.error-message.terms{
    text-align: left;
}

/* =====================
   BACK LINK
===================== */
.back-link {
    display: inline-block;
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 0;
    cursor: default; /* por defecto no es pointer hasta hover */
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--verde_medio);
    cursor: pointer;
    text-decoration: underline;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
    /* Hacer la grid de 2 columnas a 1 columna */
    .grid {
        grid-template-columns: 1fr;
    }

    /* Los field full ya ocupan 1 columna, pero aseguramos el width completo */
    .field.full {
        grid-column: 1 / -1;
    }

    /* Ajustes de padding de la card y layout */
    .card {
        padding: 16px 12px 18px;
    }
    .card .p{
        font-size: 12px;
    }

    .layout-forms {
        padding: 16px 12px 32px;
    }

    .page-container {
        padding: 16px 12px 18px;
    }

    /* Ajustar botones y términos */
    .buttons {
        flex-direction: column;
        align-items: center;   /* centra horizontalmente */
        gap: 12px;
    }

    .next-btn {
        width: 100%;           /* botón principal ocupa todo */
        max-width: 400px;      /* opcional: límite elegante */
    }

    .cancel-btn {
        width: auto;           /* no ocupa todo */
        text-align: center;
    }

    /* Modal términos y condiciones */
    .details .modal-content {
        padding: 24px;
        width: 80%;
        max-width: 500px;
    }


    /* Ajustar títulos y spacing de secciones */
    .grid h3.field.full {
        font-size: 16px;
        margin-bottom: 12px;
    }

    .field label {
        font-size: 13px;
    }
}



