/* ==========================================================
   DEA PARTENOPE — Barber & Co.
   Crema, azul de Nápoles y arcos como el de su logo.
   ========================================================== */

:root {
  --bg: #f4ede1;          /* crema */
  --paper: #fbf7ef;
  --ink: #0f2346;         /* azul noche */
  --blue: #2457a6;        /* azul maiólica */
  --sky: #8fb4e3;
  --red: #c8102e;         /* solo para el corazón */
  --muted: #5a6276;
  --line: rgba(15, 35, 70, .18);
  --pad: clamp(1.1rem, 4vw, 3.5rem);
  --nav-h: 68px;
  --serif: "Bodoni Moda", "Didot", Georgia, serif;
  --sans: "Manrope", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

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

html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
em { font-style: italic; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: var(--bg); padding: .6rem 1rem; }
.skip:focus { left: 0; }

.eyebrow {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow-light { color: var(--sky); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .9rem 1.5rem;
  border-radius: 999px;
  font-weight: 700; font-size: .92rem;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { background: var(--blue); border-color: var(--blue); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 2rem;
  padding: 0 var(--pad);
  background: rgba(244, 237, 225, .94);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
@supports (backdrop-filter: blur(8px)) {
  .nav { background: rgba(244, 237, 225, .8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
}
.nav.is-scrolled { border-color: var(--line); }
.nav-logo {
  font-family: var(--serif); font-style: italic; font-size: 1.4rem;
  text-decoration: none; line-height: 1; white-space: nowrap;
}
.nav-logo small { font-family: var(--sans); font-style: normal; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; margin-left: .35rem; color: var(--blue); font-weight: 700; }
.nav-links { display: flex; gap: 1.8rem; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: .9rem; font-weight: 500; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: .6rem 1.2rem; }

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100vh - var(--nav-h));
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(1.5rem, 4vw, 3rem) var(--pad) clamp(3rem, 6vw, 5rem);
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(4rem, 11vw, 10.5rem);
  line-height: .86;
  letter-spacing: -0.035em;
  margin: 1.2rem 0 1.8rem;
}
.hero-title em { color: var(--blue); }
.ht-line { display: block; overflow: clip; padding: 0 .04em .08em 0; }
.ht-line > span { display: inline-block; animation: rise 1.1s var(--ease) both; }
.ht-line:nth-child(2) > span { animation-delay: .12s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }

.hero-lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 38ch; animation: fadeUp .9s .35s var(--ease) both; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 2rem; animation: fadeUp .9s .45s var(--ease) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.status {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-top: 1.8rem;
  font-size: .85rem; color: var(--muted);
  animation: fadeUp .9s .55s var(--ease) both;
}
.status-dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.status.is-open .status-dot { background: #1f9d55; box-shadow: 0 0 0 0 rgba(31,157,85,.5); animation: ping 2.2s infinite; }
.status.is-open { color: var(--ink); }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(31,157,85,0); } 100% { box-shadow: 0 0 0 0 rgba(31,157,85,0); } }

.hero-visual { position: relative; justify-self: center; width: min(100%, 470px); }

/* Arco: la forma del logo */
.arch {
  border-radius: 999px 999px 0 0;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--paper);
}
.arch img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.arch-hero {
  outline: 1.5px solid var(--ink);
  outline-offset: 12px;
  animation: archIn 1.3s .1s var(--ease) both;
}
.arch-hero img { animation: slowZoom 18s ease-in-out infinite alternate; }
@keyframes archIn { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes slowZoom { from { transform: scale(1.02); } to { transform: scale(1.1); } }

.seal {
  position: absolute; left: -58px; bottom: 9%;
  width: 150px; height: 150px;
  background: var(--bg);
  border-radius: 50%;
  border: 1.5px solid var(--ink);
}
.seal text { font-family: var(--sans); font-size: 15px; font-weight: 700; text-transform: uppercase; fill: var(--ink); }
.seal > text { animation: spin 22s linear infinite; transform-origin: 100px 100px; transform-box: view-box; }
.seal-heart { fill: var(--red); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Reveal (anima el contenido, nunca deja huecos) ---------- */
.js .reveal > * { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: inherit; }
.js .reveal.is-visible > * { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* ---------- Intro ---------- */
.intro {
  padding: clamp(4rem, 9vw, 8rem) var(--pad);
  border-top: 1px solid var(--line);
  text-align: center;
}
.intro-quote {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.6vw, 3rem);
  line-height: 1.18;
  max-width: 30ch;
  margin: 0 auto;
  text-wrap: balance;
}
.intro-quote > span { display: block; }
.facts {
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 900px; margin: clamp(3rem, 6vw, 5rem) auto 0;
  border-top: 1px solid var(--line);
}
.fact { padding: 1.6rem 1rem 0; }
.fact + .fact { border-left: 1px solid var(--line); }
.fact > span { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.fact-n { font-family: var(--serif); font-weight: 400; font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1; color: var(--blue); }
.fact-l { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

/* ---------- Trío ---------- */
.trio {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 3vw, 2.5rem);
  padding: 0 var(--pad) clamp(4rem, 9vw, 8rem);
}
.trio-card:nth-child(2) { margin-top: clamp(0rem, 6vw, 5rem); }
.trio-card .arch { margin-bottom: 1.4rem; }
.trio-card:hover .arch img { transform: scale(1.05); }
.trio-n { font-family: var(--serif); font-style: italic; color: var(--blue); font-size: 1.1rem; }
.trio-card h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 2.8vw, 2.4rem); line-height: 1.1; margin: .2rem 0 .6rem; }
.trio-card p:last-child { color: var(--muted); max-width: 34ch; }

/* ---------- Secciones ---------- */
.sec-head { text-align: center; margin-bottom: clamp(2.5rem, 5vw, 4rem); padding: 0 var(--pad); }
.sec-title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1; letter-spacing: -0.03em;
  margin-top: .8rem;
  text-wrap: balance;
}
.sec-title > span { display: block; }
.sec-title em { color: var(--blue); }
.sec-sub { margin: 1.2rem auto 0; max-width: 46ch; color: var(--muted); }

/* ---------- Servicios ---------- */
.services { padding: clamp(4rem, 9vw, 8rem) 0; background: var(--paper); border-block: 1px solid var(--line); }
.price-cols {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  max-width: 1100px; margin: 0 auto; padding: 0 var(--pad);
}
.price-col h3 {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 1.7rem; color: var(--blue);
  padding-bottom: .6rem; margin-bottom: .4rem;
  border-bottom: 1.5px solid var(--ink);
}
.h3-gap { margin-top: 2.6rem; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li {
  display: flex; align-items: baseline; gap: .6rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .3s var(--ease), color .3s;
}
.price-list li:hover { padding-left: .5rem; color: var(--blue); }
.pl-name { font-weight: 500; }
.pl-name small { display: inline-block; margin-left: .45rem; font-size: .75rem; color: var(--muted); font-weight: 400; }
.pl-dots { flex: 1; border-bottom: 1.5px dotted var(--line); transform: translateY(-4px); min-width: 1rem; }
.pl-price { font-family: var(--serif); font-size: 1.2rem; white-space: nowrap; }
.price-note { margin-top: .9rem; font-size: .88rem; color: var(--muted); }
.services-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding: 0 var(--pad); }

/* ---------- Caffè sospeso ---------- */
.sospeso { background: var(--ink); color: var(--bg); padding: clamp(4rem, 9vw, 8rem) var(--pad); }
.sospeso-inner {
  display: grid; grid-template-columns: .85fr 1.15fr;
  gap: clamp(2rem, 6vw, 6rem); align-items: center;
  max-width: 1150px; margin: 0 auto;
}
.sospeso-img > div { border-radius: 999px 999px 0 0; overflow: hidden; border: 1.5px solid var(--sky); padding: 10px; }
.sospeso-img img { border-radius: 999px 999px 0 0; }
.sospeso .sec-title em { color: var(--sky); }
.sospeso-text p:not(.eyebrow) { margin-top: 1.4rem; max-width: 46ch; font-size: 1.08rem; color: #d9dfec; }
.sospeso-text p > span { display: block; }

/* ---------- Ropa / diccionario ---------- */
.shop { padding: clamp(4rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 5rem); }
.tees {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  max-width: 1200px; margin: 0 auto; padding: 0 var(--pad);
}
.tee {
  appearance: none; border: 0; padding: 0; margin: 0;
  background: none; color: inherit; font: inherit; text-align: left;
  cursor: pointer;
  position: relative;
  display: flex; flex-direction: column;
}
.tee-img {
  display: block; position: relative;
  aspect-ratio: 1 / 1; overflow: hidden;
  background: #fff;
  border-radius: 6px;
}
.tee-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.tee-word {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  margin-top: .9rem;
}
.tee-mean {
  position: absolute; left: 0; right: 0; top: 0;
  aspect-ratio: 1 / 1;
  display: flex; align-items: flex-end;
  padding: 1.3rem;
  background: rgba(15, 35, 70, .88);
  color: var(--bg);
  border-radius: 6px;
  font-family: var(--serif); font-size: clamp(1.1rem, 1.6vw, 1.35rem); line-height: 1.3;
  clip-path: inset(100% 0 0 0);
  transition: clip-path .55s var(--ease);
}
.tee-mean > span { transform: translateY(14px); opacity: 0; transition: transform .55s .1s var(--ease), opacity .55s .1s; }
.tee:hover .tee-mean, .tee[aria-pressed="true"] .tee-mean, .tee:focus-visible .tee-mean { clip-path: inset(0 0 0 0); }
.tee:hover .tee-mean > span, .tee[aria-pressed="true"] .tee-mean > span, .tee:focus-visible .tee-mean > span { transform: none; opacity: 1; }
.tee:hover .tee-img img { transform: scale(1.06); }
.shop-note { text-align: center; color: var(--muted); margin-top: 2.5rem; padding: 0 var(--pad); }

/* ---------- Galería ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(120px, 14vw, 210px);
  gap: clamp(.6rem, 1.5vw, 1.2rem);
  padding: clamp(2rem, 5vw, 4rem) var(--pad) clamp(4rem, 9vw, 8rem);
}
.g > div { height: 100%; overflow: hidden; border-radius: 6px; }
.g img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.g:hover img { transform: scale(1.04); }
.g1 { grid-column: 1 / span 4; grid-row: span 3; }
.g1 > div { border-radius: 999px 999px 6px 6px; }
.g2 { grid-column: 5 / span 8; grid-row: span 2; }
.g3 { grid-column: 5 / span 5; grid-row: span 1; }
.g4 { grid-column: 10 / span 3; grid-row: span 1; }
.g4 img { object-position: center 35%; }

/* ---------- Visítanos ---------- */
.visit {
  display: grid; grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.visit-info { padding: clamp(3rem, 7vw, 6rem) var(--pad); }
.visit-addr { font-style: normal; font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.35; margin: 1.8rem 0; }
.hours { width: 100%; max-width: 420px; border-collapse: collapse; font-size: .98rem; }
.hours th, .hours td { padding: .6rem 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; }
.hours td { text-align: right; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--blue); font-weight: 700; }
.hours tr.is-today th::after { content: " · hoy"; font-weight: 500; font-size: .8rem; }
.visit-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.visit-map { min-height: 420px; background: var(--paper); }
.visit-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: grayscale(.4) contrast(1.05); }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--bg); overflow: clip; }
.footer-big {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.5rem, 13vw, 13rem);
  line-height: 1; letter-spacing: -0.04em;
  text-align: center;
  padding: clamp(3rem, 7vw, 6rem) var(--pad) clamp(2rem, 4vw, 3rem);
  white-space: nowrap;
}
.footer-big em { color: var(--sky); }
.footer-row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 2rem;
  padding: 1.4rem var(--pad);
  border-top: 1px solid rgba(244, 237, 225, .2);
  font-size: .88rem;
}
.footer-row a { text-decoration: none; }
.footer-row a:hover { text-decoration: underline; }
.credit { opacity: .6; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 2rem; }
  .hero-visual { order: -1; width: min(78%, 380px); margin-top: .5rem; }
  .seal { left: auto; right: -34px; bottom: -22px; width: 116px; height: 116px; }
  .trio { grid-template-columns: 1fr 1fr; }
  .trio-card:nth-child(2) { margin-top: 3rem; }
  .trio-card:nth-child(3) { grid-column: span 2; max-width: 520px; justify-self: center; }
  .sospeso-inner { grid-template-columns: 1fr; }
  .sospeso-img { max-width: 360px; }
  .tees { grid-template-columns: repeat(2, 1fr); }
  .visit { grid-template-columns: 1fr; }
  .price-cols { grid-template-columns: 1fr; max-width: 620px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-logo small { display: none; }
  .hero-title { font-size: clamp(3.6rem, 19vw, 5.6rem); }
  .hero-ctas .btn { flex: 1 1 100%; }
  .facts { grid-template-columns: 1fr; border-top: 0; }
  .fact { padding: 1.3rem 0; border-top: 1px solid var(--line); }
  .fact + .fact { border-left: 0; }
  .trio { grid-template-columns: 1fr; }
  .trio-card:nth-child(2) { margin-top: 0; }
  .trio-card:nth-child(3) { grid-column: auto; }
  .tees { gap: 1rem .8rem; }
  .tee-mean { padding: .8rem; font-size: .95rem; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 44vw; }
  .g1 { grid-column: 1 / span 1; grid-row: span 2; }
  .g2 { grid-column: 2 / span 1; grid-row: span 1; }
  .g3 { grid-column: 2 / span 1; grid-row: span 1; }
  .g4 { grid-column: 1 / span 2; grid-row: span 1; }
  .g4 img { object-position: center 30%; }
  .pl-name small { display: block; margin-left: 0; }
  .services-cta .btn, .visit-links .btn { flex: 1 1 100%; }
}

/* Solo lo intrusivo se calma */
@media (prefers-reduced-motion: reduce) {
  .arch-hero img { animation: none; }
  .status.is-open .status-dot { animation: none; }
}
