/* ============================================================
   Components — buttons, ticker, cards, nav, footer
   ============================================================ */

/* === NAV === */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 1.1rem var(--pad-x);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  mix-blend-mode: difference;
  color: #fff;
}
.nav-logo {
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}
.nav-logo small {
  display: block;
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: .22em;
  font-weight: 400;
  margin-top: 2px;
  opacity: .7;
}
/* real-logo image (round Instagram-style) */
.nav-logo--img img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--ink-soft);
}
.nav-logo .nav-logo-text {
  display: inline-block;
  line-height: 1;
}
@media (max-width: 480px) {
  .nav-logo .nav-logo-text small { display: none; }
  .nav-logo--img img { width: 36px; height: 36px; }
}
.nav-links {
  display: flex;
  gap: 1.75rem;
  justify-content: center;
  font-family: var(--f-mono);
  font-size: var(--t-mono);
}
.nav-links a {
  position: relative;
  padding: .35rem 0;
  transition: opacity var(--t-fast) var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 0;
  background: currentColor; transition: width var(--t-med) var(--ease);
}
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  padding: .65rem 1.1rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  display: inline-flex;
  gap: .5rem;
  align-items: center;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav-cta:hover { background: #fff; color: #000; }
.nav-cta .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green-400);
  box-shadow: 0 0 0 0 currentColor;
  animation: pulse 2s var(--ease) infinite;
}
.nav-cta[data-open="false"] .dot { background: #e74c3c; animation: none; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 oklch(79.2% 0.209 151.711 / .55); }
  50% { box-shadow: 0 0 0 6px oklch(79.2% 0.209 151.711 / 0); }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
}

/* === BTN === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  padding: 1.05rem 1.6rem;
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: var(--fg);
  color: var(--bg);
  transition: transform var(--t-fast) var(--ease);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; inset: 0;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform var(--t-med) var(--ease-out);
  z-index: -1;
}
.btn:hover::before { transform: translateY(0); }
.btn--ghost {
  background: transparent;
  color: var(--fg);
}
.btn--ghost::before { background: var(--fg); }
.btn--ghost:hover { color: var(--bg); }
.btn .arrow { display: inline-block; transition: transform var(--t-med) var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

/* === TICKER === */
.ticker {
  background: var(--ink);
  color: var(--crudo);
  border-block: 1px solid var(--ink-line);
  overflow: hidden;
  padding-block: .9rem;
  position: relative;
}
.ticker-track {
  display: inline-flex;
  gap: 3rem;
  padding-right: 3rem;
  white-space: nowrap;
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  letter-spacing: .2em;
  animation: tickerMove 38s linear infinite;
  will-change: transform;
}
.ticker-track > span { display: inline-flex; align-items: center; gap: 3rem; }
.ticker-track .sep { color: var(--bronze-2); }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tickerMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* === CARDS / SERVICE INDEX === */
.svc-index { border-top: 1px solid var(--line); }
.svc-row {
  display: grid;
  grid-template-columns: 50px 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.6rem .25rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  cursor: default;
  transition: padding var(--t-med) var(--ease-out);
}
.svc-row:hover { padding-inline: 1.5rem; }
.svc-row::before {
  content: ""; position: absolute; inset: 0;
  background: var(--ink);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform var(--t-med) var(--ease-out);
  z-index: -1;
}
.svc-row:hover::before { transform: scaleY(1); transform-origin: top; }
.svc-row:hover { color: var(--crudo); }
.svc-row:hover .svc-num { color: var(--bronze-2); }
.svc-row:hover .svc-meta { color: var(--bronze-2); opacity: 1; }

.svc-num { font-family: var(--f-mono); font-size: var(--t-mono); color: var(--fg-mute); transition: color var(--t-med); }
.svc-name { font-family: var(--f-display); font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.4rem); font-weight: 600; letter-spacing: -.015em; line-height: 1; }
.svc-meta { font-family: var(--f-mono); font-size: var(--t-mono); color: var(--fg-mute); transition: color var(--t-med); }
.svc-price { font-family: var(--f-display); font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); font-weight: 600; font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .svc-row {
    grid-template-columns: 36px 1fr auto;
    grid-template-rows: auto auto;
    padding-block: 1.25rem;
    row-gap: .35rem;
  }
  .svc-num { grid-row: span 2; align-self: start; }
  .svc-name { grid-column: 2 / 3; }
  .svc-price { grid-column: 3 / 4; grid-row: 1; align-self: start; }
  .svc-meta { grid-column: 2 / 4; }
}

