/* ============================================================
   TRADE CHEMICALS & PRODUCTS — Global Stylesheet (all pages)
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --color-primary:    #0097b2;
  --color-primary-dk: #007490;
  --color-dark:       #1a2735;
  --color-dark-2:     #22313f;
  --color-text:       #444;
  --color-text-light: #666;
  --color-white:      #ffffff;
  --color-bg-light:   #f5f8fa;

  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Open Sans', sans-serif;

  --container-max: 1200px;
  --radius:        6px;
  --shadow:        0 4px 24px rgba(0,0,0,.10);
  --transition:    .28s ease;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--color-text); line-height: 1.7; font-size: 15px; }
img  { display: block; max-width: 100%; height: auto; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

/* ── Utilities ──────────────────────────────────────────────── */
.container   { max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }
.highlight   { color: var(--color-primary); }
.center      { text-align: center; }
.section-tag { font-family: var(--font-heading); font-size: 13px; color: var(--color-text-light); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.section-sub { color: var(--color-text-light); max-width: 680px; margin: 0 auto 40px; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-weight: 700; font-size: 13px; letter-spacing: .5px;
  padding: 12px 28px; border-radius: 30px; border: none; cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn--primary { background: var(--color-primary); color: var(--color-white); }
.btn--primary:hover { background: var(--color-primary-dk); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,151,178,.35); }

/* ============================================================
   TOP BAR — HOME variant (simple one-line)
   ============================================================ */
.topbar { background: var(--color-white); border-bottom: 1px solid #e8eef2; font-size: 13px; padding: 7px 0; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.topbar__left a, .topbar__right a { color: var(--color-text-light); margin-right: 20px; transition: color var(--transition); }
.topbar__left a:hover, .topbar__right a:hover { color: var(--color-primary); }
.topbar__left a i, .topbar__right a i { margin-right: 5px; color: var(--color-primary); }
.btn-topbar { background: var(--color-primary); color: #fff; padding: 4px 10px; border-radius: 4px; font-size: 16px; }

/* TOP BAR — INNER pages variant (logo + contacts + social) */
.topbar--inner { padding: 14px 0; }
.topbar__brand-logo { height: auto; width: auto; }
.topbar__contacts { display: flex; gap: 36px; }
.topbar__contact-item { display: flex; align-items: center; gap: 12px; }
.topbar__icon {
  font-size: 18px; color: var(--color-primary); border: 2px solid #e0edf0;
  border-radius: 50%; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.topbar__label { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 13px; color: var(--color-dark); margin-bottom: 1px; }
.topbar__value { font-size: 13px; color: var(--color-text-light); transition: color var(--transition); }
.topbar__value:hover { color: var(--color-primary); }
.topbar__social { display: flex; gap: 6px; }
.topbar__social a {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 6px;
  background: var(--color-primary); color: #fff; font-size: 14px;
  transition: background var(--transition), transform var(--transition);
}
.topbar__social a:hover { background: var(--color-primary-dk); transform: translateY(-2px); }

/* ============================================================
   NUEVO NAVBAR - COMPLETAMENTE RESPONSIVE
   ============================================================ */

.navbar {
    background: var(--color-dark, #1a2735);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    padding: 0 20px;
    max-width: var(--container-max, 1200px);
    margin: 0 auto;
}

/* Botón Hamburguesa - SIEMPRE VISIBLE EN MOBILE */
.navbar__toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.navbar__toggle span {
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar__toggle.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.navbar__toggle.active span:nth-child(2) {
    opacity: 0;
}

.navbar__toggle.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* Menú Desktop */
.navbar__menu {
    flex: 1;
    margin: 0 20px;
}

.navbar__list {
    display: flex;
    list-style: none;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.navbar__item {
    position: relative;
}

.navbar__link {
    font-family: var(--font-heading, 'Montserrat', sans-serif);
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.navbar__link:hover,
.navbar__link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.navbar__arrow {
    font-size: 11px;
    transition: transform 0.3s ease;
}

/* Dropdown Desktop */
.navbar__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-dark-2, #22313f);
    min-width: 220px;
    border-radius: 8px;
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.navbar__item--dropdown:hover .navbar__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.navbar__dropdown li {
    padding: 0;
}

.navbar__dropdown .navbar__link {
    display: block;
    padding: 10px 20px;
    white-space: nowrap;
    font-size: 12px;
}

/* Social Icons */
.navbar__social {
    display: flex;
    gap: 12px;
    align-items: center;
}

.navbar__social a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: color 0.3s ease;
}

.navbar__social a:hover {
    color: var(--color-primary, #0097b2);
}

/* ============================================================
   RESPONSIVE - Mobile
   ============================================================ */

@media (max-width: 768px) {
    /* Mostrar botón hamburguesa */
    .navbar__toggle {
        display: flex !important;
    }
    
    /* Ocultar menú inicialmente */
    .navbar__menu {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 85% !important;
        max-width: 320px !important;
        height: 100vh !important;
        background: var(--color-dark, #1a2735) !important;
        margin: 0 !important;
        padding: 80px 20px 30px !important;
        transition: left 0.3s ease !important;
        overflow-y: auto !important;
        z-index: 1000 !important;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2) !important;
    }
    
    /* Mostrar menú cuando está activo */
    .navbar__menu.active {
        left: 0 !important;
    }
    
    /* Menú vertical */
    .navbar__list {
        flex-direction: column !important;
        gap: 0 !important;
    }
    
    .navbar__item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
        width: 100% !important;
    }
    
    .navbar__link {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 14px 0 !important;
        font-size: 14px !important;
        white-space: normal !important;
    }
    
    /* Dropdown en mobile */
    .navbar__dropdown {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        box-shadow: none !important;
        padding-left: 20px !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.3s ease !important;
        background: transparent !important;
    }
    
    .navbar__item--dropdown.active .navbar__dropdown {
        max-height: 500px !important;
    }
    
    .navbar__item--dropdown.active .navbar__arrow {
        transform: rotate(180deg) !important;
    }
    
    .navbar__dropdown .navbar__link {
        padding: 10px 0 !important;
        font-size: 13px !important;
    }
    
    /* Ocultar redes sociales en mobile dentro del header */
    .navbar__social {
        display: none !important;
    }
    
    /* Overlay */
    body.menu-open {
        overflow: hidden !important;
    }
    
    body.menu-open::before {
        content: '' !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0, 0, 0, 0.5) !important;
        z-index: 999 !important;
    }
}


/* ============================================================
   HERO (index)
   ============================================================ */
.hero { position: relative; min-height: 520px; display: flex; align-items: center; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero__overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(26,39,53,.85) 0%, rgba(26,39,53,.55) 60%, rgba(0,151,178,.15) 100%); z-index: 1; }
.hero__content { position: relative; z-index: 2; max-width: 620px; padding: 80px 20px; animation: heroFadeIn .8s ease both; }
@keyframes heroFadeIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.hero__tag { font-size: 12px; color: rgba(255,255,255,.65); letter-spacing: 1px; margin-bottom: 14px; font-family: var(--font-heading); }
.hero__title { font-family: var(--font-heading); font-size: clamp(26px, 4vw, 44px); font-weight: 800; color: var(--color-white); line-height: 1.2; margin-bottom: 20px; }
.hero__subtitle { color: rgba(255,255,255,.82); font-size: 15px; margin-bottom: 32px; max-width: 520px; }

/* ============================================================
   ABOUT STRIP (index)
   ============================================================ */
.about-strip { padding: 80px 0; background: var(--color-white); }
.about-strip__inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 60px; align-items: center; }
.about-strip__image img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.about-strip__title { font-family: var(--font-heading); font-size: clamp(18px, 2.5vw, 26px); font-weight: 700; color: var(--color-dark); line-height: 1.35; margin-bottom: 16px; }
.about-strip__content p { color: var(--color-text-light); font-size: 14px; margin-bottom: 14px; }
.about-strip__list { margin: 18px 0; }
.about-strip__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--color-text); margin-bottom: 8px; }
.about-strip__list li i { color: var(--color-primary); margin-top: 3px; flex-shrink: 0; }

/* ============================================================
   SEARCH BAR (index)
   ============================================================ */
.search-bar { background: var(--color-dark); padding: 60px 0; text-align: center; }
.search-bar__title { font-family: var(--font-heading); font-size: clamp(20px, 3vw, 30px); font-weight: 700; color: var(--color-white); margin-bottom: 28px; }
.search-bar__form { display: flex; max-width: 680px; margin: 0 auto; border-radius: 40px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.25); }
.search-bar__input { flex: 1; padding: 16px 24px; border: none; outline: none; font-family: var(--font-body); font-size: 14px; color: var(--color-text); }
.search-bar__btn { background: var(--color-primary); color: #fff; border: none; padding: 0 28px; font-size: 18px; cursor: pointer; transition: background var(--transition); }
.search-bar__btn:hover { background: var(--color-primary-dk); }

/* ============================================================
   WHY US (index)
   ============================================================ */
.why-us { padding: 80px 0; background: var(--color-bg-light); }
.why-us .section-tag { font-size: 24px; font-weight: 700; color: var(--color-dark); margin-bottom: 10px; text-transform: none; letter-spacing: 0; }
.why-us__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.why-us__card { background: var(--color-white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); }
.why-us__card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,.14); }
.why-us__img img { width: 100%; aspect-ratio: 9/9; object-fit: cover; }
.why-us__card-title { font-family: var(--font-heading); font-size: 18px; font-weight: 700; color: var(--color-dark); padding: 20px 20px 8px; }
.why-us__card p { color: var(--color-text-light); font-size: 13.5px; padding: 0 20px 22px; line-height: 1.65; }

