/* ==========================================================================
   Rayo · Sobre Rayo (rediseño creativo)
   ========================================================================== */

.rw-sr {
	--ink: #0a1326;
	--ink-2: #07112a;
	--paper: #f3eee7;
	--paper-2: #fffaf2;
	--acid: #ff7a1a;
	--acid-2: #ffb400;
	--muted: #6f6b64;
	--line: rgba(17, 17, 24, 0.12);
	--lineL: rgba(255, 255, 255, 0.14);
	background: var(--paper);
	color: var(--ink);
	font-family: "Nunito Sans", sans-serif;
	overflow-x: hidden;
}

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

.rw-sr-container {
	width: min(1180px, calc(100% - 44px));
	margin: 0 auto;
}

.rw-sr h1,
.rw-sr h2,
.rw-sr h3 {
	font-family: "Montserrat", sans-serif;
	letter-spacing: -0.04em;
	margin: 0;
	color: var(--ink);
}

/* Garantiza visibilidad sobre fondos oscuros (gana al CSS del tema padre) */
#rw-sr .rw-sr-hero__title,
#rw-sr .rw-sr-hero h1,
#rw-sr .rw-sr-stats h2,
#rw-sr .rw-sr-stats h3,
#rw-sr .rw-sr-values h2,
#rw-sr .rw-sr-values h3,
#rw-sr .rw-sr-cta__inner h2,
#rw-sr .rw-sr-cta__inner h3,
#rw-sr .rw-sr-video__inner h2 {
	color: #ffffff;
}

.rw-sr-accent { color: var(--acid); }

/* Botones */
.rw-sr-btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 54px;
	padding: 0 26px;
	border-radius: 999px;
	font-family: "Montserrat", sans-serif;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	text-decoration: none;
	border: 1.5px solid transparent;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.rw-sr-btn--primary {
	background: linear-gradient(135deg, var(--acid), var(--acid-2));
	color: #fff;
	box-shadow: 0 14px 32px rgba(255, 122, 26, 0.32);
}
.rw-sr-btn--primary:hover { transform: translateY(-3px); box-shadow: 0 20px 44px rgba(255, 122, 26, 0.42); }

.rw-sr-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.rw-sr-btn--ghost:hover { background: rgba(255, 255, 255, 0.1); transform: translateY(-3px); }

.rw-sr-btn--light { background: #fff; color: var(--ink); }
.rw-sr-btn--light:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25); }

/* Fuerza el texto blanco de los CTA (gana al CSS del tema padre) */
#rw-sr a.rw-sr-btn--primary,
#rw-sr a.rw-sr-btn--primary span,
#rw-sr a.rw-sr-btn--ghost,
#rw-sr a.rw-sr-btn--ghost span {
	color: #ffffff;
}
#rw-sr a.rw-sr-btn--light,
#rw-sr a.rw-sr-btn--light span {
	color: var(--ink);
}

/* Section heads */
.rw-sr-section { padding: 110px 0; }
.rw-sr-head { max-width: 720px; margin-bottom: 54px; }
.rw-sr-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.rw-sr-kicker {
	display: inline-block;
	font-family: "Montserrat", sans-serif;
	font-size: 12px; font-weight: 800;
	letter-spacing: 0.18em; text-transform: uppercase;
	color: var(--acid); margin-bottom: 16px;
}
.rw-sr-kicker--light { color: var(--acid-2); }
.rw-sr-head h2 { font-size: clamp(32px, 4.4vw, 56px); line-height: 1; }
.rw-sr-head p { margin: 18px 0 0; color: var(--muted); font-size: 18px; line-height: 1.6; }

/* ============================ HERO ============================ */
.rw-sr-hero {
	position: relative;
	padding: 200px 0 130px;
	background: radial-gradient(120% 120% at 20% -10%, #12224a 0%, var(--ink) 48%, var(--ink-2) 100%);
	color: #fff;
	overflow: hidden;
}

.rw-sr-hero__mesh {
	position: absolute;
	inset: -25% -10% auto -10%;
	height: 85%;
	background:
		radial-gradient(40% 50% at 25% 25%, rgba(255, 122, 26, 0.34), transparent 60%),
		radial-gradient(35% 45% at 78% 22%, rgba(80, 130, 255, 0.3), transparent 60%),
		radial-gradient(30% 40% at 55% 75%, rgba(255, 180, 0, 0.22), transparent 60%);
	filter: blur(34px);
	animation: rwSrFloat 16s ease-in-out infinite alternate;
}

@keyframes rwSrFloat {
	from { transform: translateY(0) scale(1); }
	to { transform: translateY(-28px) scale(1.05); }
}

.rw-sr-hero__grid {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(85% 80% at 40% 30%, black, transparent 82%);
	opacity: 0.5;
}

.rw-sr-hero__inner { position: relative; z-index: 2; max-width: 920px; }

.rw-sr-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: "Montserrat", sans-serif;
	font-size: 12px; font-weight: 800;
	letter-spacing: 0.14em; text-transform: uppercase;
	color: rgba(255, 255, 255, 0.82);
	padding: 8px 16px;
	border: 1px solid var(--lineL);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.04);
	margin-bottom: 28px;
}
.rw-sr-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.25); }

