/* ==========================================
   ÁREA DE SOCIO – LOGIN / RECUPERAR / RESET
   ========================================== */

/* -------------------------------------------------
   CENTRAR TÍTULO Y SUBTÍTULO SOLO EN ÁREA DE SOCIO
   ------------------------------------------------- */
.sa-main--area-socio .sa-main__header {
    max-width: 800px;
    margin: 0 auto 25px;
    text-align: center;
}

.sa-main--area-socio .sa-main__title,
.sa-main--area-socio .sa-main__subtitle {
    text-align: center;
}

/* ==========================================
   BLOQUES CENTRADOS (LOGIN / FORGOT / RESET)
   ========================================== */

/* Login centrado */
.sa-form--login {
    max-width: 420px;
    margin: 1.5rem auto 2rem;
    text-align: left;
}

/* Recuperar contraseña centrado */
.sa-form--forgot {
    max-width: 420px;
    margin: 1.5rem auto 2rem;
}

/* Nueva contraseña centrado */
.sa-form--reset {
    max-width: 420px;
    margin: 1.5rem auto 2rem;
}

/* Títulos de forgot/reset */
.sa-form--forgot .sa-form__title,
.sa-form--reset .sa-form__title {
    font-size: 1.3rem;
    text-align: left;
    margin-bottom: 1rem;
    font-family: 'Quicksand_Bold';
}

/* ==========================================
   CAMPOS DEL FORMULARIO
   ========================================== */
.sa-form__group {
    margin-bottom: 1rem;
}

.sa-form__group label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
    font-family: 'Quicksand_Bold';
    color: #000000;
}

.sa-form__group input[type="text"],
.sa-form__group input[type="email"],
.sa-form__group input[type="password"] {
    width: 100%;
    border-radius: 999px;
    border: none;
    background: #ffffff;
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
    font-family: 'Quicksand_Bold';
    outline: none;
    box-shadow: 0 0 0 1px #ddd inset;
    transition: box-shadow 0.2s ease;
}

.sa-form__group input:focus {
    box-shadow: 0 0 0 2px #c4122f inset;
}

/* ==========================================
   CHECKBOX
   ========================================== */
.sa-form__group--inline {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sa-form__group--inline input[type="checkbox"] {
    width: auto;
    margin: 0;
    box-shadow: none;
    border-radius: 3px;
}

.sa-checkbox span {
    font-size: 0.85rem;
    font-family: 'Quicksand_Book';
    color: #333;
}

/* ==========================================
   BOTONES
   ========================================== */
.sa-btn {
    display: inline-block;
    border-radius: 999px;
    padding: 0.6rem 1.8rem;
    border: none;
    cursor: pointer;
    font-family: 'Quicksand_Bold';
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.8rem;
}

/* Botón rojo */
.sa-btn--primary {
    background: #c4122f !important;
    color: #fff;
}

/* Botones de forgot/reset → ancho completo */
.sa-form--forgot .sa-btn--primary,
.sa-form--reset .sa-btn--primary {
    width: 100%;
    display: block;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
}

/* Botón del login → ancho completo */
.sa-form--login .sa-btn--primary {
    width: 100%;
    display: block;
    margin: 1.2rem 0 0;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    text-align: center;
}

/* ==========================================
   ENLACES (volver al login)
   ========================================== */
.sa-form__back {
    text-align: left;
    margin-top: 1rem;
}

.sa-form__back a {
    font-family: 'Quicksand_Book';
    font-size: 0.85rem;
    color: #555;
    text-decoration: none;
}

.sa-form__back a:hover {
    text-decoration: underline;
}

/* ==========================================
   ENLACE REGISTRO
   ========================================== */
.sa-socios__registro {
    margin-top: 1.5rem;
    text-align: center;
}

.sa-socios__registro p {
    margin: 0;
}

.sa-link--registro {
    display: inline-block;
    margin-top: 0.35rem;
    color: #c4122f !important;
    text-decoration: none;
    font-family: 'Quicksand_Bold';
}

.sa-link--registro:hover {
    text-decoration: underline;
}

/* ==========================================
   ALERTAS
   ========================================== */
.sa-socios--login .sa-alert {
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    max-width: 420px;      
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.sa-alert--error {
    background: #fee2e2;
    color: #b91c1c;
}

/* ==========================================
   LOGGED AREA
   ========================================== */
.sa-socios--logged h1 {
    font-family: 'Quicksand_Bold';
    font-size: 1.4rem;
    color: #c4122f;
}

.sa-socios--logged p {
    font-family: 'Quicksand_Bold';
    font-size: 0.95rem;
    color: #444;
}

.sa-btn--outline {
    background: transparent;
    border: 2px solid #c4122f;
    color: #c4122f;
}

/* ==========================================
   PÁGINA PRINCIPAL – ÁREA SOCIO
   ========================================== */

/* ===== HERO ===== */
.sa-area-topbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.sa-area-header {
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 40px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.sa-area-header__left {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.sa-area-greeting {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #111827;
}

.sa-area-subtitle {
    margin-top: 8px;
    font-size: 15px;
    color: #6b7280;
    font-weight: 600;
}

.sa-area-subtitle--small {
    margin-top: 4px;
    font-size: 14px;
    color: #9ca3af;
    font-weight: 500 !important;
}

/* ===== ACCIONES SUPERIOR DERECHA ===== */

.sa-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 14px;
    color: #374151;
    border: 1px solid #e5e7eb;
    background: #fff;
    text-decoration: none;
    transition: all .2s ease;
}

.sa-logout-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

/* ===== DASHBOARD ===== */

.sa-dashboard {
    margin-top: 10px;
}

.sa-dashboard__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 15px;
}

.sa-dashboard-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px 26px 24px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.06);
    transition: all .25s ease;
    display: flex;
    flex-direction: column;
}

