/* ==========================================================================
   TORREJÓN SOCIOS — CSS público
   Sistema de diseño:
   --torsoc-rojo:        #CC1B1B  (corporativo, del escudo)
   --torsoc-rojo-oscuro: #8F1212
   --torsoc-negro:       #0A0A0A
   --torsoc-antracita:   #1C1C1E
   --torsoc-blanco:      #FFFFFF
   --torsoc-plata:       #C7C9CC  (detalle metálico)
   Tipografía: Barlow Condensed (display) + Inter (texto)
   Firma visual: cinta diagonal roja (tomada del carnet oficial), repetida
   como elemento estructural en hero, tarjetas y confirmación.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800&family=Inter:wght@400;500;600;700&display=swap');

.torsoc {
	--torsoc-rojo: #CC1B1B;
	--torsoc-rojo-oscuro: #8F1212;
	--torsoc-negro: #0A0A0A;
	--torsoc-antracita: #1C1C1E;
	--torsoc-blanco: #FFFFFF;
	--torsoc-plata: #C7C9CC;
	--torsoc-plata-oscura: #8A8D91;
	--torsoc-radio: 14px;
	--torsoc-sombra: 0 20px 50px -20px rgba(0,0,0,.45);
	--torsoc-transicion: .35s cubic-bezier(.16,1,.3,1);

	font-family: 'Inter', sans-serif;
	color: var(--torsoc-antracita);
	background: var(--torsoc-blanco);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

.torsoc *, .torsoc *::before, .torsoc *::after { box-sizing: border-box; }

.torsoc h1, .torsoc h2, .torsoc h3 {
	font-family: 'Barlow Condensed', sans-serif;
	text-transform: uppercase;
	letter-spacing: .02em;
	margin: 0;
}

@media (prefers-reduced-motion: reduce) {
	.torsoc *, .torsoc *::before, .torsoc *::after {
		animation-duration: .001ms !important;
		transition-duration: .001ms !important;
	}
}

/* ---------------------------- HERO ---------------------------- */
.torsoc-hero {
	position: relative;
	min-height: 92vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(160deg, var(--torsoc-negro) 0%, #1a1a1a 55%, var(--torsoc-rojo-oscuro) 130%);
	overflow: hidden;
	padding: 40px 20px;
}

.torsoc-hero__overlay {
	position: absolute; inset: 0;
	background:
		radial-gradient(ellipse at 30% 20%, rgba(204,27,27,.25), transparent 55%),
		linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,.15));
}

/* Cinta diagonal — firma visual tomada directamente del carnet oficial */
.torsoc-hero__cinta {
	position: absolute;
	top: -20%; right: -10%;
	width: 45%; height: 160%;
	background: linear-gradient(180deg, var(--torsoc-rojo), var(--torsoc-rojo-oscuro));
	transform: rotate(18deg);
	opacity: .85;
	box-shadow: -40px 0 80px rgba(204,27,27,.35);
}

.torsoc-hero__contenido {
	position: relative;
	z-index: 2;
	text-align: center;
	max-width: 720px;
	animation: torsoc-fade-up .9s var(--torsoc-transicion) both;
}

.torsoc-hero__escudo {
	margin-bottom: 24px;
	filter: drop-shadow(0 10px 25px rgba(0,0,0,.5));
	animation: torsoc-fade-up .9s var(--torsoc-transicion) both .1s;
}

.torsoc-hero__eyebrow {
	color: var(--torsoc-plata);
	font-weight: 600;
	letter-spacing: .3em;
	text-transform: uppercase;
	font-size: .85rem;
	margin-bottom: 12px;
}

.torsoc-hero__titulo {
	color: var(--torsoc-blanco);
	font-size: clamp(3rem, 10vw, 6.5rem);
	font-weight: 800;
	line-height: .95;
	letter-spacing: .01em;
}

.torsoc-hero__subtitulo {
	color: var(--torsoc-plata);
	font-size: 1.15rem;
	margin: 20px 0 36px;
	font-weight: 400;
}

@keyframes torsoc-fade-up {
	from { opacity: 0; transform: translateY(24px); }
	to   { opacity: 1; transform: translateY(0); }
}

