/* ==========================================================================
   CumpleTech · Base y primitivas reutilizables por los widgets Elementor
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	/* Compensa el header fijo al saltar a un ancla. */
	scroll-padding-top: calc(var(--ct-header-real, var(--ct-header-h)) + 24px);
}

body {
	margin: 0;
	font-family: var(--ct-font);
	font-size: var(--ct-fs-md);
	line-height: var(--ct-lh-base);
	color: var(--ct-body);
	background: var(--ct-card);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 var(--ct-space-4);
	color: var(--ct-ink);
	font-weight: 700;
	line-height: var(--ct-lh-tight);
	letter-spacing: -0.02em;
}

/* Los titulares grandes usan la familia de display, que hoy es la misma del
   texto. Un sans a este tamaño pide más peso y menos aire entre letras que un
   serif: sin esto los titulares se leen blandos. */
h1, h2 {
	font-family: var(--ct-font-display);
	font-optical-sizing: auto;
	font-weight: 800;
	letter-spacing: -0.03em;
	line-height: 1.1;
}

h3, h4, h5, h6 {
	font-family: var(--ct-font);
}

h1 { font-size: clamp(2.1rem, 4.4vw, var(--ct-fs-5xl)); }
h2 { font-size: clamp(1.7rem, 3.2vw, var(--ct-fs-3xl)); }
h3 { font-size: clamp(1.25rem, 2.2vw, var(--ct-fs-lg)); }
h4 { font-size: var(--ct-fs-lg); }
h5 { font-size: var(--ct-fs-md); }
h6 { font-size: var(--ct-fs-sm); text-transform: uppercase; letter-spacing: 0.08em; }

/* Utilidad para el tratamiento de titular en un elemento suelto. */
.ct-display {
	font-family: var(--ct-font-display);
	font-optical-sizing: auto;
	font-weight: 800;
	letter-spacing: -0.03em;
}

p { margin: 0 0 var(--ct-space-4); }
p:last-child { margin-bottom: 0; }

a {
	color: var(--ct-navy-700);
	text-decoration: none;
	transition: color var(--ct-t-fast);
}
a:hover { color: var(--ct-blue-600); }

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

ul, ol { margin: 0 0 var(--ct-space-4); padding-left: 1.25em; }
li { margin-bottom: var(--ct-space-2); }

hr {
	border: 0;
	border-top: 1px solid var(--ct-line);
	margin: var(--ct-space-6) 0;
}

blockquote {
	margin: 0 0 var(--ct-space-5);
	padding: var(--ct-space-5);
	background: var(--ct-navy-50);
	border-left: 3px solid var(--ct-orange);
	border-radius: 0 var(--ct-r-md) var(--ct-r-md) 0;
	color: var(--ct-ink);
	font-size: var(--ct-fs-lg);
	line-height: var(--ct-lh-snug);
}

code, pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	font-size: 0.9em;
}

table {
	width: 100%;
	border-collapse: collapse;
}

:focus-visible {
	outline: 3px solid var(--ct-blue);
	outline-offset: 2px;
	border-radius: 4px;
}

/* --- Accesibilidad ------------------------------------------------------ */

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.ct-skip-link {
	position: absolute;
	top: -100px;
	left: 16px;
	z-index: 999;
	padding: 12px 20px;
	background: var(--ct-navy);
	color: #fff;
	border-radius: 0 0 var(--ct-r-sm) var(--ct-r-sm);
	transition: top var(--ct-t-fast);
}
.ct-skip-link:focus {
	top: 0;
	color: #fff;
}

/* --- Contenedores ------------------------------------------------------- */

.ct-container {
	width: 100%;
	max-width: calc(var(--ct-container) + var(--ct-gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--ct-gutter);
}

.ct-container--narrow {
	max-width: calc(var(--ct-container-narrow) + var(--ct-gutter) * 2);
}

.ct-section {
	padding-block: var(--ct-section-y);
}

.ct-section--tint { background: var(--ct-bg); }
.ct-section--navy { background: var(--ct-navy); color: rgba(255, 255, 255, 0.82); }
.ct-section--navy h1,
.ct-section--navy h2,
.ct-section--navy h3,
.ct-section--navy h4 { color: #fff; }

/* --- Botones ------------------------------------------------------------ */

.ct-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--ct-space-2);
	padding: 13px 26px;
	border: 1.5px solid transparent;
	border-radius: var(--ct-r-pill);
	font-size: var(--ct-fs-sm);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-align: center;
	cursor: pointer;
	transition: background var(--ct-t-fast), color var(--ct-t-fast),
		border-color var(--ct-t-fast), transform var(--ct-t-fast), box-shadow var(--ct-t-fast);
}
.ct-btn:hover { transform: translateY(-1px); }
.ct-btn:active { transform: translateY(0); }

