/* ==========================================================
   PRIVATE COSTA · style.css
   Compartido por /index.html (EN) y /es/index.html (ES)
   Tipografías: Cormorant Garamond (titulares) + Montserrat (texto)
   Se cargan desde Google Fonts en el <head> de cada HTML.
   ========================================================== */

:root {
  --cream: #f6f2ed;
  --sage: #6e7262;
  --sand: #c7bbaa;
  --ink: #3c3c37;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(80px, 11vw, 150px);
  --header-h: 76px;
  --maxw: 1600px;
  --edge: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  --line: 0.5px solid var(--sand);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.005em;
}

p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--sand); color: var(--ink); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 1px solid var(--sage); outline-offset: 4px; }

/* ---------- Botones (de contorno, discretos) ---------- */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border: 0.5px solid currentColor;
  background: transparent;
  color: inherit;
  font: 400 11px/1 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: var(--cream); }

.btn--light { color: var(--cream); }
.btn--light:hover { background: var(--cream); border-color: var(--cream); color: var(--sage); }

.btn--solid { background: var(--cream); border-color: var(--cream); color: var(--sage); width: 100%; }
.btn--solid:hover { background: transparent; color: var(--cream); }

/* ---------- Cabecera ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 80;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--edge);
  color: var(--ink);
  transition: background 0.35s, border-color 0.35s, color 0.35s;
  border-bottom: 0.5px solid transparent;
}
.site-header.is-scrolled {
  background: var(--cream);
  border-bottom-color: var(--sand);
}

.brand {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0.22em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.header-right { display: flex; align-items: center; gap: 26px; }

.lang-switch { display: flex; gap: 10px; font-size: 11px; letter-spacing: 0.16em; }
.lang-switch a { text-decoration: none; opacity: 0.55; transition: opacity 0.2s; }
.lang-switch a:hover,
.lang-switch a[aria-current="true"] { opacity: 1; }
.lang-switch span { opacity: 0.35; }

.menu-toggle {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 7px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 1px;
  background: currentColor;
  transition: transform 0.35s, width 0.35s, opacity 0.2s;
}
.menu-toggle span:nth-child(1),
.menu-toggle span:nth-child(3) { width: 26px; }
.menu-toggle span:nth-child(2) { width: 18px; }
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); width: 26px; }

/* ---------- Menú: panel compacto en escritorio, pantalla completa en móvil ---------- */
.menu {
  position: fixed;
  top: calc(var(--header-h) - 6px);
  right: var(--edge);
  z-index: 70;
  width: 300px;
  padding: 10px 28px 14px;
  background: var(--sage);
  color: var(--cream);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}
.menu.is-open { opacity: 1; visibility: visible; transform: none; }
.menu li { border-bottom: 0.5px solid rgba(246, 242, 237, 0.22); }
.menu li:last-child { border-bottom: 0; }
.menu a {
  display: block;
  padding: 14px 0;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
  text-decoration: none;
  transition: padding-left 0.25s, color 0.25s;
}
.menu a:hover { padding-left: 8px; color: var(--sand); }

/* ---------- Inicio ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 820px);
  display: flex;
  align-items: center;
  background: var(--sand);
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(246, 242, 237, 0.95) 0%, rgba(246, 242, 237, 0.87) 38%, rgba(246, 242, 237, 0.62) 58%, rgba(246, 242, 237, 0.2) 78%, rgba(246, 242, 237, 0) 92%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 80px;
  animation: hero-in 1.4s ease both;
}
@keyframes hero-in { from { opacity: 0; } to { opacity: 1; } }

.hero-tagline {
  margin: 0 0 28px;
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage);
}
.hero h1 {
  margin-bottom: 26px;
  font-size: clamp(36px, 6.4vw, 92px);
  line-height: 1.04;
}
.hero h1 span { display: block; }
.hero-sub {
  max-width: 38em;
  margin-bottom: 14px;
  font-family: var(--serif);
  font-size: clamp(21px, 2.2vw, 28px);
  line-height: 1.3;
}
.hero-text { max-width: 40em; margin-bottom: 36px; font-size: 14px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Introducción ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr);
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
}
.intro h2 { margin-bottom: 32px; font-size: clamp(34px, 4.4vw, 56px); }
.intro-text { max-width: 34em; }
.intro-img { aspect-ratio: 4 / 5; background: var(--sand); }
.intro-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Encabezados de sección ---------- */
/* Titular arriba y texto debajo */
.section-head,
.about-lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.section-head h2,
.about-lead h2 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 48px);
}

