
:root {
  --radius: 1rem;
  --background: oklch(0.985 0.015 90);
  --foreground: oklch(0.27 0.04 150);
  --card: oklch(1 0 0);
  --card-foreground: oklch(0.27 0.04 150);
  --primary: #788538;
  --primary-foreground: oklch(0.99 0.01 90);
  --secondary: oklch(0.94 0.04 90);
  --secondary-foreground: hsl(133, 34%, 15%);
  --muted: oklch(0.95 0.02 90);
  --muted-foreground: oklch(0.5 0.03 150);
  --accent: oklch(0.85 0.1 75);
  --accent-foreground: oklch(0.3 0.05 150);
  --border: oklch(0.9 0.02 120);
  --input: oklch(0.92 0.02 120);
  --cream: oklch(0.97 0.025 85);
  --warm: oklch(0.88 0.06 70);
  --shadow-soft: 0 10px 30px -12px color-mix(in oklab, var(--primary) 25%, transparent);
  --shadow-card: 0 4px 20px -8px color-mix(in oklab, var(--primary) 15%, transparent);
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Poppins", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1,
h2,
h3,
.logo-text,
.why-title {
  font-family: var(--font-display);
}

@keyframes llamarAtencion {
  0%, 30%, 50%, 80%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  10% {
    transform: scale(1.05);
  }
  20% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.02);
  }
  80% {
    transform: scale(1);
  }
}

/* --- Layout base --- */
.container {
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- WhatsApp flotante --- */
.whatsapp-float {
  position: fixed;
  bottom: 3rem;
  right: 1.5rem;
  z-index: 90;
  width: 5rem;
  height: 5rem;
  border-radius: 9999px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: transform 0.2s ease;
  display: block;
  animation: llamarAtencion 2s ease-in-out 1s infinite;
}

.whatsapp-float img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 9999px;
}

/* --- Botones --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  opacity: 0.9;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: var(--shadow-soft);
}

.btn-outline {
  background: var(--card);
  color: var(--foreground);
}

.btn-block {
  width: 100%;
}

.btn:hover {
  transform: scale(1.02);
  opacity: 1;
}

/* --- Header --- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in oklab, var(--background) 80%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--border) 50%, transparent);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.logo {
  display: flex;
  width: 8rem;
}

.nav-logo {
  width: 20rem;
  height: auto;
  aspect-ratio: 1596 / 583;
}

.logo-mark {
  display: grid;
  place-items: center;
  height: auto;
  color: var(--primary-foreground);
  transition: transform 0.2s;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-foreground);
  transition: color 0.2s;
  padding-bottom: 3px;
}

.nav-desktop a:hover {
  color: var(--primary);
  padding-bottom: 0px;
  border-bottom: 3px solid var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted-foreground);
  transition: all 0.2s;
}

.lang-btn:hover {
  border-color: var(--primary);
}

.lang-btn .active {
  color: var(--primary);
}

.lang-sep {
  color: var(--muted-foreground);
}

.btn-cta {
  display: inline-flex;
}

/* En escritorio no hace falta el botón de menú hamburguesa */
.menu-btn {
  display: none;
  place-items: center;
  height: 2.5rem;
  width: 2.5rem;
  border: none;
  background: transparent;
  border-radius: 0.75rem;
  cursor: pointer;
  color: var(--foreground);
}

.menu-btn:hover {
  background: var(--secondary);
}

.menu-btn svg {
  height: 1.25rem;
  width: 1.25rem;
}

.menu-btn .icon-close {
  display: none;
}

.menu-btn.open .icon-menu {
  display: none;
}

.menu-btn.open .icon-close {
  display: block;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding-bottom: 1rem;
  text-align: right;
}

/* Forzado oculto en escritorio aunque el JS deje la clase .open puesta */
.nav-mobile.open {
  display: none;
}

.nav-button {
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  margin-right: 1rem;
}

.nav-button:hover {
  background: var(--secondary);
}

.nav-mobile-cta {
  text-align: center;
  margin-top: 0.5rem;
  color: var(--primary-foreground);
}

/* --- Lightbox (visor de imagen ampliada; home y galería) --- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
  padding: 1.5rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 0.75rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: grid;
  place-items: center;
  height: 2.75rem;
  width: 2.75rem;
  border-radius: 9999px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-close svg {
  height: 1.5rem;
  width: 1.5rem;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  height: 3rem;
  width: 3rem;
  border-radius: 9999px;
  border: none;
  background: rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.lightbox-arrow:hover {
  background: rgba(255,255,255,0.3);
}

.lightbox-arrow svg {
  height: 1.5rem;
  width: 1.5rem;
}

.lightbox-prev {
  left: 1.25rem;
}

.lightbox-next {
  right: 1.25rem;
}

/* --- Footer --- */
.footer {
  padding-top: 3rem;
  padding-bottom: 1rem;
  background: linear-gradient(to bottom, var(--foreground), #526453);
  color: color-mix(in oklab, var(--background) 80%, transparent);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  text-align: center;
  width: 100%;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-grid > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  width: 100px;
  height: auto;
  background-color: white;
  padding: 10px;
  border-radius: 10px;
}

.footer-logo-container {
  display: flex;
  justify-content: center;
}

.footer-tagline {
  margin-top: 1rem;
  font-size: 0.875rem;
}

.footer-heading {
  font-weight: 700;
  color: var(--background);
  margin-bottom: 0.75rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--primary);
}

.social {
  display: flex;
  gap: 0.75rem;
}

.social a {
  display: grid;
  place-items: center;
  height: 2rem;
  width: 2rem;
  transition: all 0.2s ease;
}

.social a img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}

.footer-bottom {
  position: relative;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid color-mix(in oklab, var(--background) 10%, transparent);
  font-size: 0.75rem;
  text-align: center;
}

.footer-copyright {
  text-align: center;
  display: block;
  justify-content: center;
}

.footer-credit {
  position: absolute;
  right: 1rem;
  bottom: 0.3rem;
  font-size: 0.5rem;
  opacity: 0.7;
  margin: 0;
  white-space: nowrap;
  transition: all 0.5s ease;
}

.footer-DMP {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.6rem;
}

.footer-credit:hover {
  color: black;
  transform: scale(1.1);
}

/* ============================================================================
   TABLET — de 640px a 1149px
   ============================================================================ */
@media (max-width: 1149px) {

  .container {
    padding: 0 1.5rem;
  }

  /* Header: entra el menú hamburguesa, sale el menú de escritorio */
  .nav-desktop {
    display: none;
  }

  .menu-btn {
    display: grid;
  }

  .nav-mobile.open {
    display: flex;
  }

}

@media (max-width: 900px) {

  .footer-bottom {
    padding-top: 1.5rem;
  }

}

/* ============================================================================
   SMARTPHONE — hasta 639px
   ============================================================================ */
@media (max-width: 639px) {

  .container {
    padding: 0 1rem;
  }

  .header-actions {
    gap: 0.5rem;
  }

  .btn-cta {
    display: none;
  }

  .lightbox-arrow {
    height: 2.5rem;
    width: 2.5rem;
  }

  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

}
