/* Cecilia Díaz Gómez · G4 local · Dirección 02 aprobada en D11/D12. */
:root {
  color-scheme: dark;
  --ink: #15191a;
  --deep: #101314;
  --paper: #f8f4ef;
  --wine: #4d1b27;
  --rose: #985360;
  --rose-hover: #854552;
  --accent: #d59884;
  --muted: #d8cec7;
  --muted-light: #5f5653;
  --line: rgb(213 152 132 / 35%);
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
  --gutter: 64px;
  --section-space: 88px;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 24px; }
body { margin: 0; background: var(--ink); color: var(--paper); font: 18px/1.65 var(--sans); }
body, input, select, textarea, button { -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, select { cursor: pointer; }
button:disabled { cursor: not-allowed; }
img { display: block; max-width: 100%; }
figure, p, h1, h2, h3 { margin: 0; }
p + p { margin-top: 20px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; text-wrap: balance; }
h1 { font-size: clamp(48px, 4.72vw, 68px); line-height: 1.02; letter-spacing: -.038em; }
h2 { font-size: clamp(36px, 3.06vw, 44px); line-height: 1.1; letter-spacing: -.025em; }
h3 { font-size: 26px; line-height: 1.2; letter-spacing: -.015em; }
[id] { scroll-margin-top: 24px; }
[tabindex='-1']:focus { outline: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.light :focus-visible { outline-color: var(--rose); }
.contact-form :focus-visible { outline-color: var(--paper); }
[hidden] { display: none !important; }
.container { width: min(1240px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.section-pad { padding-block: var(--section-space); }
.skip-link { position: absolute; z-index: 20; inset: 12px auto auto 16px; transform: translateY(-160%); padding: 10px 18px; background: var(--paper); color: var(--ink); }
.skip-link:focus { transform: none; }
.eyebrow { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; color: var(--accent); font: 600 12px/1.4 var(--sans); letter-spacing: .18em; text-transform: uppercase; }
.eyebrow::after { content: ''; width: 48px; height: 1px; background: currentColor; opacity: .65; }
.light { background: var(--paper); color: var(--ink); color-scheme: light; }
.light .eyebrow { color: var(--rose); }
.section-intro { max-width: 850px; color: var(--muted); margin-top: 22px; }
.light .section-intro { color: var(--muted-light); }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 20px; min-height: 48px; padding: 11px 23px; border: 1px solid transparent; border-radius: 2px; color: #fff; background: var(--rose); font: 400 15px/1.5 var(--sans); text-decoration: none; transition: background-color .16s ease, border-color .16s ease; }
.button:hover { background: var(--rose-hover); }
.button:active { transform: translateY(1px); }
.button-outline { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.button-outline:hover { background: #e9dfd5; border-color: #e9dfd5; }
.button[disabled] { background: var(--rose); opacity: .7; }
.button[disabled]:active { transform: none; }
.site-header { position: absolute; top: 0; left: 0; z-index: 5; width: 100%; border-bottom: 1px solid rgb(248 244 239 / 13%); }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 110px; padding-block: 12px; }
.wordmark { display: inline-flex; flex-shrink: 0; text-decoration: none; }
.brand-logo { width: 170px; height: auto; }
.main-nav ul, .footer-nav ul { display: flex; align-items: center; flex-wrap: wrap; list-style: none; gap: 29px; margin: 0; padding: 0; }
.main-nav a { display: inline-flex; align-items: center; min-height: 48px; text-decoration: none; font-size: 14px; border-bottom: 1px solid transparent; }
.main-nav a:hover { color: var(--accent); border-color: var(--accent); }
.menu-toggle { min-width: 48px; min-height: 48px; border: 1px solid var(--line); background: transparent; color: var(--paper); }
.menu-bars { display: grid; gap: 5px; width: 22px; margin: auto; }
.menu-bars span { display: block; height: 1px; background: currentColor; transition: transform .15s; }
.menu-toggle[aria-expanded='true'] .menu-bars span:first-child { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] .menu-bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded='true'] .menu-bars span:last-child { transform: translateY(-6px) rotate(-45deg); }
.hero { isolation: isolate; position: relative; display: flex; align-items: center; min-height: 760px; padding: 172px 0 90px; background: var(--deep); }
.hero-image, .hero-shade { position: absolute; inset: 0; z-index: -1; }
.hero-image { width: 100%; height: 100%; object-fit: cover; object-position: 68% 50%; }
.hero-shade { background: linear-gradient(90deg, rgb(0 0 0 / 85%) 0%, rgb(0 0 0 / 68%) 35%, rgb(0 0 0 / 35%) 100%); }
.hero-copy { max-width: 620px; }
.hero-copy p { max-width: 590px; margin-top: 28px; color: var(--paper); }
.hero-actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.enfoque { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 2.2fr); align-items: stretch; }
.enfoque-photo { min-height: 348px; }
.enfoque-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 45%; }
.enfoque-content { display: grid; grid-template-columns: minmax(220px, .85fr) minmax(0, 1.15fr); gap: 48px; padding: 64px max(64px, calc((100vw - 1240px) / 2)) 64px 56px; }
.enfoque-heading h2 { max-width: 340px; }
.enfoque-body { color: var(--muted-light); font-size: 17px; }
.services { padding-top: var(--section-space); }
.service-list { margin-top: 48px; }
.service { display: grid; grid-template-columns: 280px minmax(0, 1fr); border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service-media { overflow: hidden; }
.service-media img { width: 100%; height: 100%; object-fit: cover; object-position: 56% 62%; }
.service-finanzas .service-media img { object-position: 58% 61%; }
.service-estrategia .service-media img { object-position: 65% 45%; }
.service-copy { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 28px; padding: 36px 40px; }
.service-number { color: var(--accent); font: 400 76px/1 var(--serif); letter-spacing: -.04em; padding-right: 20px; border-right: 1px solid var(--line); align-self: start; }
.service-text h3 { margin-bottom: 16px; }
.service-text p { color: var(--muted); font-size: 17px; }
.scope-title { margin-top: 23px; margin-bottom: 9px; color: var(--accent); font: 400 18px/1.3 var(--serif); }
.scope-list { margin: 0 0 26px; padding-left: 21px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.scope-list li { padding-left: 2px; margin-block: 3px; }
.scope-list li::marker { color: var(--accent); }
.service .button { justify-content: space-between; font-size: 14px; }
.service-finanzas { grid-template-columns: minmax(0, 1fr) 280px; }
.service-finanzas .service-media { order: 2; }
.service-finanzas .service-copy { order: 1; }
.methodology { margin-top: var(--section-space); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 52px 0 0; list-style: none; padding: 0; }
.step { position: relative; }
.step::before { content: ''; position: absolute; top: 59px; left: 12px; right: -44px; height: 1px; background: rgb(152 83 96 / 40%); }
.step:last-child::before { right: 0; }
.step::after { content: ''; position: absolute; width: 7px; height: 7px; top: 56px; left: 0; border-radius: 50%; background: var(--rose); }
.step-number { display: block; padding-bottom: 24px; color: var(--rose); font: 400 62px/1 var(--serif); }
.step h3 { font-size: 21px; min-height: 76px; margin-top: 15px; }
.step p { margin-top: 18px; color: var(--muted-light); font-size: 16px; }
.method-action { text-align: center; margin-top: 40px; }
.consultancy { position: relative; }
.consultancy-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) 220px; gap: 42px; align-items: stretch; }
.consultancy-intro p { margin-top: 23px; color: var(--muted); font-size: 17px; }
.consultancy-intro .button { margin-top: 28px; }
.benefits { padding-top: 30px; }
.benefit { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 20px; }
.benefit + .benefit { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 30px; }
.benefit-icon { color: var(--accent); }
.benefit-icon svg { width: 43px; height: 43px; }
.benefit h3 { color: var(--accent); font-size: 22px; }
.benefit p { color: var(--muted); font-size: 16px; margin-top: 13px; }
.consultancy-photo picture { display: block; height: 100%; }
.consultancy-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
.contact { position: relative; isolation: isolate; background: var(--wine); }
.contact-image { position: absolute; inset: 0; z-index: -2; height: 100%; width: 100%; object-fit: cover; object-position: 30% 50%; }
.contact::before { content: ''; position: absolute; inset: 0; background: rgb(41 9 19 / 60%); z-index: -1; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 76px; align-items: start; }
.contact-heading h2 { max-width: 430px; }
.contact-heading p { margin-top: 26px; max-width: 460px; }
.contact-email a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; text-underline-offset: 5px; }
.contact-email a:hover { color: var(--accent); }
.contact-form { background: transparent; color: var(--paper); color-scheme: light; padding: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
.field { min-width: 0; }
.field-full { grid-column: 1 / -1; }
label { display: block; margin-bottom: 9px; font-size: 14px; line-height: 1.5; }
.required { color: var(--paper); }
input, select, textarea { width: 100%; max-width: 100%; min-height: 48px; background: #fff; color: var(--ink); border: 1px solid #847877; border-radius: 2px; padding: 11px 12px; font-size: 16px; line-height: 1.5; }
input:hover, select:hover, textarea:hover { border-color: var(--rose); }
textarea { min-height: 144px; resize: vertical; }
.field-help { color: var(--paper); font-size: 12px; margin-top: 7px; }
.contact-form .button { width: 100%; margin-top: 24px; }
.prototype-note { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgb(248 244 239 / 45%); color: var(--paper); font-size: 12px; line-height: 1.6; }
.prototype-note strong { font-weight: 600; }
.service-feedback { color: var(--paper); font-size: 13px; line-height: 1.5; margin-top: 13px; }
.site-footer { padding-top: 48px; background: #202526; }
.footer-grid { display: flex; gap: 48px; justify-content: space-between; align-items: start; }
.footer-brand .brand-logo { width: 200px; }
.footer-brand p { margin-top: 12px; color: var(--muted); max-width: 380px; font-size: 13px; line-height: 1.5; }
.footer-nav ul { gap: 25px; }
.footer-nav a { display: inline-flex; min-height: 48px; align-items: center; font-size: 13px; text-decoration: none; }
.footer-nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 6px; }
.footer-credits { margin-top: 24px; padding-block: 14px; background: var(--deep); }
.footer-bottom { padding-right: 72px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px 32px; font-size: 13px; line-height: 1.6; }
.copyright { margin: 0; }
.developer-credit { display: flex; align-items: center; flex-shrink: 0; gap: 18px; margin: 0; }
.developer-credit img { width: 80px; height: auto; }
.back-top { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 15; display: inline-flex; justify-content: center; align-items: center; width: 48px; height: 48px; border: 1px solid rgb(248 244 239 / 45%); border-radius: 50%; background: var(--wine); color: var(--paper); box-shadow: 0 4px 16px rgb(0 0 0 / 25%); font: 24px/1 var(--sans); text-decoration: none; }
.back-top img { width: 32px; height: 32px; object-fit: contain; }
.ce-recaptcha-active .back-top { bottom: calc(92px + env(safe-area-inset-bottom)); }
.back-top:hover { background: var(--rose); }
@media (min-width: 1600px) {
  .hero { min-height: 820px; }
}
@media (max-width: 1199px) {
  :root { --gutter: 40px; }
  .main-nav ul { gap: 20px; }
  .brand-logo { width: 160px; }
  .enfoque { grid-template-columns: 240px minmax(0, 1fr); }
  .enfoque-content { grid-template-columns: 1fr; padding: 56px 40px; gap: 26px; }
  .enfoque-heading h2 { max-width: 100%; }
  .service { grid-template-columns: 240px minmax(0, 1fr); }
  .service-finanzas { grid-template-columns: minmax(0, 1fr) 240px; }
  .service-copy { grid-template-columns: 78px minmax(0, 1fr); gap: 22px; padding: 32px; }
  .service-number { font-size: 60px; }
  .consultancy-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
  .consultancy-photo { grid-column: 1 / -1; height: auto; }
  .consultancy-photo picture { height: auto; }
  .consultancy-photo img { height: auto; object-fit: contain; }
  .contact-grid { gap: 44px; }
  .contact-form { padding: 0; }
}
@media (min-width: 640px) and (max-width: 1099px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  .step:nth-child(2)::before { right: 0; }
}
@media (max-width: 959px) {
  .ce-js .main-nav:not([data-ready]) { display: none; }
  .site-header { position: relative; background: var(--deep); }
  .header-inner { min-height: 80px; flex-wrap: wrap; gap: 0; padding-block: 16px; }
  .menu-toggle:not([hidden]) { display: block; }
  .main-nav { width: 100%; padding-top: 20px; }
  .main-nav ul { align-items: stretch; flex-direction: column; gap: 0; padding-top: 12px; border-top: 1px solid var(--line); }
  .main-nav a { display: flex; min-height: 52px; font-size: 16px; }
  .hero { min-height: 0; padding: 268px 0 64px; scroll-margin-top: 104px; }
  .hero-image { height: 540px; object-position: 66% 45%; }
  .hero-shade { height: 580px; background: linear-gradient(180deg, rgb(16 19 20 / 12%) 0%, rgb(16 19 20 / 50%) 40%, var(--deep) 96%); }
  .hero-copy { max-width: 640px; }
  .hero h1 { font-size: 54px; }
  .hero-copy p { max-width: 620px; }
  .enfoque { grid-template-columns: 1fr; }
  .enfoque-content { order: 1; padding: 56px 40px; }
  .enfoque-photo { order: 2; height: 260px; min-height: 0; }
  .enfoque-photo img { object-position: 60% 38%; }
  .service, .service-finanzas { grid-template-columns: 1fr; }
  .service .service-media { order: 0; height: 220px; }
  .service .service-copy { order: 1; padding: 36px 0; }
  .service + .service { margin-top: 24px; }
  .service-copy { grid-template-columns: 84px minmax(0, 1fr); gap: 25px; }
  .service-media img { object-position: 56% 60%; }
  .consultancy-grid { grid-template-columns: 1fr; }
  .consultancy-photo { order: -1; }
  .benefits { padding-top: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-heading h2, .contact-heading p { max-width: 680px; }
  .footer-grid { flex-direction: column; gap: 26px; }
  .footer-bottom { justify-content: flex-start; }
}
@media (max-width: 639px) {
  :root { --gutter: 24px; --section-space: 56px; }
  body { font-size: 17px; line-height: 1.6; }
  h1, .hero h1 { font-size: 42px; line-height: 1.05; letter-spacing: -.035em; }
  h2 { font-size: 32px; line-height: 1.15; }
  h3 { font-size: 23px; line-height: 1.25; }
  .brand-logo { width: 150px; }
  .hero { padding: 240px 0 56px; }
  .hero-image { height: 510px; }
  .hero-shade { height: 560px; }
  .hero-copy p { margin-top: 24px; }
  .hero-actions { flex-direction: column; margin-top: 28px; gap: 13px; }
  .hero-actions .button { width: 100%; }
  .eyebrow { margin-bottom: 18px; font-size: 11px; }
  .enfoque-content { padding: 56px 24px; gap: 24px; }
  .enfoque-photo { height: 216px; }
  .section-intro { margin-top: 20px; }
  .service-list { margin-top: 32px; }
  .service .service-media { height: 190px; }
  .service-copy { display: block; position: relative; padding-block: 28px 34px !important; }
  .service-number { display: block; width: auto; border: none; padding: 0; margin-bottom: 20px; font-size: 68px; }
  .service-text h3 { margin-top: -82px; padding-left: 96px; min-height: 68px; display: flex; align-items: center; }
  .service-text p { margin-top: 22px; }
  .service .button { width: 100%; font-size: 13px; gap: 10px; padding-inline: 16px; }
  .scope-list { font-size: 16px; }
  .steps { display: block; margin-top: 36px; }
  .step { padding: 0 0 32px 78px; min-height: 140px; }
  .step-number { position: absolute; top: 0; left: 19px; font-size: 44px; padding: 0; }
  .step::before { top: 15px; bottom: -15px; height: auto; width: 1px; left: 0; right: auto; }
  .step::after { top: 15px; left: -3px; }
  .step:last-child { padding-bottom: 0; }
  .step:last-child::before { display: none; }
  .step h3 { font-size: 20px; min-height: 0; margin: 0; }
  .step p { margin-top: 13px; font-size: 16px; }
  .method-action { margin-top: 32px; }
  .method-action .button { width: 100%; }
  .consultancy-grid { gap: 32px; }
  .consultancy-intro .button { width: 100%; }
  .benefit { grid-template-columns: 40px minmax(0, 1fr); gap: 20px; }
  .benefit-icon svg { width: 36px; height: 36px; }
  .benefit h3 { font-size: 23px; }
  .contact-form { padding: 0; }
  .form-grid { grid-template-columns: 1fr; gap: 22px; }
  .contact-form label { font-size: 14px; }
  .contact .container { width: calc(100% - 32px); }
  .contact-heading { padding-inline: 8px; }
  .footer-nav ul { gap: 3px 24px; }
  .site-footer { padding-top: 40px; }
  .footer-bottom { padding-right: 0; flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-credits { padding-bottom: max(24px, env(safe-area-inset-bottom)); }
  .developer-credit { max-width: calc(100% - 56px); flex-wrap: wrap; gap: 12px; }
  .developer-credit a { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 359px) {
  .brand-logo { width: 140px; }
  .header-inner { gap: 10px; }
  .hero h1 { font-size: 38px; }
  .service-text h3 { padding-left: 80px; font-size: 21px; }
  .service-number { font-size: 58px; }
  .service .button { font-size: 12px; }
  .contact-form { padding: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* WordPress: conservar barra sin cubrir el encabezado. */
.admin-bar .site-header { top: 32px; }
@media (max-width: 959px) { .admin-bar .site-header { top: 0; } }
.service:not(:has(.service-media)) .service-copy { grid-column: 1 / -1; }

/* Recovery page: keep navigation above the message without overlapping it. */
body.error404 .site-header { position: relative; top: 0; }

/* Form transport states; unchanged resting composition. */
.ce-honeypot { display:none !important; }
.contact-error { color:var(--paper); font-size:14px; margin-top:8px; }
#contact-result:focus { outline:2px solid var(--paper); outline-offset:4px; }
