/* ===== Variables y base (estética estilo Apple, monocromo) ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;     /* gris Apple */
  --ink: #1d1d1f;        /* casi negro Apple */
  --muted: #6e6e73;      /* gris texto */
  --gold: #1d1d1f;       /* acento (negro) */
  --gold-dark: #1d1d1f;
  --line: #d2d2d7;       /* gris bordes */
  --radius: 18px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 12px 36px rgba(0, 0, 0, 0.10);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== Navegación ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.nav__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.55rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand { display: flex; align-items: center; }
.nav__logo { height: 40px; width: auto; }
.nav__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav__links a {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--ink);
  opacity: 0.85;
  transition: opacity 0.2s;
}
.nav__links a:hover { opacity: 1; }
.nav__cta {
  background: var(--ink);
  color: #fff !important;
  padding: 0.5rem 1.1rem;
  border-radius: 980px;
  opacity: 1 !important;
  font-weight: 500;
}
.nav__cta:hover { background: #000; }
.nav__toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
}

/* ===== Botones (pill estilo Apple) ===== */
.btn {
  display: inline-block;
  padding: 0.85rem 1.9rem;
  border-radius: 980px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all 0.25s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: #000; transform: scale(1.02); }
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost:hover { background: var(--ink); color: #fff; }

/* ===== Portada (hero claro) ===== */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, #ffffff 0%, #f5f5f7 100%);
  color: var(--ink);
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
}
.hero__overlay { display: none; }
.hero__content { position: relative; max-width: 760px; }
.hero__logo { margin-bottom: 1.75rem; }
.hero__logo img {
  width: clamp(300px, 62vw, 560px);
  height: auto;
  margin: 0 auto;
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 1rem;
}
.hero__title {
  font-weight: 600;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.hero__subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 400;
  color: var(--muted);
  max-width: 540px;
  margin: 0 auto 2.5rem;
  line-height: 1.4;
}
.hero__buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ===== Secciones ===== */
.section { max-width: 1080px; margin: 0 auto; padding: 6.5rem 1.5rem; }
.section--alt {
  max-width: none;
  background: var(--bg-alt);
}
.section--alt > * { max-width: 1080px; margin-left: auto; margin-right: auto; }
.section__head { text-align: center; margin-bottom: 3.5rem; }
.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.section__title {
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 1rem;
}
.section__lead {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 580px;
  margin: 0 auto;
}
.section__action { text-align: center; margin-top: 3rem; }

/* ===== Servicios ===== */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.service-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 1.1rem;
}
.service-card ul { list-style: none; }
.service-card li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
  color: var(--muted);
}
.service-card li:last-child { border-bottom: none; }

/* ===== Sobre mí ===== */
.about {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.about__text p {
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 1.1rem;
}

/* ===== Localización ===== */
.location {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 2.5rem;
  align-items: stretch;
}
.location__info p { margin-bottom: 1.5rem; font-size: 1.05rem; color: var(--muted); }
.location__info strong { color: var(--ink); font-weight: 600; }
.location__info a { color: var(--ink); }
.hours { margin-bottom: 1.5rem; }
.hours strong { color: var(--ink); font-weight: 600; }
.hours__list { list-style: none; margin-top: 0.7rem; max-width: 360px; }
.hours__list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
  color: var(--muted);
}
.hours__list li span:last-child { color: var(--ink); text-align: right; }
.hours__closed span:last-child { color: #b04a4a; }
.location__map {
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 340px;
  box-shadow: var(--shadow);
}
.location__map iframe { width: 100%; height: 100%; min-height: 340px; border: 0; }

/* ===== Mapa con consentimiento ===== */
.map-consent {
  height: 100%;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-alt);
  color: var(--muted);
}
.map-consent p { max-width: 320px; }
.map-consent__link a { color: var(--ink); text-decoration: underline; }

/* ===== Redes / contacto ===== */
.socials {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  max-width: 760px;
  margin: 0 auto;
}
.social {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1.9rem 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.social:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.social__name {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}
.social__handle { color: var(--muted); font-size: 0.95rem; }

/* ===== Pie ===== */
.footer {
  background: var(--bg-alt);
  color: var(--muted);
  text-align: center;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}
.footer__legal {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0.85rem 0;
}
.footer__legal a {
  font-size: 0.85rem;
  color: var(--ink);
  opacity: 0.8;
}
.footer__legal a:hover { opacity: 1; text-decoration: underline; }
.footer__small { font-size: 0.8rem; color: var(--muted); margin-top: 0.4rem; }

/* ===== Aviso de cookies ===== */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 100;
  max-width: 960px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__text { font-size: 0.92rem; line-height: 1.5; color: var(--muted); }
.cookie-banner__text a { color: var(--ink); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.btn--ghost-dark { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost-dark:hover { background: var(--bg-alt); }

/* ===== Páginas legales ===== */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 7rem 1.5rem 4rem;
}
.legal h1 {
  font-size: clamp(2.2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.legal__updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 2.5rem; }
.legal h2 {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 2.25rem 0 0.75rem;
}
.legal p, .legal li { color: var(--muted); margin-bottom: 0.75rem; line-height: 1.6; }
.legal ul { padding-left: 1.25rem; margin-bottom: 0.75rem; }
.legal a { color: var(--ink); text-decoration: underline; }
.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: 0.92rem;
}
.legal th, .legal td {
  border: 1px solid var(--line);
  padding: 0.7rem 0.8rem;
  text-align: left;
  vertical-align: top;
}
.legal th { background: var(--bg-alt); color: var(--ink); }
.legal__pending {
  background: #fff6e6;
  border: 1px solid #e8cf9a;
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  color: #8a6d2f;
  font-weight: 500;
}
.legal__back { display: inline-block; margin-top: 2.5rem; }

/* ===== Responsive ===== */
@media (max-width: 760px) {
  .nav__links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
    padding: 1.25rem 1.5rem 1.75rem;
    gap: 1.25rem;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__toggle { display: block; }
  .hero__logo img { width: min(85vw, 380px); }
  .location { grid-template-columns: 1fr; }
  .socials { grid-template-columns: 1fr; }
  .section { padding: 4.5rem 1.5rem; }
}