/* ============================================================
   SOCIAL RESPONSIBILITY (index)
   ============================================================ */
.social-resp { background: var(--color-dark-2, #22313f); padding: 70px 0; }
.social-resp__inner { max-width: 700px; }
.social-resp .section-tag { color: rgba(255,255,255,.5); }
.social-resp__title { font-family: var(--font-heading); font-size: clamp(22px, 3vw, 34px); font-weight: 800; color: var(--color-white); margin-bottom: 18px; }
.social-resp__content p { color: rgba(255,255,255,.72); font-size: 14.5px; margin-bottom: 14px; }

/* ============================================================
   PRODUCT LINES (index)
   ============================================================ */
.product-lines { padding: 80px 0; background: var(--color-white); }
.product-lines__title { font-family: var(--font-heading); font-size: clamp(22px, 3vw, 34px); font-weight: 800; color: var(--color-dark); text-align: center; margin-bottom: 44px; }
.product-lines__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-lines__card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); cursor: pointer; }
.product-lines__card:hover { transform: translateY(-5px); box-shadow: 0 12px 32px rgba(0,0,0,.14); }
.product-lines__img-wrap { position: relative; overflow: hidden; }
.product-lines__img-wrap img { width: 100%; aspect-ratio: 2/2; object-fit: cover; transition: transform .4s ease; }
.product-lines__card:hover .product-lines__img-wrap img { transform: scale(1.06); }
.product-lines__tag { position: absolute; top: 10px; left: 10px; background: rgba(0,151,178,.85); color: #fff; font-size: 10px; font-family: var(--font-heading); padding: 3px 8px; border-radius: 3px; }
.product-lines__label { font-family: var(--font-heading); font-weight: 700; font-size: 15px; color: var(--color-dark); padding: 16px; background: var(--color-white); }

/* ============================================================
   CTA WHATSAPP (index)
   ============================================================ */
.cta-whatsapp { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dk) 100%); overflow: hidden; }
.cta-whatsapp__inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 260px; }
.cta-whatsapp__text { padding: 50px 40px; color: var(--color-white); }
.cta-whatsapp__text p { font-size: 16px; line-height: 1.6; margin-bottom: 26px; opacity: .92; }
.cta-whatsapp__contact { display: flex; align-items: center; gap: 16px; }
.cta-whatsapp__contact i { font-size: 40px; opacity: .9; }
.cta-whatsapp__contact span { display: block; font-size: 13px; opacity: .85; margin-bottom: 4px; }
.cta-whatsapp__contact strong { display: block; font-family: var(--font-heading); font-size: 24px; font-weight: 800; }
.cta-whatsapp__img img { width: 100%; height: 100%; object-fit: cover; max-height: 320px; }