.ct-btn--primary {
	background: var(--ct-navy);
	border-color: var(--ct-navy);
	color: #fff;
	box-shadow: var(--ct-shadow-sm);
}
.ct-btn--primary:hover {
	background: var(--ct-navy-700);
	border-color: var(--ct-navy-700);
	color: #fff;
	box-shadow: var(--ct-shadow-md);
}

/* Acento naranjo: es el botón que empuja a la conversión. */
.ct-btn--accent {
	background: var(--ct-orange);
	border-color: var(--ct-orange);
	color: #fff;
	box-shadow: var(--ct-shadow-accent);
}
.ct-btn--accent:hover {
	background: var(--ct-orange-600);
	border-color: var(--ct-orange-600);
	color: #fff;
	box-shadow: 0 12px 28px rgba(255, 106, 31, 0.36);
}

.ct-btn--outline-accent {
	background: transparent;
	border-color: var(--ct-orange);
	color: var(--ct-orange-600);
}
.ct-btn--outline-accent:hover {
	background: var(--ct-orange);
	border-color: var(--ct-orange);
	color: #fff;
}

.ct-btn--ghost {
	background: transparent;
	border-color: var(--ct-navy);
	color: var(--ct-navy);
}
.ct-btn--ghost:hover {
	background: var(--ct-navy);
	color: #fff;
}

.ct-btn--light {
	background: #fff;
	border-color: #fff;
	color: var(--ct-navy);
}
.ct-btn--light:hover {
	background: var(--ct-navy-100);
	border-color: var(--ct-navy-100);
	color: var(--ct-navy);
}

.ct-btn--outline-light {
	background: transparent;
	border-color: rgba(255, 255, 255, 0.5);
	color: #fff;
}
.ct-btn--outline-light:hover {
	background: rgba(255, 255, 255, 0.12);
	border-color: #fff;
	color: #fff;
}

.ct-btn--sm { padding: 9px 18px; font-size: var(--ct-fs-xs); }
.ct-btn--lg { padding: 16px 34px; font-size: var(--ct-fs-base); }
.ct-btn--block { display: flex; width: 100%; }

/* --- Piezas de texto ---------------------------------------------------- */

/* El antetítulo va en naranjo: es lo que rompe el azul en cada sección. */
.ct-kicker {
	display: inline-flex;
	align-items: center;
	gap: var(--ct-space-2);
	margin-bottom: var(--ct-space-4);
	padding: 7px 16px;
	background: var(--ct-orange-100);
	border-radius: var(--ct-r-pill);
	color: var(--ct-orange-600);
	font-size: var(--ct-fs-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}
.ct-kicker::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--ct-orange);
}

.ct-kicker--navy {
	background: var(--ct-navy-100);
	color: var(--ct-navy);
}
.ct-kicker--navy::before { background: var(--ct-navy); }

.ct-kicker--light {
	background: rgba(255, 255, 255, 0.16);
	color: #fff;
}
.ct-kicker--light::before { background: var(--ct-orange-300); }

.ct-lead {
	font-size: var(--ct-fs-lg);
	line-height: var(--ct-lh-snug);
	color: var(--ct-body);
}

.ct-eyebrow {
	font-size: var(--ct-fs-xs);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--ct-muted);
}

/* --- Piezas de superficie ----------------------------------------------- */

.ct-card {
	position: relative;
	background: var(--ct-card);
	border: 1px solid var(--ct-line);
	border-radius: var(--ct-r-md);
	padding: var(--ct-space-5);
	box-shadow: var(--ct-shadow-sm);
	transition: box-shadow var(--ct-t-base), transform var(--ct-t-base), border-color var(--ct-t-base);
}

