/* ═══════════════════════════════════════════════════════════
   ANTAWA INTI — style.css
   Identidad visual: Sol andino · Naturaleza del Chocó · Kichwa
   ═══════════════════════════════════════════════════════════ */

/* ─── CUSTOM PROPERTIES ─────────────────────────────────── */
:root {
  /* Colores */
  --jungle:   #0f2318;
  --forest:   #1a3a2a;
  --moss:     #2d5a3d;
  --leaf:     #4a8c5c;
  --lime:     #7ab648;
  --sun:      #e8a020;
  --gold:     #c9943c;
  --sand:     #f4e8d0;
  --cream:    #fdf8f0;
  --white:    #ffffff;
  --text:     #1e2d24;
  --muted:    #5a7265;
  --border:   rgba(74, 140, 92, 0.15);

  /* Tipografía */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'Space Mono', monospace;

  /* Espaciado */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  7rem;

  /* Contenedor */
  --container: 1160px;

  /* Radios */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  /* Sombras */
  --shadow-sm: 0 2px 12px rgba(15, 35, 24, 0.08);
  --shadow-md: 0 8px 32px rgba(15, 35, 24, 0.12);
  --shadow-lg: 0 20px 60px rgba(15, 35, 24, 0.18);

  /* Transiciones */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }
input, select, textarea { font: inherit; }

/* ─── BASE ───────────────────────────────────────────────── */
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

/* ─── CONTAINER ──────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ─── SECTION HEADER ─────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--forest);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.section-header p {
  font-size: 1.05rem;
  color: var(--muted);
}
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 1rem;
}

/* ─── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--sun);
  color: var(--jungle);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(232, 160, 32, 0.35);
}
.btn-primary:hover {
  background: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232, 160, 32, 0.45);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.55);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}
.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
  margin-top: 1.5rem;
}
.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

/* ─── WHATSAPP FLOAT ─────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
}
.whatsapp-float svg { width: 30px; height: 30px; }
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* ─── NAVBAR ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.25rem 0;
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(15, 35, 24, 0.97);
  backdrop-filter: blur(12px);
  padding: 0.8rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.nav-container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.15rem;
  letter-spacing: -0.02em;
}
.logo-kichwa { color: var(--white); }
.logo-sun {
  color: var(--sun);
  font-size: 1.5rem;
  line-height: 1;
  margin-inline: 0.1rem;
  animation: sunPulse 3s ease-in-out infinite;
}
.logo-tagline {
  font-family: var(--font-body);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin-left: 0.5rem;
  align-self: flex-end;
  padding-bottom: 0.1rem;
  display: none; /* hidden on mobile, shown on wider nav */
}
@media (min-width: 900px) { .logo-tagline { display: inline; } }
@keyframes sunPulse {
  0%, 100% { text-shadow: 0 0 8px rgba(232,160,32,0.4); }
  50%       { text-shadow: 0 0 20px rgba(232,160,32,0.8); }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.88rem;
  font-weight: 400;
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
  transition: var(--transition);
}
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-cta-btn {
  background: var(--sun) !important;
  color: var(--jungle) !important;
  font-weight: 700 !important;
  padding: 0.5rem 1.25rem !important;
}
.nav-cta-btn:hover { background: var(--gold) !important; }
.lang-switcher {
  font-family: var(--font-mono);
  font-size: 0.75rem !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 25, 15, 0.78) 0%,
    rgba(15, 35, 24, 0.55) 60%,
    rgba(15, 35, 24, 0.35) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 7rem 1.5rem 4rem;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 1.25rem;
  animation: fadeUp 0.7s ease both;
}
.eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--lime);
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.3;} }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  max-width: 700px;
  animation: fadeUp 0.7s 0.1s ease both;
}
.hero-title em {
  color: var(--sun);
  font-style: italic;
}
.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
  animation: fadeUp 0.7s 0.2s ease both;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.7s 0.3s ease both;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  padding: 0.6rem 1.2rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.85);
  animation: fadeUp 0.7s 0.4s ease both;
}
.badge-icon { font-size: 1.1rem; }
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll span {
  display: block;
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 12px;
  position: relative;
}
.hero-scroll span::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  animation: scrollBob 1.8s ease-in-out infinite;
}
@keyframes scrollBob {
  0%,100%{top:6px;opacity:1;}
  50%{top:16px;opacity:0.3;}
}

/* ─── VS SECTION ─────────────────────────────────────────── */
.vs-section {
  padding: var(--space-xl) 0;
  background: var(--white);
}
.vs-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.vs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.vs-table thead th {
  padding: 1rem 1.5rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--forest);
  border-bottom: 2px solid var(--border);
}
.vs-table thead th:first-child { color: var(--muted); font-family: var(--font-body); font-weight: 500; }
.vs-table tbody td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.vs-table tbody tr:last-child td { border-bottom: none; }
.vs-table tbody td:first-child {
  font-weight: 500;
  color: var(--forest);
  font-size: 0.9rem;
}
.vs-winner {
  background: rgba(122, 182, 72, 0.06);
  color: var(--forest) !important;
  font-weight: 600 !important;
}
.vs-check::before {
  content: '✓ ';
  color: var(--lime);
  font-weight: 700;
}
.vs-neutral { color: var(--muted); }
.sun-icon { font-size: 1.2rem; margin-right: 0.4rem; }

