/*
Theme Name: Contadores PyT
Theme URI: https://webemprendedores.cl
Author: Webemprendedores.cl
Author URI: https://webemprendedores.cl
Description: Theme a medida para Contadores PyT Ltda, firma de contabilidad, auditoria, tributacion y recursos humanos en Santiago, Chile. Paleta y tipografia derivadas del isotipo de marca (P&T, barras de crecimiento).
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: contadores-pyt
Tags: custom-menu, featured-images, footer-widgets, translation-ready

Disenado por Webemprendedores.cl
*/

/* =========================================================
   DESIGN TOKENS -- derivados del isotipo P&T
   Marino profundo (letras P&T), azul medio, celeste de barras,
   gris del "&", papel casi blanco, dorado para detalle de sello.
   ========================================================= */

:root {
  --navy: #0F2547;
  --navy-2: #16305E;
  --blue: #2857A6;
  --blue-light: #5B8FD9;
  --sky: #8FB8EC;
  --slate: #7C8798;
  --paper: #FAFBFC;
  --paper-dim: #F0F3F7;
  --ink-text: #232A35;
  --ink-soft: #5B6472;
  --line: #E1E6ED;
  --white: #FFFFFF;
  --gold: #C9A15A;
  --danger: #B5432E;

  --font-display: "Playfair Display", "Source Serif 4", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Roboto Mono", ui-monospace, Menlo, monospace;

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 20px;
  --container: 1200px;
  --shadow-card: 0 1px 2px rgba(15,37,71,0.05), 0 12px 28px rgba(15,37,71,0.08);
  --shadow-lift: 0 20px 50px rgba(15,37,71,0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
  border-radius: 2px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s ease, color 0.2s ease;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(40,87,166,0.28);
}
.btn-primary:hover { background: var(--navy-2); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(40,87,166,0.35); }
.btn-outline {
  border-color: rgba(255,255,255,0.35);
  color: var(--white);
}
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.btn-navy {
  border-color: var(--navy);
  color: var(--navy);
}
.btn-navy:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); }

/* =========================================================
   SCROLL REVEAL — orquestado, discreto
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.reveal-stagger.in-view > * { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0.04s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.10s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.22s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 0.28s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: 0.34s; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease;
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(15,37,71,0.06); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}
.site-branding { display: flex; align-items: center; gap: 12px; }
.site-branding img { max-height: 52px; width: auto; }
.site-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy);
}
.site-title .accent { color: var(--blue); }

.main-navigation { display: flex; align-items: center; gap: 6px; }
.main-navigation ul { display: flex; gap: 4px; align-items: center; }
.main-navigation a {
  position: relative;
  padding: 10px 16px;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--navy);
  border-radius: var(--radius-sm);
  transition: color 0.2s ease;
}
.main-navigation a::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 6px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.main-navigation a:hover { color: var(--blue); }
.main-navigation a:hover::after { transform: scaleX(1); }
.header-cta { margin-left: 8px; }
.header-cta a {
  background: var(--navy);
  color: var(--white) !important;
  padding: 11px 22px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.header-cta a::after { display: none; }
.header-cta a:hover { background: var(--blue) !important; transform: translateY(-2px); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  color: var(--navy);
}

/* =========================================================
   HERO -- motivo de barras ascendentes + flecha (del isotipo)
   ========================================================= */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--white);
  overflow: hidden;
  padding: 110px 0 120px;
}
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(15,37,71,0.92) 0%, rgba(15,37,71,0.82) 42%, rgba(22,48,94,0.55) 72%, rgba(27,58,107,0.35) 100%);
}
.hero-bars {
  position: absolute;
  right: -40px;
  bottom: -20px;
  width: 46%;
  max-width: 620px;
  opacity: 0.55;
  pointer-events: none;
  z-index: 1;
}
.hero-bars .bar {
  transform-origin: bottom;
  animation: growBar 1.4s var(--ease) both;
}
.hero-bars .bar:nth-child(1) { animation-delay: 0.15s; }
.hero-bars .bar:nth-child(2) { animation-delay: 0.30s; }
.hero-bars .bar:nth-child(3) { animation-delay: 0.45s; }
.hero-bars .bar:nth-child(4) { animation-delay: 0.60s; }
.hero-bars .arrow-path {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: drawArrow 1.6s var(--ease) 0.5s forwards;
}
@keyframes growBar {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 1; }
}
@keyframes drawArrow {
  to { stroke-dashoffset: 0; }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    repeating-linear-gradient(to bottom, transparent, transparent 42px, rgba(255,255,255,0.035) 43px);
  pointer-events: none;
}
/* Fondo por variable: desktop y mobile sirven imágenes distintas (ahorro de datos) */
.hero-slide { background-image: var(--cover-desktop); }
@media (max-width: 720px) {
  .hero-slide { background-image: var(--cover-mobile); }
}
/* Malla de puntos flotante */
.hero-mesh {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image: radial-gradient(rgba(143,184,236,0.22) 1.3px, transparent 1.3px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse 70% 65% at 78% 30%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 65% at 78% 30%, black 0%, transparent 70%);
  animation: meshDrift 24s linear infinite alternate;
}
@keyframes meshDrift {
  from { background-position: 0 0; }
  to { background-position: 34px 68px; }
}

