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

.rw-ct {
	--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-ct *,
.rw-ct *::before,
.rw-ct *::after { box-sizing: border-box; }

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

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

/* Garantiza visibilidad sobre el hero oscuro (gana al CSS del tema padre) */
#rw-ct .rw-ct-hero .rw-ct-title,
#rw-ct .rw-ct-hero h1,
#rw-ct .rw-ct-hero h2,
#rw-ct .rw-ct-hero h3 {
	color: #ffffff;
}

/* La tarjeta del formulario es clara: su título debe ir oscuro */
#rw-ct .rw-ct-card .rw-ct-card__head h2 {
	color: var(--ink);
}

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

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

.rw-ct-hero__mesh {
	position: absolute;
	inset: -25% -10% auto -10%;
	height: 80%;
	background:
		radial-gradient(40% 50% at 18% 30%, rgba(255, 122, 26, 0.35), transparent 60%),
		radial-gradient(35% 45% at 80% 18%, rgba(80, 130, 255, 0.32), transparent 60%);
	filter: blur(34px);
	animation: rwCtFloat 15s ease-in-out infinite alternate;
}

@keyframes rwCtFloat {
	from { transform: translateY(0) scale(1); }
	to { transform: translateY(-26px) scale(1.06); }
}

.rw-ct-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: 54px 54px;
	mask-image: radial-gradient(80% 80% at 60% 30%, black, transparent 80%);
	opacity: 0.5;
}

.rw-ct-hero__inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1fr 0.92fr;
	gap: 54px;
	align-items: start;
}

.rw-ct-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: 26px;
}

.rw-ct-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-ct-title {
	font-size: clamp(36px, 5vw, 66px);
	line-height: 0.98;
	margin-bottom: 22px;
}

.rw-ct-lead {
	max-width: 520px;
	color: rgba(255, 255, 255, 0.76);
	font-size: 18px;
	line-height: 1.6;
	margin: 0 0 34px;
}

.rw-ct-methods {
	display: grid;
	gap: 14px;
	margin-bottom: 38px;
}

.rw-ct-method {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 16px 18px;
	border-radius: 18px;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid var(--lineL);
	text-decoration: none;
	color: #fff;
	transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.rw-ct-method:hover {
	transform: translateX(4px);
	background: rgba(255, 255, 255, 0.09);
	border-color: rgba(255, 122, 26, 0.5);
}

.rw-ct-method__ic {
	flex: 0 0 auto;
	width: 46px; height: 46px;
	display: grid; place-items: center;
	border-radius: 13px;
	background: linear-gradient(135deg, var(--acid), var(--acid-2));
	color: #fff;
}

.rw-ct-method__ic svg { width: 22px; height: 22px; }
.rw-ct-method__txt small { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.6); margin-bottom: 2px; }
.rw-ct-method__txt b { font-size: 17px; }

.rw-ct-trust {
	display: flex;
	gap: 34px;
	flex-wrap: wrap;
}

.rw-ct-trust strong {
	display: block;
	font-family: "Montserrat", sans-serif;
	font-size: 28px;
	font-weight: 800;
	letter-spacing: -0.03em;
}

.rw-ct-trust span { font-size: 13px; color: rgba(255, 255, 255, 0.6); }

/* Tarjeta formulario */
.rw-ct-card {
	position: relative;
	background: var(--paper-2);
	border-radius: 28px;
	padding: 38px;
	box-shadow: 0 40px 90px rgba(0, 0, 0, 0.35);
	border: 1px solid rgba(255, 255, 255, 0.5);
	overflow: hidden;
}

.rw-ct-card__glow {
	position: absolute;
	inset: -50% 20% auto 20%;
	height: 60%;
	background: radial-gradient(50% 60% at 50% 30%, rgba(255, 122, 26, 0.25), transparent 70%);
	filter: blur(30px);
}

.rw-ct-card__head { position: relative; margin-bottom: 22px; }
.rw-ct-card__head h2 { font-size: 28px; margin-bottom: 8px; }
.rw-ct-card__head p { color: var(--muted); margin: 0; }

/* Estilizado de Contact Form 7 */
.rw-ct-form { position: relative; }

.rw-ct-form .wpcf7-form p { margin: 0 0 14px; }