/* ============================================================
   FOOTER — shared base
   ============================================================ */
.footer { background: var(--color-dark); color: rgba(255,255,255,.75); padding: 60px 0 0; }
.footer__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 50px; padding-bottom: 50px; }
.footer__logo { margin-bottom: 22px; }
.footer__contact-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; margin-bottom: 10px; color: rgba(255,255,255,.7); }
.footer__contact-list li i { color: var(--color-primary); margin-top: 3px; flex-shrink: 0; width: 16px; }
.footer__certs { margin-top: 24px; }
.footer__certs p { font-size: 13px; font-weight: 600; margin-bottom: 12px; color: rgba(255,255,255,.9); }
.footer__certs img { border-radius: 6px; }
.footer__heading { font-family: var(--font-heading); font-size: 15px; font-weight: 700; color: var(--color-white); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--color-primary); display: inline-block; }
.footer__links li { margin-bottom: 8px; }
.footer__links a { font-size: 13.5px; color: rgba(255,255,255,.65); transition: color var(--transition), padding-left var(--transition); }
.footer__links a:hover { color: var(--color-primary); padding-left: 5px; }
.footer__bottom { background: rgba(0,0,0,.25); padding: 18px 0; text-align: center; font-size: 13px; color: rgba(255,255,255,.45); }

/* ============================================================
   FOOTER — NOSOTROS variant (floating card layout)
   ============================================================ */
.footer--nosotros { padding: 0; }
.footer--nosotros .footer__inner { grid-template-columns: 1fr 1fr 1fr; align-items: start; padding: 0 20px; }

.footer-card { background: var(--color-white); border-radius: 12px; padding: 36px 32px; margin-top: -80px; box-shadow: 0 8px 40px rgba(0,0,0,.18); position: relative; z-index: 2; }
.footer-card__phone { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.footer-card__phone i { font-size: 28px; color: var(--color-primary); }
.footer-card__phone span { display: block; font-size: 12px; color: var(--color-text-light); margin-bottom: 2px; }
.footer-card__phone strong { font-family: var(--font-heading); font-size: 26px; font-weight: 800; color: var(--color-dark); }
.footer-card__divider { border: none; border-top: 1px solid #e8eef2; margin-bottom: 22px; }
.footer-card__list { padding: 0; margin: 0 0 28px; }
.footer-card__list li { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--color-text-light); margin-bottom: 12px; line-height: 1.5; }
.footer-card__list li i { color: var(--color-primary); margin-top: 2px; flex-shrink: 0; width: 16px; }
.footer-card__certs { text-align: center; }
.footer-card__certs p { font-family: var(--font-heading); font-weight: 700; font-size: 14px; color: var(--color-dark); margin-bottom: 14px; }
.footer-card__certs img { border-radius: 8px; margin: 0 auto; }

.footer--nosotros .footer__col { padding-top: 50px; padding-bottom: 50px; }
.footer--nosotros .footer__heading { color: var(--color-white); font-size: 16px; margin-bottom: 20px; }
.footer--nosotros .footer__links a { color: var(--color-primary); font-size: 14px; }
.footer--nosotros .footer__links a:hover { color: var(--color-white); padding-left: 0; }
.footer--nosotros .footer__links li { margin-bottom: 14px; }

/* ============================================================
   NOSOTROS — main content section
   ============================================================ */
.nosotros-main { padding: 70px 0 0px; background: var(--color-white); }
.nosotros-main__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.nosotros-main__image img { width: 100%; border-radius: var(--radius); object-fit: cover; box-shadow: var(--shadow); }
.nosotros-main__title { font-family: var(--font-heading); font-size: clamp(26px, 3.5vw, 46px); font-weight: 800; color: var(--color-dark); line-height: 1.2; margin-bottom: 24px; }
.nosotros-main__content p { color: var(--color-text-light); font-size: 14.5px; line-height: 1.75; margin-bottom: 16px; }

/* ============================================================
   SCROLL TO TOP BUTTON
   ============================================================ */
.scroll-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--color-primary); color: #fff; border: none; font-size: 16px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(0,151,178,.4);
  transition: background var(--transition), transform var(--transition), opacity var(--transition);
  opacity: 0; pointer-events: none; z-index: 900;
}
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--color-primary-dk); transform: translateY(-3px); }