/* Animación de entrada del hero: cascada elegante */
.hero-anim {
  opacity: 0;
  transform: translateY(26px);
  animation: heroRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s) forwards;
}
@keyframes heroRise {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-anim { opacity: 1; transform: none; animation: none; }
}

.hero .container { position: relative; z-index: 2; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
.hero .eyebrow { color: var(--sky); display: inline-flex; align-items: center; gap: 10px; }
.hero .eyebrow::before { background: var(--gold); }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(201,161,90,0.55);
  animation: pulseDot 2.2s ease-out infinite;
  flex-shrink: 0;
}
.hero h1, .hero-title { color: var(--white); }
.hero-title {
  font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 22px;
}
.hero-line { display: block; }
.hero-title .em { color: var(--sky); font-style: italic; position: relative; display: inline-block; }
.em-underline {
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 12px;
  overflow: visible;
}
.em-underline path {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: drawUnderline 1s var(--ease) 0.9s forwards;
}
@keyframes drawUnderline { to { stroke-dashoffset: 0; } }
.hero-lead {
  font-size: clamp(1rem, 2.4vw, 1.18rem);
  color: rgba(255,255,255,0.82);
  max-width: 46ch;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.btn-glow { position: relative; overflow: hidden; }
.btn-glow::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  animation: btnShine 3.6s ease-in-out 1.6s infinite;
}
@keyframes btnShine {
  0% { left: -80%; }
  45%, 100% { left: 130%; }
}
.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid rgba(255,255,255,0.16);
  padding-top: 30px;
}
.hero-stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 1.9rem);
  font-weight: 700;
  color: var(--white);
  display: block;
  font-variant-numeric: tabular-nums;
}
.hero-stat .label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.4;
}

