@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,100;1,300;1,400;1,700;1,900&display=swap');

/* ============================================
   HERBOSALUD — sucursales.css
   Mobile-first | Breakpoints: 480, 768, 1024, 1280
   ============================================ */

:root {
   --primary: #0ead63;
   --primary-dark: #0b8a4d;
   --secondary: #474646;
   --accent: #ffffff;
   --text: #333;
   --bg-light: #f8faf7;
   --radius: 12px;
   --transition: 0.3s ease;
   --shadow: 0 10px 30px rgba(0, 0, 0, .1);
   --section-pad: 2.5rem 1rem;
}

/* ── RESET ── */
*,
*::before,
*::after {
   box-sizing: border-box;
   margin: 0;
   padding: 0;
}

html {
   scroll-behavior: smooth;
}

body {
   font-family: 'Lato', sans-serif;
   color: var(--text);
   line-height: 1.6;
   overflow-x: hidden;
   background: #fff;
}

img {
   max-width: 100%;
   height: auto;
   display: block;
}

a {
   text-decoration: none;
}

ul {
   list-style: none;
}

/* ── CONTENEDOR ── */
.herbosalud-container {
   width: 100%;
   max-width: 1200px;
   margin: 0 auto;
   padding: 0 1rem;
}

/* ────────────────────────────────────────────
   BANNER HERO
──────────────────────────────────────────── */
.herbosalud-banner {
   position: relative;
   width: 100%;
   height: 100dvh;
   /* dynamic viewport height — soluciona iOS */
   min-height: 400px;
   overflow: hidden;
   background:
      linear-gradient(rgba(0, 0, 0, .6), rgba(0, 0, 0, .6)),
      url('../img_sp/sucursales/sucursal1.jpg') center/cover no-repeat;
   display: flex;
   align-items: center;
   justify-content: center;
   text-align: center;
   color: #fff;
}

.herbosalud-banner-content {
   max-width: 700px;
   padding: 0 1.2rem;
   animation: fadeInUp .9s ease-out both;
}

.herbosalud-banner h1 {
   font-size: clamp(1.9rem, 7vw, 3.5rem);
   font-weight: 700;
   margin-bottom: 1rem;
   line-height: 1.15;
   text-shadow: 2px 2px 6px rgba(0, 0, 0, .5);
}

.herbosalud-banner p {
   font-size: clamp(1rem, 3.5vw, 1.4rem);
   margin-bottom: 2rem;
   text-shadow: 1px 1px 4px rgba(0, 0, 0, .5);
   color: #fff;
}

/* botón reutilizable */
.herbosalud-btn {
   display: inline-block;
   padding: 14px 30px;
   background: var(--primary);
   color: #fff;
   font-size: clamp(.9rem, 2.5vw, 1.1rem);
   font-weight: 600;
   border-radius: 50px;
   transition: all var(--transition);
   box-shadow: 0 5px 15px rgba(0, 0, 0, .2);
   border: 2px solid transparent;
}

.herbosalud-btn:hover {
   background: #fff;
   color: var(--primary);
   transform: translateY(-3px);
   box-shadow: 0 8px 20px rgba(0, 0, 0, .25);
}

/* ────────────────────────────────────────────
   SECCIÓN SUCURSALES
──────────────────────────────────────────── */
.herbosalud-sucursales-section {
   padding: var(--section-pad);
   background: linear-gradient(135deg, var(--bg-light) 0%, #e8f5e9 100%);
}

.herbosalud-section-title {
   font-size: clamp(1.6rem, 5vw, 2.6rem);
   color: var(--secondary);
   font-weight: 700;
   text-align: center;
   margin-bottom: 2rem;
   position: relative;
   padding-bottom: 12px;
}

.herbosalud-section-title::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 50%;
   transform: translateX(-50%);
   width: 80px;
   height: 4px;
   background: var(--primary);
   border-radius: 2px;
}

/* TABS */
.herbosalud-tabs {
   display: flex;
   flex-wrap: wrap;
   justify-content: center;
   gap: .6rem;
   margin-bottom: 1.5rem;
}

.herbosalud-tab {
   padding: .75rem 1.2rem;
   background: #fff;
   border: none;
   border-radius: 50px;
   font-family: 'Lato', sans-serif;
   font-size: .9rem;
   font-weight: 600;
   color: var(--secondary);
   cursor: pointer;
   transition: all var(--transition);
   box-shadow: 0 3px 10px rgba(0, 0, 0, .07);
   display: flex;
   align-items: center;
   gap: .5rem;
   white-space: nowrap;
   -webkit-tap-highlight-color: transparent;
}

.herbosalud-tab i {
   color: var(--primary);
   font-size: 1rem;
}

.herbosalud-tab.active,
.herbosalud-tab:hover {
   background: var(--primary);
   color: #fff;
}

.herbosalud-tab.active i,
.herbosalud-tab:hover i {
   color: #fff;
}

