/* ── Variables ── */
:root {
  --gold:    #C9A84C;
  --navy:    #1A1A2E;
  --navy-dk: #16213E;
  --cream:   rgba(240,234,214,0.8);
  --cream-s: #F0EAD6;
  --gold-50: rgba(201,168,76,0.5);
  --font:    'Cormorant Garamond', serif;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--cream);
  font-size: 18px;
  line-height: 1.63;
}
img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }

/* ── Hidden SVG symbols ── */
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ── Screen-reader only ── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ══════════════════════════════════
   NAVIGATION
══════════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 48px;
  background: linear-gradient(to bottom, rgba(26,26,46,0.8) 0%, rgba(26,26,46,0) 100%);
  transition: background 0.3s;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 24px; font-weight: 500; letter-spacing: 0.12em;
  color: var(--gold);
}
.nav-logo svg { width: 42px; height: 42px; }

.nav-links { display: flex; gap: 60px; list-style: none; }
.nav-links a {
  font-size: 16px; color: var(--cream);
  position: relative; padding-bottom: 3px;
  transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(0); transition: transform 0.25s;
  transform-origin: left;
}
.nav-links a:hover            { color: var(--gold); }
.nav-links a:hover::after     { transform: scaleX(1); }
.nav-links li.active a        { color: var(--gold); }
.nav-links li.active a::after { transform: scaleX(1); }

.lang-sw {
  display: flex; align-items: center; gap: 7px; font-size: 14px;
}
.lang-btn {
  display: flex; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  color: var(--cream); font-family: var(--font); font-size: 14px;
  opacity: 0.55; transition: opacity 0.2s, color 0.2s;
}
.lang-btn:hover { opacity: 1; color: var(--gold); }
.lang-btn.active { opacity: 1; }
.lang-sep { opacity: 0.35; color: var(--cream-s); }

/* Flag inline SVG sizing */
.flag { width: 20px; height: 14px; border-radius: 1px; }

/* Hamburger */
.ham {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.ham span { display: block; width: 24px; height: 2px; background: var(--cream-s); transition: 0.3s; }

/* Mobile overlay */
.mob-menu {
  display: none; position: fixed; inset: 0; z-index: 199;
  background: var(--navy-dk); flex-direction: column;
  align-items: center; justify-content: center; gap: 28px;
}
.mob-menu.open { display: flex; }
.mob-menu a { font-size: 26px; color: var(--cream-s); }
.mob-close {
  position: absolute; top: 18px; right: 24px;
  background: none; border: none; color: var(--cream-s);
  font-size: 30px; cursor: pointer; font-family: var(--font);
}
.mob-lang { display: flex; align-items: center; gap: 10px; margin-top: 8px; }

/* ══════════════════════════════════
   HERO
══════════════════════════════════ */
#home {
  position: relative; height: 100vh; min-height: 620px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('images/ann-phillips-low.webp') center/cover no-repeat;
  background-color: var(--navy-dk);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom,
    rgba(22,33,62,0.25) 0%,
    rgba(22,33,62,0.45) 50%,
    rgba(22,33,62,0.92) 100%);
}
.hero-content { position: relative; z-index: 1; padding: 0 20px; }
.hero-brand {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin-bottom: 10px;
}
.hero-brand svg { width: 100px; height: 100px; }
.hero-title {
  font-size: 96px; line-height: 1; font-weight: 600;
  color: var(--gold); letter-spacing: 0.15em;
}
.hero-sub {
  font-size: 34px; font-weight: 300;
  color: var(--cream); margin: 16px 0 40px; letter-spacing: 0.04em;
}
.btn-outline {
  display: inline-block; padding: 13px 40px;
  border: 2px solid var(--gold);
  color: var(--gold); background: none;
  font-family: var(--font); font-size: 18px; letter-spacing: 0.04em;
  cursor: pointer; transition: all 0.3s;
}
.btn-outline:hover {
  background: var(--gold); border-color: var(--gold);
  color: var(--navy);
}

/* ══════════════════════════════════
   SECTIONS BASE
══════════════════════════════════ */
.section { padding: 100px 48px; }
.wrap { max-width: 1200px; margin: 0 auto; }

/* ══════════════════════════════════
   QUÉ ES EXTA
══════════════════════════════════ */
#que-es {
  background: var(--navy-dk);
  border-top: 1px solid rgba(201,168,76,0.12);
  position: relative;
}
#que-es::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('images/LOGO EXTA.png');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 50%;
  opacity: 0.07;
  pointer-events: none;
}
#que-es h2 {
  font-size: 48px; font-weight: 400;
  color: var(--cream-s); margin-bottom: 64px;
}
.que-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 48px;
}
.que-col p   { color: var(--cream); line-height: 1.65; margin-bottom: 20px; }
.que-col .tag { font-weight: bold; color: var(--gold); }

