  :root {
    --teal:       #00B8A9;
    --teal-dark:  #009689;
    --navy:       #0D2B45;
    --navy-mid:   #1A3A5C;
    --white:      #FFFFFF;
    --light-bg:   #F4F7FA;
    --gray-text:  #555E6B;
    --gray-light: #E8EDF3;
    --accent:     #00D4C4;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Open Sans', sans-serif;
    color: var(--navy);
    background: var(--white);
    overflow-x: hidden;
  }

  /* ===== NAVBAR ===== */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 5%;
    height: 72px;
    background: var(--white);
    box-shadow: 0 2px 16px rgba(0,0,0,.08);
    transition: box-shadow .3s;
  }
  nav.scrolled { box-shadow: 0 4px 24px rgba(0,0,0,.13); }

  .logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
  }
  .logo-box {
    width: 52px; height: 52px;
    background: var(--navy);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.15rem;
    color: var(--white);
    letter-spacing: -1px;
    line-height: 1;
  }
  .logo-box span { color: var(--teal); }
  .logo-sub {
    font-family: 'Montserrat', sans-serif;
    font-size: .6rem; font-weight: 600;
    color: var(--gray-text); letter-spacing: 2px;
    text-transform: uppercase;
  }

  .nav-links {
    display: flex; align-items: center; gap: 2rem;
    list-style: none;
  }
  .nav-links a {
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: .85rem; font-weight: 600;
    color: var(--white);
    transition: color .2s;
    letter-spacing: .5px;
  }
  .nav-links a:hover { color: var(--teal); }
  .nav-links a.active { color: var(--teal); }

  .nav-burger {
    display: none; flex-direction: column; gap: 5px;
    background: white; border: none; cursor: pointer; padding: 4px;
  }
  .nav-burger span {
    display: block; width: 26px; height: 2.5px;
    background: var(--navy); border-radius: 2px;
    transition: all .3s;
  }

  /* ===== HERO / PRODUCTOS ===== */
  #inicio {
    margin-top: 72px;
    background: white;
    min-height: 550px;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    padding: 80px 5% 60px;
    position: relative; overflow: hidden;
  }
  #inicio::before {
    content: '';
    position: absolute; inset: 0;
    background: white;
  }
  #inicio h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 300;
    color: #B0BEC5;
    letter-spacing: 2px;
    text-transform: uppercase;
    position: relative;
  }

  /* Product grid placeholder */
  .product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
    padding: 40px 6%;
    background: var(--white);
  }
  .product-card {
    background: var(--light-bg);
    border-radius: 12px;
    height: 160px;
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 600;
    color: var(--gray-text);
    letter-spacing: .5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
    overflow: hidden; position: relative;
  }
  .product-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,184,169,.18); }
  .product-card::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(0,184,169,.08), transparent);
    opacity: 0; transition: opacity .3s;
  }
  .product-card:hover::after { opacity: 1; }

  /* ===== VALORES ===== */
  #valores {
    display: grid; grid-template-columns: 1fr 1fr;
    min-height: 440px;
  }
  .valores-left {
    background: var(--teal);
    padding: 60px 8%;
    display: flex; flex-direction: column; justify-content: center;
  }
  .valores-left h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(2.8rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
  }
  .valores-right {
    position: relative; overflow: hidden;
    background: var(--navy);
  }
  .valores-right img {
    width: 100%; height: 100%;
    object-fit: cover; opacity: .85;
  }
  /* Values grid overlay */
  .valores-cards {
    display: grid; grid-template-columns: 1fr 1fr;
    background: var(--white);
  }
  .valor-card {
    border: 1px solid var(--gray-light);
    padding: 28px 24px;
    transition: background .2s;
  }
  .valor-card:hover { background: #f0faf9; }
  .valor-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: .78rem; font-weight: 700;
    color: var(--teal);
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 8px;
  }
  .valor-card p {
    font-size: .78rem; color: var(--gray-text); line-height: 1.55;
  }

  /* ===== MISIÓN & VISIÓN ===== */
  #mision {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 64px 6%;
    background: var(--white);
    align-items: start;
  }
  .mv-block { padding: 0 5%; }
  .mv-block:first-child { border-right: 2px solid var(--gray-light); }
  .mv-block h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem; font-weight: 800;
    color: var(--teal);
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 14px;
  }
  .mv-block p {
    font-size: .9rem; color: var(--gray-text); line-height: 1.75;
  }

  /* ===== CTA BANNER ===== */
  #cta {
    background: var(--navy);
    padding: 64px 8%;
    text-align: center;
  }
  #cta p {
    font-family: 'Open Sans', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    color: rgba(255,255,255,.88);
    line-height: 1.75;
    max-width: 760px; margin: 0 auto 40px;
  }
  #cta p strong { color: var(--teal); font-weight: 700; }
  .btn-cta {
    display: inline-block;
    background: var(--teal);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: .95rem; font-weight: 700;
    letter-spacing: 1px;
    padding: 18px 52px;
    border-radius: 50px;
    text-decoration: none;
    border: none; cursor: pointer;
    transition: background .25s, transform .2s, box-shadow .25s;
    box-shadow: 0 8px 28px rgba(0,184,169,.35);
  }
  .btn-cta:hover {
    background: var(--teal-dark);
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0,184,169,.45);
  }

  /* ===== DIAGNÓSTICOS ===== */
  #diagnosticos {
    padding: 72px 6%;
    background: var(--light-bg);
  }
  .diag-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 60px; align-items: start; }
  .diag-info h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 20px;
  }
  .diag-info p {
    font-size: .88rem; color: var(--gray-text);
    line-height: 1.75; margin-bottom: 16px;
  }
  .diag-info strong { font-weight: 700; color: var(--navy); }
  .diag-tabs {
    display: flex; gap: 12px; margin-top: 28px;
  }
  .tab-btn {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 22px;
    border-radius: 50px;
    border: 2px solid var(--gray-light);
    background: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: .8rem; font-weight: 700;
    color: var(--navy);
    cursor: pointer;
    transition: all .2s;
  }
  .tab-btn.active, .tab-btn:hover {
    border-color: var(--teal);
    background: var(--teal);
    color: var(--white);
  }
  .tab-btn svg { width: 18px; height: 18px; }

  .allergen-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  }
  .allergen-card {
    background: var(--white);
    border-radius: 10px;
    padding: 18px 10px 14px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    transition: transform .2s, box-shadow .2s;
    cursor: default;
  }
  .allergen-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,184,169,.15); }
  .allergen-icon {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, var(--teal), var(--accent));
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 10px;
    font-size: 1.2rem;
  }
  .allergen-card h5 {
    font-family: 'Montserrat', sans-serif;
    font-size: .72rem; font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
  }
  .allergen-card span {
    font-size: .65rem; color: var(--gray-text);
  }

  /* ===== CONTACTO ===== */
  #contacto {
    display: grid; grid-template-columns: 1fr 1fr;
    background: var(--white);
  }
  .contact-form-side {
    padding: 72px 6% 72px 8%;
  }
  .contact-form-side h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem; font-weight: 800;
    color: var(--navy);
    margin-bottom: 32px; text-align: center;
  }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
  .form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
  .form-group label { font-size: .75rem; font-weight: 600; color: var(--gray-text); letter-spacing: .5px; }
  .form-group input,
  .form-group textarea {
    border: none; border-bottom: 1.5px solid var(--gray-light);
    padding: 10px 2px;
    font-family: 'Open Sans', sans-serif;
    font-size: .85rem; color: var(--navy);
    background: transparent; outline: none;
    transition: border-color .2s;
  }
  .form-group input:focus,
  .form-group textarea:focus { border-color: var(--teal); }
  .form-group textarea { resize: vertical; min-height: 80px; }
  .btn-submit {
    display: block; width: 100%;
    padding: 14px;
    background: var(--teal);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-weight: 700; font-size: .9rem;
    border: none; border-radius: 8px;
    cursor: pointer;
    transition: background .2s, transform .2s;
    margin-top: 8px;
  }
  .btn-submit:hover { background: var(--teal-dark); transform: translateY(-1px); }

  .contact-info-side {
    background: var(--navy);
    padding: 72px 7%;
    display: flex; flex-direction: column; justify-content: center;
  }
  .info-block { margin-bottom: 28px; }
  .info-block h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: .8rem; font-weight: 700;
    color: var(--teal); text-transform: uppercase;
    letter-spacing: 1.5px; margin-bottom: 10px;
  }
  .info-item {
    display: flex; align-items: flex-start; gap: 10px;
    margin-bottom: 8px;
  }
  .info-item svg { flex-shrink: 0; margin-top: 2px; }
  .info-item p { font-size: .83rem; color: rgba(255,255,255,.8); line-height: 1.6; }
  .info-item a { color: var(--teal); text-decoration: none; }
  .info-item a:hover { text-decoration: underline; }

  .social-row {
    display: flex; gap: 12px; margin-top: 32px;
  }
  .social-btn {
    width: 33px; height: 33px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
    cursor: pointer;
  }
  .social-btn:hover { background: var(--teal); }
  .social-btn svg { width: 18px; height: 18px; fill: var(--white); }

  /* ===== FOOTER ===== */
  footer {
    background: #071d30;
    color: rgba(255,255,255,.4);
    text-align: center;
    padding: 20px;
    font-size: .75rem;
    font-family: 'Montserrat', sans-serif;
  }
  footer span { color: var(--teal); }

  /* ===== MOBILE ===== */
  @media (max-width: 900px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); padding: 24px 5%; box-shadow: 0 8px 24px rgba(0,0,0,.1); }
    .nav-links.open { display: flex; background: var(--navy);}
    .nav-burger { display: flex; }
    #valores { grid-template-columns: 1fr; }
    .valores-right { height: 260px; }
    .valores-cards { grid-template-columns: 1fr; }
    #mision { grid-template-columns: 1fr; gap: 40px; }
    .mv-block:first-child { border-right: none; border-bottom: 2px solid var(--gray-light); padding-bottom: 40px; }
    .diag-grid { grid-template-columns: 1fr; }
    .allergen-grid { grid-template-columns: repeat(2, 1fr); }
    #contacto { grid-template-columns: 1fr; }
    .contact-form-side { padding: 48px 6%; }
  }
  @media (max-width: 560px) {
    .form-row { grid-template-columns: 1fr; }
    .allergen-grid { grid-template-columns: repeat(2, 1fr); }
    .product-grid { grid-template-columns: repeat(2, 1fr); }
  }

  /* Fade-in on scroll */
  .reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity .65s ease, transform .65s ease;
  }
  .reveal.visible { opacity: 1; transform: none; }
  
  
  
