/* ========================================
   PAPIROY — Global Styles
   ======================================== */

:root {
  --green-dark: #1a3a1a;
  --green-mid: #2d6a2d;
  --green-main: #3a8c3a;
  --green-bright: #4cbb4c;
  --green-lime: #78d64b;
  --green-light: #e8f5e0;
  --gold: #e8b84b;
  --gold-light: #f5d98e;
  --earth: #6b4c2a;
  --white: #ffffff;
  --gray-100: #f7f9f5;
  --gray-200: #eef2ea;
  --gray-400: #9aab89;
  --gray-600: #5a6b50;
  --gray-800: #2e3d28;
  --text-primary: #1c2b18;
  --text-secondary: #4a5e40;
  --shadow-sm: 0 2px 8px rgba(42, 106, 42, 0.10);
  --shadow-md: 0 8px 30px rgba(42, 106, 42, 0.15);
  --shadow-lg: 0 20px 60px rgba(42, 106, 42, 0.20);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 40px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

/* Visible focus ring for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  margin: 0;
  padding: 0;
  background: var(--green-dark);
  overflow-x: hidden;
  overscroll-behavior: none;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: block;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--green-main);
  border-radius: 3px;
}

/* ── TYPOGRAPHY ── */
h1,
h2,
h3,
h4 {
  font-family: 'Outfit', sans-serif;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
}

h3 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
}

p {
  color: var(--text-secondary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--green-bright), var(--green-lime));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(76, 187, 76, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(76, 187, 76, 0.55);
  background: linear-gradient(135deg, var(--green-lime), var(--green-bright));
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--white);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--green-dark);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366, #128c4e);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--green-dark);
  box-shadow: 0 4px 20px rgba(232, 184, 75, 0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232, 184, 75, 0.5);
}

/* ── CONTAINER ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── SECTION LABELS ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-light);
  color: var(--green-main);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--white);
  transition: var(--transition);
}

.navbar.scrolled .nav-logo {
  color: var(--green-dark);
}

.nav-logo img {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.95rem;
  transition: var(--transition);
}

.navbar.scrolled .nav-links a {
  color: var(--text-secondary);
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255, 255, 255, 0.2);
  color: var(--white);
}

.navbar.scrolled .nav-links a:hover,
.navbar.scrolled .nav-links a.active {
  background: var(--green-light);
  color: var(--green-dark);
}

.nav-cta {
  display: flex;
  align-items: center;
}

.nav-cta .btn {
  min-width: 160px;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.navbar.scrolled .hamburger span {
  background: var(--green-dark);
}

/* Hamburger active (X) */
.navbar.menu-active {
  background: var(--white) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar.menu-active .hamburger span {
  background: var(--green-dark);
}

.navbar.menu-active .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar.menu-active .hamburger span:nth-child(2) {
  opacity: 0;
}

.navbar.menu-active .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── MOBILE NAV ── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: var(--shadow-md);
  padding: 16px 24px 24px;
  z-index: 999;
}

.mobile-nav.open {
  display: flex;
  flex-direction: column;
}

.mobile-nav a:not(.btn) {
  display: block;
  padding: 14px 0;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid var(--gray-200);
  font-size: 1.05rem;
  transition: var(--transition);
}

.mobile-nav a.active {
  color: var(--green-main) !important;
  font-weight: 700;
}

.mobile-nav .btn {
  margin-top: 16px;
  justify-content: center;
  width: 100%;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

/* ── FOOTER ── */
footer {
  background: var(--green-dark);
  color: var(--white);
  padding: 60px 24px 30px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.6);
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-logo {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--green-lime);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-logo img {
  height: 50px;
  width: auto;
  object-fit: contain;
}

.footer-col-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-lime);
  margin-bottom: 16px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
}

.footer-col h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-lime);
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer-contact-item .icon {
  color: var(--green-lime);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-bottom p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin: 0;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.social-facebook {
  background: #1877F2;
}

.social-instagram {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-tiktok {
  background: #000000;
}

.social-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
  filter: brightness(1.15);
}

/* ── WHATSAPP FAB ── */
.whatsapp-fab {
  position: fixed;
  bottom: 25px;
  left: 25px;
  background-color: #075e54;
  /* Verde oscuro oficial WhatsApp — ratio 7.1:1 con #fff (WCAG AA ✓) */
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(7, 94, 84, 0.5);
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.whatsapp-fab:hover {
  transform: translateY(-5px);
  background-color: #128c7e;
  box-shadow: 0 8px 20px rgba(18, 140, 126, 0.55);
  color: #ffffff;
}

.whatsapp-fab span {
  color: #ffffff;
  font-weight: 700;
}

.whatsapp-fab svg {
  width: 24px;
  height: 24px;
}

/* Animación de entrada suave */
@keyframes fabEntrance {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.whatsapp-fab {
  animation: fabEntrance 0.6s ease-out;
}

/* ── BADGE / TAG ── */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag-green {
  background: var(--green-light);
  color: var(--green-main);
}

.tag-gold {
  background: #fdf3d9;
  color: #b8860b;
}

.tag-new {
  background: #e8f0fe;
  color: #3b5bdb;
}

/* ── CARDS ── */
.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.animate-fadeup {
  animation: fadeUp 0.7s ease forwards;
}

.animate-fadein {
  animation: fadeIn 0.7s ease forwards;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

@media (max-width: 600px) {
  footer {
    padding-bottom: 100px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}