/* ============================================================
   FARMACIA FERNÁNDEZ DÍEZ — MAIN STYLESHEET
   Aesthetic: Refined Apothecary Gold & Green
   © Unax Aller
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── Variables ──────────────────────────────────────────── */
:root {
  --gold:          #B8860B;
  --gold-light:    #D4A843;
  --gold-pale:     #F5E9C8;
  --green-deep:    #1B4332;
  --green-mid:     #2D6A4F;
  --green-light:   #52B788;
  --green-pale:    #D8F3DC;
  --cream:         #FAF7F0;
  --cream-dark:    #EDE8DC;
  --dark:          #0F1A14;
  --text:          #2C2C2C;
  --text-mid:      #5A5A5A;
  --text-light:    #9A9A9A;
  --white:         #FFFFFF;

  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'DM Sans', system-ui, sans-serif;

  --radius-sm:     4px;
  --radius-md:     8px;
  --radius-lg:     16px;
  --radius-xl:     32px;

  --shadow-sm:     0 1px 3px rgba(27,67,50,.08), 0 1px 2px rgba(27,67,50,.04);
  --shadow-md:     0 4px 16px rgba(27,67,50,.10), 0 2px 6px rgba(27,67,50,.06);
  --shadow-lg:     0 12px 40px rgba(27,67,50,.14), 0 4px 12px rgba(27,67,50,.08);
  --shadow-gold:   0 4px 24px rgba(184,134,11,.20);

  --transition:    0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--cream);
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

ul, ol { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--green-deep);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 400; }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.4rem); }

p { font-size: clamp(0.95rem, 1.2vw, 1.05rem); color: var(--text-mid); }

/* ── Custom Cursor ──────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, background .2s;
  mix-blend-mode: multiply;
}
.cursor-ring {
  position: fixed;
  width: 36px; height: 36px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .35s cubic-bezier(.34,1.56,.64,1), height .35s cubic-bezier(.34,1.56,.64,1), border-color .35s;
  opacity: .7;
}
.cursor.hover { width: 20px; height: 20px; }
.cursor-ring.hover { width: 56px; height: 56px; border-color: var(--green-light); }

@media (pointer: coarse) { .cursor, .cursor-ring { display: none; } }

/* ── Page Loader ────────────────────────────────────────── */
#page-loader {
  position: fixed;
  inset: 0;
  background: var(--green-deep);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 1.5rem;
  /* Hidden by default — JS enables it; noscript/noJS users see content immediately */
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
/* JS will set visibility:visible once scripts are confirmed loaded */
body.js-loader-active #page-loader {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
  overflow: hidden;
}
.loader-logo {
  width: 80px;
  opacity: 0;
  transform: translateY(20px);
}
.loader-bar {
  width: 200px;
  height: 1px;
  background: rgba(255,255,255,.15);
  position: relative;
  overflow: hidden;
}
.loader-bar::after {
  content: '';
  position: absolute;
  left: -100%;
  top: 0; bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  animation: loaderSweep 1.4s ease-in-out infinite;
}
@keyframes loaderSweep {
  to { left: 200%; }
}

/* ── Navigation ─────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 clamp(1.5rem, 5vw, 4rem);
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition), box-shadow var(--transition), height var(--transition);
}
.site-nav.scrolled {
  background: rgba(250,247,240,.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}
.nav-logo img {
  height: 44px;
  width: auto;
  transition: transform var(--transition);
}
.nav-logo:hover img { transform: scale(1.05); }
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green-deep);
  transition: color var(--transition);
}
.nav-logo-sub {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--gold);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-link {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: .04em;
  text-transform: uppercase;
  position: relative;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-link:hover, .nav-link.active { color: var(--gold); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* ── Nav over hero (transparent state) — white text for contrast ── */