/* ============================================================
   PAGE BANNER — inner pages reusable
   ============================================================ */
.page-banner { background: linear-gradient(100deg, var(--color-dark) 60%, var(--color-primary-dk) 100%); padding: 50px 0; }
.page-banner__title { font-family: var(--font-heading); font-size: clamp(24px, 3vw, 40px); font-weight: 800; color: var(--color-white); margin-bottom: 8px; }
.page-banner__breadcrumb { font-size: 13px; color: rgba(255,255,255,.6); }
.page-banner__breadcrumb a { color: var(--color-primary); }
.page-banner__breadcrumb a:hover { color: var(--color-white); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about-strip__inner { grid-template-columns: 1fr; gap: 40px; }
  .why-us__grid       { grid-template-columns: repeat(2, 1fr); }
  .footer__inner      { grid-template-columns: 1fr 1fr; }
  .footer__col--brand { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .nosotros-main__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer--nosotros .footer__inner { grid-template-columns: 1fr; }
  .footer-card { margin-top: 0; }
  .footer--nosotros .footer__col { padding-top: 10px; padding-bottom: 20px; }
  .topbar__contacts { gap: 18px; }
}

@media (max-width: 768px) {
  .header__nav { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--color-white); box-shadow: 0 8px 24px rgba(0,0,0,.12); z-index: 999; }
  .header--dark .header__nav { background: var(--color-dark); }
  .header__nav.open { display: block; }
  .nav__list  { flex-direction: column; gap: 0; padding: 12px 0; }
  .nav__link  { display: block; padding: 12px 24px; border-radius: 0; }
  .hamburger  { display: flex; }
  .header__social      { display: none; }
  .product-lines__grid { grid-template-columns: 1fr 1fr; }
  .cta-whatsapp__inner { grid-template-columns: 1fr; }
  .cta-whatsapp__img   { display: none; }
  .footer__inner       { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 600px) {
  .topbar__contacts { display: none; }
  .topbar__social   { display: none; }
}

@media (max-width: 540px) {
  .why-us__grid        { grid-template-columns: 1fr; }
  .product-lines__grid { grid-template-columns: 1fr; }
  .topbar__left        { display: none; }
  .hero__content       { padding: 60px 20px; }
}

/* ============================================================
   SERVICIOS PAGE
   ============================================================ */

/* Hero servicios — dark overlay with form */
.hero-servicios {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-servicios__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-servicios__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(26,39,53,.88) 0%, rgba(26,39,53,.70) 55%, rgba(0,100,130,.50) 100%);
  z-index: 1;
}
.hero-servicios__inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 20px;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}
.hero-servicios__text .hero__supertag {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}
.hero-servicios__text h1 {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-servicios__text p {
  color: rgba(255,255,255,.80);
  font-size: 15px;
  line-height: 1.65;
}

/* Contact form card */
.form-card {
  background: var(--color-white);
  border-radius: 10px;
  padding: 36px 32px;
  box-shadow: 0 8px 40px rgba(0,0,0,.22);
}
.form-card__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 22px;
  text-align: center;
}
.form-card__field {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d8e3e8;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  margin-bottom: 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-card__field:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,151,178,.12);
}
.form-card__recaptcha {
  border: 1px solid #e8eef2;
  border-radius: var(--radius);
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 13px;
  color: #c00;
  background: #fff8f8;
}
.form-card__recaptcha i { color: #999; font-size: 28px; }
.form-card__btn {
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 14px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background var(--transition), transform var(--transition);
}
.form-card__btn:hover { background: var(--color-primary-dk); transform: translateY(-1px); }

/* Cobertura section */
.cobertura {
  padding: 80px 0;
  background: var(--color-white);
}
.cobertura__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.cobertura__image img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 3/3;
  box-shadow: var(--shadow);
}
.cobertura__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 18px;
}
.cobertura__content > p {
  color: var(--color-text-light);
  font-size: 14.5px;
  margin-bottom: 20px;
}
.cobertura__subtitle {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 12px;
}
.cobertura__list li {
  font-size: 14px;
  color: var(--color-text-light);
  padding: 6px 0;
  border-bottom: 1px solid #f0f4f6;
  line-height: 1.5;
}
.cobertura__list li:last-child { border-bottom: none; }

