  :root {
    --accent: #EE3B33;
    --secondary: #4C4D4F;
    --white: #ffffff;
    --light: #f7f7f7;
    --dark: #111111;
    --grey-light:#ebebeb;
    --grey-dark:#878787;
    --nav-h: 72px;
  }

  *,
  *::before,
  *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: 'Poppins', sans-serif;
    color: var(--secondary);
    background: var(--white);
    overflow-x: hidden;
  }
  header {
      position: fixed;
      top: 0;
      left: 0;
      z-index: 100;
      width: 100%;
  }
  /* ── NAVBAR ─────────────────────────────────── */
  #navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: var(--white);
    transition: background 0.35s ease, box-shadow 0.35s ease;
  }

  #navbar.scrolled {
    background: var(--white);
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  }

  .nav-logo img {
    height: 40px;
    object-fit: contain;
  }

  .nav-logo span {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.05em;
    transition: color 0.35s;
  }

  #navbar.scrolled .nav-logo span {
    color: var(--secondary);
  }

  .nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
  }

  .nav-links a {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.25s;
  }

  #navbar.scrolled .nav-links a, #navbar.scrolled  .sel-lang {
    color: var(--secondary);
  }

  .nav-links a:hover, .sel-lang:hover {
    color: var(--accent) !important;
  }

  .nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .sel-lang{
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
    font-weight: 500;
    text-decoration: none;
    &:hover{
        img{
            opacity: 0.75;
        }
        color: var(--accent);
    }
    @media screen and (max-width:768px) {
        span{
            display: none;
        }
    }
  }

  /* Hamburger */
  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
  }

  .hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.35s ease;
  }

  #navbar .hamburger span {
    background: var(--secondary);
  }
