/* ─────────────────────────────────────────
   Tarifa House — Global shared styles
   Loaded by every page. Page-specific styles live in property.css
   (interior pages) or in an inline <style> (index.html).
   ───────────────────────────────────────── */

/* ── Tokens ── */
:root {
  --charcoal:    #23212c;
  --paper:       #f7f0e1;
  --paper-deep:  #f0e7d3;
  --snow:        #ffffff;
  --pine:        #006434;
  --marigold:    #fcbd1c;
  --morning-sky: #a6dfff;
  --ember:       #dd5000;
  --hairline:    rgba(35,33,44,0.14);

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-display: 'Playfair Display SC', Georgia, serif;

  --w-light:   300;
  --w-regular: 400;
  --w-medium:  500;

  --r-card:   20px;
  --r-hero:   40px;
  --r-pill:   99px;
  --r-chip:   12px;

  --max:      1280px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --z-nav:    50;
  --z-modal:  100;

  --font-sans:  var(--font);
  --r-btn:      var(--r-chip);
  --ink-muted:  rgba(35, 33, 44, 0.55);
  --ink-light:  rgba(35, 33, 44, 0.68);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-weight: var(--w-light);
  font-size: 16px;
  line-height: 1.29;
  letter-spacing: -0.08px;
  color: var(--charcoal);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

body.is-leaving {
  opacity: 0;
  transition: opacity 300ms var(--ease-out);
}

/* ── Reveal-on-scroll primitive ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 60ms; }
.reveal[data-delay="2"] { transition-delay: 120ms; }
.reveal[data-delay="3"] { transition-delay: 180ms; }
.reveal[data-delay="4"] { transition-delay: 240ms; }

/* ─────────────────────────────────────────
   Navigation — shared layout + sliding-pill links
   ───────────────────────────────────────── */
.nav {
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 40px;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: -16px; /* Empujado a la izquierda */
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: var(--w-regular);
  letter-spacing: 0.01em;
  color: var(--pine);
  text-decoration: none;
  white-space: nowrap;
}
.nav-logo-icon {
  height: 28px;
  width: auto;
  transition: transform 300ms ease, height 300ms ease;
}
@keyframes logo-spin { to { rotate: 360deg; } }
.logo-spin { animation: logo-spin 0.8s cubic-bezier(0.34, 1.4, 0.64, 1); }
.brand-text {
  color: #FCF5C8 !important;
  letter-spacing: 0.15em; /* Reducido para que no empuje tanto el menú */
  text-transform: uppercase;
  font-style: normal;
  text-shadow: none !important;
  margin-left: 4px; /* compensate for wide letter spacing */
  white-space: nowrap; /* Fuerza a que esté en una sola línea */
}
.brand-accent {
  color: #D47029 !important;
}

.nav-links {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.nav-links li { position: relative; z-index: 1; }
.nav-links a {
  display: block;
  padding: 9px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: var(--w-regular);
  letter-spacing: -0.07px;
  white-space: nowrap;
  color: var(--charcoal);
  text-decoration: none;
  transition: color 250ms var(--ease-out);
}
.nav-links a.on { color: var(--snow); }

.nav-cursor {
  position: absolute;
  top: 0;
  left: 0;
  height: 38px;
  border-radius: var(--r-pill);
  background: var(--charcoal);
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: left 300ms var(--ease-out), top 300ms var(--ease-out),
              width 300ms var(--ease-out), height 300ms var(--ease-out),
              opacity 200ms var(--ease-out);
}

.nav-contact {
  font-size: 13px;
  font-weight: var(--w-regular);
  line-height: 1.5;
  text-align: right;
  white-space: nowrap;
}
.nav-contact a { color: var(--charcoal); text-decoration: none; transition: color 200ms; }
.nav-contact a:hover { color: var(--pine); }

/* ── Language switcher ── */
.lang-switch {
  position: relative;
  flex-shrink: 0;
  margin-left: 12px;
}
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 10px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  cursor: pointer;
  color: var(--charcoal);
  transition: background 200ms var(--ease-out), transform 200ms var(--ease-out);
}
.lang-btn:hover { background: #fff; }
.lang-btn:active { transform: scale(0.96); }
.lang-flag { display: block; border-radius: 3px; }
.lang-caret { transition: transform 200ms var(--ease-out); }
.lang-switch.open .lang-caret { transform: rotate(180deg); }
.lang-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 160px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(35,33,44,0.14);
  padding: 6px;
  display: none;
  flex-direction: column;
  z-index: calc(var(--z-nav) + 2);
}
.lang-switch.open .lang-panel { display: flex; }
.lang-opt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: none;
  border: none;
  border-radius: 9px;
  cursor: pointer;
  font-family: var(--font);
  font-size: 14px;
  color: var(--charcoal);
  text-align: left;
  transition: background 160ms var(--ease-out);
}
.lang-opt:hover { background: var(--paper-deep); }
.lang-opt.is-current { background: var(--paper-deep); font-weight: var(--w-medium); }

