/*
Theme Name: Valor & Balance
Theme URI: https://www.valorybalance.co
Author: Valor & Balance
Description: Tema corporativo para Valor & Balance — soluciones contables, financieras, de gestión humana y tecnología. Portada de una página, formulario de contacto sin plugins y botón de WhatsApp.
Version: 1.2.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: valor-balance
*/

/* ================= Tokens ================= */
:root {
	--vb-purple: #5A2B50;
	--vb-deep: #3A1834;
	--vb-magenta: #DC02BC;      /* marca: decorativo y sobre fondos oscuros */
	--vb-magenta-d: #C0009C;    /* botones y texto sobre fondo claro (contraste AA) */
	--vb-pink: #FF59E6;
	--vb-teal: #067980;
	--vb-gold: #8A6508;
	--vb-ink: #2B2230;
	--vb-muted: #5F5668;
	--vb-line: #E7DEE6;
	--vb-tint: #F8F3F7;
	--vb-white: #fff;
	--vb-silver: linear-gradient(180deg, #d9d9d9 0%, #8a8a8a 45%, #e3e3e3 60%, #7c7c7c 100%);
	--vb-radius: 16px;
	--vb-shadow: 0 10px 30px rgba(58, 24, 52, .10);
	--vb-font-head: "Exo 2", "Montserrat", system-ui, sans-serif;
	--vb-font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ================= Base ================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
	margin: 0;
	font-family: var(--vb-font);
	font-size: 16px;
	line-height: 1.65;
	color: var(--vb-ink);
	background: var(--vb-white);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--vb-purple); }