/* Asesoría Técnica section */
.asesoria {
  padding: 80px 0;
  background: var(--color-bg-light);
}
.asesoria__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.asesoria__content { order: 1; }
.asesoria__image   { order: 2; }
.asesoria__title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 22px;
}
.asesoria__content p {
  color: var(--color-text-light);
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 16px;
}
.asesoria__content p strong {
  display: block;
  color: var(--color-dark);
  font-weight: 700;
  margin-bottom: 6px;
}
.asesoria__image img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 3/3;
  box-shadow: var(--shadow);
}

/* Responsive servicios */
@media (max-width: 900px) {
  .hero-servicios__inner { grid-template-columns: 1fr; gap: 36px; padding: 50px 20px; }
  .cobertura__inner      { grid-template-columns: 1fr; }
  .asesoria__inner       { grid-template-columns: 1fr; }
  .asesoria__content     { order: 1; }
  .asesoria__image       { order: 2; }
}

/* ============================================================
   CONTACTO PAGE
   ============================================================ */

.contacto-intro {
  padding: 50px 0 40px;
  background: var(--color-white);
  text-align: center;
}
.contacto-intro__title {
  font-family: var(--font-heading);
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 14px;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.contacto-intro__desc {
  color: var(--color-text-light);
  font-size: 14px;
  max-width: 680px;
  margin: 0 auto 14px;
  line-height: 1.7;
}
.contacto-intro__highlight {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-dark);
}

/* Contact form */
.contacto-form {
  padding: 0 0 60px;
  background: var(--color-white);
}
.contacto-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.contacto-form__field {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid #d4dde3;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--color-white);
}
.contacto-form__field:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,151,178,.10);
}
.contacto-form__textarea {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid #d4dde3;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  outline: none;
  resize: vertical;
  min-height: 130px;
  margin-bottom: 16px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.contacto-form__textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,151,178,.10);
}
.contacto-form__recaptcha {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #e0e8ed;
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 12px;
  color: #c00;
  background: #fff8f8;
  margin-bottom: 20px;
  max-width: 300px;
}
.contacto-form__recaptcha i { color: #aaa; font-size: 26px; flex-shrink: 0; }
.contacto-form__submit {
  width: 100%;
  padding: 16px;
  border: 1.5px solid #d4dde3;
  border-radius: var(--radius);
  background: var(--color-white);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-light);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  letter-spacing: .5px;
}
.contacto-form__submit:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

/* Google Map embed */
.contacto-map {
  width: 100%;
  height: 280px;
  border: none;
  display: block;
}

/* Responsive contacto */
@media (max-width: 640px) {
  .contacto-form__grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PRODUCTOS PAGE
   ============================================================ */

.productos-section {
  padding: 40px 0 60px;
  background: var(--color-white);
}

/* Controls bar */
.productos__controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}
.productos__show {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text-light);
}
.productos__show select {
  padding: 5px 10px;
  border: 1px solid #d4dde3;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  outline: none;
  cursor: pointer;
}
.productos__search {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text-light);
}
.productos__search input {
  padding: 6px 14px;
  border: 1px solid #d4dde3;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  outline: none;
  width: 180px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.productos__search input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,151,178,.10);
}

/* Table */
.productos__table {
  width: 100%;
  border-collapse: collapse;
}
.productos__table th {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-light);
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid #e8eef2;
  background: var(--color-white);
}
.productos__table th .sort-arrow {
  display: inline-block;
  margin-left: 4px;
  font-size: 10px;
  color: #aaa;
}
.productos__table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f0f4f6;
  vertical-align: middle;
}
.productos__table tr:last-child td { border-bottom: none; }
.productos__table tr:hover td { background: #f8fbfc; }

/* Thumbnail */
.prod-thumb {
  width: 70px;
  height: 60px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e8eef2;
  display: block;
}
.prod-thumb--empty {
  width: 70px;
  height: 60px;
  background: #f0f4f6;
  border-radius: 4px;
  border: 1px solid #e8eef2;
}

/* Product name cell */
.prod-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 3px;
}
.prod-desc {
  font-size: 13px;
  color: var(--color-text-light);
}

/* Quote button */
.btn-cotizar {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius);
  padding: 10px 20px;
  font-family: var(--font-heading);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}
.btn-cotizar:hover {
  background: var(--color-primary-dk);
  transform: translateY(-1px);
}

/* Table footer row */
.productos__table tfoot th {
  padding-top: 14px;
  border-top: 2px solid #e8eef2;
  border-bottom: none;
}

/* Info + pagination bar */
.productos__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  flex-wrap: wrap;
  gap: 12px;
}
.productos__info {
  font-size: 13px;
  color: var(--color-text-light);
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pagination__btn {
  padding: 6px 12px;
  border: 1px solid #d4dde3;
  border-radius: var(--radius);
  background: var(--color-white);
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--color-text-light);
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.pagination__btn:hover,
.pagination__btn.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}
.pagination__ellipsis {
  padding: 0 6px;
  color: var(--color-text-light);
  font-size: 14px;
}