/* ══════════════════════════════════
   HISTORIA
══════════════════════════════════ */
#historia { background: var(--navy); }
.hist-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start;
}
.hist-photos { display: flex; align-items: top; gap: 28px; }
.hist-photo  { text-align: center; }
.hist-photo img, .hist-photo .img-ph {
  width: 210px; height: 280px;
  object-fit: cover; object-position: top;
  border: 2px solid var(--gold);
}
.img-ph {
  background: rgba(201,168,76,0.07);
  border: 1px solid rgba(201,168,76,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-50); font-size: 18px;
}
.hist-photo h3 {
  font-size: 22px; font-weight: 400;
  color: var(--cream-s); margin-top: 14px;
}
.hist-photo .sub { font-size: 18px; color: var(--gold-50); margin-top: 3px; word-break: break-word; overflow-wrap: break-word; }
.hist-text h2 {
  font-size: 48px; font-weight: 400;
  color: var(--gold); margin-bottom: 28px;
}
.hist-text p { color: var(--cream); line-height: 1.65; margin-bottom: 18px; }
.hist-text .tag {
  color: var(--gold);
  text-align: right; margin-top: 28px;
}

/* ══════════════════════════════════
   BIOGRAFÍA
══════════════════════════════════ */
#biografia {
  background: var(--navy);
  position: relative;
}
#biografia::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('images/map.png');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: auto 50%;
  opacity: 0.2;
  pointer-events: none;
  margin-right: 10%;
}
#biografia h2 {
  font-size: 48px; font-weight: 400;
  color: var(--gold); margin-bottom: 28px;
}
.bio-wrap { max-width: 800px; }
.bio-wrap p { color: var(--cream); line-height: 1.65; margin-bottom: 18px; }
.bio-wrap h3 {
  font-size: 24px; font-weight: 400;
  color: var(--gold); margin: 32px 0 18px;
}

/* ══════════════════════════════════
   CÓMO TRABAJAMOS
══════════════════════════════════ */
#como {
  background: var(--navy-dk);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
}
#como h2 {
  font-size: 48px; font-weight: 400;
  color: var(--cream-s); text-align: center; margin-bottom: 56px;
}
.steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.card  {
  border: 2px solid var(--gold); padding: 40px 24px; text-align: center;
  transition: background 0.3s, transform 0.3s;
}
.card:hover {
  background: rgba(201,168,76,0.07);
  transform: translateY(-4px);
}
.card:hover .card-num {
  background: var(--gold);
  color: var(--navy);
}
.card-num {
  width: 54px; height: 54px; border: 2px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
  font-size: 28px; color: var(--gold);
  transition: background 0.3s, color 0.3s;
}
.card h3 {
  font-size: 19px; font-weight: 400; color: var(--cream-s); margin-bottom: 18px;
}
.card p   { font-size: 16px; color: var(--cream); line-height: 1.6; margin-bottom: 10px; }
.card .hl { color: var(--gold); }

/* ══════════════════════════════════
   FORMULARIO
══════════════════════════════════ */
#contacto { background: var(--navy); }
#contacto h2 {
  font-size: 48px; font-weight: 400;
  color: var(--gold); text-align: center; margin-bottom: 48px;
}
.form-wrap { max-width: 840px; margin: 0 auto; }
.f-div {
  display: flex; align-items: center; gap: 20px; margin-bottom: 28px;
}
.f-div::before, .f-div::after {
  content: ''; flex: 1; height: 1px; background: rgba(201,168,76,0.25);
}
.f-div span { font-size: 25px; color: var(--cream); white-space: nowrap; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; }
.f-field { margin-bottom: 42px; }
.f-field.half { max-width: calc(50% - 12px); }
.f-field label {
  display: block; font-size: 18px; color: var(--cream); margin-bottom: 7px;
  letter-spacing: 0.02em;
}
.f-field label .opt { color: var(--gold-50); }
.f-field input,
.f-field textarea {
  width: 100%; background: transparent; border: none;
  border-bottom: 1px solid var(--gold); color: var(--cream-s);
  padding: 9px 0;
  font-family: var(--font); font-size: 16px; outline: none;
  transition: border-color 0.2s;
}
.f-field input::placeholder,
.f-field textarea::placeholder { color: var(--gold-50); }
.f-field input:focus,
.f-field textarea:focus { border-bottom-color: var(--gold); }
.f-field input:not(:placeholder-shown),
.f-field textarea:not(:placeholder-shown) { border-bottom-color: var(--cream-s); }
.f-field textarea {
  resize: vertical; min-height: 96px;
  border: 1px solid var(--gold); padding: 9px 12px;
}
.f-field textarea:focus { border-color: var(--gold); }
.f-field textarea:not(:placeholder-shown) { border-color: var(--cream-s); }