.whatsapp-btn {
    position: fixed;
    bottom: 65px;
    right: 20px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}

.whatsapp-btn img {
    width: 35px;
    height: 35px;
}


.tab-btn {
  transition: all 0.2s ease;
}


*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}


.hero-slider {
  width: 100%;
  position: absolute;
  overflow: hidden;
  background: #f5f5f5;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .3s ease-in-out;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
  position: absolute; /* ocupa espacio en el flujo */
}


.slide-content {
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 10%;
  gap: 20px;
  margin-bottom:30px;
}

/* Texto */
.slide-text { max-width: 560px; flex: 1; }

.subtitle {
  display: block;
  color: #3ab7ae;
  font-size: 1rem;
  margin-bottom: 10px;
  font-weight: 500;
}

.slide-text h1 {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  line-height: 1;
  color: #11284b;
  margin-bottom: 18px;
  font-weight: 800;
}

.slide-text p {
  font-size: clamp(.95rem, 1.5vw, 1.35rem);
  line-height: 1.5;
  color: #5f6675;
  margin-bottom: 30px;
}

/* Imagen */
.slide-image { flex-shrink: 0; }
.slide-image img {
  width: clamp(200px, 28vw, 380px);
  object-fit: contain;
  display: block;
}

/* Categorías */
.categories {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .3s ease;
  min-width: 72px;
}