.site-nav:not(.scrolled) .nav-logo-name {
  color: var(--cream);
  text-shadow: 0 1px 6px rgba(0,0,0,.35);
}
.site-nav:not(.scrolled) .nav-logo-sub {
  color: rgba(250,247,240,.75);
}
.site-nav:not(.scrolled) .nav-link {
  color: rgba(250,247,240,.88);
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.site-nav:not(.scrolled) .nav-link:hover,
.site-nav:not(.scrolled) .nav-link.active {
  color: var(--gold-light);
}
.site-nav:not(.scrolled) .nav-toggle span {
  background: var(--cream);
}
.site-nav:not(.scrolled) .lang-switcher {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.25);
}
.site-nav:not(.scrolled) .lang-btn {
  color: rgba(250,247,240,.75);
}
.site-nav:not(.scrolled) .lang-btn.active,
.site-nav:not(.scrolled) .lang-btn:hover {
  background: rgba(255,255,255,.2);
  color: var(--cream);
}
.site-nav:not(.scrolled) .lang-sep {
  background: rgba(255,255,255,.2);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: .25rem;
  padding: .35rem .65rem;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,.6);
}
.lang-btn {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-mid);
  padding: .2rem .4rem;
  border-radius: 3rem;
  transition: all .2s;
}
.lang-btn.active, .lang-btn:hover {
  background: var(--green-deep);
  color: var(--white);
}
.lang-sep {
  width: 1px; height: 12px;
  background: var(--cream-dark);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  z-index: 1001;
}
.nav-toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--green-deep);
  border-radius: 2px;
  transform-origin: center;
  transition: all var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--green-deep);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
}
.nav-mobile.open {
  display: flex;
  pointer-events: all;
}
.nav-mobile-link {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 400;
  color: var(--cream);
  letter-spacing: -.01em;
  transition: color var(--transition);
  transform: translateY(20px);
  opacity: 0;
}
.nav-mobile-link:hover { color: var(--gold-light); }
.nav-mobile-langs {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
}
.nav-mobile-lang {
  font-size: .85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.5);
  transition: color var(--transition);
}
.nav-mobile-lang.active, .nav-mobile-lang:hover { color: var(--gold-light); }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
}

/* ── Noise Overlay ──────────────────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23noise)' opacity='.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9997;
  opacity: .6;
}

/* ── Hero Section ───────────────────────────────────────── */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 60%;
  transform-origin: center;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Two layered gradients:
     1) Top-down vignette for nav legibility
     2) Bottom-up dark zone for hero text legibility */
  background:
    linear-gradient(to bottom,
      rgba(10,20,14,.72) 0%,
      rgba(10,20,14,.45) 20%,
      rgba(10,20,14,.15) 42%,
      transparent 55%
    ),
    linear-gradient(to top,
      rgba(10,20,14,.96) 0%,
      rgba(10,20,14,.80) 28%,
      rgba(10,20,14,.40) 55%,
      transparent 72%
    );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 6vw, 5rem) clamp(1.5rem, 5vw, 6rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
  max-width: 820px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.25rem;
  opacity: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}
.hero-eyebrow-line {
  width: 32px; height: 1px;
  background: var(--gold-light);
}

.hero h1 {
  color: var(--cream);
  font-weight: 300;
  margin-bottom: 1.25rem;
  opacity: 0;
  text-shadow: 0 2px 16px rgba(0,0,0,.45);
}
.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
  font-weight: 400;
}

.hero-desc {
  font-size: clamp(.95rem, 1.5vw, 1.1rem);
  color: rgba(250,247,240,.88);
  max-width: 480px;
  margin-bottom: 2.5rem;
  opacity: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  right: clamp(1.5rem, 5vw, 5rem);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  opacity: 0;
}
.hero-scroll-text {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  writing-mode: vertical-lr;
}
.hero-scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,.5), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(.4); opacity: .4; }
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .9rem 2rem;
  border-radius: var(--radius-xl);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.12);
  transform: translateX(-110%) skewX(-15deg);
  transition: transform .45s cubic-bezier(.4,0,.2,1);
}
.btn:hover::before { transform: translateX(110%) skewX(-15deg); }

.btn-primary {
  background: var(--gold);
  color: var(--white);
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  box-shadow: 0 6px 32px rgba(184,134,11,.35);
  transform: translateY(-2px);
}

