@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ═══════════════════════════════════════════════
   LA ALEMANA — COTO DE CAZA
   Identity: Sober, traditional, balanced
   Palette: Natural & earthy tones
   Typography: Playfair Display + Montserrat
   ═══════════════════════════════════════════════ */

:root {
  /* Brand Primary */
  --green: #272E28;
  --terra: #7A3C31;
  --cream: #D4CFC1;
  --earth: #56483A;

  /* Cultural Reference (subtle) */
  --ref-dark: #0C0C0C;
  --ref-red: #7A2222;
  --ref-blue: #6C8CB5;
  --ref-light: #F0EFE9;

  /* Functional tokens */
  --bg: #F0EDE5;
  --bg-alt: #E8E3D9;
  --surface: #D4CFC1;
  --primary: #272E28;
  --accent: #7A3C31;
  --text: #272E28;
  --text-secondary: #56483A;
  --muted: #847968;
  --border: #C5BEB0;
  --whatsapp: #25D366;

  /* Typography */
  --font-title: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* ── Page wrapper ── */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ═══════════════════════════════════════════════
   LANGUAGE SWITCHER
   ═══════════════════════════════════════════════ */
.lang-switcher {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  z-index: 10;
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.04em;
  background: rgba(0, 0, 0, 0.35);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.lang-switcher a {
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.lang-switcher a:hover {
  color: rgba(255, 255, 255, 0.9);
}

.lang-switcher a.active {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ═══════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
}

.hero img.hero-bg {
  width: 100%;
  height: 65vh;
  object-fit: cover;
  filter: brightness(0.55);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(39, 46, 40, 0.95) 0%,
    rgba(39, 46, 40, 0.4) 40%,
    rgba(0, 0, 0, 0.15) 100%
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

/* Logo in hero — not circular, natural shape */
.hero-logo {
  width: auto;
  height: 130px;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.4));
}

.tag {
  display: inline-flex;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

h1 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  max-width: 32rem;
}

.subtitle {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════
   WHATSAPP CTA BUTTON
   ═══════════════════════════════════════════════ */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  background: var(--whatsapp);
  color: #04120a;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
  transition: all 0.3s ease;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp span {
  margin-left: 0.45rem;
  font-size: 1.2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

/* Gallery button variant */
.btn-gallery {
  background: var(--green);
  color: var(--ref-light);
  box-shadow: 0 6px 20px rgba(39, 46, 40, 0.25);
}

.btn-gallery:hover {
  box-shadow: 0 10px 30px rgba(39, 46, 40, 0.3);
}

/* ═══════════════════════════════════════════════
   MAIN CONTENT
   ═══════════════════════════════════════════════ */
.content {
  padding: 4rem 1.25rem;
  background: var(--bg);
  width: 100%;
}

.block {
  margin-bottom: 4rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.block .btn-whatsapp {
  align-self: center;
  width: fit-content;
}

.block p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

.block p strong {
  color: var(--text);
  font-weight: 600;
}

/* Section headings */
h2 {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text);
  position: relative;
  padding-bottom: 0.75rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 2px;
  background: var(--terra);
}

h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
}

/* ═══════════════════════════════════════════════
   TABS
   ═══════════════════════════════════════════════ */
.tabs-container {
  margin-top: -4.5rem;
  position: relative;
  z-index: 100;
  padding-bottom: 3rem;
  max-width: 900px;
  margin-inline: auto;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 0 1.25rem;
  margin-bottom: 2rem;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.tab-btn:hover {
  border-color: var(--earth);
  color: var(--text);
  background: rgba(255, 255, 255, 0.95);
}

.tab-btn.active {
  background: var(--green);
  color: var(--ref-light);
  border-color: var(--green);
  box-shadow: 0 6px 20px rgba(39, 46, 40, 0.25);
}

.tab-panel {
  display: none;
  animation: tabFadeIn 0.5s ease forwards;
}

.tab-panel.active {
  display: block;
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 1.25rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 1.5rem;
  border: 1px solid var(--border);
  margin: 0 1.25rem;
  backdrop-filter: blur(4px);
}

@media (min-width: 768px) {
  .tab-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    padding: 2.5rem;
    margin: 0;
  }
}

.tab-text h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.tab-text p {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.95rem;
}

.tab-image {
  position: relative;
}

.tab-image img {
  width: 100%;
  border-radius: 1.25rem;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: 0 12px 35px rgba(39, 46, 40, 0.2);
  border: 1px solid var(--border);
}

/* ═══════════════════════════════════════════════
   CAROUSEL
   ═══════════════════════════════════════════════ */
.carousel {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.8rem;
  margin-inline: -1.25rem;
  padding-inline: 1.25rem;
}

.carousel::-webkit-scrollbar {
  height: 4px;
}

.carousel::-webkit-scrollbar-track {
  background: transparent;
}

.carousel::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

.carousel-item {
  flex: 0 0 82%;
  max-width: 82%;
  scroll-snap-align: center;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  background: #fff;
}

.carousel-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.carousel-label {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(39, 46, 40, 0.75);
  backdrop-filter: blur(6px);
  font-size: 0.72rem;
  font-weight: 500;
  color: #fff;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ═══════════════════════════════════════════════
   NOTE
   ═══════════════════════════════════════════════ */
.note {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ═══════════════════════════════════════════════
   MAP
   ═══════════════════════════════════════════════ */
.map-container {
  width: 100%;
  height: 350px;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 0.5rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
}

/* ═══════════════════════════════════════════════
   COUNTRIES LIST
   ═══════════════════════════════════════════════ */
.countries-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.country-tag {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.country-tag:hover {
  transform: translateY(-2px);
  border-color: var(--terra);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */
footer {
  padding: 2rem 1.25rem;
  border-top: none;
  background: var(--green);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(212, 207, 193, 0.7);
  width: 100%;
  margin-top: auto;
}

footer a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════
   DESKTOP (768px+)
   ═══════════════════════════════════════════════ */
@media (min-width: 768px) {
  h1 {
    font-size: 2.2rem;
    max-width: 38rem;
  }

  .hero img.hero-bg {
    height: 78vh;
  }

  .hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding-inline: 0;
  }

  .hero-logo {
    height: 170px;
    margin-bottom: 2rem;
  }

  .content {
    max-width: 900px;
    margin: 0 auto 2.5rem;
    padding-inline: 0;
  }

  h2 {
    font-size: 1.8rem;
  }

  .carousel {
    overflow-x: visible;
    scroll-snap-type: none;
    flex-wrap: wrap;
    gap: 1rem;
    margin-inline: 0;
    padding-inline: 0;
  }

  .carousel-item {
    flex: 1 1 calc(25% - 1rem);
    max-width: calc(25% - 1rem);
    height: 300px;
    border-radius: 1.25rem;
  }

  .carousel-item img {
    height: 100%;
  }
}

/* ═══════════════════════════════════════════════
   REVEAL ON SCROLL
   ═══════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: all 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════
   DECORATIVE DIVIDER (optional use in HTML)
   ═══════════════════════════════════════════════ */
.divider {
  width: 100%;
  height: 1px;
  background: var(--border);
  margin: 1rem 0;
  position: relative;
}

.divider::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 3rem;
  height: 1px;
  background: var(--terra);
}