.rw-sr-hero__title { font-size: clamp(38px, 5.6vw, 76px); line-height: 0.98; margin-bottom: 24px; }
.rw-sr-hero__lead { max-width: 680px; color: rgba(255, 255, 255, 0.78); font-size: 20px; line-height: 1.6; margin: 0 0 34px; }
.rw-sr-hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================ STATS STRIP ============================ */
.rw-sr-stats-strip {
	background: var(--ink);
	color: #fff;
	border-top: 1px solid var(--lineL);
	border-bottom: 1px solid var(--lineL);
	padding: 50px 0;
}

.rw-sr-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.rw-sr-stats > div { text-align: center; }

.rw-sr-stats strong {
	display: block;
	font-family: "Montserrat", sans-serif;
	font-size: clamp(38px, 5vw, 56px);
	font-weight: 800;
	letter-spacing: -0.05em;
	background: linear-gradient(135deg, var(--acid), var(--acid-2));
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
	line-height: 1;
}

.rw-sr-stats span { display: block; margin-top: 10px; color: rgba(255, 255, 255, 0.66); font-size: 14px; }

/* ============================ HISTORIA ============================ */
.rw-sr-story {
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: 50px;
	align-items: start;
}

.rw-sr-story__sticky { position: sticky; top: 120px; }
.rw-sr-story__sticky h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.02; }

.rw-sr-story__body p {
	font-size: 20px;
	line-height: 1.65;
	color: #2c2c33;
	margin: 0 0 26px;
	padding-left: 22px;
	border-left: 3px solid rgba(255, 122, 26, 0.3);
}

.rw-sr-story__body p:last-child { margin-bottom: 0; }

/* ============================ VALORES ============================ */
.rw-sr-story__photo {
	margin-top: 28px;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 24px 60px rgba(10, 19, 38, 0.18);
}
.rw-sr-story__photo img { display: block; width: 100%; height: auto; }

/* ===== VÍDEO (sección con popup) ===== */
.rw-sr-video2 {
	position: relative;
	padding: 120px 0;
	color: #fff;
	overflow: hidden;
}
.rw-sr-video2__bg { position: absolute; inset: 0; z-index: 0; }
.rw-sr-video2__bg img { width: 100%; height: 100%; object-fit: cover; }
.rw-sr-video2__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(110deg, rgba(7, 17, 42, 0.94) 0%, rgba(7, 17, 42, 0.78) 45%, rgba(7, 17, 42, 0.55) 100%);
}
.rw-sr-video2__inner {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	flex-wrap: wrap;
}
.rw-sr-video2__copy { max-width: 560px; }
#rw-sr .rw-sr-video2__copy h2 { color: #fff; font-size: clamp(30px, 4vw, 52px); line-height: 1.02; margin: 14px 0 16px; }
.rw-sr-video2__copy p { color: rgba(255, 255, 255, 0.82); font-size: 18px; line-height: 1.6; margin: 0; }

.rw-sr-playbtn {
	position: relative;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	background: none;
	border: 0;
	cursor: pointer;
	color: #fff;
	padding: 0;
}
.rw-sr-playbtn__ic {
	position: relative;
	z-index: 2;
	width: 92px;
	height: 92px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--acid), var(--acid-2));
	box-shadow: 0 18px 50px rgba(255, 122, 26, 0.5);
	transition: transform 0.25s ease;
}
.rw-sr-playbtn__ic svg { width: 38px; height: 38px; margin-left: 4px; }
.rw-sr-playbtn:hover .rw-sr-playbtn__ic { transform: scale(1.08); }
.rw-sr-playbtn__ring {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 92px;
	height: 92px;
	border-radius: 50%;
	border: 2px solid rgba(255, 255, 255, 0.5);
	animation: rwSrPulse 2.2s ease-out infinite;
}
@keyframes rwSrPulse {
	0% { opacity: 0.7; transform: translateX(-50%) scale(1); }
	100% { opacity: 0; transform: translateX(-50%) scale(1.8); }
}
.rw-sr-playbtn__txt {
	font-family: "Montserrat", sans-serif;
	font-weight: 800;
	font-size: 13px;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* ===== Modal de vídeo ===== */
.rw-sr-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.rw-sr-modal.is-open { display: flex; }
.rw-sr-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(4, 9, 22, 0.88);
	backdrop-filter: blur(6px);
	animation: rwSrFade 0.25s ease;
}
.rw-sr-modal__dialog {
	position: relative;
	z-index: 2;
	width: min(960px, 100%);
	animation: rwSrZoom 0.3s ease;
}
.rw-sr-modal__frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
	background: #000;
}
.rw-sr-modal__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rw-sr-modal__close {
	position: absolute;
	top: -48px;
	right: 0;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	transition: background 0.2s ease;
}
.rw-sr-modal__close:hover { background: rgba(255, 255, 255, 0.25); }
@keyframes rwSrFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rwSrZoom { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: scale(1); } }

