/* Valentina Vaz — Modern Institutional Luxury / Editorial Minimalism.
   Shared by the three static language pages and the PHP response page. */
:root {
  --navy: #1F3552;
  --navy-deep: #16273D;
  --ivory: #F7F3EC;
  --beige: #E6D8C3;
  --gold: #B89A62;
  --gray: #4B4F56;
  --white: #FFFFFF;
  --line: #E6D8C3;
  --bg: var(--ivory);
  --ink: var(--navy);
  --muted: var(--gray);
  --surface: var(--white);
  --font: 'Inter', sans-serif;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --width: 1240px;
  --radius: 8px;
  --space-section: clamp(72px, 8vw, 120px);
  --space-grid: clamp(24px, 5vw, 72px);
  --ease: 220ms ease;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 136px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.8 var(--font); }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a, summary { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:where(a, button, input, textarea, summary):focus-visible { outline: 2px solid var(--navy); outline-offset: 5px; }
.container { width: min(var(--width), calc(100% - 40px)); margin-inline: auto; }
.section { padding-block: var(--space-section); }
h1, h2, h3, h4, p, figure { margin: 0; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 500; line-height: 1.1; letter-spacing: -.025em; text-wrap: balance; }
h1 { font-size: clamp(44px, 5.2vw, 64px); }
h2 { font-size: clamp(36px, 3.7vw, 44px); }
h3 { font-size: clamp(28px, 2.7vw, 32px); }
h4 { font-size: clamp(24px, 2vw, 26px); }
em { font-weight: inherit; }
p { color: var(--muted); }
.eyebrow, .section-label > span { display: block; font-size: 10px; line-height: 1.7; letter-spacing: .16em; font-weight: 600; }
.small-line { display: inline-block; width: 32px; height: 1px; background: var(--gold); vertical-align: middle; margin-right: 14px; }
.skip-link { position: fixed; top: 8px; left: 8px; transform: translateY(-150%); z-index: 50; background: var(--navy); color: var(--white); padding: 12px 20px; }
.skip-link:focus { transform: none; }

/* Identity, language navigation and mobile menu. */
.header { position: sticky; top: 0; z-index: 20; background: var(--ivory); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 16px; padding-block: 12px 6px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-size: 25px; font-weight: 600; line-height: 1.1; white-space: nowrap; }
.brand small { display: block; margin-top: 6px; font: 500 7px/1.5 var(--font); letter-spacing: .13em; }
.brand-photo { display: block; width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid var(--gold); border-radius: 50%; background: var(--beige); overflow: hidden; }
.brand-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.65); transform-origin: 50% 18%; }
.language-switch { display: flex; justify-content: flex-end; gap: 2px; order: 3; flex-basis: 100%; }
.language-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 44px; font-size: 11px; line-height: 1; font-weight: 500; border-bottom: 1px solid transparent; transition: background var(--ease); }
.language-switch a:hover { background: var(--beige); }
.language-switch a[aria-current='page'] { border-color: var(--gold); font-weight: 600; }
.menu-toggle { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 0 8px 8px; color: var(--navy); border: 0; background: transparent; font-size: 12px; }
.menu-icon { position: relative; width: 20px; height: 12px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; }
.menu-icon::after { content: ''; position: absolute; left: 0; right: 0; top: 5px; height: 1px; background: currentColor; }
.header nav { order: 4; display: flex; flex-direction: column; gap: 4px; flex-basis: 100%; padding-block: 16px; border-top: 1px solid var(--line); max-height: calc(100dvh - 110px); overflow-y: auto; font-size: 15px; font-weight: 500; }
.header nav > a:not(.button) { padding-block: 10px; }
.header nav > a:not(.button):hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 7px; }
.js .header nav { display: none; }
.js .header nav.is-open { display: flex; }
.header .nav-cta { align-self: flex-start; margin-top: 8px; }