.sa-dashboard-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.sa-dashboard-card__icon {
    font-size: 52px;
    margin-bottom: 18px;
}

.sa-dashboard-card__title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111827;
}

.sa-dashboard-card__desc {
    font-size: 14.5px;
    color: #6b7280;
    margin-bottom: 20px;
}

.sa-dashboard-card__cta {
    display: inline-block;
    margin-top: auto;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #1f2937;
    border: 1px solid #e5e7eb;
    background: #fff;
    transition: all .2s ease;
}

.sa-dashboard-card:hover .sa-dashboard-card__cta {
    background: #111827;
    color: #fff;
    border-color: #111827;
}

@media (max-width: 768px) {

    .sa-area-header {
        padding: 28px 20px;
    }

    .sa-area-header__left {
        max-width: 100%;
    }

 

    .sa-area-greeting {
        font-size: 24px;
    }
}
.sa-carnet {
    text-align: left;
    margin-top: 26px;
    margin-bottom: 26px;

}

.sa-carnet-bg {
    background-image: url('../img/fondo-carnet.png');
    background-size: cover;
    background-position: center;
    border-radius: 18px;
    padding: 24px;
    max-width: 520px;
    width: 100%;
    box-shadow: 0 20px 50px rgba(0,0,0,.15);
}

.sa-carnet__content {
    backdrop-filter: blur(4px);
    border-radius: 14px;
    padding: 20px;
}

.sa-carnet__top {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    color: #000000;
    margin-bottom: 16px;
    font-weight: 600;
}

.sa-carnet__body {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    align-items: center;
}

.sa-carnet-open{
    position:relative;
}

.sa-carnet-expand{
    position:absolute;
    bottom:14px;
    right:14px;
    width:26px;
    height:26px;
    border-radius:6px;
    padding:5px;
    color:rgb(0, 0, 0);
    pointer-events:none;
}

.sa-carnet-expand svg{
    width:100%;
    height:100%;
}

.sa-carnet__logo img {
    width: 110px;
    max-width: 100%;
    height: auto;
}


.sa-carnet__row .label {
    color: #6b7280;
}

.sa-carnet__row .value {
    font-weight: 600;
}