section{
  scroll-margin-top: 72px;
}
  /* ── HERO ─────────────────────────────────── */
  #inicio {
    height: 100vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background: url(../img/bg-hero.webp) center center / cover no-repeat;
    text-align: left;
  }

  .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(10, 10, 10, 0.72) 0%, rgba(20, 20, 20, 0.60) 100%);
  }

  .hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 860px;
    margin: 0 0 0 10%;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .hero-eyebrow {
    display: inline-block;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent);
    padding: 5px 14px;
    border-radius: 2px;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.9s 0.3s forwards;
  }

  .hero-title {
    font-size: clamp(2.4rem, 5.5vw, 4rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.12;
    margin-bottom: 18px;
    letter-spacing: -0.01em;
    opacity: 0;
    animation: fadeUp 0.9s 0.55s forwards;
    &:after{
      content: '';
      display: block;
      width: 60px;
      height: 3px;
      background: var(--accent);
      margin-top: 8px;
    }
  }
.triangulos {
    position: absolute;
    bottom: 0;
    right: 0;
    opacity: .5;
    max-width: 40%;
}
  .hero-title span {
    color: var(--accent);
  }

  .hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.82);
    max-width: 560px;
    margin: 0 0 36px 0;
    line-height: 1.7;
    opacity: 0;
    animation: fadeUp 0.9s 0.75s forwards;
  }

  .btn-accent {
    display: flex;
    align-items: center;
    gap: 10px;
    width: max-content;
    background: var(--accent);
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 15px 36px;
    border-radius: 3px;
    border: none;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
    opacity: 0;
    animation: fadeUp 0.9s 0.95s forwards;
  }

  .btn-accent:hover {
    background: #c82e27;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(238, 59, 51, 0.35);
  }

  #claim {
    width: 100%;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: -1;
    .img-bg {
      width: 100%;
      height: 100%;
      top: 0;
      left: 0;
      position: fixed;
      overflow: hidden;
      background-size: cover;

      &:before {
        content: '';
        display: block;
        width: 100%;
        height: 100%;
        background: #0d0d0d;
        background: linear-gradient(180deg, rgb(24 24 24 / 90%) 0%, rgba(24, 24, 24, 0.5) 50%, rgba(24, 24, 24, 0.9) 100%);
      }
    }

    .claim-content {
      z-index: 2;
      color: var(--white);

      h2 {
        text-align: center;
        font-size: clamp(2rem, 2.581vw + 1.032rem, 3rem);
        text-shadow: 0px 0px 20px rgba(0, 0, 0, 0.7);
      }
    }
  }


  /* ── SPLIT SECTIONS ─────────────────────────────────── */
  .split-section {
    background: var(--light);
    display: flex;
    min-height: 560px;
    width: 100%;
  }

  .split-section .split-img {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
    min-height: 400px;
  }

  .split-section .split-img img,
  .split-section .split-img .img-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
  }

  .split-section:hover .split-img img,
  .split-section:hover .split-img .img-bg {
    transform: scale(1.03);
  }

  .split-section .split-content {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    background: var(--light);
    padding: 70px 60px;
  }
  /* ── SLIDER POR PAÍS ─────────────────────────────────── */
  .split-slider {
    flex: 0 0 50%;
    position: relative;
    overflow: hidden;
    min-height: 50ch;
    background: var(--grey-light);
  }

  .split-section.reverse .split-slider {
    order: 2;
  }

  .slider-pais {
    position: absolute;
    inset: 0;
    cursor: grab;
    user-select: none;
    width: 80%;
    height: 80%;
    border-radius: 16px;
    overflow: hidden;
    margin: 10%;
    box-shadow: 0px 10px 25px 0px rgba(0, 0, 0, 0.25);
  }

  .slider-pais img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
  }

  .slider-pais img.active {
    opacity: 1;
  }

  .slider-dots {
    position: absolute;
    bottom: calc(10% - 32px);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
  }

  .slider-dots button {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: var(--grey-dark);
    cursor: pointer;
    padding: 0;
    transition: background 0.3s;
  }

  .slider-dots button.active {
    background: var(--secondary);
  }

  .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.38);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    transition: background 0.25s, transform 0.25s;
    padding: 0;
  }

  .slider-btn:hover {
    background: rgba(0,0,0,0.62);
    transform: translateY(-50%) scale(1.1);
  }

  .slider-btn.prev { left: 12px; }
  .slider-btn.next { right: 12px; }

  /* Alternating */
  .split-section.reverse .split-img {
    order: 2;
  }

  .split-section.reverse .split-content {
    order: 1;
  }

  .section-tag {
    display: inline-block;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
  }

  .section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 22px;
  }

  .section-title span {
    color: var(--accent);
  }

  .section-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--secondary);
    margin-bottom: 14px;
  }

  .services-list {
    list-style: none;
    margin: 18px 0 28px;
  }

  .services-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark);
    padding: 8px 0;
    border-bottom: 1px solid #e5e5e5;
  }

  .services-list li:last-child {
    border-bottom: none;
  }

  .services-list li::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
    margin-top: 10px;
  }

  .btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--accent);
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 13px 30px;
    border-radius: 3px;
    border: 2px solid var(--accent);
    cursor: pointer;
    transition: background 0.25s, color 0.25s, transform 0.2s;
  }

  .btn-outline:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-2px);
  }

  /* Country image backgrounds via Unsplash */
  .img-bg {
    background-size: cover;
    background-position: center;
  }
