/* =========================================================
   DESIGN SYSTEM
   ========================================================= */
:root {
  --c1: #407838;      /* primary green */
  --c2: #606060;      /* body gray */
  --c3: #ffffff;      /* white */
  --c1-dark: #2d5a23;
  --c1-light: #e8f3e4;
  --gray-bg: #f5f5f5;
  --dark-footer: #2a2a2a;

  --font-title: 'Orbitron', sans-serif;
  --font-body: 'Roboto', 'Google Sans', sans-serif;

  --header-h: 72px;
  --radius: 12px;
  --transition: 0.35s ease;
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--c2);
  background: var(--c3);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  box-shadow: none;
  height: var(--header-h);
  transition: background var(--transition), box-shadow var(--transition);
}
.site-header.scrolled {
  background: var(--c3);
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
  gap: 1rem;
}

/* Logo */
.header-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.header-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
/* Logo swap: white visible on transparent header, color on scrolled */
.logo-white { display: block; }
.logo-color { display: none; }
.site-header.scrolled .logo-white { display: none; }
.site-header.scrolled .logo-color { display: block; }
.logo-fallback {
  display: none;
  font-family: var(--font-title);
  font-size: 0.7rem;
  color: var(--c3);
  line-height: 1.3;
  font-weight: 900;
  text-transform: uppercase;
}
.site-header.scrolled .logo-fallback { color: var(--c1); }

/* Nav */
.header-nav ul {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.header-nav a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.03em;
  transition: color var(--transition);
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.header-nav a:hover { color: var(--c3); }
.site-header.scrolled .header-nav a {
  color: var(--c2);
  text-shadow: none;
}
.site-header.scrolled .header-nav a:hover { color: var(--c1); }

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a::after {
  content: ' ▾';
  font-size: 0.72em;
  opacity: 0.8;
}
.header-nav .dropdown {
  gap: 0.5rem;
  align-items: stretch;
}
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.14);
  min-width: 130px;
  padding: 0.1rem 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 300;
}
/* invisible bridge so mouse doesn't escape between link and dropdown */
.dropdown::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 18px;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown li { list-style: none; }
.dropdown li a {
  display: block;
  padding: 0.12rem 1rem;
  color: var(--c2);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  text-shadow: none;
  transition: color 0.18s, background 0.18s;
}
.dropdown li:first-child a { border-radius: 12px 12px 0 0; }
.dropdown li:last-child  a { border-radius: 0 0 12px 12px; }
.dropdown li:only-child  a { border-radius: 12px; }
.dropdown li a:hover {
  color: var(--c1);
  background: #f4faf2;
}

/* Right side */
.header-right {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-shrink: 0;
}

/* Social icons */
.social-icons {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 6px;
  background: rgba(255,255,255,0.15);
  color: var(--c3);
  transition: background var(--transition), color var(--transition);
}
.social-link:hover { background: rgba(255,255,255,0.35); }
.site-header.scrolled .social-link {
  background: var(--c1-light);
  color: var(--c1);
}
.site-header.scrolled .social-link:hover { background: var(--c1); color: var(--c3); }
.social-link img { width: 18px; height: 18px; object-fit: contain; }
.social-svg { width: 18px; height: 18px; }

/* Language toggle */
.lang-toggle {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}
.lang-btn {
  background: none;
  border: 2px solid transparent;
  border-radius: 50%;
  cursor: pointer;
  padding: 2px;
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), transform var(--transition);
  overflow: hidden;
}
.lang-btn img {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.lang-btn.active { border-color: var(--c3); transform: scale(1.1); }
.lang-btn:hover { border-color: rgba(255,255,255,0.6); }
.site-header.scrolled .lang-btn.active { border-color: var(--c1); }
.site-header.scrolled .lang-btn:hover { border-color: var(--c1-dark); }
.flag-text {
  font-family: var(--font-title);
  font-size: 0.55rem;
  font-weight: 900;
  color: var(--c3);
}
.site-header.scrolled .flag-text { color: var(--c1); }

.hamburger span { background: var(--c3); }
.site-header.scrolled .hamburger span { background: var(--c2); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--c2);
  border-radius: 2px;
  transition: var(--transition);
}

/* =========================================================
   HERO CAROUSEL
   ========================================================= */