/* Indicador de scroll (mouse) */
.hero-scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  animation: heroRise 0.8s var(--ease) 1.4s forwards;
}
.hero-scroll-hint .mouse {
  display: block;
  width: 24px; height: 38px;
  border: 2px solid rgba(255,255,255,0.45);
  border-radius: 14px;
  position: relative;
}
.hero-scroll-hint .wheel {
  position: absolute;
  top: 7px; left: 50%;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: 3px;
  background: var(--sky);
  animation: wheelDrop 1.8s ease-in-out infinite;
}
@keyframes wheelDrop {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* Ledger card flotante */
.hero-visual { position: relative; }
.ledger-card {
  background: var(--white);
  border-radius: var(--radius-md);
  color: var(--ink-text);
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  transform: rotate(1deg);
}
.float-soft { animation: floatCard 5s ease-in-out infinite; }
@keyframes floatCard {
  0%, 100% { transform: rotate(1deg) translateY(0); }
  50% { transform: rotate(1deg) translateY(-10px); }
}
.ledger-badge {
  position: absolute;
  bottom: -16px;
  left: -14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--navy);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(15,37,71,0.35);
  opacity: 0;
  animation: badgePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.7s forwards;
}
@keyframes badgePop {
  from { opacity: 0; transform: scale(0.5) rotate(-8deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
.ledger-card-head {
  background: var(--paper-dim);
  padding: 17px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.ledger-card-head .folio {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}
.ledger-card-head .status {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--blue);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 0 rgba(40,87,166,0.5);
  animation: pulseDot 2s ease-out infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(40,87,166,0.45); }
  70% { box-shadow: 0 0 0 7px rgba(40,87,166,0); }
  100% { box-shadow: 0 0 0 0 rgba(40,87,166,0); }
}
.ledger-row {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateX(14px);
  animation: rowIn 0.5s var(--ease) var(--r, 1s) forwards;
}
@keyframes rowIn {
  to { opacity: 1; transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .ledger-row, .ledger-badge, .hero-scroll-hint { opacity: 1; transform: none; animation: none; }
  .float-soft, .btn-glow::after, .hero-mesh { animation: none; }
}
.ledger-row:last-child { border-bottom: none; }
.ledger-row .concept { color: var(--ink-text); font-weight: 500; }
.ledger-row .amount { font-family: var(--font-mono); color: var(--blue); font-weight: 600; }
.ledger-row .amount.ok::before { content: "✓ "; color: var(--gold); }
.ledger-card-foot {
  background: var(--navy);
  padding: 17px 22px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
}
.foot-ok { color: var(--sky); }

/* =========================================================
   SECTIONS -- common
   ========================================================= */
.section { padding: 104px 0; }
.section-tight { padding: 76px 0; }
.section-header { max-width: 660px; margin-bottom: 60px; }
.section-header p { font-size: 1.06rem; }
.bg-white { background: var(--white); }
.bg-dim { background: var(--paper-dim); }
.bg-navy { background: var(--navy); color: rgba(255,255,255,0.85); }
.bg-navy h2, .bg-navy h3 { color: var(--white); }

/* Servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
  border-color: var(--sky);
}
.service-card .icon-wrap {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--paper-dim);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--blue);
  transition: background 0.3s ease, transform 0.3s var(--ease);
}
.service-card:hover .icon-wrap { background: var(--blue); color: var(--white); transform: scale(1.06) rotate(-4deg); }
.service-card .num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
  display: block;
}
.service-card h3 { margin-bottom: 10px; font-size: 1.15rem; }
.service-card p { font-size: 0.95rem; margin-bottom: 14px; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--blue);
  transition: gap 0.2s ease, color 0.2s ease;
}
.service-link:hover { gap: 8px; color: var(--navy); }

/* Planes / Pricing */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.plan-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.plan-card.featured {
  border-color: var(--blue);
  box-shadow: 0 4px 0 var(--blue), var(--shadow-card);
}
.plan-card.featured:hover { box-shadow: 0 4px 0 var(--blue), var(--shadow-lift); }
.plan-folio {
  position: absolute;
  top: 24px;
  right: 26px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--slate);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3px 10px;
}
.plan-card.featured .plan-folio { color: var(--blue); border-color: var(--blue); background: rgba(40,87,166,0.06); }
.plan-badge {
  position: absolute;
  top: -13px; left: 30px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 14px;
  border-radius: 20px;
}
.plan-card h3 { margin-bottom: 4px; }
.plan-tag { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 22px; min-height: 40px; }
.plan-price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 2px;
}
.plan-price .uf { font-size: 1rem; color: var(--blue); font-weight: 600; font-family: var(--font-body); }
.plan-price-note { font-size: 0.78rem; color: var(--ink-soft); margin-bottom: 26px; }
.plan-features { margin-bottom: 28px; flex-grow: 1; }
.plan-features li {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.9rem;
  color: var(--ink-text);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before { content: "✓"; color: var(--blue); font-weight: 700; flex-shrink: 0; }
.plan-card .btn { justify-content: center; width: 100%; }

/* Cotización express — captación de leads */
.lead-capture { position: relative; overflow: hidden; }
.lead-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.lead-points { margin-top: 24px; display: grid; gap: 12px; }
.lead-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.85);
}
.lead-points li::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}
.lead-form {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 34px;
  color: var(--ink-text);
  box-shadow: var(--shadow-lift);
}
.lead-form .btn { width: 100%; justify-content: center; }
.lead-form-note { font-size: 0.76rem; color: var(--ink-soft); margin-top: 12px; margin-bottom: 0; text-align: center; }