/* Responsive productos */
@media (max-width: 768px) {
  .productos__table th:first-child,
  .productos__table td:first-child { display: none; }
  .btn-cotizar { padding: 8px 12px; font-size: 11px; }
}
@media (max-width: 540px) {
  .productos__controls { flex-direction: column; align-items: flex-start; }
  .productos__search input { width: 140px; }
}

/* ============================================================
   PRODUCTOS PAGE
   ============================================================ */

.productos-section {
  padding: 40px 0 60px;
  background: var(--color-white);
}

/* Toolbar: show entries + search */
.productos-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 16px;
  flex-wrap: wrap;
}
.productos-toolbar__show {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text);
}
.productos-toolbar__select {
  border: 1px solid #d4dde3;
  border-radius: 4px;
  padding: 4px 8px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  outline: none;
  cursor: pointer;
}
.productos-toolbar__search {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text);
}
.productos-toolbar__input {
  border: 1px solid #d4dde3;
  border-radius: 4px;
  padding: 6px 12px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  outline: none;
  width: 200px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.productos-toolbar__input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0,151,178,.10);
}

/* Table */
.productos-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.productos-table thead th {
  background: var(--color-bg-light);
  color: var(--color-dark);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 13px;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid #e0eaef;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
.productos-table thead th .sort-icon {
  margin-left: 4px;
  color: var(--color-primary);
  font-size: 10px;
}
.productos-table tbody tr {
  border-bottom: 1px solid #edf2f5;
  transition: background var(--transition);
}
.productos-table tbody tr:hover { background: #f7fbfc; }
.productos-table td {
  padding: 10px 16px;
  vertical-align: middle;
}

/* Product image cell */
.prod-img {
  width: 70px;
  height: 55px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
.prod-img--placeholder {
  width: 70px;
  height: 55px;
  background: var(--color-bg-light);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #bbb;
  font-size: 20px;
}

/* Product name cell */
.prod-name { font-weight: 700; color: var(--color-dark); display: block; margin-bottom: 2px; }
.prod-desc { color: var(--color-text-light); font-size: 13px; }

/* Quote button */
.btn-quote {
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius);
  padding: 9px 18px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}
.btn-quote:hover { background: var(--color-primary-dk); transform: translateY(-1px); }

/* Table footer */
.productos-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
  gap: 16px;
  flex-wrap: wrap;
}
.productos-count { font-size: 13px; color: var(--color-text-light); }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  gap: 4px;
}
.pagination__btn {
  min-width: 32px;
  height: 32px;
  border: 1px solid #d4dde3;
  border-radius: 4px;
  background: var(--color-white);
  color: var(--color-text);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}



/* Campos de formulario */
.dynamic-form .form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1.5;
  color: #2c3e50;
  background-color: #fff;
  border: 2px solid #e0e5ec;
  border-radius: 12px;
  transition: all 0.3s ease;
  box-sizing: border-box;
  display: block;
}




/* Textarea específico */
.dynamic-form textarea.form-control {
  resize: vertical;
  min-height: 100px;
  font-family: inherit;
}

/* Select personalizado */
.dynamic-form select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667eea' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 16px;
  padding-right: 40px;
}

/* Botón de envío */
.dynamic-form .btn-primary {
  width: 100%;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
}

/* Efecto hover del botón */
.dynamic-form .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
  background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Efecto active del botón */
.dynamic-form .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 5px 10px rgba(102, 126, 234, 0.2);
}

/* Efecto ripple al hacer click */
.dynamic-form .btn-primary::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.dynamic-form .btn-primary:active::after {
  width: 300px;
  height: 300px;
}

/* Espaciado entre campos */
.dynamic-form .mb-3 {
  margin-bottom: 20px !important;
}

/* Estilo para mensajes de error */
.dynamic-form .form-control.error {
  border-color: #f56565;
  background-color: #fff5f5;
}

.dynamic-form .error-message {
  color: #f56565;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}


/* Animación de carga del botón */
.dynamic-form .btn-primary.loading {
  pointer-events: none;
  opacity: 0.7;
}

.dynamic-form .btn-primary.loading::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  animation: spin 0.8s linear infinite;
}

/* Labels flotantes (mejora UX) */
.dynamic-form .form-group {
  position: relative;
  margin-bottom: 25px;
}

.dynamic-form .form-group label {
  position: absolute;
  left: 16px;
  top: 12px;
  color: #94a3b8;
  font-size: 14px;
  transition: all 0.3s ease;
  pointer-events: none;
  background: white;
  padding: 0 4px;
}

.dynamic-form .form-group .form-control:focus ~ label,
.dynamic-form .form-group .form-control:not(:placeholder-shown) ~ label {
  top: -10px;
  left: 12px;
  font-size: 12px;
  color: #667eea;
  background: white;
}

/* Para usar labels flotantes, estructura HTML debe ser: */
/*
<div class="form-group">
  <input type="text" class="form-control" placeholder=" ">
  <label>Nombre</label>
</div>
*/

