
  :root {
    --blue: #009FE3;
    --green-deep2: #0d2b1a;
    --green-deep:#709d1d;
    --green-dark: #1a4228;
    --green-mid: #2d6b40;
    --green-accent: #4caf70;
    --green-bright: #72e09a;
    --lime: #b8f04a;
    --cream: #f5f2eb;
    --white: #ffffff;
    --gray-100: #f8f9f7;
    --gray-200: #eef0ec;
    --gray-400: #9aa398;
    --gray-600: #5c6b61;
    --gray-800: #2a3330;
    --text-primary: #0d2b1a;
    --text-secondary: #3d5247;
    --text-muted: #7a9284;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-xl: 36px;
    --shadow-card: 0 4px 24px rgba(13,43,26,0.08), 0 1px 4px rgba(13,43,26,0.04);
    --shadow-hero: 0 20px 80px rgba(13,43,26,0.2);
    --transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; font-size: 16px; }

  body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background: var(--cream);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
    text-decoration: none;
  }

  img { max-width: 100%; display: block; }
  a { text-decoration: none; color: inherit; }

  /* ─── SCROLL REVEAL ─────────────────────── */
  .reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.45s; }

  /* ─── NAV ───────────────────────────────── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
    padding: 0 2rem;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: var(--transition);
    background: rgba(245,242,235,0.88);
  }
  nav.scrolled {
    background: rgba(245,242,235,0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(13,43,26,0.08);
    box-shadow: 0 2px 20px rgba(13,43,26,0.06);
  }

  .nav-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: var(--green-deep);
    max-width: 214px;

  }
  .nav-logo span { color: var(--green-accent); }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
  }
  .nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s;
    text-decoration: none;
  }
  .nav-links a:hover { color: var(--green-mid); }

  .nav-cta {
    background: var(--green-deep);
    color: var(--white) !important;
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-xl);
    font-size: 0.875rem !important;
    font-weight: 500;
    transition: var(--transition) !important;
    border: 1.5px solid transparent;
  }
  .nav-cta:hover {
    background: var(--green-mid) !important;
    color: var(--white) !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(45,107,64,0.3);
  }

  .nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
  }
  .nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--green-deep);
    border-radius: 2px;
    transition: var(--transition);
  }

 
  /* ─── CERTIFICATIONS BAR ────────────────── */
  /*  Flota entre el hero y la sección nosotros  */

