/*
Theme Name: Once24 Talleres
Theme URI: https://talleres.1124.com.mx
Author: Once24
Author URI: https://1124.com.mx
Description: Tema propio de Once24 para landings de talleres y cursos. Incluye la plantilla "Landing de taller" con casos descargables y formularios de FluentForms.
Version: 1.0.4
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: once24-talleres
*/

:root {
	--azul: #022873;
	--azul-2: #0a3a99;
	--verde: #39BF81;
	--verde-2: #2ea56d;
	--rojo: #dc1c2e;
	--texto: #2c3e50;
	--gris: #F2F2F2;
	--borde: #e2e6ec;
	--blanco: #ffffff;
	--radio: 14px;
	--sombra: 0 6px 24px rgba(2, 40, 115, 0.08);
	--ancho: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--texto);
	background: var(--blanco);
	-webkit-font-smoothing: antialiased;
}

body.o24-modal-abierto { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--azul); }

h1, h2, h3 { color: var(--azul); line-height: 1.2; margin: 0 0 .5em; }

.o24-contenedor {
	width: 100%;
	max-width: var(--ancho);
	margin: 0 auto;
	padding: 0 20px;
}

/* ---------- Header ---------- */
.o24-header {
	background: var(--blanco);
	border-bottom: 1px solid var(--borde);
}
.o24-header__fila {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 76px;
}
.o24-logos {
	display: flex;
	align-items: center;
	gap: 18px;
}
.o24-logos img { height: 34px; width: auto; }
.o24-logos .o24-logo-cliente { height: 54px; }
.o24-logos__x {
	font-weight: 300;
	font-size: 22px;
	color: #9aa6b5;
}
.o24-header__etiqueta {
	font-size: 13px;
	font-weight: 500;
	color: var(--azul);
	background: var(--gris);
	padding: 6px 12px;
	border-radius: 999px;
	white-space: nowrap;
}

/* ---------- Hero ---------- */
.o24-hero {
	background: var(--azul);
	background-image: radial-gradient(circle at 85% 20%, rgba(57, 191, 129, .25), transparent 45%);
	color: var(--blanco);
	padding: 64px 0 72px;
}
.o24-hero__kicker {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--verde);
	margin-bottom: 12px;
}
.o24-hero h1 {
	color: var(--blanco);
	font-size: clamp(30px, 5vw, 46px);
	font-weight: 700;
	max-width: 760px;
}
.o24-hero__subtitulo {
	font-size: clamp(20px, 2.6vw, 26px);
	font-weight: 600;
	color: var(--verde);
	margin: -4px 0 16px;
}
.o24-hero__intro {
	font-size: 18px;
	max-width: 680px;
	opacity: .92;
	margin: 0 0 28px;
}
.o24-pasos {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	list-style: none;
	padding: 0;
	margin: 0;
}
.o24-pasos li {
	display: flex;
	align-items: center;
	gap: 10px;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .18);
	padding: 10px 16px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 500;
}
.o24-pasos b {
	display: inline-grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--verde);
	color: var(--azul);
	font-size: 13px;
}

/* ---------- Secciones ---------- */
.o24-seccion { padding: 64px 0; }
.o24-seccion--gris { background: var(--gris); }
.o24-seccion__titulo {
	font-size: clamp(24px, 3.5vw, 32px);
	font-weight: 700;
	margin-bottom: 8px;
}
.o24-seccion__sub {
	margin: 0 0 32px;
	max-width: 680px;
}

/* ---------- Tarjetas de casos ---------- */
.o24-casos {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.o24-caso {
	display: flex;
	flex-direction: column;
	background: var(--blanco);
	border: 1px solid var(--borde);
	border-radius: var(--radio);
	padding: 24px;
	box-shadow: var(--sombra);
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.o24-caso:hover {
	transform: translateY(-3px);
	border-color: var(--verde);
	box-shadow: 0 10px 30px rgba(2, 40, 115, .12);
}
.o24-caso__letra {
	display: inline-grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: var(--azul);
	color: var(--blanco);
	font-weight: 700;
	font-size: 20px;
	margin-bottom: 16px;
}
.o24-caso h3 {
	font-size: 19px;
	font-weight: 600;
	margin-bottom: 8px;
}
.o24-caso p {
	margin: 0 0 20px;
	font-size: 15px;
	flex-grow: 1;
}

/* ---------- Botones ---------- */
.o24-boton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	color: var(--blanco);
	background: var(--verde);
	border: 0;
	border-radius: 10px;
	padding: 12px 20px;
	cursor: pointer;
	transition: background .15s ease;
}
.o24-boton:hover,
.o24-boton:focus-visible { background: var(--verde-2); color: var(--blanco); }
.o24-boton--azul { background: var(--azul); }
.o24-boton--azul:hover,
.o24-boton--azul:focus-visible { background: var(--azul-2); }
.o24-boton:focus-visible { outline: 3px solid rgba(57, 191, 129, .45); outline-offset: 2px; }

/* ---------- Aviso de seguridad ---------- */
.o24-aviso {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	background: #fff4f4;
	border-left: 6px solid var(--rojo);
	border-radius: 10px;
	padding: 20px 22px;
	margin-top: 40px;
}
.o24-aviso__icono {
	flex-shrink: 0;
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--rojo);
	color: var(--blanco);
	font-weight: 700;
}
.o24-aviso strong { color: var(--rojo); }
.o24-aviso p { margin: 0; }