/* contenido tabs */
.herbosalud-tab-content {
   display: none;
   animation: fadeIn .4s ease;
   background: #fff;
   border-radius: var(--radius);
   overflow: hidden;
   box-shadow: var(--shadow);
}

.herbosalud-tab-content.active {
   display: block;
}

/* grid sucursal: columna única en móvil */
.herbosalud-sucursal-grid {
   display: flex;
   flex-direction: column;
}

.herbosalud-sucursal-info {
   padding: 1.5rem;
   display: flex;
   flex-direction: column;
   justify-content: center;
   gap: .5rem;
}

.herbosalud-sucursal-info h2 {
   font-size: clamp(1.1rem, 4vw, 1.7rem);
   color: var(--primary);
   font-weight: 700;
   line-height: 1.2;
   margin-bottom: .8rem;
}

/* detalles sucursal */
.herbosalud-sucursal-details {
   padding: 0;
   margin-bottom: 1.5rem;
}

.herbosalud-sucursal-details li {
   display: flex;
   align-items: flex-start;
   gap: .8rem;
   font-size: clamp(.88rem, 2.5vw, 1rem);
   color: var(--secondary);
   line-height: 1.55;
   margin-bottom: 1rem;
}

.herbosalud-sucursal-details li i {
   color: var(--primary);
   font-size: 1.1rem;
   margin-top: 2px;
   flex-shrink: 0;
}

/* mapa: iframe ocupa ancho completo */
.herbosalud-sucursal-map {
   width: 100%;
   height: 300px;
   order: -1;
   /* mapa arriba en móvil */
   flex-shrink: 0;
}

.herbosalud-map-frame {
   width: 100%;
   height: 100%;
   border: none;
   display: block;
}

/* ────────────────────────────────────────────
   SECCIÓN FEATURES
──────────────────────────────────────────── */
.herbosalud-features-section {
   padding: var(--section-pad);
   background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
   color: #fff;
}

.herbosalud-section-title1 {
   font-size: clamp(1.6rem, 5vw, 2.6rem);
   color: #fff;
   font-weight: 700;
   text-align: center;
   margin-bottom: 2rem;
   position: relative;
   padding-bottom: 12px;
}

.herbosalud-features-grid {
   display: grid;
   grid-template-columns: 1fr;
   gap: 1.2rem;
   max-width: 1100px;
   margin: 0 auto;
}

.herbosalud-feature-card {
   background: rgba(255, 255, 255, .1);
   padding: 2rem 1.5rem;
   border-radius: var(--radius);
   text-align: center;
   backdrop-filter: blur(10px);
   transition: all var(--transition);
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: .8rem;
}

.herbosalud-feature-card:hover {
   transform: translateY(-8px);
   background: rgba(255, 255, 255, .18);
}

.herbosalud-feature-icon {
   font-size: 2.6rem;
   color: #fff;
}

.herbosalud-feature-title {
   font-size: clamp(1.1rem, 3.5vw, 1.5rem);
   font-weight: 700;
   color: #fff;
   line-height: 1.2;
}

.herbosalud-feature-desc {
   font-size: clamp(.9rem, 2.5vw, 1.05rem);
   line-height: 1.6;
   opacity: .92;
   color: #fff;
}

/* animaciones */
@keyframes fadeIn {
   from {
      opacity: 0;
   }

   to {
      opacity: 1;
   }
}

@keyframes fadeInUp {
   from {
      opacity: 0;
      transform: translateY(40px);
   }

   to {
      opacity: 1;
      transform: translateY(0);
   }
}

/* ============================================
   BREAKPOINT: 480px
============================================ */
@media (min-width: 480px) {
   .herbosalud-features-grid {
      grid-template-columns: repeat(2, 1fr);
   }

   .herbosalud-sucursal-map {
      height: 340px;
   }
}

/* ============================================
   BREAKPOINT: 768px
============================================ */
@media (min-width: 768px) {
   :root {
      --section-pad: 4rem 1.5rem;
   }

   .herbosalud-sucursal-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 0;
   }

   .herbosalud-sucursal-map {
      height: 100%;
      min-height: 420px;
      order: 0;
      /* mapa a la derecha */
   }

   .herbosalud-sucursal-info {
      padding: 2.5rem;
   }

   .herbosalud-features-grid {
      grid-template-columns: repeat(3, 1fr);
   }

   .herbosalud-tabs {
      gap: .8rem;
   }

   .herbosalud-tab {
      padding: .9rem 1.8rem;
      font-size: 1rem;
   }
}

/* ============================================
   BREAKPOINT: 1024px
============================================ */
@media (min-width: 1024px) {
   :root {
      --section-pad: 5rem 2rem;
   }

   .herbosalud-sucursal-map {
      min-height: 480px;
   }

   .herbosalud-sucursal-info {
      padding: 3rem;
   }
}

/* ── A11Y ── */
@media (prefers-reduced-motion: reduce) {

   *,
   *::before,
   *::after {
      animation-duration: .01ms !important;
      transition-duration: .01ms !important;
   }
}

*:focus-visible {
   outline: 3px solid var(--primary);
   outline-offset: 3px;
}