.img-cert1{
  width: 85%;
  height: 85%;
}
.cert-img
{
   width: 100%;
  height: 400px;        /* ← igual en ambas columnas */
  object-fit: contain;  /* imagen completa, sin corte */
  /* padding: 1.25rem 1.5rem;  */
}



  .certifications-wrap {
    position: relative;
    z-index: 20;
    padding: 0 6vw;
    margin-top: -72px;     /* se superpone sobre el hero    */
    margin-bottom: -72px;  /* se superpone sobre nosotros   */
  }
  .certifications-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 12px 60px rgba(13,43,26,0.14), 0 2px 8px rgba(13,43,26,0.06);
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    overflow: hidden;
  }
  .cert-col {
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    border-right: 1px solid var(--gray-200);
    transition: background 0.2s;
  }
  .cert-col:last-child { border-right: none; }
  .cert-col:hover { background: var(--gray-100); }

  .cert-institution-logo {
    height: 44px;
    object-fit: contain;
    object-position: left;
    margin-bottom: 0.5rem;
  }
  .cert-title {
    font-family: "Sen", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0a4c96;        /* azul institucional SALUD/SEMARNAT */
    line-height: 1.2;
  }
  .cert-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
  }
  .cert-number {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
  }
  .cert-partner-logo {
    height: 38px;
    object-fit: contain;
    object-position: left;
    margin-top: 0.5rem;
    opacity: 0.85;
    filter: grayscale(0.15);
  }

  /* Responsive certifications */
  @media (max-width: 768px) {
    .certifications-wrap {
      margin-top: -48px;
      margin-bottom: -48px;
      padding: 0 4vw;
    }
    .certifications-card {
      grid-template-columns: 1fr;
    }
    .cert-col {
      border-right: none;
      border-bottom: 1px solid var(--gray-200);
      padding: 1.5rem 1.25rem;
    }
    .cert-col:last-child { border-bottom: none; }
  }

  /* Nosotros needs extra top padding to clear the floating card */
  #sobre-nosotros {
    padding-top: 9rem;
  }

  /* ─── TRUST BAR ─────────────────────────── */
  #trust {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1.5rem 6vw;
  }
  .trust-inner {
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
  }
  .trust-icon {
    width: 56px; height: 56px;
    /* background: var(--gray-100); */
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
  }
  .trust-divider {
    width: 1px;
    height: 28px;
    background: var(--gray-200);
  }

  /* ─── SECTION SHARED ────────────────────── */
  section { padding: 6rem 6vw; }
  .section-label {
    display: inline-block;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--green-mid);
    margin-bottom: 0.75rem;
  }
  .section-title {
    /* font-family: 'Syne', sans-serif; */
    font-family: "Sen", sans-serif;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 1rem;
  }
  .section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    line-height: 1.7;
  }
  .section-header { margin-bottom: 3.5rem; }
  .section-header.centered { text-align: center; }
  .section-header.centered .section-subtitle { margin: 0 auto; }

  /* ─── ABOUT ─────────────────────────────── */
  #sobre-nosotros { background: var(--gray-100); }
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
  }
  .about-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1rem;
  }
  .about-stat {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    transition: var(--transition);
  }
  .about-stat:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-card);
    border-color: var(--green-accent);
  }
  .about-stat.featured {
    background: var(--blue);
    color: white;
    grid-column: 1 / -1;
  }
  .about-stat-num {
    /* font-family: 'Syne', sans-serif; */
    font-family: "Sen", sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--green-mid);
    line-height: 1;
  }
  .about-stat.featured .about-stat-num { color: var(--lime); }
  .about-stat-label {
    font-size: 0.975rem;
    color: var(--text-muted);
    font-weight: 500;
  }
  .about-stat.featured .about-stat-label { color: rgba(255,255,255,0.6); }

  .about-content p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 1rem;
    line-height: 1.75;
  }
  .pillars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
  }
  .pillar {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.2rem;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--green-accent);
    transition: var(--transition);
  }
  .pillar:hover {
    box-shadow: var(--shadow-card);
    transform: translateX(4px);
  }
  .pillar-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
  .pillar h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; color: var(--text-primary); }
  .pillar p { font-size: .975rem; color: var(--text-muted); line-height: 1.55; margin: 0; }

  /* ─── CONTACT ───────────────────────────── */
  #contacto {
    background: linear-gradient(160deg, var(--green-deep) 0%, #142e1f 100%);
    position: relative;
    overflow: hidden;
  }
  #contacto::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 50% 60% at 80% 50%, rgba(114,224,154,0.08) 0%, transparent 70%);
    pointer-events: none;
  }

  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 5rem;
    align-items: start;
    position: relative;
    z-index: 1;
  }

  .contact-info .section-label { color: var(--lime); }
  .contact-info .section-title { color: var(--white); }
  .contact-info .section-subtitle { color: rgba(255,255,255,0.55); }

  .contact-channels {
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .contact-channel {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
  }
  .contact-channel:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(184,240,74,0.3);
  }
  .channel-icon {
    width: 40px; height: 40px;
    background: rgba(184,240,74,0.12);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
  }
  .channel-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.567);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    margin-bottom: 0.2rem;
  }
  .channel-value {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    line-height: 1.4;
  }

  /* Form */
  .contact-form {
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-xl);
    padding-top: 8.75rem;
    padding-bottom: 8.75rem;
    padding-left: 4rem;
    padding-right: 4rem;
  }
  .form-title {
    /* font-family: 'Syne', sans-serif; */
    font-family: "Sen", sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.4rem;
  }
  .form-subtitle {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 2rem;
  }
  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
  }
  .form-group.full { grid-column: 1 / -1; }
  .form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.03em;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.975rem;
    color: var(--white);
    transition: border-color 0.2s, background 0.2s;
    outline: none;
    /* -webkit-appearance: none; */
  }
  .form-group select option { background: var(--green-deep); color: white; }
  .form-group input::placeholder,
  .form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
    border-color: rgba(184,240,74,0.5);
    background: rgba(255,255,255,0.1);
  }
  .form-group textarea { resize: vertical; min-height: 100px; }

  .btn-submit {
    width: 100%;
    padding: 0.95rem;
    background: var(--lime);
    color: var(--green-deep);
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: var(--transition);
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
  }
  .btn-submit::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    transform: translate(-50%,-50%);
    transition: width 0.5s, height 0.5s, opacity 0.5s;
    opacity: 0;
  }
  .btn-submit:hover {
    background: var(--green-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(184,240,74,0.3);
  }
  .btn-submit:active::after { width: 300px; height: 300px; opacity: 0; }

  .form-success {
    display: none;  
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 0;
    gap: 0.75rem;
  }
  .form-success .success-icon {
    width: 60px; height: 60px;
    background: rgba(184,240,74,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
  }
  .form-success h3 { color: var(--white); font-size: 1.1rem; }
  .form-success p { color: rgba(255,255,255,0.5); font-size: 0.875rem; }

  /* Map */
  #mapa {
    background: var(--white);
    padding: 0;
  }
  .map-header {
    padding: 4rem 6vw 2rem;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
  }
  .location-selector {
    display: flex;
    gap: 0.5rem;
  }
  .loc-btn {
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-xl);
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
  }
  .loc-btn.active, .loc-btn:hover {
    background: var(--green-deep);
    color: white;
    border-color: var(--green-deep);
  }
  .map-frame {
    width: 100%;
    height: 420px;
    border: none;
    display: block;
    filter: grayscale(0.15) contrast(1.05);
  }
  .map-location { display: none; }
  .map-location.active { display: block; }

  /* ─── FOOTER ────────────────────────────── */
  footer {
    background: var(--green-deep2);
    color: rgba(255,255,255,0.6);
    padding: 3rem 6vw 2rem;
  }
  .footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 1.5rem;
  }
  .footer-brand .nav-logo { font-size: 1.3rem; margin-bottom: 0.75rem; }
  .footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 280px; }
  .footer-col h4 {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    margin-bottom: 1rem;
  }
  .footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
  .footer-col ul li a {
    font-size: 0.875rem;
    transition: color 0.2s;
    text-decoration: none;
    color:inherit;
  }
  .footer-col ul li a:hover { color: var(--lime); }
  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .footer-bottom a { color: var(--lime); }

  /* ─── CLIENTS CAROUSEL ─────────────────── */
  #clientes {
    background: var(--white);
    padding: 4.5rem 0;
    overflow: hidden;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
  }
  .clients-header {
    text-align: center;
    padding: 0 6vw;
    margin-bottom: 2.5rem;
  }
  .clients-header .section-label { display: block; }

   .carousel-track-wrapper {
    position: relative;
    overflow: hidden;
  }
  .carousel-track-wrapper::before,
  .carousel-track-wrapper::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
  }
  .carousel-track-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--white), transparent);
  }
  .carousel-track-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--white), transparent);
  }

  .carousel-track {
    display: flex;
    gap: 1.5rem;
    width: max-content;
    animation: carousel-scroll 100s linear infinite;
  }
  .carousel-track:hover { animation-play-state: paused; }

  @keyframes carousel-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
  }
  .client-logo {
    width: 200px;
    height: 200px;
    flex-shrink: 0;
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: var(--transition);
    overflow: hidden;
    cursor: default;
  }
  .client-logo:hover {
    border-color: var(--green-accent);
    box-shadow: var(--shadow-card);
    transform: translateY(-4px) scale(1.02);
  }
  .client-logo img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: calc(var(--radius-lg) - 1px);
  }
  /* Placeholder shown when no real image is provided */
  .client-logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 100%;
    padding: 1.5rem;
  }
  .client-logo-placeholder .logo-icon {
    font-size: 2rem;
    line-height: 1;
  }
  .client-logo-placeholder span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: center;
    letter-spacing: 0.02em;
    line-height: 1.3;
  }


 /* ─── GALLERY CAROUSEL + LIGHTBOX ─────── */
  #galeria {
    background: var(--gray-100);
    padding: 5rem 0 5rem;
    overflow: hidden;
  }
  .galeria-header {
    padding: 0 6vw;
    margin-bottom: 2.5rem;
  }
 
  /* ── Carousel wrapper ── */
  .gallery-carousel-outer {
    position: relative;
  }
  .gallery-carousel-outer::before,
  .gallery-carousel-outer::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    width: 80px;
    z-index: 3;
    pointer-events: none;
  }
  .gallery-carousel-outer::before {
    left: 0;
    background: linear-gradient(to right, var(--gray-100), transparent);
  }
  .gallery-carousel-outer::after {
    right: 0;
    background: linear-gradient(to left, var(--gray-100), transparent);
  }
 
  .gallery-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 0.5rem 6vw 1.2rem;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
  }
  .gallery-carousel:active { cursor: grabbing; }
  .gallery-carousel::-webkit-scrollbar { height: 4px; }
  .gallery-carousel::-webkit-scrollbar-track { background: transparent; }
  .gallery-carousel::-webkit-scrollbar-thumb {
    background: var(--gray-200);
    border-radius: 4px;
  }
 
  .gallery-item {
    flex-shrink: 0;
    height: 260px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    scroll-snap-align: start;
    position: relative;
    cursor: pointer;
    background: var(--gray-200);
    /* width is set dynamically by JS based on aspect ratio */
  }
  .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
    pointer-events: none;
    user-select: none;
  }
  .gallery-item:hover img { transform: scale(1.05); }
 
  /* Overlay on hover */
  .gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,43,26,0.55) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
  }
  .gallery-item:hover .gallery-item-overlay { opacity: 1; }
  .gallery-item-overlay span {
    color: white;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.04em;
  }
 
  /* Arrow buttons */
  .gallery-arrows {
    display: flex;
    gap: 0.5rem;
    padding: 1.2rem 6vw 0;
    justify-content: flex-end;
  }
  .gallery-arrow {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
  }
  .gallery-arrow:hover {
    background: var(--green-deep);
    color: white;
    border-color: var(--green-deep);
    transform: scale(1.05);
  }
  .gallery-arrow:disabled { opacity: 0.3; cursor: default; transform: none; }
 
  /* ── Lightbox ── */
  .lightbox {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(5, 18, 10, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .lightbox.open {
    opacity: 1;
    pointer-events: all;
  }
 
  .lightbox-close {
    position: absolute;
    top: 1.2rem; right: 1.4rem;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
    z-index: 10;
  }
  .lightbox-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }
 
  .lightbox-counter {
    position: absolute;
    top: 1.4rem; left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.06em;
  }
 
  .lightbox-main {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 1000px;
    padding: 0 1rem;
    flex: 1;
    min-height: 0;
  }
 
  .lightbox-prev,
  .lightbox-next {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: white;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: var(--transition);
  }
  .lightbox-prev:hover,
  .lightbox-next:hover {
    background: rgba(184,240,74,0.2);
    border-color: rgba(184,240,74,0.4);
  }
  .lightbox-prev:disabled,
  .lightbox-next:disabled { opacity: 0.2; cursor: default; }
 
  .lightbox-img-wrap {
    flex: 1;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: calc(100vh - 220px);
  }
  .lightbox-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 0.25s ease, transform 0.25s ease;
    display: block;
  }
  .lightbox-img-wrap img.loaded {
    opacity: 1;
    transform: scale(1);
  }
 
  /* Thumbnail strip */
  .lightbox-thumbs {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 1rem 1.5rem 1.4rem;
    max-width: 100vw;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  .lightbox-thumbs::-webkit-scrollbar { display: none; }
 
  .lightbox-thumb {
    width: 64px; height: 64px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    opacity: 0.45;
    border: 2px solid transparent;
    transition: opacity 0.2s, border-color 0.2s, transform 0.2s;
    scroll-snap-align: center;
  }
  .lightbox-thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
  }
  .lightbox-thumb:hover { opacity: 0.75; transform: translateY(-2px); }
  .lightbox-thumb.active {
    opacity: 1;
    border-color: var(--lime);
    transform: translateY(-3px);
  }

  /* WhatsApp float */
  .whatsapp-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 998;
    width: 56px; height: 56px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.45);
    transition: var(--transition);
    text-decoration: none;
  }
  .whatsapp-float:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 28px rgba(37,211,102,0.5);
  }
  .whatsapp-float svg { width: 28px; height: 28px; }

 /* ══════════════════════════════════════════
     RESPONSIVE — TABLET ≤ 900px
  ══════════════════════════════════════════ */
  @media (max-width: 900px) {
    section { padding: 4rem 5vw; }
 
    .cert-img
{
  /* width: 100%; */
  height: 100%;
  object-fit: contain;  /* imagen completa, sin corte */
  /* padding: 1.25rem 1.5rem;  */
}



    /* ── Nav ── */
    .nav-links {
      display: none;
      position: fixed;
      top: 68px; left: 0; right: 0;
      background: rgba(245,242,235,0.97);
      backdrop-filter: blur(14px);
      -webkit-backdrop-filter: blur(14px);
      flex-direction: column;
      padding: 1.5rem 2rem;
      gap: 1rem;
      border-bottom: 1px solid var(--gray-200);
      z-index: 998;
      box-shadow: 0 8px 24px rgba(13,43,26,0.08);
    }
    .nav-links.open { display: flex; }
    .nav-hamburger { display: flex; }
 
    /* ── Hero ── */
    #hero { grid-template-columns: 1fr; padding-top: 7rem; }
    #hero::after { display: none; }
    .hero-visual { display: none; }
 
    /* ── Trust ── */
    .trust-divider { display: none; }
    .trust-inner { gap: 1.2rem; }
 
    /* ── About ── */
    .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .about-visual { order: -1; grid-template-columns: 1fr 1fr; }
 
    /* ── Services ── */
    .sv-layout {
      grid-template-columns: 1fr;
      gap: 1.25rem;
    }
    /* Filters → horizontal scrollable row */
    .sv-filters {
      position: static;
      flex-direction: row;
      flex-wrap: wrap;
      gap: 0.5rem;
      align-items: center;
    }
    .sv-filter-label { width: 100%; margin-bottom: 0; }
    .sv-filter-btn {
      flex: 0 0 auto;
      width: auto;
      padding: 0.5rem 1rem;
      font-size: 0.82rem;
    }
    .sv-cofepris {
      margin-top: 0;
      display: flex;
      align-items: center;
      gap: 0.65rem;
      text-align: left;
      padding: 0.6rem 0.9rem;
      flex: 0 0 auto;
    }
    .sv-cofepris .cf-icon { font-size: 1rem; margin: 0; }
    .sv-cofepris .cf-sub { display: none; }
 
    /* Pest grid → 3 cols tablet */
    .pest-grid { grid-template-columns: repeat(3, 1fr); }
 
    /* ── Contact ── */
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
    .form-grid { grid-template-columns: 1fr; }
 
    /* ── Map ── */
    .map-header { flex-direction: column; align-items: flex-start; gap: 1rem; }
 
    /* ── Footer ── */
    .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  }
 
  /* ══════════════════════════════════════════
     RESPONSIVE — MOBILE ≤ 600px
  ══════════════════════════════════════════ */
  @media (max-width: 600px) {
    section { padding: 3rem 4vw; }
 
    /* ── Hero ── */
    .hero-title { font-size: 2rem; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn-primary,
    .hero-actions .btn-secondary { width: 100%; justify-content: center; }
 

.img-cert{
  width: 70%;
  height: auto;
  margin-left: -7px;
}

.img-cert1{
  width: 100%;
  height: 100%;
}


    /* ── Trust ── */
    #trust { padding: 1.25rem 4vw; }
    .trust-inner { gap: 0.75rem; flex-wrap: wrap; }
    .trust-item { font-size: 0.8rem; }
    .trust-icon { width: 30px; height: 30px; font-size: 0.9rem; }
 
    /* ── About ── */
    .about-visual { grid-template-columns: 1fr 1fr; }
    .pillars { gap: 0.65rem; }
    .pillar { padding: 1rem; }
 
    
 
    /* ── Gallery ── */
    .gallery-carousel { padding: 0.5rem 4vw 1rem; }
    .gallery-item { height: 190px; }
    .gallery-arrows { padding: 0.85rem 4vw 0; }
 
    /* ── Lightbox ── */
    .lightbox-prev, .lightbox-next { width: 36px; height: 36px; font-size: 0.85rem; }
    .lightbox-main { padding: 0 0.5rem; gap: 0.4rem; }
    .lightbox-thumbs { padding: 0.75rem 1rem 1.1rem; gap: 0.4rem; }
    .lightbox-thumb { width: 54px; height: 54px; }
 
    /* ── Contact ── */
    .contact-form { padding: 1.4rem 1.2rem; }
    .form-grid { gap: 0.65rem; }
    .form-group.full { grid-column: 1; }
    .form-title { font-size: 1.2rem; }
 
    /* ── Map ── */
    .map-frame { height: 280px; }
    .location-selector { flex-wrap: wrap; gap: 0.4rem; }
    .loc-btn { font-size: 0.82rem; padding: 0.45rem 1rem; }
 
    /* ── Footer ── */
    .footer-bottom { flex-direction: column; text-align: center; gap: 0.4rem; }
    footer { padding: 2.5rem 4vw 1.5rem; }
  }
 
  /* ══════════════════════════════════════════
     RESPONSIVE — XS ≤ 400px
  ══════════════════════════════════════════ */
  @media (max-width: 400px) {
    .hero-title { font-size: 1.75rem; }
    nav { padding: 0 1rem; }
    .nav-logo { font-size: 1.25rem; }
 
    /* Services — tightest layout */
    .pest-grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 0.35rem;
    }
    .pest-card .pest-emoji { font-size: 1.2rem; }
    .pest-card .pest-name { font-size: 0.55rem; }
 
    .acc-row { gap: 0.35rem; }
    .acc-item span { font-size: 0.55rem; }
 
    .sv-phone-pill { font-size: 0.82rem; }
  }