/* ==============================
   stylesuplement.css
   Diseño premium y elegante
   ============================== */

:root{
  --bg: #0e1116;
  --white: #ffffff;
  --muted: #a9b0bd;
  --text: #1b1f2a;
  --soft: #f4f6f9;

  --primary: #0bb7a7;    /* teal farmacia elegante */
  --primary-dark: #079a8d;
  --accent: #ffb37b;     /* naranja pastel */
  --line: #e8ecf3;

  --radius: 18px;
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 8px 24px rgba(15, 23, 42, 0.06);
  font-synthesis: style;
}

*{ box-sizing:border-box; margin:0; padding:0; }
body{
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.55;
}

img{ width:100%; display:block; }

.container{
  width: min(1150px, 92%);
  margin: 0 auto;
}

.video-whatsapp {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  padding: 80px 20px;
  text-align: center;
  color: #fff;
}

/* Video cubriendo solo el fondo verde */
.video-whatsapp .video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.35;
}

/* Capa oscura */
.video-whatsapp::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  z-index: 0;
}

/* Contenido encima */
.whatsapp-content {
  position: relative;
  z-index: 1;
  color: #353434;
}

/* Título y texto */
.whatsapp-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.whatsapp-content p {
  font-size: 1rem;
  margin-bottom: 25px;
  color: #242525;
}

@media (max-width: 768px) {
  .video-whatsapp {
    padding: 60px 15px;
    border-radius: 0;
  }

  .whatsapp-content h2 {
    font-size: 1.4rem;
  }

  .whatsapp-content p {
    font-size: 0.95rem;
  }

  .btn-whatsapp {
    font-size: 0.95rem;
    padding: 10px 28px;
  }
}

/* BOTONES */
.btn-primary, .btn-dark, .btn-outline{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration:none;
  font-weight:600;
  font-size:15px;
  transition:.2s ease;
}

.small{ padding:8px 12px; font-size: 14px; }