.hero-section {
  position: relative;
  width: 100%;
  height: 68vh;
  min-height: 420px;
  overflow: hidden;
  margin-top: 0;
}

.hero-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slide.active { opacity: 1; z-index: 2; }
.hero-slide.prev { opacity: 0; z-index: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
}
.hero-title {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--c3);
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}

/* Hero dots */
.hero-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 0.6rem;
}
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  padding: 0;
}
.hero-dot.active {
  background: var(--c3);
  transform: scale(1.3);
}

/* =========================================================
   KEY CHARACTERISTICS
   ========================================================= */
.characteristics-section {
  padding: 5rem 0 4rem;
  background: var(--c3);
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--c1);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.8rem;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--c2);
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.characteristics-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.char-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  width: 130px;
  text-align: center;
}

.char-icon {
  width: 80px; height: 80px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}
.char-item:hover .char-icon { transform: scale(1.18); }
.char-icon img {
  width: 80px; height: 80px;
  object-fit: contain;
  position: absolute;
  top: 0; left: 0;
  transition: opacity 0.3s ease;
}
.char-icon .icon-default { opacity: 1; }
.char-icon .icon-color  { opacity: 0; }
.char-item:hover .icon-default { opacity: 0; }
.char-item:hover .icon-color  { opacity: 1; }
.icon-placeholder {
  width: 80px; height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-placeholder svg { width: 80px; height: 80px; }

.char-label {
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--c1);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* =========================================================
   TESTIMONIALS — infinite scroll
   ========================================================= */
.testimonials-section {
  position: relative;
  padding: 1rem 0;
  overflow: hidden;
}

.testimonials-quotes-bg {
  position: absolute;
  top: -1rem;
  left: 2rem;
  font-size: 16rem;
  line-height: 1;
  color: var(--c1);
  opacity: 0.07;
  font-family: Georgia, serif;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
.testimonials-quotes-bg.right {
  left: auto;
  right: 2rem;
  top: auto;
  bottom: -3rem;
}

.testimonials-scroll-outer {
  position: relative;
  z-index: 1;
  width: calc(3 * 320px + 2 * 24px);
  max-width: 96vw;
  margin: 0 auto;
  /* padding gives room for box-shadow and arrow — NO overflow here */
  padding: 20px 0 36px;
}

/* This inner div clips the sliding animation on sides only */
.testimonials-clip {
  overflow: hidden;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* ── Speech-bubble wrapper ── */
.t-bubble {
  flex-shrink: 0;
  width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.75s ease, opacity 0.75s ease;
}

/* Rounded card */
.t-card {
  width: 100%;
  border-radius: 14px;
  padding: 2rem 1.8rem;
  text-align: center;
  transition: background 0.75s ease;
}

/* SVG arrow — straight sides, rounded tip only */
.t-arrow {
  display: block;
  width: 38px;
  height: 23px;
  flex-shrink: 0;
  margin-top: -1px; /* overlap 1px to kill any subpixel gap */
  transition: color 0.75s ease;
}
.t-arrow svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Active state — box-shadow replaces scale (scale caused clipping) */
.t-bubble.active {
  opacity: 1;
  z-index: 2;
}
.t-bubble.active .t-card {
  background: var(--c1);
}
.t-bubble.active .t-card p    { color: var(--c3); }
.t-bubble.active .t-card span { color: rgba(255,255,255,0.82); }
.t-bubble.active .t-arrow     { color: var(--c1); }

/* Side state */
.t-bubble.side {
  transform: scale(0.92);
  opacity: 0.6;
  cursor: pointer;
}
.t-bubble.side:hover { opacity: 0.82; transform: scale(0.95); }
.t-bubble.side .t-card      { background: #d8d8d8; }
.t-bubble.side .t-card p    { color: var(--c2); }
.t-bubble.side .t-card span { color: var(--c2); }
.t-bubble.side .t-arrow     { color: transparent; }

/* Text */
.t-card p {
  font-family: var(--font-body);
  font-size: 0.97rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 1.2rem;
}
.t-card span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  font-style: italic;
}

/* =========================================================
   REGIONS
   ========================================================= */
.regions-section {
  padding: 5rem 0 2.5rem;
  background: var(--c3);
}

.regions-carousel-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 3rem;
  padding: 0 2rem;
  width: 100%;
  box-sizing: border-box;
}

.region-arrow {
  background: none;
  border: 2px solid #aaa;
  color: #aaa;
  border-radius: 50%;
  width: 48px; height: 48px;
  font-size: 1.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.35;
  transition: opacity var(--transition), border-color var(--transition), color var(--transition), background var(--transition);
  padding-bottom: 2px;
}
.region-arrow:hover {
  opacity: 1;
  border-color: var(--c1);
  color: var(--c1);
  background: var(--c1-light);
}

.regions-clip {
  width: calc(3 * 270px + 2 * 2rem);
  flex-shrink: 0;
  overflow: hidden;
  padding: 20px 0;
}

.regions-track {
  display: flex;
  gap: 2rem;
  /* no overflow — JS controls translateX */
}

.region-card {
  flex: 0 0 270px;
  width: 270px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.region-map {
  width: 210px; height: 255px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.region-map img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.region-card:hover .region-map img { transform: scale(1.1); }
.region-placeholder {
  width: 160px; height: 200px;
  border-radius: 8px;
  opacity: 0.85;
}

.region-label {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--c1);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* =========================================================
   GALLERY CAROUSEL
   ========================================================= */
.gallery-section {
  background: #e0e0e0;
  padding: 1.4rem 0;
  overflow: hidden;
  margin: 2.5rem 0;
}

.gallery-track {
  display: flex;
  gap: 1.2rem;
  animation: galleryScroll 32s linear infinite;
  width: max-content;
}
.gallery-track:hover { animation-play-state: paused; }

@keyframes galleryScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.gallery-tile {
  width: 520px;
  height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}
.gallery-tile img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.gallery-tile.placeholder {
  background: linear-gradient(135deg, #c8c8c8, #b0b0b0);
}

/* =========================================================
   WHY ARGENTINA
   ========================================================= */
.why-section {
  background: var(--c1);
  padding: 6rem 0 7rem;
  margin-bottom: 5rem;
}

.why-title {
  font-family: var(--font-title);
  font-size: clamp(1.1rem, 2vw, 1.6rem);
  font-weight: 900;
  color: var(--c3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1.8rem;
  text-align: center;
}

.why-list {
  list-style: none;
  max-width: 580px;
  margin: 0 auto;
  text-align: left;
}
.why-list li {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--c3);
  line-height: 1.15;
  padding: 0.3rem 0 0.3rem 1.2rem;
  position: relative;
}
.why-list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  line-height: 1.15;
  font-weight: 700;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--dark-footer);
  color: var(--c3);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  padding: 4rem 0 3rem;
}

.footer-col h4 {
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--c3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--c1);
  display: inline-block;
}
.footer-col p {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  margin-bottom: 0.4rem;
}
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--c3); }