/* Nosotros / equipo */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.about-photo { position: relative; }
.about-photo-frame {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
}
.about-photo-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(15,37,71,0.08);
  border-radius: var(--radius-md);
  z-index: 1;
  pointer-events: none;
}
.about-photo-frame::after {
  /* velo azul de marca, sutil */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(15,37,71,0) 55%, rgba(15,37,71,0.28) 100%);
  pointer-events: none;
}
.about-photo-frame img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.6s var(--ease);
}
.about-photo:hover .about-photo-frame img { transform: scale(1.04); }
.about-photo::before {
  /* marco desplazado dorado, detrás de la foto */
  content: "";
  position: absolute;
  top: 22px;
  right: -18px;
  bottom: -18px;
  left: 22px;
  border: 2px solid var(--gold);
  border-radius: var(--radius-md);
  opacity: 0.55;
  z-index: -1;
}
.about-photo-badge {
  position: absolute;
  bottom: 26px;
  left: -26px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 16px 34px rgba(15,37,71,0.35);
}
.about-photo-badge .big {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.about-photo-badge .small {
  font-size: 0.76rem;
  line-height: 1.35;
  color: rgba(255,255,255,0.85);
}
@media (max-width: 960px) {
  .about-photo { max-width: 440px; margin: 0 auto; }
  .about-photo-badge { left: 12px; }
  .about-photo::before { right: -10px; left: 12px; }
}
.values-list { display: grid; gap: 22px; margin-top: 30px; }
.value-item { display: flex; gap: 16px; }
.value-item .mark {
  font-family: var(--font-mono);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  padding-top: 3px;
}
.value-item h4 { font-size: 1.02rem; margin-bottom: 4px; color: var(--navy); font-family: var(--font-body); font-weight: 700; }
.value-item p { font-size: 0.92rem; margin-bottom: 0; }

/* Fundadores — layout tipo revista, retrato circular + copy */
.founders-grid { display: grid; gap: 64px; margin-top: 48px; }
.founder-feature {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: center;
}
.founder-feature.reverse { grid-template-columns: 1fr 220px; }
.founder-feature.reverse .founder-portrait { order: 2; }
.founder-feature.reverse .founder-copy { order: 1; }

.founder-portrait { position: relative; width: 220px; height: 220px; margin: 0 auto; }
.founder-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  border-radius: 50%;
  display: block;
  box-shadow: var(--shadow-lift);
}
.founder-ring {
  position: absolute;
  top: -10px;
  left: -10px;
  width: calc(100% + 20px);
  height: calc(100% + 20px);
  animation: spin-slow 30s linear infinite;
}
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.founder-copy { text-align: left; }
.founder-feature.reverse .founder-copy { text-align: right; }
.founder-role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
}
.founder-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  font-size: 2rem;
  margin-bottom: 6px;
  line-height: 1.1;
}
.founder-credential {
  display: block;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 14px;
}
.founder-copy p { font-size: 0.95rem; margin-bottom: 0; max-width: 480px; }
.founder-feature.reverse .founder-copy p { margin-left: auto; }

@media (max-width: 720px) {
  .founder-feature,
  .founder-feature.reverse {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 20px;
  }
  .founder-feature.reverse .founder-portrait,
  .founder-feature.reverse .founder-copy { order: initial; }
  .founder-copy,
  .founder-feature.reverse .founder-copy { text-align: center; }
  .founder-copy p, .founder-feature.reverse .founder-copy p { margin-left: auto; margin-right: auto; }
}