.btn-outline {
  border: 1.5px solid rgba(250,247,240,.4);
  color: var(--cream);
}
.btn-outline:hover {
  border-color: var(--gold-light);
  color: var(--gold-light);
  transform: translateY(-2px);
}

.btn-green {
  background: var(--green-deep);
  color: var(--cream);
}
.btn-green:hover {
  background: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  border: 1.5px solid var(--green-deep);
  color: var(--green-deep);
}
.btn-ghost:hover {
  background: var(--green-deep);
  color: var(--cream);
}

/* ── Section Layout ──────────────────────────────────────── */
.section {
  padding: clamp(4rem, 8vw, 7rem) clamp(1.5rem, 5vw, 6rem);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.section-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--gold);
}

.section-header {
  max-width: 680px;
  margin-bottom: clamp(3rem, 5vw, 5rem);
}
.section-header p {
  margin-top: .85rem;
  font-size: 1.05rem;
}

.section-header.centered {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-header.centered .section-label {
  justify-content: center;
}

/* ── Services Cards ──────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  border: 1px solid rgba(184,134,11,.1);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--green-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(184,134,11,.25);
  transform: translateY(-4px);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 48px; height: 48px;
  background: var(--gold-pale);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: background var(--transition);
}
.service-icon svg { color: var(--gold); }
.service-card:hover .service-icon { background: var(--green-pale); }
.service-card:hover .service-icon svg { color: var(--green-mid); }

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: .5rem;
}
.service-card p {
  font-size: .9rem;
  line-height: 1.6;
}

/* ── Photo Gallery / Carousel ────────────────────────────── */
.gallery-section {
  background: var(--green-deep);
  overflow: hidden;
}
.gallery-section .section-label { color: var(--gold-light); }
.gallery-section h2 { color: var(--cream); }
.gallery-section p { color: rgba(250,247,240,.65); }

.carousel-wrap {
  position: relative;
  margin-top: 3rem;
}
.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  padding-bottom: .5rem;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track.grabbing { cursor: grabbing; }

.carousel-slide {
  flex: 0 0 clamp(280px, 38vw, 560px);
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}
.carousel-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.4,0,.2,1);
}
.carousel-slide:hover img { transform: scale(1.04); }

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
.carousel-btn {
  width: 48px; height: 48px;
  border: 1.5px solid rgba(250,247,240,.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream);
  transition: all var(--transition);
}
.carousel-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
}
.carousel-dots {
  display: flex;
  gap: .5rem;
}
.carousel-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  transition: all var(--transition);
  cursor: pointer;
}
.carousel-dot.active {
  background: var(--gold-light);
  width: 20px;
  border-radius: 3px;
}

/* ── Hours & Info ────────────────────────────────────────── */
.info-section {
  background: var(--cream);
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) {
  .info-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}
.hours-table tr {
  border-bottom: 1px solid var(--cream-dark);
}
.hours-table tr:last-child { border-bottom: none; }
.hours-table td {
  padding: .85rem 0;
  font-size: .95rem;
}
.hours-table td:first-child { color: var(--text-mid); font-weight: 500; }
.hours-table td:last-child { text-align: right; color: var(--green-deep); font-weight: 600; }
.hours-table tr.today td {
  color: var(--gold);
  font-weight: 600;
}
.hours-table tr.today td:last-child { color: var(--gold); }
.closed { color: var(--text-light) !important; }

.contact-info-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-info-icon {
  width: 44px; height: 44px;
  background: var(--gold-pale);
  border-radius: var(--radius-md);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-info-icon svg { color: var(--gold); }
.contact-info-text span {
  display: block;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: .2rem;
}
.contact-info-text a {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
}
.contact-info-text a:hover { color: var(--gold); }

/* ── About / Story ────────────────────────────────────────── */
.about-section { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}
@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-grid .about-visual { order: -1; }
}