a:hover { color: var(--vb-magenta-d); }
:focus-visible { outline: 3px solid var(--vb-pink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
/* Listas del tema (no se tocan las del contenido de Elementor / editor) */
.vb-menu, .vb-hero__pillars, .vb-values, .vb-cards ul, .vb-info, .vb-footer__list, .vb-footer__legal, .vb-acc__in ul { margin: 0; padding: 0; list-style: none; }
.vb-prose ul { list-style: disc; padding-left: 1.4em; margin: 0 0 1em; }
.vb-prose ol { padding-left: 1.4em; margin: 0 0 1em; }
.vb-elementor { width: 100%; }
.vb-is-elementor .vb-footer { margin-top: 0; }

.vb-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.vb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vb-skip { position: absolute; left: -999px; top: 8px; background: var(--vb-purple); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.vb-skip:focus { left: 8px; color: #fff; }

/* ================= Botones ================= */
.vb-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 14px 26px; border-radius: 999px; border: 2px solid transparent;
	font: 700 15px/1.2 var(--vb-font); text-decoration: none; cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.vb-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(58, 24, 52, .22); }
.vb-btn--magenta { background: var(--vb-magenta-d); color: #fff; }
.vb-btn--magenta:hover { background: var(--vb-magenta); color: #fff; }
.vb-btn--purple, .vb-btn--p1 { background: var(--vb-purple); color: #fff; }
.vb-btn--purple:hover, .vb-btn--p1:hover { background: var(--vb-deep); color: #fff; }
.vb-btn--p2 { background: var(--vb-teal); color: #fff; }
.vb-btn--p2:hover { background: #055c61; color: #fff; }
.vb-btn--p3 { background: var(--vb-gold); color: #fff; }
.vb-btn--p3:hover { background: #6f5106; color: #fff; }
.vb-btn--ghost { border-color: rgba(255, 255, 255, .55); color: #fff; background: transparent; }
.vb-btn--ghost:hover { background: #fff; color: var(--vb-purple); }

/* ================= Header ================= */
.vb-header {
	position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--vb-line); transition: box-shadow .25s ease;
}
.vb-header.is-stuck { box-shadow: 0 6px 24px rgba(58, 24, 52, .10); }
.vb-header__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.vb-brand { display: block; line-height: 0; }
.vb-logo { height: 54px; width: auto; }
.vb-brand .custom-logo { height: 54px; width: auto; }

.vb-nav { display: flex; align-items: center; gap: 28px; }
.vb-menu { display: flex; gap: 26px; }
.vb-menu a { color: var(--vb-ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.vb-menu a:hover, .vb-menu .current-menu-item > a { color: var(--vb-purple); border-color: var(--vb-magenta); }
.vb-nav__cta { padding: 11px 20px; font-size: 14px; }

.vb-burger { display: none; width: 46px; height: 46px; border: 1px solid var(--vb-line); background: #fff; border-radius: 12px; cursor: pointer; position: relative; }
.vb-burger__bar, .vb-burger__bar::before, .vb-burger__bar::after {
	content: ""; position: absolute; left: 12px; width: 20px; height: 2px; background: var(--vb-purple); border-radius: 2px; transition: transform .25s ease, opacity .2s ease;
}
.vb-burger__bar { top: 22px; }
.vb-burger__bar::before { left: 0; top: -6px; }
.vb-burger__bar::after { left: 0; top: 6px; }
.vb-burger[aria-expanded="true"] .vb-burger__bar { background: transparent; }
.vb-burger[aria-expanded="true"] .vb-burger__bar::before { transform: translateY(6px) rotate(45deg); }
.vb-burger[aria-expanded="true"] .vb-burger__bar::after { transform: translateY(-6px) rotate(-45deg); }

/* ================= Hero ================= */
.vb-hero {
	position: relative; overflow: hidden; color: #fff;
	background: radial-gradient(1100px 520px at 85% -10%, #7a3a6c 0%, transparent 60%), linear-gradient(135deg, var(--vb-deep) 0%, var(--vb-purple) 100%);
}
.vb-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.vb-hero__bg::before { /* flecha ascendente de la marca */
	content: ""; position: absolute; right: -6%; bottom: -8%; width: 78%; height: 78%;
	background: linear-gradient(135deg, rgba(220, 2, 188, .55), rgba(255, 89, 230, .10));
	clip-path: polygon(0 100%, 52% 52%, 64% 72%, 100% 8%, 100% 44%, 66% 100%, 56% 84%, 8% 100%);
	opacity: .55;
}
.vb-hero__bg::after { /* cuadrícula sutil */
	content: ""; position: absolute; inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 56px 56px;
	-webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.vb-hero__grid { position: relative; display: grid; grid-template-columns: 1.25fr .85fr; gap: 48px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.vb-eyebrow { color: var(--vb-pink); font-weight: 700; letter-spacing: .22em; text-transform: uppercase; font-size: 12.5px; margin-bottom: 18px; }
.vb-hero__title { font-family: var(--vb-font-head); font-style: italic; font-weight: 800; font-size: clamp(38px, 6vw, 68px); letter-spacing: -.01em; margin-bottom: 22px; }
.vb-hero__title span { display: block; background: linear-gradient(90deg, var(--vb-pink), var(--vb-magenta)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.vb-hero__lead { font-size: clamp(16px, 2vw, 19px); max-width: 56ch; color: rgba(255, 255, 255, .88); margin-bottom: 30px; }
.vb-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

.vb-hero__card {
	background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .20);
	border-radius: 22px; padding: 30px; backdrop-filter: blur(10px); box-shadow: 0 24px 60px rgba(0, 0, 0, .25);
}
.vb-hero__icon { width: 120px; height: auto; margin: 0 0 18px; }
.vb-hero__cardtitle { font-family: var(--vb-font-head); font-style: italic; font-weight: 700; font-size: 22px; margin-bottom: 14px; }
.vb-hero__pillars { display: grid; gap: 10px; }
.vb-hero__pillars a {
	display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.3;
	padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .07); transition: background .2s ease, transform .2s ease;
}
.vb-hero__pillars a:hover { background: rgba(255, 255, 255, .16); transform: translateX(4px); color: #fff; }

/* Números de pilar (colores del portafolio) */
.vb-num { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; color: #fff; font: 800 15px/1 var(--vb-font-head); }
.vb-num--p1 { background: var(--vb-magenta-d); }
.vb-num--p2 { background: var(--vb-teal); }
.vb-num--p3 { background: var(--vb-gold); }
.vb-num--lg { width: 46px; height: 46px; font-size: 20px; margin-bottom: 18px; }
.vb-num--xl { width: 64px; height: 64px; font-size: 30px; margin-bottom: 18px; }

/* ================= Secciones ================= */
.vb-section { padding: 88px 0; }
.vb-section--tint { background: var(--vb-tint); }
.vb-kicker { color: var(--vb-magenta-d); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: 12.5px; margin-bottom: 10px; }
.vb-h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 500; color: #4a4152; letter-spacing: -.01em; }
.vb-h2 strong { color: var(--vb-purple); font-weight: 800; }
.vb-lead { font-size: 18px; color: var(--vb-ink); }
.vb-head { max-width: 720px; margin-bottom: 44px; }
.vb-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.vb-values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vb-values li { background: #fff; border: 1px solid var(--vb-line); border-radius: var(--vb-radius); padding: 22px; box-shadow: var(--vb-shadow); }
.vb-values svg { width: 34px; height: 34px; fill: none; stroke: var(--vb-magenta-d); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 10px; }
.vb-values h3 { font-size: 17px; color: var(--vb-purple); margin-bottom: 4px; }
.vb-values p { margin: 0; font-size: 14.5px; color: var(--vb-muted); }

/* Tarjetas de pilares */
.vb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.vb-card { background: #fff; border-radius: 20px; padding: 32px 28px; border: 1px solid var(--vb-line); border-top: 5px solid var(--vb-purple); box-shadow: var(--vb-shadow); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.vb-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(58, 24, 52, .16); }
.vb-card--p1 { border-top-color: var(--vb-magenta-d); }
.vb-card--p2 { border-top-color: var(--vb-teal); }
.vb-card--p3 { border-top-color: var(--vb-gold); }
.vb-card h3 { font-size: 21px; color: #3a3140; }
.vb-card > p { color: var(--vb-muted); font-size: 15px; }
.vb-card ul { margin: 6px 0 22px; display: grid; gap: 8px; }
.vb-card li { position: relative; padding-left: 22px; font-size: 14.5px; font-weight: 500; }
.vb-card li::before { content: ""; position: absolute; left: 0; top: .55em; width: 10px; height: 10px; border-radius: 50%; background: var(--vb-purple); opacity: .85; }
.vb-card--p1 li::before { background: var(--vb-magenta-d); }
.vb-card--p2 li::before { background: var(--vb-teal); }
.vb-card--p3 li::before { background: var(--vb-gold); }
.vb-link { margin-top: auto; font-weight: 700; text-decoration: none; color: var(--vb-purple); }
.vb-link:hover { color: var(--vb-magenta-d); }

/* Detalle de pilar */
.vb-pillar__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.vb-pillar__head { position: sticky; top: 104px; }
.vb-pillar__close { font-family: var(--vb-font-head); font-style: italic; font-weight: 700; font-size: 20px; color: var(--vb-magenta-d); margin: 4px 0 22px; }
.vb-pillar--p2 .vb-pillar__close { color: var(--vb-teal); }
.vb-pillar--p3 .vb-pillar__close { color: var(--vb-gold); }
.vb-pillar__body { display: grid; gap: 14px; }

.vb-acc { background: #fff; border: 1px solid var(--vb-line); border-radius: var(--vb-radius); box-shadow: 0 4px 14px rgba(58, 24, 52, .05); overflow: hidden; }
.vb-acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 18px 22px; font-weight: 700; font-size: 17px; color: var(--vb-purple); }
.vb-acc summary::-webkit-details-marker { display: none; }
.vb-acc summary::after { content: "+"; margin-left: auto; font-size: 26px; font-weight: 500; line-height: 1; color: var(--vb-magenta-d); transition: transform .25s ease; }
.vb-acc[open] summary::after { transform: rotate(45deg); }
.vb-acc__n { font: 800 13px/1 var(--vb-font-head); color: #fff; background: var(--vb-purple); border-radius: 999px; padding: 6px 10px; }
.vb-pillar--p2 .vb-acc summary { color: var(--vb-teal); }
.vb-pillar--p3 .vb-acc__n { background: var(--vb-gold); }
.vb-pillar--p3 .vb-acc summary { color: #5b4306; }
.vb-acc__in { padding: 0 22px 22px; }
.vb-acc__tag { font-style: italic; color: var(--vb-muted); margin-bottom: 14px; }
.vb-acc__in ul { display: grid; gap: 9px; }
.vb-acc__in li { position: relative; padding-left: 26px; font-size: 15.5px; }
.vb-acc__in li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 8px; height: 14px; border: solid var(--vb-magenta-d); border-width: 0 2.5px 2.5px 0; transform: translateY(-30%) rotate(40deg) scale(.8); }
.vb-pillar--p2 .vb-acc__in li::before { border-color: var(--vb-teal); }
.vb-pillar--p3 .vb-acc__in li::before { border-color: var(--vb-gold); }

/* Banda CTA */
.vb-band { background: linear-gradient(120deg, var(--vb-purple), var(--vb-deep)); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.vb-band::after { content: ""; position: absolute; right: -80px; top: -60px; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 89, 230, .35), transparent 70%); }
.vb-band__in { position: relative; text-align: center; }
.vb-band h2 { font-family: var(--vb-font-head); font-style: italic; font-weight: 800; font-size: clamp(28px, 4vw, 40px); }
.vb-band p { color: rgba(255, 255, 255, .85); max-width: 52ch; margin: 0 auto 26px; }
.vb-band .vb-hero__cta { justify-content: center; }

/* Contacto */
.vb-contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.vb-info { display: grid; gap: 18px; margin-top: 26px; }
.vb-info li { display: flex; gap: 16px; align-items: flex-start; }
.vb-info svg { flex: none; width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--vb-tint); fill: none; stroke: var(--vb-magenta-d); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vb-info span { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--vb-muted); }
.vb-info a { color: var(--vb-purple); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.vb-info a:hover { text-decoration: underline; }

.vb-form { background: #fff; border: 1px solid var(--vb-line); border-radius: 22px; padding: 32px; box-shadow: var(--vb-shadow); display: grid; gap: 16px; }
.vb-form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; color: #4a4152; }
.vb-form input[type="text"], .vb-form input[type="email"], .vb-form input[type="tel"], .vb-form select, .vb-form textarea {
	width: 100%; font: 400 16px var(--vb-font); color: var(--vb-ink); padding: 13px 14px; border: 1.5px solid #d8cdd7; border-radius: 12px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease;
}
.vb-form textarea { resize: vertical; min-height: 120px; }
.vb-form input:focus, .vb-form select:focus, .vb-form textarea:focus { outline: none; border-color: var(--vb-magenta-d); box-shadow: 0 0 0 4px rgba(220, 2, 188, .15); }
.vb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vb-check { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px; font-weight: 500 !important; font-size: 13.5px !important; color: var(--vb-muted) !important; }
.vb-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--vb-purple); }
.vb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vb-form .vb-btn { justify-self: start; }
.vb-alert { margin: 0; padding: 14px 16px; border-radius: 12px; font-weight: 600; font-size: 14.5px; }
.vb-alert--ok { background: #e7f6ee; color: #14633a; border: 1px solid #b6e3c9; }
.vb-alert--err { background: #fdecef; color: #8f1d33; border: 1px solid #f5c2cc; }

/* Páginas internas */
.vb-pagehead { background: linear-gradient(135deg, var(--vb-deep), var(--vb-purple)); color: #fff; padding: 56px 0; }
.vb-pagehead h1 { margin: 0; font-family: var(--vb-font-head); font-style: italic; font-weight: 800; font-size: clamp(30px, 5vw, 46px); }
.vb-prose { max-width: 800px; }
.vb-prose h2, .vb-prose h3 { color: var(--vb-purple); margin-top: 1.6em; }
.vb-post { padding: 20px 0; border-bottom: 1px solid var(--vb-line); }
.vb-meta { color: var(--vb-muted); font-size: 14px; }

/* ================= Footer ================= */
.vb-footer { background: var(--vb-deep); color: rgba(255, 255, 255, .86); }
.vb-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; padding-top: 64px; padding-bottom: 48px; }
.vb-logo--footer { height: 96px; margin-bottom: 14px; }
.vb-footer__slogan { color: var(--vb-pink); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 12px; margin-bottom: 6px; }
.vb-footer__tag { font-family: var(--vb-font-head); font-style: italic; font-weight: 700; font-size: 18px; }
.vb-footer__h { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 14px; font-family: var(--vb-font); font-weight: 700; }
.vb-footer__list { display: grid; gap: 10px; font-size: 15px; }
.vb-footer a { color: rgba(255, 255, 255, .86); text-decoration: none; overflow-wrap: anywhere; }
.vb-footer a:hover { color: var(--vb-pink); text-decoration: underline; }
.vb-footer__bar { border-top: 1px solid rgba(255, 255, 255, .14); padding: 18px 0; font-size: 13.5px; color: rgba(255, 255, 255, .7); }
.vb-footer__bar .vb-wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.vb-footer__legal { display: flex; gap: 18px; flex-wrap: wrap; }

/* WhatsApp flotante */
.vb-wa { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #1fa855; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(0, 0, 0, .3); transition: transform .2s ease; }
.vb-wa:hover { transform: scale(1.08); color: #fff; }

/* ================= Animación de entrada ================= */
.js .vb-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .vb-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .vb-reveal { opacity: 1; transform: none; transition: none; }
	.vb-btn, .vb-card, .vb-wa, .vb-hero__pillars a { transition: none; }
}

/* ================= Responsive ================= */
@media (max-width: 980px) {
	.vb-hero__grid { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; gap: 36px; }
	.vb-split, .vb-contact, .vb-pillar__grid { grid-template-columns: 1fr; gap: 36px; }
	.vb-pillar__head { position: static; }
	.vb-cards { grid-template-columns: 1fr; }
	.vb-footer__grid { grid-template-columns: 1fr 1fr; }
	.vb-footer__brand { grid-column: 1 / -1; }
	.vb-section { padding: 64px 0; }

	.vb-burger { display: block; }
	.vb-nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--vb-line); flex-direction: column; align-items: stretch; gap: 8px; padding: 14px 20px 22px; display: none; box-shadow: 0 18px 30px rgba(58, 24, 52, .12); }
	.vb-nav.is-open { display: flex; }
	.vb-menu { flex-direction: column; gap: 4px; }
	.vb-menu a { display: block; padding: 12px 4px; border-bottom: 1px solid var(--vb-line); }
	.vb-nav__cta { margin-top: 10px; }
}
@media (max-width: 560px) {
	.vb-logo, .vb-brand .custom-logo { height: 44px; }
	.vb-header__in { min-height: 68px; }
	.vb-values { grid-template-columns: 1fr; }
	.vb-row { grid-template-columns: 1fr; }
	.vb-form { padding: 22px 18px; }
	.vb-footer__grid { grid-template-columns: 1fr; gap: 32px; }
	.vb-hero__cta .vb-btn, .vb-form .vb-btn { width: 100%; }
	.vb-hero__card { padding: 22px; }
}
