/* Fuente personalizada Brittany Signature */
@font-face {
  font-family: 'Brittany Signature';
  src: url('../font/BrittanySignature.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Barlow Semi Condensed';
  src: url('../font/BarlowSemiCondensed-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Barlow Semi Condensed';
  src: url('../font/BarlowSemiCondensed-Italic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
}


@font-face {
  font-family: 'Barlow Semi Condensed';
  src: url('../font/BarlowSemiCondensed-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'League Spartan';
  src: url('../font/LeagueSpartan-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Havelock Titling';
  src: url('../font/Xo, Pretty - Havelock Titling Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Havelock Titling';
  src: url('../font/XO, Pretty - Havelock Titling Light.ttf') format('truetype');
  font-weight: lighter;
  font-style: normal;
}

/*Ajustes Globales*/
:root{
 --main-color:#324D64;
 --second-color:#B5DBD2;
 --alternative-color:#E1F0EC;
 --acent-color: #73BCC1;
 --white:#fff;

 --Havelock-Titling:'Havelock Titling', sans-serif;
 --League-spartan:'League Spartan', sans-serif;
 --Barlow-Semi-Condensed:'Barlow Semi Condensed', sans-serif;
 --Brittany-Signature:'Brittany Signature', sans-serif;

}



body {
  font-family: 'Barlow', sans-serif;
  margin: 0;
  padding: 0;
}

/* Tipografías principales */
h1, h2 {
  font-family: 'League Spartan', sans-serif;
}

p {
  font-family: 'Barlow', sans-serif;
}

a {text-decoration: none;}

/* Header general */
header {
  background-color: #fff;
  text-align: center;
  padding-top: 20px;
}

/* Logo centrado arriba */
.logo img {
  width: 100%; /* ajusta según tu imagen */
  max-width: 200px;
  margin-bottom: 20px; /* espacio entre logo y menú */
}

/* Menú */
.navbar ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 50px;
}

.navbar ul li a {
  text-decoration: none;
  color: #1a2b3b;
  font-size: 16px;
  transition: color 0.3s ease;
  font-family: 'Havelock Titling', sans-serif;
  letter-spacing: -0.1rem;
  font-weight: normal;
}

.navbar ul li a:hover {
  color: #8cc6c0;
}

/* Línea inferior */
header hr {
  border: 0;
  border-top: 1px solid #d8e3df;
  margin-top: 30px;
}

.slider {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(0,0,0,.08), 0 10px 10px rgba(0,0,0,.04);
  max-width: 1280px;
  margin: 50px auto;
}

.slides {
  display: flex;
  transition: transform 0.6s ease;
}

.slide {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
  min-width: 100%;
}

.copy {
  padding: 70px 60px 70px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.copy h2 {
  font-family: 'League Spartan', sans-serif;
  font-size: 3.6rem;
  margin: 0px;
  letter-spacing: -1px;
}

.copy p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 90%;
}

/* Botón */
.btn {
  background: #bfe1d8;
  color: var(--white);
  padding: 12px 28px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: normal;
  transition: all .3s ease;
  width: fit-content;
  display: inline-block;
  
}

.btn i{
  vertical-align:text-bottom;
}

.btn:hover {
  background: #a4d5c9;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,.1);
}

/* Imagen */
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Dots */
.dots {
  position: absolute;
  left: 60px;
  bottom: 25px;
  display: flex;
  gap: 12px;
}

.dot {
  width: 14px;
  height: 14px;
  background: rgba(167,215,205,.5);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  transition: background .3s ease, transform .3s ease;
}

.dot[aria-current="true"] {
  background: #a7d7cd;
  transform: scale(1.2);
}

/* Colores por tema */
.slide[data-theme="morado"] .copy {
  background: #4c3a6b;
  color: #fff;
}

.slide[data-theme="menta"] .copy {
  background: #d7ebe6;
  color: var(--acent-color);
}

.slide[data-theme="azul"] .copy {
  background: #2f4a5b;
  color: #fff;
}

/* Responsive */
@media (max-width: 980px) {
  .slide { grid-template-columns: 1fr; }
  .media { height: 45vw; }
}

@media (max-width: 600px) {
  .copy { padding: 30px 25px; }
  .media { height: 55vw; }
  .dots { left: 25px; bottom: 20px; }
  .dot { width: 12px; height: 12px; }
  .btn { max-width: 100%; }
}
/* === Sección de copy Castanea (sin desbordes) === */
.castanea-copy{
  width:100%;
  background:#fff;
  /* padding responsivo: top/bottom y laterales */
  padding: 20px;
  padding-top: 60px;
  overflow-x:hidden;           /* evita scroll horizontal */
  box-sizing:border-box;
}

.castanea-copy__wrap{
  max-width: 1200px;           /* ancho del bloque de texto */
  margin: 0 auto;              /* centrado del bloque */
  text-align: left;
  overflow-wrap: anywhere;     /* por si alguna palabra larga rompe el ancho */
}

/* Título principal (menta) */
.castanea-copy h2{
  margin: 0 0 16px;
  font-family: 'League Spartan', sans-serif;
  line-height: 1.12;
  letter-spacing: -1px;
  color: #5fb4b3;              /* menta de marca */
  /* tamaño fluido similar al ejemplo */
  font-size: 3rem;
}

/* Párrafo secundario (azul grisáceo) */
.castanea-copy p{
  margin: 0;
  max-width: 760px;            /* limita el ancho del texto */
  font-family: 'Barlow', sans-serif;
  color: #243b55;
  line-height: 1.55;
  font-size: clamp(16px, 2vw, 22px);
}

/* Ajustes móviles */
@media (max-width: 768px){
  .castanea-copy{
    padding: clamp(32px, 10vw, 60px) 18px;
  }
  .castanea-copy__wrap{
    max-width: 680px;
  }
  .castanea-copy h2{
    line-height: 1.15;
    font-size: 2rem;
  }
}

/* ========= MOBILE TWEAKS ========= */
/* Hasta tablets */
@media (max-width: 980px) {
  /* Header */
  header { padding-top: 28px; }

  .logo img { width: 84px; margin-bottom: 16px; }

  /* Menú: hace scroll horizontal suave en pantallas chicas */
  .navbar ul {
    gap: 28px;
    padding: 0 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .navbar ul::-webkit-scrollbar { display: none; }

  .navbar ul li a {
    font-size: 14px;
    letter-spacing: .5px;
    padding: 8px 0;
    white-space: nowrap;
  }

  /* Slider: 1 columna (ya lo tienes), ajusto tamaños */
  .copy {
    padding: 40px 28px 28px;
  }
  .copy h2 {
    font-size: clamp(22px, 5.8vw, 30px);
    line-height: 1.15;
  }
  .copy p {
    font-size: 0.98rem;
    max-width: 100%;
    margin-bottom: 22px;
  }
  .btn {
    max-width: 100%;
    padding: 12px 20px;
    border-radius: 10px;
  }

  .media { height: 48vw; }
  .dots { left: 28px; bottom: 18px; }
  .dot { width: 12px; height: 12px; }
}

/* Teléfonos */
@media (max-width: 600px) {
  /* Header compacto */
  header { padding-top: 22px; }
  .logo img { width: 72px; margin-bottom: 12px; }

  .navbar ul { gap: 18px; }
  .navbar ul li a { font-size: 13px; }

  /* Slider más alto para foto */
  .media { height: 56vw; }

  .copy { padding: 26px 20px 22px; }
  .copy h2 { font-size: clamp(20px, 7vw, 28px); }
  .copy p  { font-size: 0.95rem; }

  .dots { left: 20px; bottom: 14px; }
  .dot  { width: 10px; height: 10px; }
}

/* Teléfonos muy pequeños */
@media (max-width: 420px) {
  .navbar ul { gap: 14px; }
  .navbar ul li a { font-size: 12px; }

  .copy { padding: 22px 16px 18px; }
  .copy h2 { font-size: clamp(18px, 7.6vw, 24px); }
  .copy p  { font-size: 0.92rem; }

  .media { height: 60vw; }
  .dots { left: 16px; bottom: 12px; }
}

/* ===== Sección de productos Castanea ===== */
.castanea-productos{
  padding-bottom: 80px;
  background: #fff;
}
.castanea-productos__grid{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
}

/* Tarjeta */
.producto{
  display: grid;
  grid-template-rows: auto auto auto auto;
  align-items: start;
  gap: 14px;
}
.producto__media{
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 16px;
  overflow: hidden;
}
.producto__media img{
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transform: translateZ(0);
  transition: transform .35s ease;
}

/* Títulos y meta */
.producto__title{
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: bold;
  line-height: 1.2;
  margin: 6px 0 0;
  font-size: clamp(20px, 2.4vw, 36px);
  color: #2e4353; /* azul grisáceo por defecto */
}
.producto__peso{
  margin: 0 0 10px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: normal;
  color: #486072;
  font-size: clamp(14px, 1.2vw, 18px);
}


.producto a.btn{
  background-color: var(--second-color);
  color: var(--white);
  text-align: left;
  width: fit-content;
}



/* Hover sutil a la imagen */
.producto:hover .producto__media img{
  transform: scale(1.02);
}

/* Variantes de color por tema */
.producto[data-theme="azul"] .producto__title{ color:#2f4a5b; }
.producto[data-theme="morado"] .producto__title{ color:#4c3a6b; }

/* ===== Responsivo ===== */
@media (max-width: 980px){
  .castanea-productos__grid{
    grid-template-columns: 1fr;
  }
  .producto__title{
    font-size: clamp(22px, 5.2vw, 34px);
  }
}

/* Evita desbordes en móviles */
.castanea-productos, .castanea-productos__grid, .producto{
  overflow-x: hidden;
  box-sizing: border-box;
}

/* =============================
   SECCIÓN: Puntos de Venta (PDV)
   Con imagen de fondo + overlay
   Iconos como imágenes
   ============================= */


.pdv{
  background-image: url(../img/calltoaction-background.jpg);
  background-position:top;
  background-repeat: no-repeat;
  background-size: cover;
  height: 650px;
  display: flex;
  align-items: end;
}

.section-inner{
  background-color: rgba(51, 77, 100, 0.8);
  width: 100%;

  padding: 20px 20px;
}

.pdv h2.title{
  font-family: var(--Brittany-Signature)!important;
  color: var(--white);
  text-align: center;
  font-weight: normal;
  font-size: 3.2rem;
  margin: 20px 0 0;
}

.container{
  max-width: 1200px;
  margin:0 auto;
}

/* Layout principal */
.pdv__wrap{
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

/* Izquierda */
.pdv__left{ 
  align-self: start; 
  width: 250px;
}
.pdv__text{
  margin: 0px;
  font-family: var(--Barlow-Semi-Condensed);
  font-size: 16px;
  color: #e9f5f1;
  text-align: center;
}
.pdv__btn{
  display:block;
  text-align:center;
  font-size: 16px;
  line-height:1.2;
  background:var(--second-color);
  color:var(--white);
  text-decoration:none;
  font-weight:bold;
  padding:16px 22px;
  border-radius:12px;
  box-shadow:0 10px 24px rgba(0,0,0,.15);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  margin-bottom: 20px;
}
.pdv__btn:hover{
  transform: translateY(-2px);
  box-shadow:0 14px 28px rgba(0,0,0,.18);
  background:#b7ded6;
}

/* Centro (iconos como imágenes + leyenda) */
.pdv__center{ text-align:center; }

.pdv__icons-img{
  display:flex;
  gap:26px;
  justify-content:center;
  align-items:center;
  margin-bottom: 20px;
}

.pdv__icons-img a i{
  font-size: 50px;
    color: white;
}

.pdv__icons-img a{
   filter: drop-shadow(0 2px 6px rgba(0,0,0,.12));
  transition: transform .15s ease, opacity .15s ease;
  will-change: transform;
}
.pdv__icons-img a:hover{
  transform: translateY(-1px);
  opacity: .95;
}

.pdv__caption{
  margin:0;
  color:#e0edf0;
  font-size: clamp(14px,1.2vw,18px);
  font-family: 'Barlow', sans-serif;
}

/* Derecha (pastillas + Amazon) */
.pdv__right{
  display:block;
}

.pdv__right .botton-amazon{
  margin-bottom: 20px;
}

.pdv__pill{
  width: clamp(78px, 10vw, 120px);
  height: auto;
  border-radius: 50%;
  filter: drop-shadow(0 8px 8px rgba(0,0,0,.1));
}

.pdv__right a{
  text-decoration: none;
}

.pdv__pill:hover{
  transform: translateY(-1px);
}

.pdv__amazon{
  display:flex;
  justify-content: center;
  align-items:center;
  gap: 10px;
  color:#eaf0f2;

}

.pdv__amazon a{
  text-decoration: none;
}




.pdv__amazon img{
  width: 80px;
  display:block;
}

/* =============================
   RESPONSIVO
   ============================= */
@media (max-width: 1024px){
  .pdv__wrap{
    grid-template-columns: 1fr;  /* una columna */
    gap: 24px;
    text-align:center;
  }
  .pdv__left{ align-self:center; }
  .pdv__right{ justify-content:center; }
}
@media (max-width: 560px){
  .pdv{ padding: 42px 16px; }
  .pdv__icons-img{ gap:18px; }

}

/* Anti-desbordes */
.pdv, .pdv__wrap{ overflow-x:hidden; }
/* ============== FOOTER CASTANEA ============== */
.footer-castanea{
  background: #2f4a5b;          /* azul grisáceo */
  color: #e8f0f3;
  padding: 42px 20px 24px;
  overflow-x: hidden;
  box-sizing: border-box;
  font-family: 'Barlow', sans-serif;
}

/* Layout superior */
.footer__wrap{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr; /* logo + 3 columnas */
  gap: clamp(18px, 3vw, 48px);
  align-items: start;
}

/* Logo */
.footer__logo{
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  margin-right: 40px;
}

/* Títulos */
.footer__title{
  margin: 4px 0 12px;
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .6px;
  color: #dce9ed;
  text-transform: uppercase;
}

/* Listas */
.footer__list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.footer__list a{
  color: #e8f0f3;
  text-decoration: none;
  font-weight: 500;
  opacity: .92;
  transition: opacity .15s ease, transform .15s ease;
}
.footer__list a:hover{ opacity: 1; transform: translateX(2px); }

/* Contacto */
.footer__contact-line{
  display: block;
  color: #e8f0f3;
  text-decoration: none;
  margin-bottom: 8px;
  font-weight: 600;
}
.footer__social{
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
}
.footer__social-ico{
  width: 22px; height: 22px;
  display: block;
  filter: brightness(110%);
  transition: transform .15s ease, opacity .15s ease;
}
.footer__social a:hover .footer__social-ico{
  transform: translateY(-1px);
  opacity: .95;
}

/* WhatsApp grande (opcional) */
.footer__wa{
  position: absolute;
  right: 20px;
  top: 30px;
  width: 72px; height: auto;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.25));
}
.footer__contact{ position: relative; }

/* Divisor y franja inferior */
.footer__divider{
  max-width: 1200px;
  margin: 32px auto 16px;
  border: 0;
  border-top: 1px solid rgba(255,255,255,.28);
}
.footer__bottom{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
}
.footer__copy{
  margin: 0;
  color: #d7e4ea;
  font-size: .92rem;
}
.footer__credit{
  margin: 0;
  text-align: right;
  font-size: .92rem;
}
.footer__credit a{
  color: #d7e4ea;
  text-decoration: none;
}
.footer__credit a:hover{ text-decoration: underline; }

/* ============== Responsivo ============== */
@media (max-width: 1024px){
  .footer__wrap{
    grid-template-columns: 1fr 1fr;  /* 2 columnas */
  }
  .footer__wa{
    position: static;
    margin-top: 8px;
  }
}
@media (max-width: 640px){
  .footer-castanea{ padding: 28px 16px 20px; }
  .footer__wrap{ grid-template-columns: 1fr; gap: 22px; }
  .footer__bottom{ grid-template-columns: 1fr; text-align: left; }
  .footer__credit{ text-align: left; }
  .footer__logo{ width: 180px; }
}



/* ====== Sección: Creada por Médicos Especialistas ====== */
.experts{
  padding: clamp(28px, 6vw, 60px) 20px;
  background:#fff;
  overflow-x:hidden;
  box-sizing:border-box;
}

.experts__wrap{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;  /* texto / imagen */
  gap: clamp(18px, 4vw, 40px);
  align-items: start;
}

/* Título manuscrito */
.experts__title{
  margin: 0 0 20px;
  font-family: var(--Brittany-Signature);
  font-weight: normal;
  color: #59aeb0;                 /* menta */
  line-height: 1.8;
  font-size: 4rem;
}

/* Párrafos */
.experts__content p{
  margin: 14px 0;
  color: #2e4353;                 /* azul grisáceo */
  font-family: var(--Barlow-Semi-Condensed);
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.65;
  max-width: 64ch;
  text-align: justify;
}
.experts__content p strong{ font-weight: 800; }

/* Imagen */
.experts__media{
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 34px rgba(0,0,0,.12);
}
.experts__media img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ====== Responsive ====== */
@media (max-width: 980px){
  .experts__wrap{
    grid-template-columns: 1fr;   /* apilar */
  }
  .experts__media{
    order: 2;                      /* imagen debajo del texto */
  }
  .experts__title{
    font-size: clamp(32px, 9vw, 64px);
  }
  .experts__content p{
    font-size: clamp(15px, 3.7vw, 17px);
  }
}

/* ====== Sección: Recomendación de doctores ====== */
.endorse{
  padding: clamp(28px, 6vw, 70px) 20px;
  background:#fff;
  overflow-x:hidden;
  box-sizing:border-box;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
}

.endorse__wrap{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;   /* texto / foto */
  gap: clamp(18px, 4vw, 48px);
  align-items: center;
}

/* Título */
.endorse__title{
  margin: 0 0 10px;
  color: #2e4353;           /* azul grisáceo */
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: .2px;
  font-size: clamp(28px, 5.6vw, 56px);
}

/* Intro + línea */
.endorse__intro{
  margin: 0 0 10px;
  color: #5f7282;
  font-family: var(--Barlow-Semi-Condensed);
  line-height: 1.6;
  font-size: clamp(14px, 1.4vw, 18px);
  max-width: 60ch;
}
.endorse__rule{
  border: 0;
  border-top: 2px solid rgba(95, 180, 179, .25);
  margin: 10px 0 18px;
}

/* Datos del doctor */
.endorse__name{
  margin: 0;
  color: #5fb4b3;          /* menta */
  font-weight: 900;
  font-size: clamp(18px, 2.2vw, 26px);
}
.endorse__role{
  margin: 2px 0 14px;
  color: #738a9b;
  font-weight: 600;
  font-size: clamp(13px, 1.2vw, 16px);
}

/* Cita */
.endorse__quote{
  position: relative;
  margin: 18px 0 0;
  color: #7d8e98;
  font-family: var(--Barlow-Semi-Condensed);
  font-style: italic;
  font-weight: normal;
  line-height: 1.4;
  font-size: 28px;
  max-width: 90%;
  quotes: "“" "”" "‘" "’";
  padding-left: 40px;
}
.endorse__quote::before,
.endorse__quote::after{
  position: absolute;
  color: #8fcfc8;          /* menta suave */
  opacity: .65;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1;
}
.endorse__quote::before{
  content: "";
  display: block;
  background-image: url(../img/Iconos/Comillas\ Iniciales.svg);
  background-size: contain;
  background-position: center;
  background-repeat:no-repeat;
  width: 40px;
  height: 40px;
  left: -5px;
  top: -8px;
}
.endorse__quote::after{
  content: "";
  display: block;
  background-image: url(../img/Iconos/comillas\ Finales.svg);
  background-size: contain;
  background-position: center;
  background-repeat:no-repeat;
  width: 40px;
  height: 40px;
  right: 0px;
  bottom: 0px;
}

/* Foto en círculo con fondo menta */
.endorse__photo{
  
  margin: 0 auto;
     /* menta muy clara */
}
.endorse__photo img{
  /* Si la foto es rectangular, la centramos y escalamos */
  width: 100%;
  
}

/* ====== Responsive ====== */
@media (max-width: 980px){
  .endorse__wrap{
    grid-template-columns: 1fr;   /* apilar */
    gap: 28px;
  }
  .endorse__photo{
    order: -1;                    /* foto arriba en móvil; quítalo si la quieres abajo */
    --circle-size: clamp(200px, 50vw, 320px);
    margin: 0 auto;
  }
  .endorse__title{ font-size: clamp(26px, 8vw, 44px); }
  .endorse__quote{ font-weight: 600; }
}

/* ===== Atributos / Badges ===== */
.castanea-badges{
  background:#fff;       /* línea superior azul */
  padding: clamp(28px, 6vw, 60px) 20px;
  overflow-x:hidden;
  box-sizing:border-box;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
}

.badges__wrap{
  max-width: 1200px;
  margin: 0 auto;
}

.badges__grid{
  list-style:none;
  margin:0; padding:0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(18px, 3.4vw, 48px);
  align-items: start;
  text-align:center;
}

.badge{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 10px;
}

.badge__img{
  width: clamp(48px, 7vw, 72px);
  height: clamp(48px, 7vw, 72px);
  object-fit: contain;
  display:block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.08));
  user-select:none;
}

.badge__text{
  margin:0;
  color:#2e4353;                 /* azul grisáceo */
  font-weight: 700;
  line-height: 1.35;
  font-size: clamp(12px, 1.2vw, 14px);
}

/* ===== Responsive ===== */
@media (max-width: 1024px){
  .badges__grid{ grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px){
  .badges__grid{ grid-template-columns: repeat(2, 1fr); }
  .badge__text{ font-size: 13px; }
}

@media (max-width: 420px){
  .badges__grid{ grid-template-columns: 1fr; }
}

/* Anti-desbordes por si alguna imagen es grande */
.badges__grid, .badge{ max-width:100%; }


/* ===== Dónde comprar ===== */
.donde-comprar{
  padding: clamp(28px, 6vw, 60px) 20px;
  background:#fff;
  font-family:"Montserrat", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  overflow-x:hidden;
  margin-bottom: 40px;
}
.dc__wrap{ max-width:1200px; margin:0 auto; }

.dc__title{
  margin:0 0 6px;
  font-weight:800;
  color:#5fb4b3;                 /* título estilo marca */
  font-size: clamp(28px, 5.6vw, 56px);
  line-height:2.1;
  font-family: 'Brittany Signature';

}
.dc__subtitle{
  margin:0 0 16px;
  color:#2e4353;
  font-weight:600;
  font-size: clamp(14px, 1.4vw, 18px);
}

/* Mapa */
.dc__map{
  position: relative;
  border-radius: 12px;
  overflow: hidden;               /* evita barras al abrir popup */
  width: 80%;
  margin: 0 auto;
}
.dc__img{ 
  width:100%;
  height:auto; 
  display:block; 
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.06)); }

/* Marcadores */
.dc__markers{ position:absolute; inset:0; }
.dc__marker{
  position:absolute;
  width:16px; height:16px;
  border-radius:50%;
  background:#2f4a5b;
  border:3px solid #cde9e3;       /* aro menta claro */
  box-shadow:0 4px 10px rgba(0,0,0,.15);
  transform: translate(-50%, -50%);
  cursor:pointer;
}
.dc__marker::after{
  content:"";
  position:absolute; inset:-8px; border-radius:50%;
  border:2px solid rgba(95,180,179,.35);
}

/* Popup sin scroll y sin líneas */
.dc__popup{
  position:absolute;
  width:min(560px, 88%);
  max-width: calc(100% - 16px);
  transform: translate(-10px, -10px);
  pointer-events:auto;
  overflow: visible;               /* no barras internas */
}
.dc__popup-inner{
  background:#fff;
  border-radius:14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  overflow: visible;               /* no scroll */
  padding: 18px 18px 12px;
  position: relative;
}
.dc__close{
  position:absolute; top:6px; right:10px;
  border:0; background:transparent; font-size:22px; line-height:1;
  color:#7a8b96; cursor:pointer;
}

/* Lista */
.dc__list{ list-style:none; margin:0; padding:0; }
.dc__item{ padding: 12px 2px 12px 0; border-bottom: 0; } /* sin líneas */
.dc__item-title{
  margin:0 0 4px; font-weight:800; color:#2f4a5b; font-size:16px;
  display:flex; gap:8px; align-items:baseline;
}
.dc__dot{
  width:10px; height:10px; border-radius:50%;
  background:#2f4a5b; border:2px solid #a9dcd3; margin-top:4px; flex:0 0 auto;
}
.dc__item-sub{ margin:0; color:#7a8b96; font-weight:800; font-size:13px; }
.dc__item-desc{ margin:2px 0 0; color:#98a9b5; font-size:13px; line-height:1.45; }

/* Línea conectora oculta */
.dc__line{ display: none; }

/* Responsive: popup bajo el mapa en móvil (opcional) */
@media (max-width: 640px){
  .dc__popup{
    position: static;
    transform:none;
    margin-top: 12px;
    width: 100%;
  }
}


/* ===== Sección Contacto ===== */
.contacto{
  background: #d7ebe6;                 /* menta claro */
  padding: clamp(28px, 6vw, 60px) 20px;
  border-radius: 14px;
  max-width: 1200px;
  margin: 20px auto;
  box-shadow: 0 12px 26px rgba(0,0,0,.06);
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
}

.contacto__wrap{
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.contacto__title{
  margin: 0 0 8px;
  color: #2e4353;
  font-weight: 800;
  font-size: clamp(24px, 3.2vw, 34px);
  letter-spacing: .4px;
}

.contacto__lead{
  font-family: var(--Barlow-Semi-Condensed);
  margin: 0 auto 10px;
  color: #2f4a5b;
  font-weight: normal;
  line-height: 1.55;
  font-size: clamp(14px, 1.4vw, 16px);
  max-width: 820px;
}

.contacto__mini{
  font-family: var(--Barlow-Semi-Condensed);
  margin: 6px 0 18px;
  color: #2f4a5b;
  font-weight: normal;
  font-size: .95rem;
  opacity: .9;
}

/* Formulario */
.contacto__form{
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  justify-items: center;
}

.field{
  width: min(460px, 100%);
  background: #fff;
 
  font-size: 14px;
  box-shadow: 0 2px 0 rgba(0,0,0,.02) inset, 0 6px 16px rgba(0,0,0,.06);
  transition: box-shadow .2s ease, transform .05s ease;
  overflow: hidden;
  padding: 12px 14px;
  border-radius: 10px;
  
}
.field--full{
  width: min(460px, 100%);
}

input, textarea{
  font-family: var(--Barlow-Semi-Condensed);
  width: 100%;
  border: 0;
  outline: none;
  color: #1b2d3a;
}

select{
  font-family: var(--Barlow-Semi-Condensed);
  width: 100%;
  border: 0;
  outline: none;
  color: #90a7b2;
}

/* Cuando el usuario ya eligió una opción válida */
select:valid {
  color: #1b2d3a; /* 🔹 color normal de texto */
}


input::placeholder, textarea::placeholder{
  color: #1b2d3a;
}

input:focus, textarea:focus{
  box-shadow: 0 0 0 3px rgba(95,180,179,.25), 0 8px 20px rgba(0,0,0,.08);
}

textarea{ resize: vertical; min-height: 110px; }

/* Botón */
.btn-enviar{
  margin-top: 8px;
  padding: 10px 28px;
  border: 0;
  border-radius: 10px;
  background: #2f4a5b;     /* azul grisáceo */
  color: #e8f0f3;
  font-weight: 800;
  letter-spacing: .5px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-enviar:hover{
  transform: translateY(-1px);
  background: #28414f;
  box-shadow: 0 14px 26px rgba(0,0,0,.16);
}
.btn-enviar:active{ transform: translateY(0); }

/* Accesibilidad: clase para lectores de pantalla */
.sr-only{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Responsive */
@media (max-width: 560px){
  .contacto{ padding: 22px 14px; border-radius: 12px; }
  .field, .field--full{ width: 100%; }
}


/* ===== Banner de producto (miniaturas + foto + texto) ===== */
.product-hero{
  padding: clamp(24px, 6vw, 40px) 20px;
  background:#fff;
  font-family:"Montserrat", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
}

/* --- Grid: thumbs / media / copy (compacto para dar más ancho al texto) --- */
.p-hero__wrap{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 110px minmax(0, 520px) 1fr; /* ↓ media y thumbs más chicos */
  column-gap: clamp(14px, 2vw, 26px);
  align-items: center; /* centra verticalmente */
}

/* Thumbs (columna izquierda) */
.p-hero__thumbs{
  width: 110px;                /* fija el carril de miniaturas */
  display: grid;
  grid-auto-rows: 1fr;
  gap: 12px;
  place-self: center start;
}
.p-hero__thumb{
  width: 100%;
  aspect-ratio: 1 / 1;         /* cuadrados */
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
  display:block;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 3px solid transparent;
}

.p-hero__thumb:hover{
  transform: scale(1.05);
  box-shadow: 0 12px 24px rgba(0,0,0,.15);
}

.p-hero__thumb.active{
  border-color: #5fb4b3;
  box-shadow: 0 12px 24px rgba(95, 180, 179, 0.4);
  transform: scale(1.02);
}

/* Media principal (centro) */
.p-hero__media{
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(0,0,0,.12);
  background: #f7f9fa;
  aspect-ratio: 16 / 11;       /* ajusta a 4/3 o 3/2 si prefieres */
  width: 100%;
  height: 100%;
  max-width: 520px;            /* tope del bloque de foto */
  align-self: center;
  justify-self: center;
}
.p-hero__media img{
  width: 100%;
  height: 100%; 
  object-fit: cover;
  object-position: center;
  display:block;
}

/* Copy (derecha) */
.p-hero__copy{ padding-top: 4px; }
.p-hero__title{
  margin: 0 0 10px;
  color: #2e4353;
  font-weight: 800;
  line-height: 1.1;
  font-size: clamp(24px, 3.6vw, 40px);
}
.p-hero__desc{
  margin: 0 0 16px;
  color: #5f7282;
  font-weight: 600;
  line-height: 1.6;
  font-size: clamp(14px, 1.4vw, 16px);
  max-width: 65ch;             /* el texto puede ocupar un poco más */
  text-align: justify;
}
.p-hero__sell{
  margin: 0;
  color: #2e4353;
  font-weight: 700;
}
.p-hero__link{
  color: #5fb4b3; text-decoration: none; font-weight: 800;
}
.p-hero__link:hover{ text-decoration: underline; }
.p-hero__amazon{
  height: 20px; width: auto; vertical-align: middle; margin-left: 6px;
}

/* ===== Ajustes para pantallas muy anchas (aún más espacio al texto) ===== */
@media (min-width: 1280px){
  .p-hero__wrap{
    grid-template-columns: 110px 500px minmax(520px, 1fr);
  }
  .p-hero__media{ max-width: 500px; }
}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .media{
    order: -1;
        padding: 0;
  }
  
  .p-hero__wrap{
    grid-template-columns: 1fr;  /* apilar */
  }
  .p-hero__media{
    aspect-ratio: 1 / 1;       /* un poco más panorámico en móvil */
    max-width: none;
    width: 400px;
  }
  .p-hero__thumbs{
    order: 3;                     /* thumbs abajo */
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
  }
  .p-hero__thumb{ aspect-ratio: 16 / 9; }
  .p-hero__desc{ max-width: none; }

  
}

@media (max-width: 520px){
  .p-hero__thumbs{ grid-template-columns: repeat(4, 1fr); }
}

/* ===== Productos relacionados ===== */
.related{
padding-bottom: 60px;
  background: #fff;
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
}

.related__wrap{
  max-width: 1200px;
  margin: 0 auto;
}

.related__title{
  margin: 0 0 18px;
  color: #2e4353;
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 26px);
}

/* Grid flexible (ahora 1 tarjeta; escala a 2-4 si agregas más) */
.related__grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: clamp(16px, 2.2vw, 28px);
}

/* Tarjeta */
.rel-card{
  max-width: 520px;              /* ayuda a mantener el ancho como en el diseño */
}
.rel-card__media{
  margin: 0 0 10px;
  
  overflow: visible;
  display: inline-block;         /* para que la sombra se mida solo por la imagen */
  filter: drop-shadow(0 16px 30px rgba(0,0,0,.12));
}
.rel-card__media img{
  width: clamp(220px, 36vw, 340px);
  height: auto;
  border-radius: 15px;
  display: block;
}

/* Nombre y meta */
.rel-card__name{
  margin: 8px 0 6px;
  color: #4d3a6b;                /* morado del producto */
  font-weight: bold;
  line-height: 1.25;
  font-size: 24px;
  font-family: var(--Barlow-Semi-Condensed);
}
.rel-card__meta{
  margin: 0 0 20px;
  color: #6c8392;
  font-weight: normal;
  font-size: 14px;
  font-family: var(--Barlow-Semi-Condensed);
}

/* Botón */
.rel-card__btn{
  display: inline-block;
  background: #bfe1d8;
  color: #1b2d3a;
  text-decoration: none;
  font-weight: 800;
  padding: 10px 16px;
  border-radius: 10px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
}
.rel-card__btn:hover{
  background: #a9d7cd;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0,0,0,.12);
}

/* Responsive fino */
@media (max-width: 560px){
  .rel-card__media img{ width: 260px; }
}

/* ===== Botón Flotante de WhatsApp ===== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.whatsapp-float:hover {
  background-color: #20BA5A;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 35px;
  height: 35px;
  fill: white;
}

/* Animación de entrada */
@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.whatsapp-float {
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
  animation: none;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

/* ===== RESPONSIVE MÓVIL GLOBAL ===== */

/* Tablets y móviles grandes (768px) */


/* Móviles medianos (600px) */
@media (max-width: 768px) {
  
  /* Header - Menú más compacto */
  .navbar ul {
    gap: 10px;
    font-size: 13px;
  }
  
  .navbar ul li a {
    font-size: 12px;
    letter-spacing: 0.5px;
  }
  
  /* Slider */
  .slider {
    margin: 20px auto;
    border-radius: 12px;
  }
  
  .slide {
    grid-template-columns: 1fr;
  }
  
  .copy {
    padding: 30px 20px;
  }
  
  .copy h2 {
    font-size: 1.5rem;
  }
  
  .copy p {
    font-size: 0.9rem;
  }
  
  .media {
    order: -1;
    padding: 0;
  }
  
  .media img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  
  /* Product Hero */
  .p-hero__copy{
    margin-top: 20px;
  }

  .p-hero__title {
    font-size: 1.5rem;
  }
  
  .p-hero__desc {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .p-hero__thumb {
    width: 100%;
    height: 150px;
  }
  
  .p-hero__amazon {
    height: 20px;
  }
  

  /* Badges - Una columna en móviles pequeños */
  .badges__grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .badge {
    flex-direction: row;
    gap: 15px;
  }
  
  .badge__img {
    width: 40px;
    height: 40px;
  }
  
  .badge__text {
    font-size: 0.8rem;
    text-align: left;
  }
  
  /* Related Products */
  .rel-card__media img {
    max-width: 250px;
  }
  
  .rel-card__name {
    font-size: 0.95rem;
  }
  
  .rel-card__btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  /* PDV */
  .pdv__text {
    font-size: 0.95rem;
  }
  
  .pdv__btn {
    font-size: 0.85rem;
    padding: 12px 20px;
  }
  
  .pdv__caption {
    font-size: 0.85rem;
  }
  
  /* Footer */
  .footer__title {
    font-size: 1rem;
  }
  
  .footer__list li a {
    font-size: 0.9rem;
  }
  
  .footer__contact-line {
    font-size: 0.9rem;
  }
  
  .footer__copy,
  .footer__credit {
    font-size: 0.85rem;
  }
  
  /* Contacto */
  .contacto {
    padding: 20px 10px;
    margin: 15px auto;
    max-width: calc(100% - 20px);
  }
  
  .contacto__wrap {
    padding: 0 5px;
  }
  
  .contacto__title {
    font-size: 1.8rem;
  }
  
  .contacto__lead {
    font-size: 0.95rem;
  }
  
  .contacto__form {
    gap: 12px;
  }
  
  .field,
  .field--full {
    width: 100%;
    max-width: 100%;
  }
  
  .field input,
  .field textarea {
    font-size: 0.9rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  .btn-enviar {
    width: 100%;
    max-width: 100%;
  }
  
  /* Buttons */
  .btn {
    padding: 12px 30px;
    font-size: 0.9rem;
  }
  
  /* Castanea Copy */
  .castanea-copy h2 {
    font-size: 1.7rem;
  }
  
  /* Endorse Section - Doctor */
  .endorse__photo {
    --circle-size: 240px;
  }
}

/* Móviles pequeños (480px) */
@media (max-width: 480px) {
  
  /* Header aún más compacto */
  .logo img {
    width: 70px;
  }
  
  .navbar ul {
    gap: 8px;
  }
  
  .navbar ul li a {
    font-size: 11px;
    font-weight: 500;
  }
  
  /* Hero Section */
  .p-hero__title {
    font-size: 1.3rem;
  }
  
  .p-hero__desc {
    font-size: 0.85rem;
  }
  
  .p-hero__thumbs {
    gap: 8px;
  }
  
  .p-hero__thumb {
    width: 100%;
    height: 100px;
  }
  
  .p-hero__media{
    width: 400px;
    height: 400px;
  }

  .p-hero__media img {
    width: 100%;
  }
  
  /* Badges */
  .badge__img {
    width: 35px;
    height: 35px;
  }
  
  .badge__text {
    font-size: 0.75rem;
  }
  
  /* Related Products */
  .related__title {
    font-size: 1.3rem;
  }
  
  .rel-card {
    padding: 15px;
  }
  
  .rel-card__media img {
    max-width: 200px;
  }
  
  .rel-card__name {
    font-size: 0.9rem;
  }
  
  /* PDV */
  .pdv__wrap {
    padding: 30px 15px;
  }
  
  .pdv__text {
    font-size: 0.9rem;
  }
  
  .pdv__btn {
    font-size: 0.8rem;
    padding: 10px 18px;
  }
  
  .pdv__pill {
    max-width: 120px;
  }
  
  /* Footer */
  .footer__wrap {
    padding: 40px 15px;
  }
  
  .footer__logo {
    max-width: 100px;
  }
  
  .footer__title {
    font-size: 0.95rem;
  }
  
  .footer__list li a {
    font-size: 0.85rem;
  }
  
  /* Productos */
  .producto__title {
    font-size: 1rem;
  }
  
  .producto__peso {
    font-size: 0.9rem;
  }
  
  /* Slider */
  .copy h2 {
    font-size: 1.3rem;
  }
  
  .copy p {
    font-size: 0.85rem;
  }
  
  /* Castanea Copy */
  .castanea-copy h2 {
    font-size: 1.5rem;
  }
  
  /* Endorse Section - Doctor */
  .endorse__photo {
    --circle-size: 200px;
  }
  
  .endorse__photo img {
    width: 110%;
  }
  
  .btn {
    padding: 10px 25px;
    font-size: 0.85rem;
  }
  
  /* Dots del slider */
  .dots {
    bottom: 10px;
    gap: 6px;
  }
  
  
  
  /* Contacto */
  .contacto {
    padding: 18px 8px;
    margin: 10px auto;
    max-width: calc(100% - 16px);
  }
  
  .contacto__wrap {
    padding: 0 3px;
  }
  
  .contacto__title {
    font-size: 1.5rem;
  }
  
  .contacto__lead {
    font-size: 0.9rem;
  }
  
  .contacto__mini {
    font-size: 0.85rem;
  }
  
  .contacto__form {
    gap: 10px;
  }
  
  .field,
  .field--full {
    width: 100%;
  }
  
  .field input,
  .field textarea {
    padding: 10px 12px;
    font-size: 0.85rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  .btn-enviar {
    width: 100%;
    padding: 12px 25px;
    font-size: 0.85rem;
  }
  
  /* WhatsApp Button */
  .whatsapp-float {
    width: 45px;
    height: 45px;
    bottom: 15px;
    right: 15px;
  }
  
  .whatsapp-float svg {
    width: 25px;
    height: 25px;
  }
}

/* Móviles muy pequeños (360px) */
@media (max-width: 360px) {
  
  .logo img {
    width: 60px;
  }
  
  .navbar ul {
    gap: 5px;
  }
  
  .navbar ul li a {
    font-size: 10px;
  }
  
  .p-hero__title {
    font-size: 1.2rem;
  }
  
  .p-hero__desc {
    font-size: 0.8rem;
  }
  
  .p-hero__thumb {
    width: 40px;
    height: 40px;
  }
  
  .badge__img {
    width: 30px;
    height: 30px;
  }
  
  .badge__text {
    font-size: 0.7rem;
  }
  
  .rel-card__media img {
    max-width: 180px;
  }
  
  .contacto {
    padding: 15px 5px;
    margin: 10px auto;
    max-width: calc(100% - 10px);
  }
  
  .contacto__wrap {
    padding: 0 2px;
  }
  
  .contacto__title {
    font-size: 1.3rem;
  }
  
  .contacto__lead {
    font-size: 0.85rem;
  }
  
  .contacto__mini {
    font-size: 0.8rem;
  }
  
  .field input,
  .field textarea {
    padding: 10px;
    font-size: 0.8rem;
    width: 100%;
    box-sizing: border-box;
  }
  
  .btn-enviar {
    width: 100%;
    padding: 10px 20px;
    font-size: 0.8rem;
  }
  
  .footer__wrap {
    padding: 30px 10px;
  }
  
  /* Castanea Copy */
  .castanea-copy h2 {
    font-size: 1.3rem;
  }
  
  /* Endorse Section - Doctor */
  .endorse__photo {
    --circle-size: 180px;
  }
  
  .endorse__photo img {
    width: 105%;
  }
}
/* === Popup con scroll interno === */
.dc__popup{
  position:absolute;
  width:min(560px, 88%);
  max-width: calc(100% - 16px);
  transform: translate(-10px, -10px);
  pointer-events:auto;
  z-index: 3;
}

/* Aquí activamos la barra */
.dc__popup-inner{
  background:#fff;
  border-radius:14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  padding: 18px 18px 12px;
  position: relative;

  /* 👇 máximos altos + scroll */
  max-height: min(72vh, 560px);   /* puedes subir/bajar estos valores */
  overflow: auto;
  overscroll-behavior: contain;   /* evita arrastrar el fondo mientras haces scroll */
}

/* Cierra siempre visible arriba */
.dc__close{
  position: sticky; /* se queda arriba al hacer scroll */
  top: 0;
  float: right;
  margin-top: -6px;
  margin-right: -6px;
  border:0; background:transparent;
  font-size:22px; line-height:1;
  color:#7a8b96; cursor:pointer;
  z-index: 1;
}

/* Estilo opcional de scrollbar (WebKit) */
.dc__popup-inner::-webkit-scrollbar{
  width: 10px;
}
.dc__popup-inner::-webkit-scrollbar-thumb{
  background: #d9e9e6;
  border-radius: 8px;
}
.dc__popup-inner::-webkit-scrollbar-track{
  background: transparent;
}

/* En móvil dejamos más alto aún y a ancho completo si ya usas el modo “debajo del mapa” */
@media (max-width: 640px){
  .dc__popup{
    position: static;
    transform:none;
    margin-top: 12px;
    width: 100%;
  }
  .dc__popup-inner{
    max-height: 68vh;  /* más alto en móvil */
  }
}