.section-head > p,
.about-lead > p {
  max-width: 65em;
  margin: 0;
}

/* ---------- Desplegables (Servicios y Preguntas frecuentes) ---------- */
.accordion { border-top: 0; }
.acc-item { border-bottom: var(--line); }

.acc-head,
.acc-head:hover,
.acc-head:focus,
.acc-head:active {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  margin: 0;
  padding: 26px 4px;
  display: flex;
  align-items: center;
  gap: 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.acc-num { min-width: 24px; font-size: 11px; letter-spacing: 0.12em; color: var(--sage); }
.acc-text { flex: 1; }
.acc-title {
  display: block;
  font-family: var(--serif);
  font-size: clamp(20px, 2vw, 25px);
  line-height: 1.3;
  transition: color 0.25s;
}

.acc-sub { display: block; margin-top: 5px; font-size: 12.5px; color: var(--sage); }
.acc-head:hover .acc-title,
.acc-head:focus-visible .acc-title { color: var(--sage); }

.acc-icon { position: relative; flex: none; width: 16px; height: 16px; transition: transform 0.35s; }
.acc-icon::before,
.acc-icon::after { content: ""; position: absolute; background: var(--sage); }
.acc-icon::before { left: 0; right: 0; top: 7.5px; height: 1px; }
.acc-icon::after { top: 0; bottom: 0; left: 7.5px; width: 1px; }
.acc-item.is-open .acc-icon { transform: rotate(45deg); }

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}
.acc-item.is-open .acc-panel { grid-template-rows: 1fr; }
.acc-inner { min-height: 0; overflow: hidden; }
.acc-body { padding: 0 4px 32px 50px; }
.acc-body p { max-width: 38em; font-size: 14px; }
.acc-body p:last-child { margin-bottom: 0; }

.svc-list { columns: 2; column-gap: 48px; margin-top: 20px; }
.services .acc-body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(32px, 6vw, 100px);
  align-items: start;
}
.services .acc-body .svc-list { margin-top: 0; }

/* FAQ: titular arriba, preguntas debajo */
.faq .container {
  display: block;
}

.faq .section-head {
  display: block;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.svc-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 9px;
  height: 0.5px;
  background: var(--sage);
}

/* ---------- Asistencia continua ---------- */
.assist {
  margin-top: clamp(56px, 7vw, 96px);
  padding: clamp(48px, 6vw, 88px) 0;
  background: var(--sage);
  color: var(--cream);
}
.assist h3 { margin-bottom: 8px; font-size: clamp(28px, 3.4vw, 42px); }
.assist-lead { margin-bottom: 20px; color: var(--sand); }
.assist p { max-width: none; }
.assist-close { margin-bottom: 30px; font-family: var(--serif); font-size: 22px; line-height: 1.3; }
.legal { max-width: none; margin: 28px 0 0; font-size: 11.5px; line-height: 1.7; color: var(--cream); text-align: center;}

/* ---------- Franja de imagen ---------- */
.strip { height: clamp(180px, 30vw, 400px); background: var(--sand); }
.strip img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Sobre PRIVATE COSTA ---------- */

.about-pillars {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: clamp(64px, 9vw, 120px);
}
.about-pillars li { padding-top: 18px; border-top: var(--line); }
.about-pillars h4 { margin-bottom: 10px; font-size: 24px; }
.about-pillars p { margin: 0; font-size: 13px; line-height: 1.7; }
.about-philosophy-title { margin-bottom: 28px; font-size: clamp(26px, 3vw, 34px); }