.rw-ct-form input[type="text"],
.rw-ct-form input[type="email"],
.rw-ct-form input[type="tel"],
.rw-ct-form input[type="url"],
.rw-ct-form textarea,
.rw-ct-form select {
	width: 100%;
	border: 1.5px solid var(--line);
	background: #fff;
	border-radius: 14px;
	padding: 15px 16px;
	font-family: "Nunito Sans", sans-serif;
	font-size: 15px;
	color: var(--ink);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rw-ct-form input:focus,
.rw-ct-form textarea:focus,
.rw-ct-form select:focus {
	outline: none;
	border-color: var(--acid);
	box-shadow: 0 0 0 4px rgba(255, 122, 26, 0.15);
}

.rw-ct-form textarea { min-height: 130px; resize: vertical; }

.rw-ct-form .wpcf7-submit {
	width: 100%;
	border: 0;
	cursor: pointer;
	min-height: 56px;
	padding: 0 26px;
	border-radius: 999px;
	font-family: "Montserrat", sans-serif;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #fff;
	background: linear-gradient(135deg, var(--acid), var(--acid-2));
	box-shadow: 0 14px 32px rgba(255, 122, 26, 0.32);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rw-ct-form .wpcf7-submit:hover {
	transform: translateY(-3px);
	box-shadow: 0 20px 44px rgba(255, 122, 26, 0.42);
}

/* Fuerza texto blanco del botón (gana al CSS del tema padre) */
#rw-ct .rw-ct-form input.wpcf7-submit {
	color: #ffffff;
	background: linear-gradient(135deg, var(--acid), var(--acid-2));
}

.rw-ct-form .wpcf7-not-valid-tip { color: #d8431f; font-size: 13px; margin-top: 4px; }
.rw-ct-form .wpcf7-response-output {
	margin: 14px 0 0 !important;
	border-radius: 12px;
	padding: 12px 16px !important;
	font-size: 14px;
}

/* ============================ SECCIONES ============================ */
.rw-ct-section { padding: 90px 0; }

.rw-ct-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.rw-ct-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: 14px;
}
.rw-ct-head h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1; }

.rw-ct-feats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.rw-ct-feat {
	padding: 32px;
	border-radius: 22px;
	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-ct-feat:hover {
	transform: translateY(-4px);
	border-color: rgba(255, 122, 26, 0.45);
	box-shadow: 0 18px 40px rgba(17, 17, 24, 0.1);
}

.rw-ct-feat__ic { font-size: 30px; display: block; margin-bottom: 14px; }
.rw-ct-feat h3 { font-size: 22px; margin-bottom: 8px; }
.rw-ct-feat p { color: var(--muted); line-height: 1.55; margin: 0; }

/* FAQ */
/* ===== Banda visual con foto ===== */
.rw-ct-band {
	position: relative;
	padding: 110px 0;
	color: #fff;
	overflow: hidden;
	text-align: center;
}
.rw-ct-band__media { position: absolute; inset: 0; z-index: 0; }
.rw-ct-band__media img { width: 100%; height: 100%; object-fit: cover; }
.rw-ct-band__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(7, 17, 42, 0.86), rgba(7, 17, 42, 0.78));
}
.rw-ct-band__inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
#rw-ct .rw-ct-band__inner h2 { color: #fff; font-size: clamp(28px, 3.6vw, 46px); line-height: 1.04; margin-bottom: 16px; }
.rw-ct-band__inner p { color: rgba(255, 255, 255, 0.84); font-size: 18px; line-height: 1.6; margin: 0; }

.rw-ct-faq { background: var(--paper-2); border-top: 1px solid var(--line); }
.rw-ct-faq__list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }

.rw-ct-faq__list details {
	padding: 22px 24px;
	border-radius: 16px;
	background: #fff;
	border: 1px solid var(--line);
}

.rw-ct-faq__list summary {
	cursor: pointer; list-style: none;
	display: flex; justify-content: space-between; gap: 18px;
	font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 17px;
}
.rw-ct-faq__list summary::-webkit-details-marker { display: none; }
.rw-ct-faq__list summary::after { content: "+"; color: var(--acid); font-size: 22px; }
.rw-ct-faq__list details[open] summary::after { content: "\2212"; }
.rw-ct-faq__list p { margin: 12px 0 0; color: var(--muted); line-height: 1.6; }

/* ============================ RESPONSIVE ============================ */
@media (max-width: 980px) {
	.rw-ct-hero__inner { grid-template-columns: 1fr; }
	.rw-ct-hero { padding: 150px 0 80px; }
	.rw-ct-feats { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	.rw-ct-card { padding: 26px; }
	.rw-ct-trust { gap: 22px; }
	.rw-ct-section { padding: 64px 0; }
}