/* ---------- Sección "ya estoy listo" ---------- */
.o24-listo {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 40px;
	align-items: start;
}
.o24-checklist {
	list-style: none;
	padding: 0;
	margin: 0;
}
.o24-checklist li {
	position: relative;
	padding: 10px 0 10px 36px;
	border-bottom: 1px solid var(--borde);
}
.o24-checklist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 12px;
	width: 22px;
	height: 22px;
	border-radius: 6px;
	background: var(--verde) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.o24-tarjeta-form {
	background: var(--blanco);
	border-radius: var(--radio);
	padding: 28px;
	box-shadow: var(--sombra);
}

/* ---------- Modal ---------- */
.o24-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(2, 20, 60, .6);
}
.o24-modal.es-visible { display: flex; }
.o24-modal__caja {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	background: var(--blanco);
	border-radius: var(--radio);
	padding: 32px 28px 28px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
}
.o24-modal__cerrar {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: 0;
	border-radius: 50%;
	background: var(--gris);
	color: var(--texto);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}
.o24-modal__caso {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	color: var(--verde-2);
	text-transform: uppercase;
	letter-spacing: .06em;
	margin-bottom: 4px;
}
.o24-modal__titulo { font-size: 22px; margin-bottom: 6px; }
.o24-modal__texto { margin: 0 0 20px; font-size: 15px; }
.o24-descarga {
	display: none;
	text-align: center;
	background: #effaf4;
	border: 1px solid #bfe9d3;
	border-radius: 12px;
	padding: 22px;
	margin-top: 8px;
}
.o24-descarga.es-visible { display: block; }
.o24-descarga p { margin: 0 0 14px; }

/* ---------- Ajustes a FluentForms ---------- */
.o24-tema .fluentform .ff-el-input--label label { font-weight: 500; color: var(--texto); }
.o24-tema .fluentform .ff-el-form-control {
	font-family: inherit;
	border-radius: 8px;
	border-color: var(--borde);
	padding: 11px 14px;
}
.o24-tema .fluentform .ff-el-form-control:focus { border-color: var(--verde); box-shadow: 0 0 0 3px rgba(57, 191, 129, .2); }
.o24-tema .fluentform .ff-btn-submit {
	font-family: inherit;
	font-weight: 600;
	background: var(--azul) !important;
	border-radius: 10px !important;
	padding: 12px 22px !important;
	width: 100%;
}
.o24-tema .fluentform .ff-btn-submit:hover { background: var(--azul-2) !important; }
.o24-tema .ff-message-success {
	border: 0;
	border-radius: 10px;
	background: #effaf4;
	color: var(--texto);
	box-shadow: none;
}

/* ---------- Contenido genérico (page.php / index.php) ---------- */
.o24-contenido { padding: 56px 0; }
.o24-contenido .entry-content > * { max-width: 760px; }

/* ---------- Footer ---------- */
.o24-footer {
	background: var(--azul);
	color: rgba(255, 255, 255, .85);
	padding: 32px 0;
	font-size: 14px;
}
.o24-footer__fila {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.o24-footer img { height: 26px; width: auto; }
.o24-footer p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.o24-casos { grid-template-columns: repeat(2, 1fr); }
	.o24-listo { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 600px) {
	.o24-header__etiqueta { display: none; }
	.o24-logos { gap: 12px; }
	.o24-logos img { height: 26px; }
	.o24-logos .o24-logo-cliente { height: 36px; }
	.o24-hero { padding: 44px 0 52px; }
	.o24-seccion { padding: 48px 0; }
	.o24-casos { grid-template-columns: 1fr; }
	.o24-modal { align-items: flex-end; padding: 0; }
	.o24-modal__caja { border-radius: var(--radio) var(--radio) 0 0; max-height: 92vh; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.o24-caso { transition: none; }
}