.f-field input.input-error { border-bottom-color: #e05c5c !important; }
.f-field textarea.input-error { border-color: #e05c5c !important; }
.f-field.field-error > label { color: #e05c5c; }
.field-msg {
  display: none; font-size: 12px; color: #e05c5c;
  margin-top: 5px;
}
.field-msg.visible { display: block; }
.f-field input[type="date"] { color-scheme: dark; }
.f-field input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(72%) sepia(45%) saturate(500%) hue-rotate(5deg) brightness(95%);
  cursor: pointer;
}

.f-notes { margin: 28px 0 8px; }
.f-note {
  display: flex; gap: 14px; margin-bottom: 18px;
  font-size: 15px; color: var(--cream); line-height: 1.5;
}
.f-note svg { flex-shrink: 0; width: 18px; height: 18px; margin-top: 3px; color: var(--gold); }
.f-note a   { color: var(--gold); text-decoration: underline; }

.f-submit { text-align: center; margin-top: 36px; }
.btn-gold {
  background: var(--gold); color: var(--navy);
  border: none; padding: 15px 52px;
  font-family: var(--font); font-size: 18px; letter-spacing: 0.04em;
  cursor: pointer; transition: opacity 0.2s;
}
.btn-gold:hover    { opacity: 0.85; }
.btn-gold:disabled { opacity: 0.5; cursor: not-allowed; }

#f-success {
  display: none; text-align: center;
  max-width: 400px; margin: 0 auto;
  padding: 48px 40px;
  border: 1px solid var(--gold);
}
#f-success .success-icon {
  width: 56px; height: 56px; margin: 0 auto 24px;
  border: 2px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
}
#f-success .success-title {
  font-size: 32px; font-weight: 400;
  color: var(--cream-s); line-height: 1.2; margin-bottom: 24px;
}
#f-success .success-sub {
  font-size: 16px; color: var(--cream); line-height: 1.6; margin-bottom: 20px;
}
#f-success .success-sub .exta-hl { color: var(--gold); }
#f-success .success-email {
  font-size: 24px; color: var(--cream-s); margin-bottom: 36px; word-break: break-all;
}

/* ══════════════════════════════════
   FOOTER
══════════════════════════════════ */
footer {
  background: var(--navy-dk);
  border-top: 2px solid rgba(201,168,76,0.25);
  padding: 36px 48px;
}
.foot-in {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  align-items: center; gap: 20px;
}
.foot-brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--gold); font-size: 15px;
}
.foot-brand svg { width: 30px; height: 30px; }
.foot-social   { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.foot-social-lbl { font-size: 14px; color: var(--cream); }
.foot-icons    { display: flex; gap: 18px; }
.foot-icons a  { color: var(--cream-s); opacity: 0.65; transition: opacity 0.2s; }
.foot-icons a:hover { opacity: 1; }
.foot-contact  { text-align: right; }
.foot-contact a {
  display: block; color: var(--cream); font-size: 14px;
  margin-bottom: 7px; transition: color 0.2s;
}
.foot-contact a:hover { color: var(--gold); }

/* ══════════════════════════════════
   RESPONSIVE — 1024px
══════════════════════════════════ */
@media (max-width: 1024px) {
  #navbar        { padding: 14px 24px; }
  .nav-links     { gap: 28px; }
  .section       { padding: 80px 24px; }
  .que-grid      { gap: 32px; }
  .steps         { grid-template-columns: repeat(2,1fr); }
  .hist-photo img, .hist-photo .img-ph { width: 170px; height: 225px; }
}

/* ══════════════════════════════════
   RESPONSIVE — 768px
══════════════════════════════════ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .ham       { display: flex; }

  .hero-title { font-size: 60px; }
  .hero-sub   { font-size: 22px; }

  .section { padding: 64px 20px; }

  .que-grid  { grid-template-columns: 1fr; gap: 40px; }

  .hist-grid   { grid-template-columns: 1fr; gap: 44px; }
  .hist-photos { justify-content: center; }
  .hist-photo img, .hist-photo .img-ph { width: 150px; height: 200px; }

  .steps { grid-template-columns: 1fr; }

  .f-row   { grid-template-columns: 1fr; gap: 0; }
  .f-field.half { max-width: 100%; }

  .foot-in { grid-template-columns: 1fr; text-align: center; }
  .foot-contact { text-align: center; }
  footer { padding: 32px 20px; }
}

/* ══════════════════════════════════
   RESPONSIVE — 480px
══════════════════════════════════ */
@media (max-width: 480px) {
  .hero-title { font-size: 48px; }
  .hero-sub   { font-size: 18px; }
  .hero-brand svg { width: 48px; height: 48px; }
}