/* ── Hamburger toggle ── */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: var(--r-chip);
  cursor: pointer;
  color: var(--charcoal);
  flex-shrink: 0;
}

/* ── Mobile full-screen menu ── */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-modal) + 10);
  display: flex;
  flex-direction: column;
  background: var(--pine);
  padding: 24px;
  transform: translateX(100%);
  transition: transform 300ms var(--ease-out);
}
.mobile-menu.open { transform: none; }

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.mobile-menu-header .nav-logo {
  margin-left: 0;
}

.mobile-menu-close {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: var(--r-chip);
  cursor: pointer;
  color: var(--snow);
}

.mobile-menu-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu-links a {
  display: block;
  padding: 14px 16px;
  border-radius: var(--r-chip);
  font-size: 16px;
  font-weight: var(--w-regular);
  color: var(--snow);
  text-decoration: none;
  transition: background 200ms var(--ease-out);
}
.mobile-menu-links a:hover { background: rgba(255,255,255,0.12); }

.mobile-menu-contact {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.25);
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
}
.mobile-menu-contact a {
  color: var(--snow);
  text-decoration: none;
}

/* ── Badge pill ── */
.badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--paper-deep);
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: var(--w-regular);
  letter-spacing: -0.07px;
  color: var(--charcoal);
}
.badge svg { flex-shrink: 0; color: var(--charcoal); }

/* ── Filled charcoal buttons ── */
.btn-cta,
.btn-cta-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  background: var(--charcoal);
  color: var(--snow);
  font-family: var(--font);
  font-size: 16px;
  font-weight: var(--w-regular);
  letter-spacing: -0.08px;
  text-decoration: none;
  border: none;
  border-radius: var(--r-card);
  cursor: pointer;
  transition: opacity 200ms var(--ease-out);
}
.btn-cta-block { width: 100%; padding: 14px; }
.btn-cta:hover,
.btn-cta-block:hover { opacity: 0.88; }

/* ── Footer ── */
.footer {
  background: var(--pine);
  color: var(--snow);
  padding: 64px 40px 32px;
}
.footer-inner { max-width: var(--max); margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-col { display: flex; flex-direction: column; }

.footer-brand {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 16px;
  color: var(--snow);
}

.footer-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  color: rgba(255,255,255,0.72);
}

.footer-desc {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  margin-bottom: 24px;
  max-width: 300px;
}

.footer-links-vert {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links-vert a {
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  text-decoration: none;
  transition: color 200ms;
}
.footer-links-vert a:hover { color: var(--marigold); }

.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a {
  color: rgba(255,255,255,0.7);
  transition: color 200ms;
}
.footer-social a:hover { color: var(--marigold); }

.footer-form {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 8px;
}
.footer-input {
  background: transparent;
  border: none;
  color: var(--snow);
  font-family: var(--font-sans);
  font-size: 15px;
  flex-grow: 1;
  outline: none;
}
.footer-input::placeholder { color: rgba(255,255,255,0.4); }
.footer-btn {
  background: transparent;
  border: none;
  color: var(--snow);
  cursor: pointer;
  font-size: 18px;
  transition: transform 200ms, color 200ms;
}
.footer-btn:hover { color: var(--marigold); transform: translateX(4px); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px;
}

.footer-meta {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
}

.footer-legal {
  display: flex;
  gap: 24px;
}
.footer-legal a {
  font-size: 13px;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  transition: color 200ms;
}
.footer-legal a:hover { color: var(--snow); }

/* ── Portátiles: nav compacto (sin contacto, menos aire) ── */
@media (max-width: 1440px) {
  .nav-contact { display: none; }
  .nav { gap: 16px; padding: 0 24px; }
  .nav-links a { padding: 9px 10px; }
}

/* ── Pantallas medias: menú hamburguesa ── */
@media (max-width: 1180px) {
  .nav-toggle { display: flex; }
  .nav-links { display: none; }
}

/* ── Mobile breakpoint ── */
@media (max-width: 768px) {
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Móviles estrechos: logo más pequeño para que quepa todo ── */
@media (max-width: 480px) {
  .nav { gap: 8px; padding: 0 12px; }
  .nav-logo { font-size: 19px; margin-left: 0; }
  .nav-logo-icon { height: 24px; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .nav-cursor { transition: opacity 200ms; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .mobile-menu { transition: none; }
}

.eapps-link,
[class*="eapps-link"],
.elfsight-app-e1e75727-79f2-46da-956a-ee4c2584cb67 [href*="elfsight.com"],
.elfsight-app-e1e75727-79f2-46da-956a-ee4c2584cb67 [class*="WidgetBackground__Container"] a {
  display: none !important;
  position: absolute !important;
  left: -9999px !important;
}