/* Buttons use strong contrast; the gold is reserved for ornaments. */
.button { display: inline-flex; justify-content: center; align-items: center; gap: 16px; min-height: 52px; max-width: 100%; padding: 14px 22px; border: 1px solid var(--navy); border-radius: var(--radius); font-size: 15px; font-weight: 600; line-height: 1.5; text-align: center; transition: background var(--ease), color var(--ease), border-color var(--ease); }
.button span { flex-shrink: 0; font-size: 18px; font-weight: 400; }
.primary { background: var(--navy); color: var(--white); }
.primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); }
.secondary, .whatsapp { background: transparent; color: var(--navy); }
.secondary:hover { background: var(--beige); }
.whatsapp:hover { background: #EDF7EF; border-color: #278349; }
.button:disabled { cursor: wait; opacity: .65; }
.text-link { display: inline-flex; align-items: center; gap: 18px; min-height: 44px; padding-block: 8px; border-bottom: 1px solid var(--gold); font-size: 14px; font-weight: 500; line-height: 1.6; }
.text-link:hover { color: var(--navy-deep); border-color: var(--navy); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* Editorial introduction and original, unaltered portrait. */
.hero { padding-top: clamp(40px, 5vw, 72px); }
.hero-layout { display: grid; gap: 46px; align-items: center; }
.hero-copy { min-width: 0; }
.hero .eyebrow { margin-bottom: 24px; }
.hero h1 { margin-bottom: 20px; }
.hero-promise { max-width: 440px; margin-bottom: 18px; font: 500 clamp(25px, 2.3vw, 29px)/1.25 var(--font-heading); color: var(--navy); }
.hero-description { max-width: 460px; font-size: 16px; line-height: 1.8; }
.hero-portrait { position: relative; width: 100%; max-width: 490px; justify-self: center; padding: 0 10px 0 0; }
.portrait-frame { position: relative; background: var(--beige); border-radius: 100px 8px 8px 8px; }
.portrait-frame::before { content: ''; position: absolute; inset: 12px -10px -12px 12px; border: 1px solid var(--gold); border-radius: 96px 6px 6px 6px; pointer-events: none; }
.portrait-frame img { position: relative; display: block; width: 100%; height: auto; border-radius: inherit; }
.hero-portrait figcaption { position: relative; display: flex; align-items: flex-start; gap: 20px; width: calc(100% - 24px); margin: -18px 0 0 -4px; padding: 22px 24px; background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.caption-rule { width: 1px; height: 60px; background: var(--gold); flex-shrink: 0; }
.hero-portrait figcaption .eyebrow { font-size: 8px; letter-spacing: .12em; margin-bottom: 10px; }
.hero-portrait figcaption p { font: 500 25px/1.15 var(--font-heading); color: var(--navy); }
.hero-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 24px; margin-top: 44px; border-top: 1px solid var(--line); font-size: 12px; color: var(--gray); }
.hero-footer a { color: var(--navy); }
.hero-footer a span { margin-left: 16px; }

/* Five confirmed services, plus a consultation card. */
#servicios { position: relative; }
.section-heading { display: flex; flex-direction: column; gap: 24px; margin-bottom: 36px; }
.section-heading .eyebrow { margin-bottom: 18px; }
.section-heading p { font-size: 15px; }
.services-grid { display: grid; gap: 18px; }
.service { min-width: 0; padding: 30px; display: flex; flex-direction: column; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: border-color var(--ease), transform var(--ease); }
.service:hover { border-color: var(--gold); transform: translateY(-3px); }
.service-top { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 30px; }
.service-icon { width: 32px; height: 32px; color: var(--gold); }
.service-number { font-size: 10px; color: var(--gray); letter-spacing: .1em; }
.service h3 { margin-bottom: 18px; }
.service p { font-size: 15px; line-height: 1.8; margin-bottom: 24px; }
.service-link { margin-top: auto; font-size: 12px; }
.service-cta { background: var(--navy); color: var(--white); }
.service-cta .eyebrow { font-size: 9px; margin-bottom: 34px; }
.service-cta p { color: var(--ivory); }
.service-cta .text-link { color: var(--white); margin-top: auto; }
.service-cta :focus-visible { outline-color: var(--white); }

/* Personal introduction, using the same original photograph. */
.about { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; gap: 40px; }
.section-label > span { margin-bottom: 16px; }
.section-label > p { font: 500 28px/1.15 var(--font-heading); color: var(--navy); }
.about-portrait { max-width: 390px; margin-top: 28px; background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.about-portrait img { display: block; width: 100%; height: auto; }
.about-portrait figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; border-top: 1px solid var(--line); padding: 18px 22px; font: 500 26px/1.2 var(--font-heading); background: var(--white); }
.about-portrait figcaption span { font: 400 11px/1.6 var(--font); color: var(--gray); }
.about-copy h2 { margin-bottom: 26px; }
.about-copy .lead { font-size: 19px; line-height: 1.7; color: var(--navy); margin-bottom: 22px; }
.about-copy > p { margin-bottom: 24px; }
.about-copy .text-link { margin-top: 6px; }

/* Native details/summary works without JS and with keyboard navigation. */
.faq h2 { margin-block: 18px 24px; }
.faq .split > div > p { font-size: 15px; }
.faq-note { margin-bottom: 22px; font-size: 13px !important; line-height: 1.7; }
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; list-style: none; font-size: 15px; font-weight: 500; line-height: 1.6; cursor: pointer; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary:hover { color: var(--navy-deep); }
.accordion summary span { flex-shrink: 0; font-size: 24px; font-weight: 400; transition: transform var(--ease); }
.accordion details[open] summary span { transform: rotate(45deg); }
.accordion details p { margin-bottom: 26px; padding-right: 24px; font-size: 15px; line-height: 1.8; }
.accordion details[open] p { animation: answer-in 220ms ease-out; }
@keyframes answer-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* Contact and shared form controls. */
#contacto { border-top: 1px solid var(--line); }
.contact-grid { display: grid; gap: 42px; }
.contact-grid h2 { margin-block: 18px 24px; }
.contact-intro { max-width: 380px; margin-bottom: 28px; }
.contact-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.contact-links .text-link { overflow-wrap: anywhere; }
.contact-links .whatsapp { margin-bottom: 12px; }
.social-links { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 24px; font-size: 13px; }
.social-links a { min-height: 44px; display: inline-flex; align-items: center; }
.social-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.contact-locations { margin-top: 36px; }
.contact-locations .small-line { display: block; margin-bottom: 16px; }
.contact-locations p { color: var(--navy); font: 500 25px/1.3 var(--font-heading); }
.contact-locations small { display: block; margin-top: 12px; color: var(--gray); font-size: 8px; letter-spacing: .1em; }
#contact-form { min-width: 0; padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.form-heading { padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 26px; font-size: 16px; line-height: 1.6; font-weight: 500; }
.form-heading span { display: block; font-size: 11px; font-weight: 400; color: var(--gray); margin-top: 6px; }
.form-row { display: grid; }
.field { min-width: 0; margin-bottom: 22px; }
.field label { display: block; margin-bottom: 9px; font-size: 13px; font-weight: 500; }
.field label span { color: var(--gray); font-weight: 400; }
.field input, .field textarea { display: block; width: 100%; padding: 12px 14px; border: 1px solid #C7BBA8; border-radius: 6px; background: var(--white); color: var(--navy-deep); font-size: 16px; line-height: 1.6; transition: border-color var(--ease); }
.field input:hover, .field textarea:hover { border-color: var(--navy); }
.field input::placeholder, .field textarea::placeholder { color: #686C72; font-size: 13px; opacity: 1; }
.field textarea { resize: vertical; min-height: 150px; }
.privacy-note { font-size: 12px; line-height: 1.75; margin-bottom: 24px; }
.submit { width: 100%; }
.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#form-status { margin-top: 16px; font-size: 13px; }
#form-status:empty { margin: 0; }
#form-status[data-state='error'] { color: #9A2525; }

/* Footer and standalone PHP response. */
.footer { padding-block: 36px; background: var(--navy-deep); color: var(--ivory); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.footer .brand { font-size: 26px; }
.footer p { color: var(--beige); font-size: 12px; }
.footer-inner > a:last-child { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; }
.footer :focus-visible { outline-color: var(--ivory); }
.response-page { width: min(650px, calc(100% - 40px)); margin: 12vh auto; }
.response-page h1 { font-size: 44px; margin-block: 24px; }
.response-page p { margin-bottom: 24px; }

/* Reveals only activate when JS confirms motion is appropriate. Content stays
   visible if JS, IntersectionObserver or animation support is unavailable. */
.reveal-pending { opacity: 0; transform: translateY(12px); transition: opacity 550ms ease, transform 550ms ease; }
.reveal-pending.is-visible { opacity: 1; transform: none; }

@media (min-width: 620px) {
  .container { width: min(var(--width), calc(100% - 64px)); }
  .header-inner { padding-block: 16px; }
  .language-switch { order: 0; flex-basis: auto; margin-left: auto; }
  .brand { font-size: 28px; }
  .brand-photo { width: 46px; height: 46px; flex-basis: 46px; }
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  #contact-form { padding: 36px; }
  .hero-portrait { max-width: 480px; }
  .submit { width: auto; min-width: 210px; }
}
@media (min-width: 900px) {
  html { scroll-padding-top: 112px; }
  .hero-layout { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; }
  .hero-portrait figcaption { margin-left: -20px; }
  .hero-footer { margin-top: 52px; }
  .split { grid-template-columns: minmax(0, .85fr) minmax(0, 1.2fr); gap: var(--space-grid); }
  .about .split { align-items: center; }
  .section-heading { flex-direction: row; justify-content: space-between; align-items: flex-end; margin-bottom: 42px; }
  .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service { padding: 28px; }
  .service h3 { min-height: 70px; }
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; }
}
@media (min-width: 1200px) {
  .header-inner { flex-wrap: nowrap; gap: 20px; padding-block: 19px; }
  .header nav, .js .header nav, .js .header nav.is-open { display: flex; flex-direction: row; align-items: center; flex-basis: auto; margin-left: auto; padding: 0; gap: 20px; border: 0; overflow: visible; max-height: none; order: 1; }
  .header nav > a { white-space: nowrap; }
  .header nav > a:not(.button) { padding-block: 12px; }
  .header .nav-cta { margin-top: 0; font-size: 13px; padding: 12px 16px; min-height: 46px; gap: 10px; }
  .header .brand { font-size: 27px; }
  .header .brand-photo { width: 40px; height: 40px; flex-basis: 40px; }
  .header .brand small { font-size: 6px; }
  .header .language-switch { order: 2; margin-left: 0; }
  .header .language-switch a { min-width: 28px; }
  .menu-toggle { display: none; }
  .hero-layout { gap: 92px; }
  .hero-portrait { padding-right: 12px; }
  .hero-portrait figcaption { margin-left: -34px; }
  .hero-description { font-size: 17px; }
  .service { padding: 36px; }
  .contact-grid { gap: 80px; }
  .split { gap: 100px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-pending { opacity: 1; transform: none; }
  .service:hover { transform: none; }
}