/* Mision/Vision */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: transform 0.3s var(--ease), background 0.3s ease, border-color 0.3s ease;
}
.pillar-card:hover { transform: translateY(-6px); background: rgba(255,255,255,0.07); border-color: var(--sky); }
.pillar-card .glyph { font-family: var(--font-mono); font-size: 0.75rem; color: var(--gold); margin-bottom: 14px; display: block; letter-spacing: 0.08em; }
.pillar-card h3 { color: var(--white); }
.pillar-card p { color: rgba(255,255,255,0.72); margin-bottom: 0; }

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  color: var(--navy);
  font-weight: 700;
}
.faq-question .icon {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono);
  color: var(--blue);
  transition: transform 0.3s var(--ease), background 0.3s ease, color 0.3s ease;
}
.faq-item.open .faq-question .icon { transform: rotate(45deg); background: var(--blue); color: var(--white); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq-answer-inner { padding: 0 0 24px; font-size: 0.96rem; color: var(--ink-soft); max-width: 68ch; }
.faq-item.open .faq-answer { max-height: 400px; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.contact-info-item .icon {
  font-family: var(--font-mono);
  color: var(--sky);
  font-size: 0.75rem;
  width: 26px;
  flex-shrink: 0;
  padding-top: 2px;
}
.contact-info-item .label { font-size: 0.78rem; color: rgba(255,255,255,0.55); margin-bottom: 3px; }
.contact-info-item .val { color: var(--white); font-weight: 500; }
.contact-info-item .val a:hover { color: var(--sky); }

.contact-form {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 38px;
  color: var(--ink-text);
  box-shadow: var(--shadow-lift);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(40,87,166,0.12);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 6px; }

/* =========================================================
   CONTACT FORM 7 — restyle acorde a la identidad del theme
   ========================================================= */
.wpcf7-form {
  display: block;
}
.wpcf7-form p {
  margin: 0 0 18px;
}
.wpcf7-form label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--ink-text);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}
.wpcf7-form select {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B6472' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
  cursor: pointer;
}
.wpcf7-form textarea {
  resize: vertical;
  min-height: 110px;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(40,87,166,0.12);
}
.wpcf7-form input[type="submit"] {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font-body);
  border: 1px solid transparent;
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(40,87,166,0.28);
  cursor: pointer;
  margin-top: 6px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s ease;
}
.wpcf7-form input[type="submit"]:hover {
  background: var(--navy-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(40,87,166,0.35);
}
.wpcf7-form input[type="submit"]:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Spinner de carga de CF7 */
.wpcf7-form .wpcf7-spinner {
  margin: 0 0 0 10px;
}

/* Mensajes de validación / respuesta */
.wpcf7-not-valid-tip {
  display: block;
  color: var(--danger);
  font-size: 0.78rem;
  margin-top: 6px;
  font-weight: 500;
}
.wpcf7-not-valid {
  border-color: var(--danger) !important;
}
.wpcf7-response-output {
  margin: 18px 0 0 !important;
  padding: 14px 16px !important;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  border: 1px solid var(--line) !important;
}
.wpcf7-form.sent .wpcf7-response-output {
  border-color: var(--blue) !important;
  background: rgba(40,87,166,0.08);
  color: var(--navy);
}
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.aborted .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output {
  border-color: var(--danger) !important;
  background: rgba(181,67,46,0.08);
  color: var(--danger);
}
.wpcf7-form.submitting {
  opacity: 0.85;
}

/* Layout de dos columnas dentro de contact-form / lead-form, si se agrupan campos con <span class="cf7-row"> */
.cf7-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 780px) {
  .cf7-row { grid-template-columns: 1fr; }
}