.founder { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(36px, 7vw, 100px); align-items: start; }
.founder-photo { aspect-ratio: 4 / 5; background: var(--sand); }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-quote {
  margin: 26px 0 0;
  font-family: var(--serif);
  font-weight: 200;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.4;
}
.founder-name { margin: 0; font-family: var(--serif); font-size: 26px; }
.founder-role { margin: 2px 0 24px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); }
.founder-bio p { max-width: 36em; font-size: 14px; }
.founder-tagline { margin-top: 28px; font-family: var(--serif); font-style: italic; font-size: 22px; line-height: 1.3; color: var(--sage); }
.about-cta { margin-top: clamp(40px, 5vw, 64px); }

/* ---------- Contacto ---------- */
.contact { background: var(--sage); color: var(--cream); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 8vw, 110px); }
.contact h2 { margin-bottom: 22px; font-size: clamp(34px, 4.4vw, 56px); }
.contact-lead { font-family: var(--serif); font-size: 24px; line-height: 1.3; color: var(--sand); }
.contact-info { margin-top: 36px; font-size: 14px; line-height: 1.9; }
.contact-info strong { font-weight: 400; letter-spacing: 0.04em; }
.contact-info a { text-decoration-thickness: 0.5px; text-underline-offset: 4px; }

.form-row { margin-bottom: 18px; }
.form-row label { display: block; margin-bottom: 7px; font-size: 11px; letter-spacing: 0.12em; color: var(--sand); }
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 14px 16px;
  border: 0.5px solid var(--sand);
  border-radius: 0;
  background: var(--cream);
  color: var(--ink);
  font: 300 14px/1.5 var(--sans);
  -webkit-appearance: none;
  appearance: none;
}
.form-row select {
  background-image: linear-gradient(45deg, transparent 50%, var(--sage) 50%), linear-gradient(135deg, var(--sage) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}
.form-row textarea { min-height: 130px; resize: vertical; }
.form-row input:focus-visible,
.form-row select:focus-visible,
.form-row textarea:focus-visible { outline: 1px solid var(--cream); outline-offset: 3px; }
.form-note { min-height: 1.6em; margin: 14px 0 0; font-size: 13px; color: var(--sand); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pie ---------- */
.site-footer {
  padding: 28px var(--gutter);
  background: var(--sage);
  border-top: 0.5px solid rgba(246, 242, 237, 0.25);
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--sand);
}
.site-footer p { margin: 0; }

/* ---------- Tablet ---------- */
@media (max-width: 960px) {
  .intro-grid,
  .founder,
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .intro-img { max-width: 420px; }
  .founder-photo { max-width: 420px; }
  .about-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head,
  .about-lead { grid-template-columns: minmax(0, 1fr); }
  .section-head h2,
  .about-lead h2 { grid-column: 1; grid-row: auto; margin-bottom: 24px; }
  .section-head > p,
  .about-lead > p { grid-column: 1; }
  .faq .container { grid-template-columns: minmax(0, 1fr); }
  .faq .section-head { margin-bottom: 36px; }
  .services .acc-body { grid-template-columns: minmax(0, 1fr); }
  .services .acc-body .svc-list { margin-top: 20px; }
}

/* ---------- Móvil ---------- */
@media (max-width: 640px) {
  :root { --header-h: 66px; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { background: transparent; border-bottom-color: transparent; color: var(--cream); }
  .menu { top: 0; right: 0; bottom: 0; left: 0; width: auto; display: flex; align-items: center; padding: var(--header-h) var(--gutter) 40px; transform: none; }
  .menu ul { width: 100%; }
  .menu li:last-child { border-bottom: 0.5px solid rgba(246, 242, 237, 0.22); }
  .menu a { padding: 18px 0; font-size: clamp(30px, 9vw, 40px); }
  body { font-size: 14.5px; }
  .brand { font-size: 17px; letter-spacing: 0.16em; }
  .header-right { gap: 16px; }

  .hero::after {
    background: linear-gradient(180deg, rgba(246, 242, 237, 0.93) 0%, rgba(246, 242, 237, 0.82) 55%, rgba(246, 242, 237, 0.5) 100%);
  }
  .hero-content { padding-bottom: 56px; }
  .hero-actions .btn { width: 100%; text-align: center; }

  .acc-head { gap: 14px; padding: 22px 2px; }
  .acc-body { padding: 0 2px 28px 2px; }
  .svc-list { columns: 1; }
  .about-pillars { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}