.about-visual {
  position: relative;
}
.about-img-main {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-xl);
}
.about-img-accent {
  position: absolute;
  bottom: -2rem;
  right: -1.5rem;
  width: 55%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 6px solid var(--cream);
  box-shadow: var(--shadow-lg);
}
.about-badge {
  position: absolute;
  top: 2rem;
  left: -1.5rem;
  background: var(--green-deep);
  color: var(--cream);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about-badge-num {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--gold-light);
  line-height: 1;
}
.about-badge-text {
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(250,247,240,.65);
  margin-top: .3rem;
}

.about-content { }
.about-content h2 { margin-bottom: 1.25rem; }
.about-content p { margin-bottom: 1.25rem; }
.about-content p:last-of-type { margin-bottom: 2rem; }

/* ── Stat Strip ───────────────────────────────────────────── */
.stats-strip {
  background: var(--green-deep);
  padding: 4rem clamp(1.5rem, 5vw, 6rem);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 400;
  color: var(--gold-light);
  line-height: 1;
  display: block;
}
.stat-label {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(250,247,240,.55);
  margin-top: .5rem;
}

/* ── Map ───────────────────────────────────────────────────── */
.map-section {
  height: 440px;
  position: relative;
  overflow: hidden;
}
.map-section iframe {
  width: 100%; height: 100%;
  border: none;
  filter: grayscale(15%) contrast(1.05);
}
.map-overlay {
  position: absolute;
  top: 2rem; left: 2rem;
  background: var(--white);
  padding: 1.5rem 1.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 280px;
}
.map-overlay h4 {
  font-size: 1.1rem;
  margin-bottom: .5rem;
}
.map-overlay p {
  font-size: .875rem;
  color: var(--text-mid);
  margin-bottom: .85rem;
}
.map-overlay a {
  font-size: .8rem;
  color: var(--gold);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  transition: gap var(--transition);
}
.map-overlay a:hover { gap: .6rem; }

/* ── Page Hero (inner pages) ─────────────────────────────── */
.page-hero {
  padding-top: 80px;
  background: var(--green-deep);
  padding-bottom: 5rem;
  padding-left: clamp(1.5rem, 5vw, 6rem);
  padding-right: clamp(1.5rem, 5vw, 6rem);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(184,134,11,.12) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-eyebrow {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.25rem;
  margin-top: 3rem;
}
.page-hero-eyebrow::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--gold-light);
}
.page-hero h1 {
  color: var(--cream);
  font-weight: 300;
  max-width: 640px;
  margin-bottom: 1.25rem;
}
.page-hero p {
  color: rgba(250,247,240,.65);
  max-width: 520px;
  font-size: 1.05rem;
}