.sa-carnet__footer {
    margin-top: 14px;
    font-size: 12px;
    color: #9ca3af;
}
.sa-carnet__field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sa-carnet__label {
    font-size: 14px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.sa-carnet__value {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}
@media (max-width: 600px) {

    .sa-carnet-bg {
        max-width: 100%;
        padding: 16px;
    }

    .sa-carnet__content {
        padding: 14px;
    }

    .sa-carnet__body {
        grid-template-columns: 90px 1fr;
        gap: 14px;
    }

    .sa-carnet__logo img {
        width: 80px;
    }

    .sa-carnet__value {
        font-size: 16px;
    }

    .sa-carnet__label {
        font-size: 12px;
    }
}

.sa-icon-mensajes {
    position: relative;
}

.sa-badge {
    position: absolute;
    top: -6px;
    right: -8px;

    min-width: 20px;
    height: 20px;
    padding: 0 6px;

    background: #e11d48;
    color: #fff;

    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;

    display: flex;
    align-items: center;
    justify-content: center;
}
.sa-form__group--recaptcha {
  margin: 20px 0;
  display: flex;
  justify-content: center;
}
@media (max-width: 480px) {
  .sa-form__group--recaptcha {
    transform: scale(0.9);
    transform-origin: center;
  }
}

/* LIGHTBOX CARNET */

.sa-carnet-lightbox{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.85);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

.sa-carnet-lightbox.active{
    display:flex;
}

.sa-carnet-lightbox-inner{
    position:relative;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
}

/* CARNET GRANDE */
.sa-carnet-big{
    width:650px;
    max-width:95vw;
    transform:scale(.9);
    padding:40px;
    transition:transform .25s ease;
}

.sa-carnet-lightbox.active .sa-carnet-big{
    transform:scale(1);
}

/* BOTÓN CERRAR */
.sa-carnet-lightbox-close{
    position:fixed;
    top:20px;
    right:20px;
    background:none;
    border:none;
    color:#fff;
    font-size:28px;
    cursor:pointer;
    z-index:10000;
}
/* hover */
.sa-carnet-lightbox-close:hover{
    background:rgba(0,0,0,.7)!important;
}

/* eliminar estilos del tema */
.sa-carnet-lightbox-close:focus,
.sa-carnet-lightbox-close:active{
    outline:none !important;
    box-shadow:none !important;
    background:rgba(0,0,0,.7) !important;
}

.sa-carnet-open{
    cursor:pointer;
}

/* TEXTO GIRAR MÓVIL */
.sa-carnet-rotate-hint{
    color:white;
    text-align:center;
    margin-top:16px;
    font-size:14px;
    opacity:.9;
}

/* TABLET VERTICAL */
@media (orientation:portrait) and (min-width:768px) and (max-width:1024px){

.sa-carnet-big{
    width:650px;
}

.sa-carnet-rotate-hint{
    display:none;
}
.sa-carnet-big .sa-carnet-expand{
    display:none;
}

}

/* MÓVIL VERTICAL */
@media (max-width:767px) and (orientation:portrait){

.sa-carnet-big{
    width:95vw;
    padding:18px;
}

.sa-carnet-rotate-hint{
    display:block;
}
.sa-carnet-big .sa-carnet-expand{
    display:none;
}

}

/* MÓVIL HORIZONTAL */
@media (orientation:landscape) and (max-width:767px){

.sa-carnet-big{
    width:85vw;
    height:auto;
}

.sa-carnet-rotate-hint{
    display:none;
}
.sa-carnet-big .sa-carnet-expand{
    display:none;
}

}

/* TABLET HORIZONTAL */
@media (orientation:landscape) and (min-width:768px) and (max-width:1024px){

.sa-carnet-big{
    width:650px;
}

.sa-carnet-rotate-hint{
    display:none;
}
.sa-carnet-big .sa-carnet-expand{
    display:none;
}

}

/* ESCRITORIO */
@media (min-width:1025px){

.sa-carnet-rotate-hint{
    display:none;
}
.sa-carnet-big .sa-carnet-expand{
    display:none;
}

}


