/* ============================================================
   CreativeLab · Sistema de diseño (base)
   Tokens de marca, tipografía fluida, layout, hero y botones.
   Sobrescribe las variables --global-palette* de Kadence para
   que los bloques core/Kadence hereden la paleta de marca.
   Paleta fuente: ia/bot_marketing/config/marca.json
   ============================================================ */

:root {
	/* Marca */
	--cl-indigo:       #251351;
	--cl-indigo-deep:  #1b0e3d;
	--cl-violeta:      #43346C;
	--cl-magenta:      #7D2E68;
	--cl-coral:        #F27255;
	--cl-coral-soft:   #ff8b6f;
	--cl-teal:         #0093B8;
	--cl-teal-light:   #9BEEF9;

	/* Neutros cálidos */
	--cl-ink:      #211E21;
	--cl-ink-2:    #3A3B3B;
	--cl-muted:    #6f6a72;
	--cl-paper:    #FFFFFE;
	--cl-paper-2:  #F7F5F1;
	--cl-sand:     #EDEAE5;
	--cl-sand-2:   #DBD5CC;
	--cl-line:     #e7e1da;

	/* Degradés de marca */
	--cl-grad:      linear-gradient(135deg, #251351 0%, #43346C 42%, #7D2E68 100%);
	--cl-grad-warm: linear-gradient(120deg, #7D2E68 0%, #F27255 100%);
	--cl-grad-cool: linear-gradient(120deg, #251351 0%, #0093B8 100%);
	--cl-grad-text: linear-gradient(100deg, #43346C 0%, #7D2E68 55%, #F27255 100%);

	/* Forma y elevación */
	--cl-r:      16px;
	--cl-r-lg:   26px;
	--cl-r-pill: 999px;
	--cl-sh-sm:  0 2px 8px rgba(37,19,81,.06);
	--cl-sh:     0 14px 40px -18px rgba(37,19,81,.28);
	--cl-sh-lg:  0 40px 90px -40px rgba(37,19,81,.45);
	--cl-ring:   0 0 0 1px rgba(37,19,81,.08);

	/* Ritmo */
	--cl-gap:    clamp(1rem, 2.4vw, 1.6rem);
	--cl-sec-y:  clamp(3.5rem, 8vw, 7rem);
	--cl-wide:   1200px;
	--cl-narrow: 760px;

	/* Kadence global palette → colores de marca */
	--global-palette1: #7D2E68;   /* acento primario  */
	--global-palette2: #251351;   /* acento secundario */
	--global-palette3: #211E21;   /* texto fuerte      */
	--global-palette4: #251351;   /* títulos           */
	--global-palette5: #3A3B3B;   /* cuerpo            */
	--global-palette6: #6f6a72;   /* apagado           */
	--global-palette7: #EDEAE5;   /* borde/fondo claro */
	--global-palette8: #F7F5F1;   /* superficie        */
	--global-palette9: #FFFFFE;   /* base              */
}

/* ---------- Tipografía ---------- */
body {
	font-family: "Source Sans Pro", "Cabin", system-ui, -apple-system, "Segoe UI", sans-serif;
	color: var(--cl-ink-2);
	background: var(--cl-paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6,
.cl-display {
	font-family: "Montserrat", system-ui, sans-serif;
	color: var(--cl-indigo);
	letter-spacing: -0.02em;
	line-height: 1.08;
	font-weight: 700;
}
.cl-display { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
p  { line-height: 1.7; }
.cl-lead { font-size: clamp(1.05rem, 1.8vw, 1.35rem); color: var(--cl-ink-2); line-height: 1.6; }

/* Texto con degradé */
.cl-grad-text {
	background: var(--cl-grad-text);
	-webkit-background-clip: text; background-clip: text;
	-webkit-text-fill-color: transparent; color: transparent;
}
/* Sobre fondos oscuros, el degradé de texto usa tonos claros (contraste AA). */
.cl-hero .cl-grad-text,
.cl-section--dark .cl-grad-text,
.cl-cta .cl-grad-text {
	background-image: linear-gradient(100deg, #9BEEF9 0%, #ff9f86 100%);
}

/* Logo del header: símbolo + "CreativeLab" (PNG a 3x generado por ia/estudio/agencia/logo.mjs desde los SVG de la marca). */
.site-branding .custom-logo,
.site-header-item .custom-logo,
.custom-logo-link .custom-logo {
	max-height: 34px !important;
	height: auto; width: auto;
}
@media (max-width: 767px) {
	.site-branding .custom-logo, .site-header-item .custom-logo, .custom-logo-link .custom-logo { max-height: 27px !important; }
}

/* Eyebrow / etiqueta */
.cl-eyebrow {
	display: inline-flex; align-items: center; gap: .5rem;
	font-family: "Montserrat", sans-serif; font-weight: 700;
	font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
	color: var(--cl-magenta);
}
.cl-eyebrow::before {
	content: ""; width: 26px; height: 2px; border-radius: 2px;
	background: var(--cl-grad-warm);
}
.cl-section--dark .cl-eyebrow { color: var(--cl-teal-light); }

/* ---------- Layout ---------- */
.cl-section { padding-block: var(--cl-sec-y); position: relative; }
.cl-wrap { width: min(var(--cl-wide), 92vw); margin-inline: auto; }
.cl-narrow-wrap { width: min(var(--cl-narrow), 92vw); margin-inline: auto; }
.cl-center { text-align: center; }
.cl-center .cl-eyebrow { justify-content: center; }
.cl-stack > * + * { margin-top: 1.15rem; }
.cl-grid { display: grid; gap: var(--cl-gap); }
.cl-grid--2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cl-grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cl-grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.cl-section--dark {
	background: var(--cl-indigo);
	color: var(--cl-sand);
}
.cl-section--dark h1, .cl-section--dark h2, .cl-section--dark h3,
.cl-section--dark h4, .cl-section--dark h5, .cl-section--dark h6 { color: #fff; }
.cl-section--sand { background: var(--cl-paper-2); }
.cl-section--gradient { background: var(--cl-grad); color: #fff; }
.cl-section--gradient h1, .cl-section--gradient h2, .cl-section--gradient h3 { color: #fff; }

/* ---------- Botones ---------- */
.cl-btn, .cl-actions .wp-block-button__link {
	display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
	font-family: "Montserrat", sans-serif; font-weight: 700; font-size: 1rem;
	padding: .95rem 1.7rem; border-radius: var(--cl-r-pill);
	text-decoration: none; cursor: pointer; border: 0; line-height: 1;
	transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
	will-change: transform;
}
.cl-btn--grad {
	background: var(--cl-grad-warm); color: #fff;
	box-shadow: 0 12px 30px -10px rgba(242,114,85,.55);
}
.cl-btn--grad:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -12px rgba(242,114,85,.7); color: #fff; }
.cl-btn--solid { background: var(--cl-indigo); color: #fff; }
.cl-btn--solid:hover { transform: translateY(-3px); background: var(--cl-magenta); color: #fff; box-shadow: var(--cl-sh); }
.cl-btn--ghost {
	background: transparent; color: var(--cl-indigo);
	box-shadow: inset 0 0 0 2px rgba(37,19,81,.22);
}
.cl-btn--ghost:hover { background: var(--cl-indigo); color: #fff; box-shadow: none; transform: translateY(-3px); }
.cl-section--dark .cl-btn--ghost,
.cl-hero .cl-btn--ghost,
.cl-cta .cl-btn--ghost,
.cl-pagehero .cl-btn--ghost { color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.35); }
.cl-section--dark .cl-btn--ghost:hover,
.cl-cta .cl-btn--ghost:hover,
.cl-hero .cl-btn--ghost:hover,
.cl-pagehero .cl-btn--ghost:hover { background: #fff; color: var(--cl-indigo); }
.cl-btn--lg { padding: 1.1rem 2.1rem; font-size: 1.08rem; }
.cl-actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.cl-center .cl-actions { justify-content: center; }

/* Botones core dentro de secciones de marca heredan estilo pill de marca */
.cl-actions .wp-block-button.is-style-fill .wp-block-button__link { background: var(--cl-grad-warm); }

/* ---------- Hero ---------- */
.cl-hero {
	position: relative; overflow: hidden;
	background-color: #1a0e3a;
	background-image:
		radial-gradient(38% 55% at 84% 12%, rgba(125,46,104,.62) 0%, rgba(125,46,104,0) 70%),
		radial-gradient(40% 55% at 8% 92%, rgba(0,147,184,.50) 0%, rgba(0,147,184,0) 70%),
		radial-gradient(24% 34% at 60% 62%, rgba(242,114,85,.34) 0%, rgba(242,114,85,0) 70%),
		radial-gradient(130% 120% at 85% -10%, #341a63 0%, #251351 45%, #1a0e3a 100%);
	color: var(--cl-sand);
	padding-block: clamp(4.5rem, 11vw, 9rem);
}
.cl-hero h1 { color: #fff; }
.cl-hero__eyebrow { color: var(--cl-teal-light); }
.cl-hero__lead { color: #d9d2e6; max-width: 40ch; }
.cl-hero__blob { display: none; }
.cl-hero > .cl-wrap { position: relative; z-index: 1; }
.cl-hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (max-width: 900px) { .cl-hero__grid { grid-template-columns: 1fr; } }

/* Visual del hero: mock de navegador con "web" adentro */
.cl-mock {
	background: #fff; border-radius: 18px; padding: 0; overflow: hidden;
	box-shadow: 0 50px 100px -40px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08);
}
.cl-mock__bar { display: flex; gap: 7px; padding: 12px 14px; background: #f1eef4; }
.cl-mock__bar span { width: 11px; height: 11px; border-radius: 50%; background: #d7cfe0; }
.cl-mock__bar span:first-child { background: #F27255; }
.cl-mock__bar span:nth-child(2) { background: #ffd25f; }
.cl-mock__bar span:nth-child(3) { background: #57c98a; }
.cl-mock__screen { padding: 18px; display: grid; gap: 12px; }
.cl-mock__hero { height: 96px; border-radius: 12px; background: var(--cl-grad); }
.cl-mock__row { display: flex; gap: 10px; }
.cl-mock__row i { flex: 1; height: 46px; border-radius: 10px; background: #efeaf2; }
.cl-mock__line { height: 12px; border-radius: 6px; background: #ece7f1; }
.cl-mock__line--lg { width: 70%; height: 16px; background: #e0d8ea; }
.cl-mock__cta { width: 42%; height: 34px; border-radius: 999px; background: var(--cl-grad-warm); margin-top: 4px; }
@media (max-width: 900px) { .cl-mock { transform: none; max-width: 420px; margin-inline: auto; } }
@media (prefers-reduced-motion: reduce) { .cl-mock { animation: none; } }

/* Chips de confianza */
.cl-trust { display: flex; flex-wrap: wrap; gap: 1.2rem 1.8rem; align-items: center; margin-top: 1.6rem; }
.cl-trust__item { display: inline-flex; align-items: center; gap: .5rem; font-size: .92rem; color: #cfc7dd; }
.cl-trust__item strong { color: #fff; font-family: "Montserrat", sans-serif; }
.cl-trust__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cl-teal-light); box-shadow: 0 0 0 4px rgba(155,238,249,.18); }

/* Nombre del sitio junto al logo: legible sobre el header oscuro (antes se perdía). */
.site-header .site-title,
.site-header .site-title a { color: #fff !important; font-weight: 700; letter-spacing: -.01em; }
.site-header .is-sticky .site-title,
.site-header .item-is-stuck .site-title { color: #fff !important; }