/* ─── SERVICES ───────────────────────────────────────────── */
.services {
  padding: var(--space-xl) 0;
  background: var(--cream);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(74, 140, 92, 0.3);
}
.service-card--featured {
  background: linear-gradient(135deg, var(--forest), var(--moss));
  color: var(--white);
  border-color: transparent;
}
.service-card--featured h3 { color: var(--white); }
.service-card--featured p  { color: rgba(255,255,255,0.78); }
.service-card--featured .service-cta { color: var(--lime); }
.service-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--forest);
  margin-bottom: 0.6rem;
}
.service-card p { font-size: 0.92rem; color: var(--muted); flex: 1; }
.service-cta {
  display: inline-block;
  margin-top: 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--leaf);
  transition: var(--transition);
}
.service-cta:hover { letter-spacing: 0.03em; }

/* ─── BIRDWATCHING ───────────────────────────────────────── */
.birdwatch {
  position: relative;
  padding: var(--space-xl) 0;
  overflow: hidden;
  color: var(--white);
}
.birdwatch-bg {
  position: absolute;
  inset: 0;
}
.birdwatch-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.birdwatch-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 25, 15, 0.92) 0%,
    rgba(10, 25, 15, 0.75) 100%
  );
}
.birdwatch-content {
  position: relative;
  z-index: 2;
}
.birdwatch-content h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 600px;
}
.birdwatch-content h2 span { color: var(--sun); }
.birdwatch-content > p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.78);
  max-width: 560px;
  margin-bottom: 3rem;
  line-height: 1.7;
}
.bird-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
  max-width: 600px;
}
.bird-stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--sun);
  line-height: 1;
}
.stat-lbl { font-size: 0.8rem; color: rgba(255,255,255,0.65); }

/* ─── GALLERY ────────────────────────────────────────────── */
.gallery { padding: var(--space-lg) 0; background: var(--forest); }
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.5rem;
}
.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-sm);
  position: relative;
  aspect-ratio: 4/3;
  background: var(--moss);
}
.gallery-item--large {
  grid-row: span 2;
  aspect-ratio: unset;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: var(--white);
  padding: 2rem 1rem 0.75rem;
  font-size: 0.85rem;
  transform: translateY(100%);
  transition: var(--transition);
}
.gallery-item:hover .gallery-caption { transform: translateY(0); }

/* ─── TESTIMONIALS ───────────────────────────────────────── */
.testimonials {
  padding: var(--space-xl) 0;
  background: var(--cream);
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.stars { color: var(--sun); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 0.1em; }
.testimonial-card > p {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.5rem;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--sand);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.testimonial-author strong { display: block; font-size: 0.9rem; }
.testimonial-author span { font-size: 0.78rem; color: var(--muted); }

/* ─── CONTACT ────────────────────────────────────────────── */
.contact {
  padding: var(--space-xl) 0;
  background: var(--white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  color: var(--forest);
  margin-bottom: 0.75rem;
  line-height: 1.15;
}
.contact-info > p {
  font-size: 1rem;
  color: var(--muted);
}
.contact-map {
  margin-top: 2rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.contact-map iframe {
  width: 100%;
  height: 220px;
  border: none;
  display: block;
}

/* ─── FORM ───────────────────────────────────────────────── */
.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-group--full { grid-column: 1 / -1; }
.form-group label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--forest);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--cream);
  transition: var(--transition);
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--leaf);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(74, 140, 92, 0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { grid-column: 1 / -1; }

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--jungle);
  color: rgba(255,255,255,0.75);
  padding: var(--space-lg) 0 0;
}
.footer-inner {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}
.footer-tagline { font-size: 0.85rem; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.75rem; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  color: rgba(255,255,255,0.7);
}
.footer-social a:hover { background: var(--leaf); color: var(--white); }
.footer-social svg { width: 16px; height: 16px; }
.footer-links h4,
.footer-contact h4 {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-links ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a,
.footer-contact a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer-links a:hover,
.footer-contact a:hover { color: var(--lime); }
.footer-contact p { font-size: 0.88rem; margin-bottom: 0.5rem; }
.footer-bottom {
  max-width: var(--container);
  margin-inline: auto;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.35); }
.footer-kichwa em { color: var(--sun); font-style: normal; }

/* ─── ANIMATIONS ─────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(10,20,15,0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.1rem; padding: 0.75rem 1.5rem; }
  .nav-toggle { display: flex; position: relative; z-index: 200; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item--large { grid-column: span 2; grid-row: unset; aspect-ratio: 16/7; }
  .contact-form { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .bird-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item--large { grid-column: 1; }
}