/* Estilos responsivos */
@media (max-width: 768px) {
  .dynamic-form {
    padding: 20px;
    margin: 10px;
    border-radius: 16px;
  }
  
  .dynamic-form .form-control {
    padding: 10px 14px;
    font-size: 14px;
  }
  
  .dynamic-form .btn-primary {
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* Animaciones */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Estilo para autocompletado del navegador */
.dynamic-form .form-control:-webkit-autofill,
.dynamic-form .form-control:-webkit-autofill:hover,
.dynamic-form .form-control:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
  box-shadow: 0 0 0 30px white inset !important;
  border-color: #667eea;
}

/* Mejora de accesibilidad */
.dynamic-form .form-control:focus-visible {
  outline: 2px solid #667eea;
  outline-offset: 2px;
}

/* Estilo para campos deshabilitados */
.dynamic-form .form-control:disabled {
  background-color: #f1f5f9;
  cursor: not-allowed;
  opacity: 0.7;
}



/* Estilo para campos inválidos */
.dynamic-form .form-control:invalid:not(:placeholder-shown) {
  border-color: #f56565;
}

/* Tooltip de ayuda (opcional) */
.dynamic-form .form-control[data-tooltip] {
  position: relative;
}

.dynamic-form .form-control[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #2d3748;
  color: white;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  margin-bottom: 5px;
  z-index: 1000;
}

/* Efecto glass morphism (alternativa moderna) */
.dynamic-form .btn-primary {
  text-align: center;
  display: block !important; /* o block/flex dependiendo del contexto */
}

.dynamic-form {
  text-align: center;
  display: block !important; /* o block/flex dependiendo del contexto */
}
/* Efecto glass morphism (alternativa moderna) */
.dynamic-form.glass {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pagination__btn:hover { background: var(--color-bg-light); border-color: var(--color-primary); color: var(--color-primary); }
.pagination__btn.active { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.pagination__btn:disabled { opacity: .45; cursor: default; pointer-events: none; }
.pagination__ellipsis { color: var(--color-text-light); font-size: 13px; padding: 0 4px; }

/* Responsive productos */
@media (max-width: 700px) {
  .productos-toolbar { flex-direction: column; align-items: flex-start; }
  .productos-toolbar__input { width: 100%; }
  .productos-table thead th:first-child,
  .productos-table td:first-child { display: none; }
}

/* ============================================================
   BANNER AGROQUÍMICA - IMAGEN DE FONDO
   ============================================================ */

.agro-banner-bg {
    position: relative;
    min-height: 550px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    overflow: hidden;
}

/* Si prefieres una imagen local */
/* background-image: url('/images/agricultura-banner.jpg'); */

.agro-banner-bg__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.7) 50%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 1;
}

.agro-banner-bg__container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 20px;
}

.agro-banner-bg__content {
    max-width: 700px;
    color: white;
}

.agro-banner-bg__tag {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #8bc34a;
    background: rgba(139, 195, 74, 0.15);
    padding: 8px 18px;
    border-radius: 30px;
    margin-bottom: 24px;
    border: 1px solid rgba(139, 195, 74, 0.3);
}

.agro-banner-bg__title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 24px;
    color: white;
}

.agro-banner-bg__description {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 28px;
    color: rgba(255, 255, 255, 0.9);
}

.agro-banner-bg__description p {
    margin-bottom: 16px;
}

.agro-banner-bg__list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.agro-banner-bg__list li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
}

.agro-banner-bg__list li i {
    color: #8bc34a;
    font-size: 18px;
}

/* Botones */
.agro-banner-bg__buttons {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-top: 32px;
}

.btn-agro {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    border-radius: 40px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-agro i {
    font-size: 14px;
}

.btn-agro--primary {
    background: #8bc34a;
    color: #1a472a;
}

.btn-agro--primary:hover {
    background: #7cb342;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 195, 74, 0.4);
}

.btn-agro--outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-agro--outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: #8bc34a;
}

/* ============================================================
   SECCIÓN DE PRODUCTOS DESTACADOS
   ============================================================ */

.agro-productos {
    padding: 80px 0;
    background: #f8fafc;
}

.agro-productos__header {
    text-align: center;
    margin-bottom: 50px;
}

.agro-productos__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #1a472a;
    margin-bottom: 16px;
}

.agro-productos__subtitle {
    color: #666;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.agro-productos__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.agro-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.agro-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.agro-card__icon {
    background: linear-gradient(135deg, #8bc34a, #6b8e23);
    padding: 30px;
    text-align: center;
}

.agro-card__icon i {
    font-size: 48px;
    color: white;
}

.agro-card__content {
    padding: 24px;
}

.agro-card__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1a472a;
    margin-bottom: 12px;
}

.agro-card__description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.agro-card__link {
    color: #8bc34a;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.3s ease;
}