/* === GALERIA === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}
.g-cell { overflow: hidden; background: var(--bg-2); border-radius: var(--r-md); position: relative; }
.g-cell img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.g-cell:hover img { transform: scale(1.05); }
.g-cell--a { grid-column: span 7; aspect-ratio: 16/10; }
.g-cell--b { grid-column: span 5; aspect-ratio: 4/5; }
.g-cell--c { grid-column: span 4; aspect-ratio: 4/5; }
.g-cell--d { grid-column: span 5; aspect-ratio: 16/10; }
.g-cell--e { grid-column: span 3; aspect-ratio: 1/1; }
.g-cell-tag {
  position: absolute; left: 1rem; bottom: 1rem;
  font-family: var(--f-mono); font-size: 10px;
  background: var(--ink); color: var(--crudo);
  padding: .4rem .65rem;
  letter-spacing: .14em; text-transform: uppercase;
}
@media (max-width: 760px) {
  .gallery-grid { grid-template-columns: repeat(6, 1fr); gap: .5rem; }
  .g-cell--a, .g-cell--d { grid-column: span 6; }
  .g-cell--b, .g-cell--c { grid-column: span 3; }
  .g-cell--e { grid-column: span 6; aspect-ratio: 16/9; }
}

/* === EQUIPO === */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.team-card {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-2);
  border-radius: var(--r-md);
}
.team-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity .55s var(--ease), transform 1.2s var(--ease-out);
}
.team-card img + img { opacity: 0; }
.team-card:hover img { transform: scale(1.05); }
.team-card:hover img:nth-child(1) { opacity: 0; }
.team-card:hover img:nth-child(2) { opacity: 1; }
.team-card-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.25rem 1.25rem 1.5rem;
  color: var(--crudo);
  background: linear-gradient(to top, rgba(14,14,12,.85), transparent);
  display: flex; align-items: end; justify-content: space-between;
  gap: 1rem;
}
.team-card-info h3 {
  font-family: var(--f-display);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.01em;
}
.team-card-info .role { font-family: var(--f-mono); font-size: var(--t-mono); opacity: .8; margin-top: .35rem; }
.team-card-info .yrs { font-family: var(--f-mono); font-size: var(--t-mono); opacity: .8; }

/* === RESEÑAS === */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.review {
  background: var(--bg-2);
  padding: 2rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 1rem;
  position: relative;
}
.review::before {
  content: '"';
  position: absolute;
  top: -.5rem; left: 1.25rem;
  font-family: var(--f-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--accent);
  opacity: .25;
}
.review-stars { font-family: var(--f-mono); font-size: var(--t-mono); color: var(--accent); letter-spacing: .25em; }
.review-text { font-family: var(--f-display); font-size: 1.15rem; line-height: 1.5; font-weight: 400; flex: 1; }
.review-meta { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: var(--t-mono); color: var(--fg-mute); border-top: 1px solid var(--line); padding-top: 1rem; }