.footer-social {
  display: flex;
  gap: 0.8rem;
  margin-top: 0.5rem;
}
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: background var(--transition), color var(--transition);
}
.footer-social a:hover { background: var(--c1); color: var(--c3); }
.footer-social svg { width: 18px; height: 18px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.2rem 0;
  text-align: center;
}
.footer-bottom p {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }

  .header-nav { display: none; }
  .header-nav.open {
    display: flex;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--c3);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 1.5rem;
    z-index: 999;
  }
  .header-nav.open ul {
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
  }
  .header-nav.open a { font-size: 1rem; }
  .header-nav.open .dropdown {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    background: transparent;
    padding: 0.3rem 0 0 1.2rem;
  }
  .header-nav.open .dropdown li a {
    font-size: 0.88rem;
    color: var(--c3);
    padding: 0.3rem 0;
  }
  .header-nav.open .dropdown li a:hover { color: var(--c1); background: transparent; }

  .hamburger { display: flex; }

  .social-icons { display: none; }

  .hero-section { height: 55vh; min-height: 320px; }

  .characteristics-grid { gap: 1.5rem; }
  .char-item { width: 100px; }

  .testimonials-scroll-outer { width: 100%; padding: 12px 0 30px; }
  .t-bubble { width: 240px; }
  .t-bubble.side { opacity: 0.35; transform: scale(0.86); }

  .region-card { flex: 0 0 200px; width: 200px; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }

  .gallery-tile { width: 300px; height: 200px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.4rem; }
  .section-title { font-size: 1.3rem; }
  .why-title { font-size: 1.3rem; }
}