#nosotros{
  display: grid;
  width: 100%;
  grid-template-columns: 40% auto;
  min-height: 80vh;
  align-items: center;
  background: var(--white);
  .split-content{
    padding: 32px;
  }
  img{
    max-width: 100%;
  }
}
  #nosotros-img {
    background-image: url('../img/planta05.webp');
  }

  #separador-img {
    background-image: url('../img/fondo-sep.webp');
  }
  #chile-img {
    background-image: url('../img/planta08.webp');
  }

  #argentina-img {
    background-image: url('../img/planta03.webp');
  }

  #colombia-img {
    background-image: url('../img/zal-colombia.webp');
  }

  #bolivia-img {
    background-image: url('../img/zal-bolivia.webp');
  }

  #sudafrica-img {
    background-image: url('../img/zal-sudafrica.webp');
  }

  #claim-img {
    background-image: url('../img/zal-sudafrica.webp');
  }

  /* ── CONTACT ─────────────────────────────────── */
  #contacto {
    background: #1e1e1e;
    background: url(../img/fondo-contacto.webp) center center / cover no-repeat;;
    padding: 100px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    /* &:before{
      content: "";
      background: rgb(0 0 0 / 80%);
      width: 100%;
      height: 100%;
      position: absolute;
      z-index: 0;
      top: 0;
    } */
  }

  .contact-card {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    padding: 60px 60px;
    width: 100%;
    max-width: 600px;
  }

  .contact-card h2 {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
  }

  .contact-card .contact-sub {
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 36px;
  }

  .form-grid {
    display: grid;
    grid-template-columns: 1;
    gap: 8px;
  }

  .form-group {
    display: grid;
    align-items: center;
    grid-template-columns: 130px 1fr;
    gap: 8px;
  }


  .form-group label {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--secondary);
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    color: var(--dark);
    background: #f9f9f9;
    border: 1.5px solid #e0e0e0;
    border-radius: 3px;
    padding: 12px 14px;
    outline: none;
    transition: border-color 0.25s, background 0.25s;
  }

  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    border-color: var(--accent);
    background: var(--white);
  }

  .form-group textarea {
    resize: none;
    min-height: 120px;
  }

  .form-submit {
    display: flex;
    margin-top: 8px;
  }

  .form-submit button {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    justify-content: center;
  }

  /* ── FOOTER ─────────────────────────────────── */
  footer {
    background: #313131;
    padding: 44px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    border-top: 10px solid rgb(224, 18, 26);
  }

  .footer-logo span {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.06em;
  }

  .footer-logo {
    width: 200px;
  }

  .footer-logo span em {
    color: var(--accent);
    font-style: normal;
  }

  .footer-tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.04em;
    margin-top: 4px;
  }

  .footer-social {
    display: flex;
    gap: 14px;
  }

  .footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    transition: border-color 0.25s, color 0.25s, background 0.25s;
  }

  .footer-social a:hover {
    border-color: var(--accent);
    color: var(--white);
    background: var(--accent);
  }

  .footer-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
  }

  .footer-copy {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.25);
    text-align: center;
    padding: 16px 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: #0d0d0d;
  }

  /* ── FADE-IN ANIMATIONS ─────────────────────────────────── */
  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(24px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    transition-delay: .5s;
  }
  .delay-08 {
    transition-delay: .8s;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* ── DIVIDER ─────────────────────────────────── */
  .accent-bar {
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin-bottom: 20px;
  }

  /* ── MOBILE MENU ─────────────────────────────────── */
  @media (max-width: 900px) {
    .hamburger {
      display: flex;
    }
    #navbar{
       &:after {
        background: var(--white);
        width: 100%;
        height: 100%;
        content: "";
        position: absolute;
        z-index: 1;
        display: block;
      }
      .nav-logo, .nav-right {
        position: relative;
        z-index: 2;
      }
      &:has(.open){
        .hamburger span:nth-of-type(1) {
          background: transparent;
        }
        .hamburger span:nth-of-type(2) {
          transform: rotate(45deg);
        }
        .hamburger span:nth-of-type(3) {
          transform: rotate(-45deg) translateY(-5px) translateX(5px);
        }
      }
    }
    .nav-links {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      background: var(--white);
      flex-direction: column;
      gap: 0;
      padding: 12px 0;
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
      transform: translateY(-110%);
      transition: transform 0.35s ease;
      z-index: 0;
    }

    .nav-links.open {
      transform: translateY(72px);
    }

    .nav-links a {
      color: var(--secondary) !important;
      padding: 14px 40px;
      display: block;
    }

    .lang-btn {
      border-color: var(--secondary) !important;
      color: var(--secondary) !important;
    }
    #nosotros{
        grid-template-columns: auto;
    }
    .split-section {
      flex-direction: column;
    }

    .split-section .split-img {
      flex: none;
      width: 100%;
      height: 280px;
    }

    .split-section .split-content {
      flex: none;
      width: 100%;
      padding: 50px 28px;
    }

    .split-section.reverse .split-img,
    .split-section.reverse .split-content {
      order: unset;
    }
    .split-slider{
      order: 2;
    }
    .contact-card {
      padding: 36px 24px;
    }
    
    .form-grid {
      grid-template-columns: 1fr;
    }

    footer {
      flex-direction: column;
      align-items: flex-start;
      padding: 40px 28px;
    }

    .footer-copy {
      padding: 16px 28px;
    }

    #navbar {
      padding: 0 24px;
      background: var(--white);
    }
  }

  @media (max-width: 600px) {
    .hero-content{
      margin: 0;
    }
    .hero-title {
      font-size: 2rem;
    }
    .form-group {
      display: grid;
      grid-template-columns: 1fr;
      gap: 4px;
      padding: 0 0 9px 0;
    }
  } 