/* ── Services Page ────────────────────────────────────────── */
.services-page { background: var(--cream); }
.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}
.service-detail-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--cream-dark);
  transition: all var(--transition);
}
.service-detail-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
  border-color: rgba(184,134,11,.2);
}
.service-detail-top {
  background: linear-gradient(135deg, var(--green-deep), var(--green-mid));
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.service-detail-top::after {
  content: '';
  position: absolute;
  bottom: -20px; right: -20px;
  width: 80px; height: 80px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}
.service-detail-icon {
  width: 52px; height: 52px;
  background: rgba(255,255,255,.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-detail-icon svg { color: var(--gold-light); }
.service-detail-body { padding: 1.75rem; }
.service-detail-body h3 {
  color: var(--green-deep);
  margin-bottom: .6rem;
  font-size: 1.3rem;
}
.service-detail-body p { font-size: .92rem; line-height: 1.7; }

/* ── Contact Form ─────────────────────────────────────────── */
.contact-section { background: var(--cream); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-form {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}
.form-group {
  margin-bottom: 1.5rem;
}
.form-group label {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-mid);
  margin-bottom: .5rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .85rem 1.1rem;
  border: 1.5px solid var(--cream-dark);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--text);
  background: var(--cream);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(184,134,11,.1);
  background: var(--white);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ── 404 Page ─────────────────────────────────────────────── */
.page-404 {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  background: var(--green-deep);
  position: relative;
  overflow: hidden;
}
.page-404::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(184,134,11,.08) 0%, transparent 70%);
}
.page-404-content { position: relative; z-index: 1; }
.page-404-num {
  font-family: var(--font-display);
  font-size: clamp(6rem, 20vw, 14rem);
  font-weight: 300;
  color: transparent;
  -webkit-text-stroke: 1px rgba(184,134,11,.35);
  line-height: .9;
  margin-bottom: 1.5rem;
  letter-spacing: -.04em;
}
.page-404-content h2 {
  color: var(--cream);
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: 1rem;
}
.page-404-content p {
  color: rgba(250,247,240,.6);
  margin-bottom: 2.5rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.page-404-snake {
  width: 80px; height: auto;
  margin: 0 auto 2rem;
  opacity: .7;
  filter: sepia(1) saturate(2) hue-rotate(10deg);
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  padding: 4rem clamp(1.5rem, 5vw, 6rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.footer-brand img { height: 52px; filter: brightness(0) invert(.9); margin-bottom: 1rem; }
.footer-brand p {
  font-size: .88rem;
  color: rgba(255,255,255,.4);
  max-width: 280px;
  line-height: 1.6;
}
.footer-social {
  display: flex;
  gap: .75rem;
  margin-top: 1.25rem;
}
.footer-social a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  transition: all var(--transition);
}
.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(184,134,11,.1);
}

.footer-col h5 {
  font-family: var(--font-body);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,.35);
  font-weight: 600;
  margin-bottom: 1.25rem;
}
.footer-links { display: flex; flex-direction: column; gap: .6rem; }
.footer-link {
  font-size: .88rem;
  color: rgba(255,255,255,.5);
  transition: color var(--transition);
}
.footer-link:hover { color: var(--gold-light); }

.footer-contact-list { display: flex; flex-direction: column; gap: .85rem; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
}
.footer-contact-item svg { color: var(--gold); margin-top: 1px; flex-shrink: 0; }
.footer-contact-item span {
  font-size: .875rem;
  color: rgba(255,255,255,.5);
  line-height: 1.5;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-copy {
  font-size: .78rem;
  color: rgba(255,255,255,.25);
}
.footer-copy a { color: var(--gold); transition: opacity var(--transition); }
.footer-copy a:hover { opacity: .8; }
.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a {
  font-size: .75rem;
  color: rgba(255,255,255,.25);
  transition: color var(--transition);
}
.footer-legal a:hover { color: rgba(255,255,255,.5); }

/* ── Tooltip ────────────────────────────────────────────────── */
[data-tooltip] {
  position: relative;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--dark);
  color: var(--cream);
  font-size: .72rem;
  font-weight: 500;
  padding: .35rem .7rem;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  z-index: 100;
  font-family: var(--font-body);
}
[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── Scroll reveal base ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
}
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
}
.reveal-scale {
  opacity: 0;
  transform: scale(.94);
}

/* ── Decorative Divider ───────────────────────────────────── */
.gold-divider {
  width: 60px;
  height: 1.5px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: 1.5rem 0;
}
.gold-divider.centered { margin: 1.5rem auto; }

/* ── Highlight Text ──────────────────────────────────────── */
.text-gold { color: var(--gold); }
.text-green { color: var(--green-deep); }
.italic { font-style: italic; }

/* ── Accessibility ──────────────────────────────────────── */
:focus-visible {
  outline: 2.5px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .about-img-accent, .about-badge { display: none; }
  .map-overlay { display: none; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ── Hero móvil ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-bg img {
    object-position: 65% center;
  }
  .hero-bg::after {
    background:
      linear-gradient(to bottom,
        rgba(10,20,14,.85) 0%,
        rgba(10,20,14,.55) 18%,
        rgba(10,20,14,.20) 38%,
        transparent 52%
      ),
      linear-gradient(to top,
        rgba(10,20,14,.98) 0%,
        rgba(10,20,14,.88) 30%,
        rgba(10,20,14,.55) 60%,
        transparent 80%
      );
  }
}
