/* Socios/as: formulario de alta (dentro de la web) y páginas propias (Mi carnet, verificar, renovar, gestión). */
:root { --sc-navy: #06172d; --sc-navy2: #0b2748; --sc-rojo: #c72632; --sc-oro: #d7b65d; --sc-crema: #f4f1ea;
  --sc-tinta: #102136; --sc-gris: #667487; --sc-linea: #dce2e8; --sc-verde: #1e7b45; --sc-naranja: #c25e00; --sc-fondo: #eef1f5; }

/* — alta en /afiliate — */
.alta-formulario { display: grid; gap: 18px; min-width: 0; }
.form-alta { display: grid; gap: 4px; }
.form-alta .form-grid { margin-bottom: 6px; }
.form-alta .check { margin: 14px 0 4px; }
.form-alta .check + .campo-error { margin-bottom: 8px; }
.form-alta select { appearance: auto; }
.form-alta button { margin-top: 18px; justify-self: start; font-size: 15px; padding: 16px 26px; }
.campo-ayuda { font-weight: 500; color: var(--sc-gris); font-size: 12px; }
.pago-seguro { color: var(--sc-gris); font-size: 13px; line-height: 1.6; margin: 10px 0 0; }
.join-nota { font-size: 14px; margin-top: 18px; }
.join-nota a { color: #fff; text-decoration: underline; }
.aviso-prueba { border-left-color: #c25e00; background: #fff4e5; color: #6b3500; }
.aviso-prueba code { background: #fff; padding: 2px 6px; font-weight: 700; white-space: nowrap; }
@media (max-width: 600px) { .form-alta button { width: 100%; justify-self: stretch; } }

/* — páginas propias — */
.sc-body { margin: 0; background: var(--sc-fondo); color: var(--sc-tinta); font-family: Manrope, "Segoe UI", Roboto, Arial, sans-serif; min-height: 100vh; }
.sc-top { background: var(--sc-navy); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: calc(12px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); }
.sc-marca { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; font-size: 12px; letter-spacing: .06em; line-height: 1.2; }
.sc-franja { height: 5px; background: linear-gradient(90deg, #c60b1e 0 33.3%, #ffc400 33.3% 66.6%, #c60b1e 66.6%); }
.sc-prueba { margin: 0; background: #fff4e5; color: #6b3500; text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .04em; padding: 8px 16px; }
.sc-main { max-width: 720px; margin: 0 auto; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px)); display: grid; gap: 20px; }
.sc-gestion .sc-main { max-width: 1180px; }
.sc-card, .sc-carnet, .sc-ancho { background: #fff; border-radius: 10px; padding: 24px; box-shadow: 0 6px 24px rgba(6, 23, 45, .07); min-width: 0; }
.sc-card h1, .sc-ancho h1 { font-family: "Playfair Display", Georgia, serif; font-size: clamp(26px, 6vw, 34px); color: var(--sc-navy); margin: 0 0 14px; text-wrap: balance; }
.sc-ancho h1 small { font-family: Manrope, Arial, sans-serif; font-size: 16px; color: var(--sc-gris); margin-left: 8px; }
.sc-card h2, .sc-ancho h2 { font-size: 18px; color: var(--sc-navy); margin: 26px 0 10px; }
.sc-card p { line-height: 1.6; }
.sc-card a, .sc-ancho a, .sc-pequeno a { color: var(--sc-rojo); }
.sc-pequeno { font-size: 13px; color: var(--sc-gris); line-height: 1.6; }
.sc-centro { text-align: center; }
.sc-form { display: grid; gap: 14px; margin: 14px 0; }
.sc-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 700; }
.sc-form input:not([type=radio]):not([type=checkbox]) { font: inherit; font-size: 16px; padding: 13px; border: 1px solid var(--sc-linea); border-radius: 4px; width: 100%; box-sizing: border-box; }
.sc-codigo { font-size: 26px !important; letter-spacing: .4em; text-align: center; }
.sc-check { display: flex !important; align-items: center; gap: 8px; font-weight: 600 !important; }
.sc-boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--sc-rojo); color: #fff !important; border: 0; border-radius: 4px;
  padding: 14px 20px; font: inherit; font-weight: 800; font-size: 14px; cursor: pointer; text-decoration: none; min-height: 48px; box-sizing: border-box; }
.sc-boton-claro { background: #fff; color: var(--sc-navy) !important; border: 1px solid var(--sc-linea); }
.sc-boton-rojo { background: #8d1220; }
.sc-boton[disabled] { opacity: .55; cursor: not-allowed; }
.sc-aviso { padding: 14px 16px; border-left: 4px solid var(--sc-navy); background: var(--sc-crema); line-height: 1.6; font-size: 15px; }
.sc-aviso-ok { border-left-color: var(--sc-verde); background: #edf6f0; color: #154d2c; }
.sc-aviso-error { border-left-color: var(--sc-rojo); background: #fbeeee; color: #8d2731; }
.sc-datos { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 16px 0; font-size: 15px; }
.sc-datos dt { color: var(--sc-gris); font-weight: 700; }
.sc-datos dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }

/* Mi carnet */
.sc-carnet { display: grid; gap: 14px; }
.sc-carnet-img { width: 100%; height: auto; display: block; border-radius: 4.5% / 7%; box-shadow: 0 14px 34px rgba(7, 21, 45, .28); }
.sc-estado { margin: 0; font-weight: 800; font-size: 14px; display: inline-block; justify-self: start; padding: 6px 12px; border-radius: 30px; }
.sc-estado-activo { background: #e3f3e9; color: var(--sc-verde); }
.sc-estado-cortesia { background: #fff1d6; color: #8a5200; }
.sc-estado-caducado { background: #ffe7d6; color: var(--sc-naranja); }
.sc-estado-baja, .sc-estado-anulado { background: #fbeeee; color: #8d2731; }
.sc-acciones { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.sc-renovar { display: grid; gap: 10px; border-top: 1px solid var(--sc-linea); padding-top: 14px; }
.sc-renovar p { margin: 0; line-height: 1.6; }
.sc-salir button { background: none; border: 1px solid #ffffff55; color: #fff; padding: 8px 14px; border-radius: 4px; font: inherit; font-size: 13px; cursor: pointer; }
.sc-offline { margin: 0; background: #fff4e5; color: #6b3500; padding: 10px 14px; border-radius: 6px; font-size: 14px; }
.sc-instalar p { margin: 8px 0; }
.sc-cargando::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; border: 3px solid var(--sc-linea); border-top-color: var(--sc-rojo); border-radius: 50%; animation: sc-giro 1s linear infinite; }
@keyframes sc-giro { to { transform: rotate(360deg); } }

/* verificar */
.sc-verif { border-radius: 14px; padding: 34px 22px; text-align: center; color: #fff; display: grid; gap: 8px; }
.sc-v-verde { background: #1e7b45; } .sc-v-naranja { background: #c25e00; } .sc-v-rojo { background: #b3202c; } .sc-v-gris { background: #4a5568; }
.sc-v-icono { margin: 0 auto; width: 76px; height: 76px; border-radius: 50%; background: #ffffff2b; display: grid; place-items: center; font-size: 44px; font-weight: 800; line-height: 1; }
.sc-v-estado { margin: 4px 0; font-size: clamp(28px, 8vw, 44px); font-weight: 800; letter-spacing: .02em; line-height: 1.1; text-wrap: balance; }
.sc-v-prueba { margin: 0; background: #fff; color: #b3202c; font-weight: 800; padding: 6px 10px; border-radius: 4px; justify-self: center; font-size: 13px; }
.sc-v-datos { margin: 14px auto 0; display: grid; gap: 2px; font-size: 18px; }
.sc-v-datos dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; opacity: .85; margin-top: 10px; }
.sc-v-datos dd { margin: 0; font-weight: 800; overflow-wrap: anywhere; }
.sc-v-datos small { font-weight: 600; font-size: 14px; }
.sc-v-pie { text-align: center; font-size: 12px; color: var(--sc-gris); line-height: 1.6; margin: 0; }

/* gestión */
.sc-gnav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.sc-gnav a, .sc-gnav button { color: #fff; text-decoration: none; font: inherit; font-size: 13px; font-weight: 700; padding: 8px 10px; border-radius: 4px; background: none; border: 0; cursor: pointer; }
.sc-gnav a:hover, .sc-gnav button:hover { background: #ffffff1a; }
.sc-gnav form { margin: 0; }
.sc-resumen { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sc-resumen li { background: var(--sc-fondo); padding: 8px 12px; border-radius: 6px; font-size: 14px; }
.sc-r-activo strong { color: var(--sc-verde); } .sc-r-cortesia strong { color: #8a5200; } .sc-r-caducado strong { color: var(--sc-naranja); }
.sc-buscador { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.sc-buscador input, .sc-buscador select { font: inherit; font-size: 15px; padding: 11px; border: 1px solid var(--sc-linea); border-radius: 4px; }
.sc-buscador input { flex: 1 1 240px; min-width: 0; }
.sc-tabla-envoltorio { overflow-x: auto; }
.sc-tabla { width: 100%; border-collapse: collapse; font-size: 14px; }
.sc-tabla th { text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--sc-gris); padding: 10px 8px; border-bottom: 2px solid var(--sc-linea); white-space: nowrap; }
.sc-tabla td { padding: 10px 8px; border-bottom: 1px solid var(--sc-linea); vertical-align: top; }
.sc-tabla .sc-estado { font-size: 12px; padding: 4px 9px; white-space: nowrap; }
.sc-etq { font-size: 11px; background: var(--sc-fondo); color: var(--sc-gris); padding: 2px 6px; border-radius: 3px; font-weight: 700; }
.sc-ficha { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 24px; align-items: start; }
.sc-ficha .sc-carnet-img { margin-bottom: 10px; }
.sc-acciones-gestion { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.sc-form-linea { margin: 0; }
.sc-peligro { border: 1px solid #f0c9cc; border-radius: 6px; padding: 10px 14px; flex: 1 1 280px; }
.sc-peligro summary { cursor: pointer; font-weight: 800; color: #8d2731; }
.sc-lista { padding-left: 18px; line-height: 1.7; font-size: 14px; }
.sc-pago-duplicado, .sc-pago-revisar { color: var(--sc-rojo); font-weight: 800; }
.sc-pago-reembolsado { color: var(--sc-gris); font-weight: 800; }
@media (max-width: 760px) { .sc-ficha { grid-template-columns: 1fr; } .sc-card, .sc-carnet, .sc-ancho { padding: 18px; } }

/* socios/as de antes de la web */
.sc-antiguo h2 { margin-top: 0; }
.sc-estreno { background: linear-gradient(135deg, #06172d, #123a72); color: #fff; border-radius: 10px; padding: 18px 20px; border-bottom: 5px solid #ffc400; }
.sc-estreno p { margin: 0; line-height: 1.6; }
.sc-estreno .sc-estreno-titulo { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.sc-opcional { font-weight: 500; color: var(--sc-gris); }
.sc-check-texto { align-items: flex-start !important; font-size: 13px; line-height: 1.5; }
.sc-check-texto input { margin-top: 3px; flex: none; }
.sc-enlace-boton { background: none; border: 0; color: var(--sc-rojo); text-decoration: underline; font: inherit; font-size: 13px; cursor: pointer; padding: 0; }
.aviso-antiguos { border-left-color: #c49a35; background: #fbf5e3; color: #4a3a10; }
.aviso-antiguos a { font-weight: 800; }
.sc-body .campo-trampa { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sc-form .sc-check-texto { font-weight: 500; }
.sc-num { white-space: nowrap; }