/* ---------------------------- BOTONES ---------------------------- */
.torsoc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: none;
	border-radius: 999px;
	padding: 16px 36px;
	font-family: 'Inter', sans-serif;
	font-weight: 600;
	font-size: .95rem;
	cursor: pointer;
	transition: transform var(--torsoc-transicion), box-shadow var(--torsoc-transicion), background var(--torsoc-transicion);
}
.torsoc-btn:focus-visible { outline: 3px solid var(--torsoc-plata); outline-offset: 3px; }

.torsoc-btn--primario {
	background: var(--torsoc-rojo);
	color: var(--torsoc-blanco);
	box-shadow: 0 10px 30px -8px rgba(204,27,27,.55);
}
.torsoc-btn--primario:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(204,27,27,.7); }
.torsoc-btn--primario:disabled { opacity: .4; cursor: not-allowed; box-shadow: none; }

.torsoc-btn--secundario {
	background: var(--torsoc-antracita);
	color: var(--torsoc-blanco);
}

.torsoc-btn--texto {
	background: transparent;
	color: var(--torsoc-antracita);
	padding: 16px 12px;
}
.torsoc-btn--texto:hover { color: var(--torsoc-rojo); }

/* ---------------------------- CONTADORES ---------------------------- */
.torsoc-contadores {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	background: var(--torsoc-negro);
	padding: 56px 20px;
	gap: 24px;
	text-align: center;
}
.torsoc-contador__numero {
	display: block;
	font-family: 'Barlow Condensed', sans-serif;
	font-size: clamp(2.2rem, 5vw, 3.2rem);
	font-weight: 700;
	color: var(--torsoc-blanco);
	background: linear-gradient(180deg, #fff, var(--torsoc-plata));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}
.torsoc-contador__label {
	color: var(--torsoc-plata-oscura);
	font-size: .85rem;
	letter-spacing: .08em;
	text-transform: uppercase;
}

/* ---------------------------- SECCIONES GENERALES ---------------------------- */
.torsoc-titulo-seccion {
	text-align: center;
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 700;
	margin-bottom: 48px;
	position: relative;
}
.torsoc-titulo-seccion::after {
	content: '';
	display: block;
	width: 64px; height: 4px;
	background: var(--torsoc-rojo);
	margin: 16px auto 0;
	border-radius: 4px;
}

.torsoc-motivos, .torsoc-modalidades { padding: 96px 24px; max-width: 1200px; margin: 0 auto; }

.torsoc-motivos__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 24px;
}
.torsoc-motivo {
	background: var(--torsoc-blanco);
	border: 1px solid #eee;
	border-radius: var(--torsoc-radio);
	padding: 32px 24px;
	transition: transform var(--torsoc-transicion), box-shadow var(--torsoc-transicion), border-color var(--torsoc-transicion);
	opacity: 0;
	transform: translateY(16px);
}
.torsoc-motivo.torsoc-visible { animation: torsoc-fade-up .6s var(--torsoc-transicion) forwards; }
.torsoc-motivo:hover { transform: translateY(-6px); box-shadow: var(--torsoc-sombra); border-color: var(--torsoc-rojo); }
.torsoc-motivo__icono {
	width: 52px; height: 52px;
	display: flex; align-items: center; justify-content: center;
	background: var(--torsoc-negro);
	color: var(--torsoc-blanco);
	border-radius: 12px;
	font-size: 1.4rem;
	margin-bottom: 16px;
}
.torsoc-motivo h3 { font-size: 1.3rem; margin-bottom: 8px; text-transform: none; }
.torsoc-motivo p { color: #555; font-size: .92rem; line-height: 1.5; margin: 0; }

/* ---------------------------- TARJETAS DE SOCIO ---------------------------- */
.torsoc-tarjetas {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 32px;
	max-width: 760px;
	margin: 0 auto;
}
.torsoc-tarjeta-socio {
	position: relative;
	background: var(--torsoc-blanco);
	border: 2px solid #eee;
	border-radius: 20px;
	padding: 28px;
	display: flex; flex-direction: column; align-items: center; gap: 14px;
	cursor: pointer;
	font-family: inherit;
	transition: transform var(--torsoc-transicion), border-color var(--torsoc-transicion), box-shadow var(--torsoc-transicion);
}
.torsoc-tarjeta-socio:hover { transform: translateY(-4px); box-shadow: var(--torsoc-sombra); }
.torsoc-tarjeta-socio.torsoc-seleccionada {
	border-color: var(--torsoc-rojo);
	box-shadow: 0 0 0 4px rgba(204,27,27,.15), var(--torsoc-sombra);
	transform: scale(1.02);
}
.torsoc-tarjeta-socio__check {
	position: absolute; top: 16px; right: 16px;
	width: 28px; height: 28px;
	border-radius: 50%;
	background: var(--torsoc-rojo);
	color: #fff;
	display: flex; align-items: center; justify-content: center;
	font-size: .9rem; font-weight: 700;
	opacity: 0; transform: scale(0);
	transition: all .3s cubic-bezier(.34,1.56,.64,1);
}
.torsoc-tarjeta-socio.torsoc-seleccionada .torsoc-tarjeta-socio__check { opacity: 1; transform: scale(1); }
.torsoc-tarjeta-socio__img {
	width: 100%; max-width: 260px;
	border-radius: 12px;
	box-shadow: 0 12px 30px rgba(0,0,0,.25);
}
.torsoc-tarjeta-socio__nombre { font-family: 'Barlow Condensed', sans-serif; font-size: 1.4rem; font-weight: 700; }
.torsoc-tarjeta-socio__precio { font-size: 2rem; font-weight: 700; color: var(--torsoc-rojo); font-family: 'Barlow Condensed', sans-serif; }
.torsoc-tarjeta-socio__precio small { font-size: .9rem; color: #888; font-family: 'Inter', sans-serif; font-weight: 400; }

/* ---------------------------- WIZARD ---------------------------- */
.torsoc-wizard { max-width: 760px; margin: 0 auto; padding: 40px 24px 100px; animation: torsoc-fade-up .5s var(--torsoc-transicion) both; }

.torsoc-wizard__barra { display: flex; justify-content: space-between; margin-bottom: 48px; position: relative; }
.torsoc-wizard__barra::before {
	content: ''; position: absolute; top: 18px; left: 0; right: 0; height: 2px; background: #e5e5e5; z-index: 0;
}
.torsoc-wizard__paso {
	position: relative; z-index: 1;
	display: flex; flex-direction: column; align-items: center; gap: 8px;
	font-size: .8rem; color: #999; font-weight: 600; text-transform: uppercase; letter-spacing: .05em;
	flex: 1;
}
.torsoc-wizard__paso-num {
	width: 36px; height: 36px; border-radius: 50%;
	background: #e5e5e5; color: #999;
	display: flex; align-items: center; justify-content: center;
	font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.1rem;
	transition: all var(--torsoc-transicion);
}
.torsoc-wizard__paso--activo .torsoc-wizard__paso-num,
.torsoc-wizard__paso--completo .torsoc-wizard__paso-num { background: var(--torsoc-rojo); color: #fff; }
.torsoc-wizard__paso--activo { color: var(--torsoc-antracita); }

.torsoc-paso-panel { display: none; }
.torsoc-paso-panel--activo { display: block; animation: torsoc-fade-up .4s var(--torsoc-transicion) both; }
.torsoc-paso-panel h3 { font-size: 1.6rem; margin-bottom: 24px; }

.torsoc-grid-campos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.torsoc-campo { display: flex; flex-direction: column; gap: 6px; position: relative; }
.torsoc-campo--ancho { grid-column: 1 / -1; }
.torsoc-campo label { font-size: .82rem; font-weight: 600; color: #444; }
.torsoc-campo input, .torsoc-campo textarea {
	border: 1.5px solid #ddd; border-radius: 10px; padding: 12px 14px;
	font-family: 'Inter', sans-serif; font-size: .95rem;
	transition: border-color var(--torsoc-transicion), box-shadow var(--torsoc-transicion);
}
.torsoc-campo input:focus, .torsoc-campo textarea:focus {
	outline: none; border-color: var(--torsoc-rojo); box-shadow: 0 0 0 3px rgba(204,27,27,.12);
}
.torsoc-campo.torsoc-valido input { border-color: #1f9d55; }
.torsoc-campo.torsoc-error input { border-color: var(--torsoc-rojo); }
.torsoc-campo__icono {
	position: absolute; right: 14px; top: 37px; font-size: 1rem; pointer-events: none;
}
.torsoc-campo.torsoc-valido .torsoc-campo__icono::after { content: '✓'; color: #1f9d55; font-weight: 700; }
.torsoc-campo.torsoc-error .torsoc-campo__icono::after { content: '!'; color: var(--torsoc-rojo); font-weight: 700; }
.torsoc-campo__error { font-size: .78rem; color: var(--torsoc-rojo); min-height: 1em; }

.torsoc-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.torsoc-check {
	display: flex; align-items: flex-start; gap: 10px;
	font-size: .88rem; color: #444; margin-top: 16px; cursor: pointer;
}
.torsoc-check input { margin-top: 3px; }
.torsoc-check a { color: var(--torsoc-rojo); font-weight: 600; }

.torsoc-wizard__acciones { display: flex; justify-content: space-between; align-items: center; margin-top: 36px; }

.torsoc-resumen-modalidad, .torsoc-resumen {
	background: #fafafa; border: 1px solid #eee; border-radius: var(--torsoc-radio);
	padding: 24px; font-size: .92rem;
}
.torsoc-resumen dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin: 0; }
.torsoc-resumen dt { color: #888; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.torsoc-resumen dd { margin: 0; font-weight: 600; }
.torsoc-resumen__precio { font-family: 'Barlow Condensed', sans-serif; font-size: 1.8rem; color: var(--torsoc-rojo); font-weight: 700; grid-column: 1 / -1; border-top: 1px dashed #ddd; padding-top: 14px; margin-top: 6px; }

.torsoc-turnstile { margin: 24px 0 0; display: flex; justify-content: center; }

/* ---------------------------- CONFIRMACIÓN ---------------------------- */
.torsoc-confirmacion {
	max-width: 560px; margin: 0 auto; padding: 100px 24px; text-align: center;
	animation: torsoc-fade-up .6s var(--torsoc-transicion) both;
}
.torsoc-confirmacion__check svg { width: 90px; height: 90px; }
.torsoc-confirmacion__check circle { stroke: #1f9d55; stroke-width: 2; stroke-dasharray: 166; stroke-dashoffset: 166; animation: torsoc-circulo .6s ease forwards; }
.torsoc-confirmacion__check path { stroke: #1f9d55; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: torsoc-check .3s ease forwards .5s; }
@keyframes torsoc-circulo { to { stroke-dashoffset: 0; } }
@keyframes torsoc-check { to { stroke-dashoffset: 0; } }
.torsoc-confirmacion h2 { font-size: 2.2rem; margin: 24px 0 12px; }
.torsoc-confirmacion__email-aviso { font-size: .88rem; color: #777; margin: 0 0 8px; }
.torsoc-confirmacion__numero { font-size: 1.1rem; margin: 20px 0 32px; }
.torsoc-confirmacion__numero strong { color: var(--torsoc-rojo); font-family: 'Barlow Condensed', sans-serif; font-size: 1.3rem; }

.torsoc-cerrado { text-align: center; padding: 100px 24px; color: #777; }

/* ---------------------------- RESPONSIVE ---------------------------- */
@media (max-width: 780px) {
	.torsoc-contadores { grid-template-columns: repeat(2, 1fr); }
	.torsoc-grid-campos { grid-template-columns: 1fr; }
	.torsoc-resumen dl { grid-template-columns: 1fr; }
	.torsoc-wizard__paso span:last-child { display: none; }
}

@media (max-width: 480px) {
	.torsoc-hero__titulo { font-size: 3.2rem; }
	.torsoc-btn { padding: 14px 26px; font-size: .88rem; }
}