/* HERO */
.hero{
  background:
    radial-gradient(1200px 500px at 80% -10%, #dff8f5 0%, transparent 55%),
    radial-gradient(900px 400px at -10% 0%, #fff3e8 0%, transparent 60%),
    #fff;
  border-bottom: 1px solid var(--line);
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 26px;
  padding: 44px 0 34px;
  align-items:center;
}
.eyebrow{
  color: #687688;
  font-weight:700;
  font-size:13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.hero h1{
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.1;
  margin-bottom: 10px;
}
.hero .sub{
  color:#4b5563;
  font-size:16px;
  margin-bottom: 18px;
  max-width: 520px;
}
.hero-actions{ display:flex; gap:10px; flex-wrap: wrap; }

.hero-highlights{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
}
.mini-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow-soft);
}
.mini-card strong{ display:block; font-size:14px; }
.mini-card span{ color:#6b7280; font-size:13px; }

.hero-media img{
  border-radius: 20px;
  box-shadow: var(--shadow);
  object-fit: cover;
  min-height: 280px;
}

/* PROMO */
.promo{ padding: 24px 0; }
.promo-card{
  display:grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 16px;
  background: #0b1220;
  color:#fff;
  border-radius: 22px;
  padding: 24px;
  box-shadow: var(--shadow);
  align-items:center;
}
.promo-tag{
  display:inline-block;
  background: rgba(255,255,255,0.12);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.promo-card h2{
  margin-top: 8px;
  font-size: clamp(22px, 3vw, 30px);
}
.promo-card p{
  color:#d1d5db;
  margin: 8px 0 14px;
}
.promo-badge{
  display:flex; justify-content:center; align-items:center;
}
.promo-badge .circle{
  width: 160px; height: 160px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 20%, #ffffff 0%, #f5f5f5 35%, #e5e7eb 100%);
  color:#111827;
  display:grid; place-content:center;
  text-align:center;
  box-shadow: inset 0 0 0 8px rgba(211, 104, 3, 0.12);
}
.circle span{
  font-size: 14px; font-weight:700; color:#374151;
}
.circle strong{
  font-size: 44px; font-weight:800; line-height:1;
  color:#d44f1a;
}
.circle small{ font-size: 13px; font-weight:700; color:#6b7280; }

/* CATÁLOGO */
.catalogo{
  padding: 34px 0 46px;
  background: var(--soft);
}
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap: 10px;
  margin-bottom: 16px;
}
.section-head h2{
  font-size: clamp(20px, 3vw, 28px);
}
.section-head p{ color:#6b7280; }

/* GRID CARDS */
.grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.card{
  position:relative;
  background:#ffffff;
  border:1px solid var(--line);
  border-radius: 18px;
  overflow:hidden;
  box-shadow: var(--shadow-soft);
  transition: .2s ease;
}
.card:hover{
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.badge{
  position:absolute;
  top:12px; left:12px;
  background: rgba(14,17,22,.85);
  color:#fff;
  font-size:12px;
  font-weight:700;
  padding:6px 10px;
  border-radius:999px;
  z-index:2;
}
.card-img{
  height: 185px;
}
.card-img img{
  height:100%;
  object-fit:cover;
}
.card-body{ padding: 14px; }
.card-body h3{
  font-size: 16px;
  font-weight:700;
  margin-bottom:6px;
}
.desc{
  font-size:14px;
  color:#6b7280;
  min-height: 40px;
}
.price-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin: 10px 0 12px;
}
.price{
  font-size: 18px;
  font-weight:800;
  color:#111827;
}
.stock{
  font-size:12px;
  font-weight:700;
  color:#0f766e;
  background:#fdecfa;
  border:1px solid #bbf7d0;
  padding:4px 8px;
  border-radius:999px;
}
.card-actions{
  display:flex;
  gap:8px;
}

.categoria-title{
  margin: 28px 0 14px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #111827;
}

/* CTA */
.cta{ padding: 30px 0 52px; background:#fff; }
.cta-card{
  background:
    radial-gradient(900px 300px at 10% 0%, #756a74 0%, transparent 60%),
    radial-gradient(800px 260px at 90% 10%, #fff2e5 0%, transparent 65%),
    #fff;
  border:1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  text-align:center;
  box-shadow: var(--shadow-soft);
}
.cta-card h2{ font-size: clamp(20px, 3vw, 28px); }
.cta-card p{ color:#6b7280; margin: 6px 0 12px; }

/* FOOTER */
.footer{
  background:#0b1220;
  color:#cbd5e1;
  padding: 18px 0;
}
.footer-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 10px;
  font-size:14px;
}
.footer-links{ display:flex; gap:12px; }
.footer a{ color:#cbd5e1; text-decoration:none; }
.footer a:hover{ color:#fff; }

/* MODAL */
.modal{
  position:fixed; 
  inset:0;
  background: rgba(3,7,18,.6);
  display:none;
  align-items:center; 
  justify-content:center;
  padding: 18px;
  z-index:200;
}
.modal.show{ 
  display:flex; 
}

/* --- MODIFICADO: Scroll interno para móvil --- */
.modal-card{
  background:#fff;
  border-radius: 18px;
  width: min(900px, 98%);
  padding: 16px;
  position:relative;
  box-shadow: var(--shadow);

  max-height: calc(100vh - 40px); /* 🔥 clave para permitir scroll */
  overflow-y: auto;               /* 🔥 se puede deslizar dentro */
}

/* Cerrar botón */
.modal-close{
  position:absolute; 
  top:10px; 
  right:10px;
  border:none; 
  background:#f3f4f6;
  width:36px; 
  height:36px; 
  border-radius:50%;
  font-size:18px; 
  cursor:pointer;
}

/* Contenido del modal */
.modal-grid{
  display:grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 12px;
}

.modal-img img{
  border-radius: 14px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.modal-body h3{ 
  font-size:22px; 
  margin-bottom:6px; 
}
.modal-body p{ 
  color:#6b7280; 
  margin-bottom:10px; 
}
.modal-price{
  font-size:20px; 
  font-weight:800; 
  margin-bottom:12px;
  color:#111827;
}

/* RESPONSIVE */
@media (max-width: 1000px){
  .grid{ grid-template-columns: repeat(3, 1fr); }
  .hero-grid{ grid-template-columns: 1fr; }
}

@media (max-width: 720px){
  .grid{ grid-template-columns: repeat(2, 1fr); }
  .promo-card{ 
    grid-template-columns: 1fr; 
    text-align:center; 
  }
  .section-head{ 
    flex-direction: column; 
    align-items:flex-start; 
  }
  .hero-highlights{ 
    grid-template-columns: 1fr; 
  }
  .modal-grid{ 
    grid-template-columns: 1fr; 
  }
}

@media (max-width: 520px){
  .grid{ grid-template-columns: 1fr; }
  .nav{
    position: absolute;
    top: 62px; 
    right: 4%;
    background:#fff;
    border:1px solid var(--line);
    border-radius: 14px;
    padding: 12px;
    display:none;
    flex-direction:column;
    width: 92%;
    box-shadow: var(--shadow);
  }
  .nav.open{ display:flex; }
  .nav-toggle{ display:block; }
}

/* ===========================================================
   ⭐ NUEVO BOTÓN ESPECIAL PARA "Ver detalles"
   =========================================================== */

.btn-details {
  background-color: #898e94 !important;   /* Azul sólido */
  color: #ffffff !important;
  border: none !important;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: inline-block;
  transition: background-color .2s ease, transform .15s ease;
}

.btn-details:hover {
  background-color: #e5e7eb !important;   /* Gris claro */
  color: #111827 !important;
  transform: translateY(-2px);
}