.rw-sr-values { background: var(--ink); color: #fff; }

.rw-sr-values__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

.rw-sr-value {
	padding: 30px 26px;
	border-radius: 22px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--lineL);
	transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
	will-change: transform;
}

.rw-sr-value:hover {
	border-color: rgba(255, 122, 26, 0.5);
	background: rgba(255, 255, 255, 0.07);
}

.rw-sr-value__n {
	font-family: "Montserrat", sans-serif;
	font-size: 40px;
	font-weight: 800;
	color: rgba(255, 255, 255, 0.16);
	letter-spacing: -0.05em;
}

.rw-sr-value h3 { font-size: 21px; margin: 12px 0 10px; }
.rw-sr-value p { color: rgba(255, 255, 255, 0.66); line-height: 1.55; margin: 0; font-size: 15px; }

/* ============================ DISCIPLINAS ============================ */
.rw-sr-disc {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.rw-sr-disc__item {
	padding: 36px 30px;
	border-radius: 24px;
	background: var(--paper-2);
	border: 1px solid var(--line);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.rw-sr-disc__item:hover {
	transform: translateY(-5px);
	border-color: rgba(255, 122, 26, 0.45);
	box-shadow: 0 22px 50px rgba(17, 17, 24, 0.1);
}

.rw-sr-disc__item h3 { font-size: 24px; margin-bottom: 12px; line-height: 1.15; }

.rw-sr-disc__item h3 span {
	display: inline-block;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #fff;
	background: linear-gradient(135deg, var(--acid), var(--acid-2));
	padding: 5px 10px;
	border-radius: 8px;
	margin-right: 8px;
	vertical-align: middle;
}

.rw-sr-disc__item p { color: var(--muted); line-height: 1.6; margin: 0; }

/* ============================ CTA ============================ */
.rw-sr-cta { padding: 0 0 110px; }

.rw-sr-cta__inner {
	position: relative;
	overflow: hidden;
	text-align: center;
	padding: 84px 40px;
	border-radius: 36px;
	color: #fff;
	background: radial-gradient(120% 140% at 50% -20%, #12224a, var(--ink) 60%);
	border: 1px solid var(--lineL);
}

.rw-sr-cta__inner::before {
	content: "";
	position: absolute;
	inset: -40% 28% auto 28%;
	height: 70%;
	background: radial-gradient(50% 60% at 50% 30%, rgba(255, 122, 26, 0.5), transparent 70%);
	filter: blur(42px);
}

.rw-sr-cta__inner h2 { position: relative; font-size: clamp(32px, 5vw, 58px); margin-bottom: 16px; }
.rw-sr-cta__inner p { position: relative; color: rgba(255, 255, 255, 0.78); font-size: 18px; max-width: 560px; margin: 0 auto 30px; }
.rw-sr-cta__inner .rw-sr-btn { position: relative; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 980px) {
	.rw-sr-story { grid-template-columns: 1fr; }
	.rw-sr-story__sticky { position: relative; top: auto; }
	.rw-sr-stats { grid-template-columns: repeat(2, 1fr); }
	.rw-sr-values__grid { grid-template-columns: repeat(2, 1fr); }
	.rw-sr-disc { grid-template-columns: 1fr; }
	.rw-sr-hero { padding: 160px 0 100px; }
}

@media (max-width: 600px) {
	.rw-sr-section { padding: 72px 0; }
	.rw-sr-stats { grid-template-columns: 1fr 1fr; gap: 30px 16px; }
	.rw-sr-values__grid { grid-template-columns: 1fr; }
	.rw-sr-story__body p { font-size: 18px; }
}