/* CTA WhatsApp flotante */
/* Widget WhatsApp: globo + panel con dos contactos */
.wa-widget {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.whatsapp-float {
  background: #25D366;
  color: var(--white);
  width: 58px;
  height: 58px;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
  transition: transform 0.25s var(--ease), background 0.25s ease;
  animation: floatWA 3s ease-in-out infinite;
}
@keyframes floatWA {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.whatsapp-float:hover { transform: scale(1.1); color: var(--white); animation-play-state: paused; }
.whatsapp-float .wa-close { display: none; }
.wa-widget.open .whatsapp-float { animation: none; background: var(--navy); }
.wa-widget.open .wa-icon { display: none; }
.wa-widget.open .wa-close { display: block; }

.wa-panel {
  width: min(300px, calc(100vw - 48px));
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 20px 50px rgba(15,37,71,0.3);
  overflow: hidden;
  transform-origin: bottom right;
  animation: waPanelIn 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
}
@keyframes waPanelIn {
  from { opacity: 0; transform: scale(0.85) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.wa-panel-head {
  background: var(--navy);
  color: var(--white);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wa-panel-head strong { font-family: var(--font-display); font-size: 1.05rem; }
.wa-panel-head span { font-size: 0.8rem; color: rgba(255,255,255,0.7); }
.wa-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}
.wa-contact:last-child { border-bottom: none; }
.wa-contact:hover { background: var(--paper-dim); }
.wa-avatar {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wa-contact-info { display: flex; flex-direction: column; }
.wa-name { color: var(--navy); font-weight: 600; font-size: 0.92rem; }
.wa-num { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float, .wa-panel { animation: none; }
}
@media (max-width: 480px) {
  .wa-widget { bottom: 18px; right: 18px; }
  .whatsapp-float { width: 54px; height: 54px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 68px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.footer-brand img { max-height: 40px; }
.footer-brand .site-title { color: var(--white); }
.footer-desc { color: rgba(255,255,255,0.6); font-size: 0.9rem; max-width: 32ch; margin-top: 14px; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 700;
}
.footer-col ul li { margin-bottom: 12px; font-size: 0.9rem; }
.footer-col ul li a:hover { color: var(--sky); }
.footer-social { display: flex; gap: 12px; margin-top: 8px; }
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover { background: var(--blue); border-color: var(--blue); transform: translateY(-3px); }
.footer-bottom {
  padding: 24px 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom .credit a { color: var(--sky); font-weight: 600; }
.footer-bottom .credit a:hover { text-decoration: underline; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-bars { display: none; }
  .hero-mesh { mask-image: radial-gradient(ellipse 90% 50% at 50% 12%, black 0%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 90% 50% at 50% 12%, black 0%, transparent 75%); }
  .ledger-card { transform: none; max-width: 460px; }
  .float-soft { animation: none; }
  .ledger-badge { left: 10px; }
  .about-grid, .contact-grid, .lead-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .plans-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .pillars-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 780px) {
  .main-navigation { display: none; }
  .menu-toggle { display: inline-flex; }
  .site-header.nav-open .main-navigation {
    display: flex;
    position: absolute;
    top: 82px; left: 0; right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 12px 24px 24px;
    border-bottom: 1px solid var(--line);
  }
  .site-header.nav-open .main-navigation ul { flex-direction: column; width: 100%; }
  .site-header.nav-open .main-navigation a { display: block; padding: 12px 8px; }
  .site-header.nav-open .main-navigation a::after { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero { padding: 56px 0 84px; }
  .section { padding: 68px 0; }
  .section-header { margin-bottom: 40px; }
}

/* Celulares chicos: aire justo, texto cómodo, botones a lo ancho */
@media (max-width: 480px) {
  .container { padding-left: 18px; padding-right: 18px; }
  .hero { padding: 44px 0 78px; }
  .hero-lead { margin-bottom: 26px; }
  .hero-actions { margin-bottom: 34px; }
  .hero-actions .btn { width: 100%; justify-content: center; text-align: center; }
  .hero-stats { gap: 18px; flex-wrap: wrap; padding-top: 22px; }
  .hero-stat { flex: 1 1 40%; }
  .hero-stat .label br { display: none; }
  .ledger-row { padding: 12px 16px; font-size: 0.84rem; }
  .ledger-card-head, .ledger-card-foot { padding: 14px 16px; }
  .ledger-badge { font-size: 0.68rem; padding: 8px 13px; bottom: -12px; }
  .section { padding: 56px 0; }
  .founder-portrait { width: 180px; height: 180px; }
  .founder-name { font-size: 1.6rem; }
  .founders-grid { gap: 48px; }
  .hero-scroll-hint { display: none; }
}

/* =================== Popup: Factura Electrónica Exenta =================== */
.cpyt-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 37, 71, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  animation: cpytModalFadeIn 0.3s ease forwards;
}
.cpyt-modal-overlay[hidden] { display: none; }
@keyframes cpytModalFadeIn { to { opacity: 1; } }

.cpyt-modal {
  position: relative;
  background: var(--white);
  border-radius: 18px;
  border-top: 4px solid var(--gold);
  box-shadow: var(--shadow-lift);
  max-width: 400px;
  width: 100%;
  padding: 36px 32px 30px;
  text-align: center;
  transform: translateY(14px) scale(0.98);
  opacity: 0;
  animation: cpytModalPop 0.36s var(--ease) 0.05s forwards;
}
@keyframes cpytModalPop { to { transform: translateY(0) scale(1); opacity: 1; } }

.cpyt-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border: none;
  background: var(--paper-dim);
  color: var(--ink-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.cpyt-modal-close:hover { background: var(--line); color: var(--navy); }

.cpyt-modal-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--paper-dim);
  border: 1.5px dashed var(--gold);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cpyt-modal-kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

.cpyt-modal h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: 12px;
}

.cpyt-modal-desc {
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.6;
  max-width: 300px;
  margin: 0 auto 26px;
}

.cpyt-modal-cta {
  display: block;
  width: 100%;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.cpyt-modal-cta:hover { background: var(--navy-2); color: var(--white); }

.cpyt-modal-dismiss {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  font-family: var(--font-body);
}
.cpyt-modal-dismiss:hover { color: var(--navy); }

@media (max-width: 480px) {
  .cpyt-modal { padding: 30px 24px 24px; }
  .cpyt-modal h3 { font-size: 1.18rem; }
}