.agro-card__link:hover {
    gap: 10px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 968px) {
    .agro-banner-bg {
        min-height: 450px;
        background-attachment: scroll;
    }
    
    .agro-banner-bg__content {
        max-width: 100%;
        text-align: center;
    }
    
    .agro-banner-bg__buttons {
        justify-content: center;
    }
    
    .agro-banner-bg__list li {
        justify-content: center;
    }
    
    .agro-banner-bg__tag {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .agro-banner-bg {
        min-height: auto;
    }
    
    .agro-banner-bg__container {
        padding: 60px 20px;
    }
    
    .agro-banner-bg__title br {
        display: none;
    }
    
    .agro-banner-bg__list li {
        font-size: 14px;
    }
    
    .btn-agro {
        padding: 12px 24px;
        font-size: 13px;
    }
    
    .agro-productos {
        padding: 60px 0;
    }
    
    .agro-productos__title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .agro-banner-bg__buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-agro {
        width: 100%;
        justify-content: center;
    }
    
    .agro-banner-bg__list li {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }
    
    .agro-productos__grid {
        gap: 20px;
    }
}

/* ============================================================
   ESTILOS ADICIONALES PARA SUBMENÚS EN MOBILE
   ============================================================ */

@media (max-width: 768px) {
    /* Asegurar que los dropdowns funcionen */
    .navbar__dropdown {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        padding-left: 20px;
    }
    
    .navbar__item--dropdown.active .navbar__dropdown {
        max-height: 500px;
        transition: max-height 0.5s ease-in;
    }
    
    /* Rotar flecha cuando está activo */
    .navbar__item--dropdown.active > .navbar__link .navbar__arrow {
        transform: rotate(180deg);
    }
    
    /* Transición suave para la flecha */
    .navbar__arrow {
        transition: transform 0.3s ease;
    }
    
    /* Estilo para los submenús */
    .navbar__dropdown .navbar__link {
        padding-left: 20px !important;
        font-size: 13px !important;
        opacity: 0.9;
    }
    
    .navbar__dropdown .navbar__link:hover {
        padding-left: 25px !important;
        opacity: 1;
    }
}

/* ============================================================
   ESTILOS PARA SUBMENÚS EN MOBILE (FIJOS)
   ============================================================ */

@media (max-width: 768px) {
    /* Asegurar que los dropdowns funcionen */
    .navbar__dropdown {
        display: block !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.4s ease-in-out !important;
        padding-left: 20px !important;
        margin: 0 !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* Cuando está activo, mostrar */
    .navbar__item--dropdown.active .navbar__dropdown {
        max-height: 500px !important;
        overflow-y: auto !important;
        margin-top: 8px !important;
        margin-bottom: 8px !important;
    }
    
    /* Rotar flecha */
    .navbar__item--dropdown.active > .navbar__link .navbar__arrow {
        transform: rotate(180deg) !important;
    }
    
    /* Transición de la flecha */
    .navbar__arrow {
        transition: transform 0.3s ease !important;
    }
    
    /* Asegurar que el link padre sea clickeable */
    .navbar__item--dropdown > .navbar__link {
        cursor: pointer !important;
        user-select: none !important;
        pointer-events: auto !important;
    }
    
    /* Estilo de hover para indicar clickeable */
    .navbar__item--dropdown > .navbar__link:active {
        background: rgba(255, 255, 255, 0.05) !important;
    }
}

/* ============================================================
   MENÚ SIMPLIFICADO Y FUNCIONAL
   ============================================================ */

.site-header {
    background: var(--color-dark, #1a2735);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    padding: 0 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Botón Hamburguesa */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* Menú Desktop */
.site-nav {
    flex: 1;
    margin: 0 20px;
}

.site-nav__list {
    display: flex;
    list-style: none;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.site-nav__item {
    position: relative;
}

.site-nav__link {
    font-family: 'Montserrat', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
}

.site-nav__link:hover,
.site-nav__link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.site-nav__link i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

/* Submenú Desktop */
.site-nav__submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--color-dark-2, #22313f);
    min-width: 220px;
    border-radius: 8px;
    padding: 8px 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.has-children:hover .site-nav__submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.site-nav__submenu .site-nav__link {
    display: block;
    padding: 10px 20px;
    white-space: nowrap;
    font-size: 12px;
}

/* Redes Sociales */
.site-header__social {
    display: flex;
    gap: 12px;
    align-items: center;
}

.site-header__social a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    transition: color 0.3s ease;
}

.site-header__social a:hover {
    color: var(--color-primary, #0097b2);
}

/* ============================================================
   RESPONSIVE - MOBILE
   ============================================================ */

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .site-nav {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: var(--color-dark, #1a2735);
        margin: 0;
        padding: 80px 20px 30px;
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 1000;
        box-shadow: 2px 0 10px rgba(0,0,0,0.2);
    }
    
    .site-nav.active {
        left: 0;
    }
    
    .site-nav__list {
        flex-direction: column;
        gap: 0;
    }
    
    .site-nav__item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }
    
    .site-nav__link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 0;
        font-size: 14px;
        width: 100%;
    }
    
    /* Submenú en Mobile */
    .site-nav__submenu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding-left: 20px;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        background: transparent;
    }
    
    .has-children.active .site-nav__submenu {
        max-height: 500px;
    }
    
    .has-children.active > .site-nav__link i {
        transform: rotate(180deg);
    }
    
    .site-nav__submenu .site-nav__link {
        padding: 10px 0 10px 15px;
        font-size: 13px;
        color: rgba(255, 255, 255, 0.7);
    }
    
    .site-header__social {
        display: none;
    }
    
    /* Overlay */
    body.menu-open {
        overflow: hidden;
    }
    
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
}