/* === VISITA / FICHA === */
.visit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.dl-spec dt {
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  color: var(--fg-mute);
  margin-top: 1.25rem;
  margin-bottom: .35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.dl-spec dt:first-child { padding-top: 0; border-top: 0; margin-top: 0; }
.dl-spec dd {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.3;
}
.dl-spec dd a { border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: opacity var(--t-fast); }
.dl-spec dd a:hover { color: var(--accent); }

.hours-list { font-family: var(--f-mono); font-size: var(--t-mono); display: grid; grid-template-columns: 1fr 1fr; gap: .35rem 1.5rem; }
.hours-list span:nth-child(odd) { color: var(--fg-mute); }
.hours-list span.closed { color: var(--blood); }

@media (max-width: 760px) {
  .visit-grid { grid-template-columns: 1fr; }
}

/* === FOOTER === */
.footer {
  background: var(--ink);
  color: var(--crudo);
  padding-top: 4rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: end;
  padding-block: clamp(2rem, 5vw, 4rem);
}
.footer-mark {
  font-family: var(--f-display);
  font-size: clamp(5rem, 12vw, 14rem);
  font-weight: 700;
  line-height: .85;
  letter-spacing: -.04em;
}
.footer-logo-img {
  width: clamp(160px, 22vw, 320px);
  height: auto;
  border-radius: 50%;
  display: block;
  filter: brightness(.95);
}
.footer-meta { display: grid; gap: 1.5rem; }
.footer-meta a { border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.footer-meta a:hover { color: var(--bronze-2); }
.footer-bot {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--ink-line);
  padding-block: 1.5rem;
  font-family: var(--f-mono); font-size: var(--t-mono); color: var(--fg-mute);
  flex-wrap: wrap; gap: 1rem;
}
.footer-bot a { transition: color var(--t-fast); }
.footer-bot a:hover { color: var(--bronze-2); }

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; align-items: start; }
}

/* === FAB WHATSAPP === */
.fab-wa {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: grid; place-items: center;
  z-index: 40;
  box-shadow: 0 14px 40px -10px rgba(37, 211, 102, .55), 0 4px 12px rgba(0,0,0,.15);
  transition: transform var(--t-fast) var(--ease);
  animation: fabIn .8s var(--ease-out) 1.5s both;
}
.fab-wa:hover { transform: scale(1.08); }
@keyframes fabIn {
  from { transform: scale(0) rotate(-90deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}
.fab-wa svg { width: 26px; height: 26px; }
.fab-wa::after {
  content: ""; position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1px solid #25d366;
  opacity: .5;
  animation: fabRipple 2.4s var(--ease) infinite;
}
@keyframes fabRipple {
  0% { transform: scale(1); opacity: .5; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* === LANG SWITCH === */
.lang {
  display: inline-flex;
  font-family: var(--f-mono);
  font-size: var(--t-mono);
  border: 1px solid currentColor;
  border-radius: 999px;
  overflow: hidden;
}
.lang a {
  padding: .35rem .75rem;
  transition: background var(--t-fast), color var(--t-fast);
}
.lang a[aria-current="true"] {
  background: currentColor;
}
.lang a[aria-current="true"] span { color: var(--ink); mix-blend-mode: difference; }
.is-dark .lang a[aria-current="true"] span { color: var(--crudo); }

/* === FAQ === */
.faq-list { display: grid; gap: 0; }
.faq-item {
  border-top: 1px solid var(--line);
  padding-block: 1.5rem;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: baseline;
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem);
  font-weight: 500;
  letter-spacing: -.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .num { font-family: var(--f-mono); font-size: var(--t-mono); color: var(--fg-mute); }
.faq-item summary .toggle {
  font-family: var(--f-mono); font-size: 1.2rem;
  transition: transform var(--t-med) var(--ease-out);
}
.faq-item[open] summary .toggle { transform: rotate(45deg); }
.faq-answer { padding-top: 1rem; padding-left: calc(2rem + 4ch); color: var(--fg-soft); max-width: 60ch; }
@media (max-width: 640px) { .faq-answer { padding-left: 0; } }

/* === MAP SVG === */
.map-svg {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--bg-2);
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-svg svg { width: 100%; height: 100%; }
.map-svg .road { stroke: var(--fg-mute); stroke-width: .6; fill: none; opacity: .35; }
.map-svg .road-major { stroke: var(--fg); stroke-width: 1.2; opacity: .7; }
.map-svg .pin { fill: var(--accent); }
.map-svg .pin-pulse { fill: var(--accent); opacity: .25; transform-origin: center; animation: pinPulse 2.4s var(--ease) infinite; }
@keyframes pinPulse {
  0%, 100% { transform: scale(.4); opacity: .55; }
  50% { transform: scale(1); opacity: 0; }
}
.map-svg .label { font-family: var(--f-mono); font-size: 8px; fill: var(--fg-soft); text-transform: uppercase; letter-spacing: .15em; }