.ct-card--hover:hover {
	transform: translateY(-4px);
	border-color: var(--ct-orange-300);
	box-shadow: var(--ct-shadow-md);
}

/* Tarjeta con filo de acento arriba. */
.ct-card--accent { overflow: hidden; }
.ct-card--accent::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 4px;
	background: var(--ct-grad-accent);
}

.ct-chip {
	display: inline-flex;
	align-items: center;
	gap: var(--ct-space-2);
	padding: 9px 18px;
	background: var(--ct-card);
	border: 1px solid var(--ct-line);
	border-radius: var(--ct-r-pill);
	font-size: var(--ct-fs-sm);
	font-weight: 600;
	color: var(--ct-navy);
	/* Un chip largo con nowrap ensancha la columna que lo contiene y desborda
	   el documento entero: en una grilla los ítems tienen min-width:auto, así
	   que su ancho mínimo es el del texto sin cortar. Por eso se permite que
	   envuelva y se acota a su contenedor. */
	max-width: 100%;
	white-space: normal;
	overflow-wrap: break-word;
	transition: border-color var(--ct-t-fast), color var(--ct-t-fast), background var(--ct-t-fast);
}

/* Para chips cortos en una fila, donde partir el texto se ve peor que apretar. */
.ct-chip--nowrap { white-space: nowrap; }

.ct-chip--accent {
	background: var(--ct-orange-100);
	border-color: transparent;
	color: var(--ct-orange-600);
}

.ct-chip--outline-light {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.24);
	color: #fff;
}

.ct-icon-box {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: var(--ct-r-sm);
	background: var(--ct-navy-100);
	color: var(--ct-navy);
}
.ct-icon-box svg { width: 22px; height: 22px; }
.ct-icon-box i { font-size: 20px; }
/* Con el experimento "iconos en línea" activado, Elementor deja de usar la
   fuente de Font Awesome y pinta cada icono como un <svg> sin `fill`. El
   navegador lo pinta negro por omisión y `color` no lo toca, porque en SVG el
   relleno se controla con `fill`. Su propio CSS lo resuelve solo dentro de
   `.elementor-icon`, que es marcado de sus widgets, no del theme: acá hay que
   decirlo. La clase es exclusiva de esos iconos, siempre de un solo tono, así
   que la regla no alcanza a los SVG del set del theme —de trazo y con
   `fill="none"`— ni a un SVG multicolor subido a la biblioteca. */
svg.e-font-icon-svg { fill: currentColor; }

.ct-icon-box--blue { background: var(--ct-blue-100); color: var(--ct-blue-600); }
.ct-icon-box--orange { background: var(--ct-orange-100); color: var(--ct-orange-600); }
.ct-icon-box--red { background: var(--ct-red-100); color: var(--ct-red-600); }
.ct-icon-box--peach { background: var(--ct-peach-100); color: #b45309; }
.ct-icon-box--solid {
	background: var(--ct-grad-warm);
	color: #fff;
	box-shadow: var(--ct-shadow-accent);
}

/* --- Grillas ------------------------------------------------------------ */

/* Los ítems de una grilla o un flex tienen min-width:auto: si su contenido no
   se puede cortar, la pista crece y desborda la página. Este reset evita que
   un texto largo rompa la maqueta en móvil. */
.ct-grid > *,
.ct-hero > *,
.ct-solution > *,
.ct-module > *,
.ct-founder > * {
	min-width: 0;
}

.ct-grid { display: grid; gap: var(--ct-space-5); }
.ct-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ct-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ct-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ct-grid--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

@media (max-width: 1024px) {
	.ct-grid--4, .ct-grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
	.ct-grid--3, .ct-grid--4, .ct-grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
	.ct-grid--2, .ct-grid--3, .ct-grid--4, .ct-grid--5 { grid-template-columns: 1fr; }
}

/* --- Utilidades --------------------------------------------------------- */

.ct-text-center { text-align: center; }
.ct-mb-0 { margin-bottom: 0; }
.ct-stack > * + * { margin-top: var(--ct-space-4); }
.ct-actions { display: flex; flex-wrap: wrap; gap: var(--ct-space-3); }
.ct-actions--center { justify-content: center; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}