.cat:hover { transform: translateY(-5px); }

.iconN {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #003A62, #005189, #3862a9);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .3s ease;
}

.cat:hover .iconN {
  background: #00B8A9;
  box-shadow: 0 0 15px rgba(0,184,169,.5);
}

.cat span {
  margin-top: 8px;
  color: #0d2b45;
  font-size: .82rem;
  font-weight: 600;
  text-align: center;
}

.imgicn{
    width:18px;
}

.imgicn2{
    width:12px;
}

/* ===== TABLET: 481px – 900px ===== */
@media (max-width: 900px) {
  .slide-content {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 48px 6% 56px;
    min-height: 0;
    gap: 28px;
  }

  .slide-text { max-width: 100%; }

  .slide-image img {
    width: clamp(160px, 40vw, 280px);
  }

  .categories { justify-content: center; }

  .cat span { font-size: .78rem; }
}


/* ===== MÓVIL: hasta 480px ===== */
@media (max-width: 480px) {
    #inicio {
        margin-top: 72px;
        min-height: 400px;
    }
    
    #img1 {
        width: 150%;
    }
    #img2 {
        width: 130%;
    }
    
    #img3 {
        width: 130%;
    }
    
    #h1title{
        font-size:25px!important;
    }
    
    
    .imgicn{
        width:10px;
    }
    
    .imgicn2{
        width:8px;
    }
    .slide-content {
        flex-direction: column;
        padding: 36px 6% 52px;
        gap: 20px;
        min-height: 0;
    }

  /* Fila: texto izq + imagen der */
    .slide-content {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        align-items: start;
        text-align: left;
    }

  .slide-text {
    grid-column: 1;
    grid-row: 1;
  }

  .slide-image {
    grid-column: 2;
    grid-row: 1;
  }

  .slide-image img {
    width: clamp(100px, 32vw, 140px);
  }

  .categories {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 0px;
    margin-top: 8px;
    width: 180%;

  }

  .slide-text h1 { font-size: clamp(1.6rem, 8vw, 2.2rem); }
  .subtitle { font-size: .8rem; }
  .slide-text p { font-size: .82rem; margin-bottom: 0; }

  .iconN { width: 20px; height: 20px; }
  .cat span { font-size: .50rem; }
}