/* ===============================
   Farmacia Reyes - styles.css
   ÚNICA fuente de estilos
   =============================== */

:root{
  --bg:#ffffff;
  --text:#0f172a;
  --muted:#475569;
  --card:#f8fafc;
  --border:#e2e8f0;
  --brand:#1e4db7;
  --brand2:#6fcf97;
  --radius:18px;

  /* imagen del hero (ajusta la ruta si está en /assets/img/) */
  --hero-img: url("home_img.jpg");

  /* scroll offset por header sticky */
  --header-h: 120px;
}

*{ box-sizing:border-box; }
html{
  scroll-behavior:smooth;
  scroll-padding-top: var(--header-h);
}
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background:var(--bg);
  line-height:1.5;

  
a{ color:inherit; text-decoration:none; }
.container{ width:min(1100px, 92%); margin:0 auto; }
section{ padding:56px 0; scroll-margin-top: var(--header-h); }

/* ===============================
   Header + Nav
   =============================== */
header{
  position:sticky; top:0; z-index:50;
  background:rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}

.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px 0;
  gap:16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  flex: 0 0 auto;
  min-width: 240px;
}

.logo-main{ height:86px; width:auto; }

/* nav desktop */
.nav-links{
  display:block;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-links ul{
  list-style:none;
  display:flex;
  gap:10px;
  margin:0;
  padding:0;
  justify-content:flex-end;
  flex-wrap:nowrap;
}

.nav-links a{
  padding:6px 8px;
  border-radius:12px;
  font-weight:600;
  color:var(--muted);
  white-space:nowrap;
}

.nav-links a:hover{
  background:#eef2ff;
  color:var(--text);
}

/* "Online (Próx.)" */
.nav-disabled{
  opacity:.65;
  cursor:not-allowed;
  pointer-events:none; /* mantiene el hover/title? no, por eso mejor usar badge */
}

/* Badge Próx (recomendado en HTML) */
.soon-badge{
  margin-left:6px;
  font-size:11px;
  padding:2px 8px;
  border-radius:999px;
  background:#eef2ff;
  color:var(--brand);
  font-weight:700;
}

/* Burger solo móvil */
.burger{ display:none; border:1px solid var(--border); background:#fff; border-radius:12px; padding:8px 12px; font-size:18px; cursor:pointer; }

@media (max-width: 680px){
  :root{ --header-h: 90px; }
  .nav-links{ display:none; }
  .burger{ display:inline-flex; align-items:center; justify-content:center; }
  .logo-main{ height:44px; }
  .brand{ min-width:0; }
  .brand img{ max-width: 180px; }
}

/* ===============================
   Hero
   =============================== */
.hero{
  position:relative;
  min-height:72vh;
  display:grid;
  align-items:center;
  padding:56px 0;
  overflow:hidden;
}
.hero::before{
  content:"";
  position:absolute; inset:0;
  background-image: var(--hero-img);
  background-size:cover;
  background-position:center;
  transform:scale(1.03);
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background: linear-gradient(
    90deg,
    rgba(15,23,42,.72) 0%,
    rgba(15,23,42,.52) 45%,
    rgba(15,23,42,.18) 100%
  );
}
.hero-content{
  position:relative; z-index:2;
  color:#fff;
  max-width:680px;
}
.hero h1{
  margin:0 0 12px;
  font-size: clamp(34px, 4vw, 54px);
  line-height:1.05;
  letter-spacing:-.03em;
}
.hero p{
  margin:0 0 22px;
  color: rgba(255,255,255,.86);
  font-size: clamp(16px, 1.4vw, 18px);
}
.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; }

/* Buttons (reutilizables) */
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px;
  border-radius:14px;
  font-weight:700;
  border:1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color:#fff;
  transition: transform .12s ease, background .12s ease;
}
.btn:hover{ transform: translateY(-1px); background: rgba(255,255,255,.16); }
.btn.primary{
  background: linear-gradient(135deg, var(--brand), #3b82f6);
  border: 1px solid rgba(255,255,255,0);
}

.hero-badges{
  margin-top:18px;
  display:flex; gap:10px; flex-wrap:wrap;
  color: rgba(255,255,255,.85);
  font-weight:600;
  font-size:14px;
}
.pill{
  padding:8px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.12);
  border:1px solid rgba(255,255,255,.16);
}

/* ===============================
   Titles + Cards
   =============================== */
.section-title{
  display:flex; align-items:end; justify-content:space-between;
  gap:14px; margin-bottom:18px;
}
.section-title h2{
  margin:0;
  font-size:28px;
  letter-spacing:-.02em;
}
.section-title p{ margin:0; color:var(--muted); }

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:14px;
}
.card{
  grid-column: span 3;
  background: var(--card);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: 0 8px 22px rgba(2,6,23,.05);
}
.card h3{ margin:10px 0 6px; font-size:16px; }
.card p{ margin:0; color:var(--muted); font-size:14px; }
.icon{
  width:42px; height:42px; border-radius:14px;
  display:grid; place-items:center;
  background:#eef2ff; color:var(--brand);
  font-weight:900;
}

/* ===============================
   Panels + Split layouts
   =============================== */
.split{
  display:grid;
  grid-template-columns: 50% 50%;
  gap:16px;
}

.panel{
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: 0 8px 22px rgba(2,6,23,.04);
}
.hours li, .contact li{ margin:8px 0; color:var(--muted); }
.kv{ display:flex; gap:8px; flex-wrap:wrap; color:var(--muted); font-size:14px; }
.kv b{ color:var(--text); }

.map{
  width:100%;
  height:320px;
  border:1px solid var(--border);
  border-radius: var(--radius);
  overflow:hidden;
  background:#f1f5f9;
}

@media (max-width: 920px){
  .card{ grid-column: span 6; }
  .split{ grid-template-columns: 1fr; }
}
@media (max-width: 520px){
  .card{ grid-column: span 12; }
}

/* ===============================
   Market section
   =============================== */
.market-head{
  display:flex;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
}
.market-logo{
  height:76px;
  width:auto;
  margin-bottom:6px;
}
.market-text{ min-width:220px; }

#market{ padding-bottom:32px; }

/* ===============================
   Mobile menu overlay
   =============================== */
.mobile-menu{
  position:fixed;
  inset:0;
  background: rgba(2,6,23,.45);
  backdrop-filter: blur(4px);
  z-index:999;
  padding:18px;
}
.mobile-menu-card{
  max-width:420px;
  margin:0 auto;
  background:#fff;
  border-radius:18px;
  border:1px solid var(--border);
  box-shadow: 0 18px 60px rgba(2,6,23,.25);
  padding:14px;
}
.mobile-menu-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:8px 6px 10px;
  border-bottom:1px solid var(--border);
  margin-bottom:10px;
}
.mobile-menu .close{
  border:0;
  background:transparent;
  font-size:18px;
  cursor:pointer;
}
.m-item{
  display:block;
  padding:12px 10px;
  border-radius:14px;
  color:var(--text);
  font-weight:600;
}
.m-item:hover{ background:#f1f5f9; }
.m-item.disabled{ color:var(--muted); opacity:.65; cursor:not-allowed; }

/* ===============================
   Facebook embed
   =============================== */
#social .fb-page,
#social .fb-page span,
#social .fb-page iframe{
  width:100% !important;
}
#social .panel .fb-page{
  max-width: 560px !important;
  margin: 0 auto !important;
}

/* ===============================
   Footer
   =============================== */
footer{
  padding:26px 0;
  border-top:1px solid var(--border);
  color:var(--muted);
  font-size:14px;
}


/* ===== RX / Vaccines / Social ===== */

.info-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:16px;
}

.info-card{
  grid-column: span 6;
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:20px;
  box-shadow: 0 8px 22px rgba(2,6,23,.04);
}

.info-card h3{
  margin:10px 0 8px;
}

.info-card p{
  margin:0;
  color:var(--muted);
  font-size:15px;
}

.rx-app-card{
  grid-column: span 6;
}

.app-buttons{
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  margin-top:14px;
}

.app-buttons img{
  height:48px;
  width:auto;
  transition:transform .15s ease;
}

.app-buttons img:hover{
  transform:scale(1.05);
}

.feature-list{
  margin:10px 0 0;
  padding-left:18px;
  color:var(--muted);
}

.feature-list li{
  margin:6px 0;
}

.small-note{
  margin-top:12px !important;
  font-size:14px !important;
  color:var(--muted);
}

.social-links{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:12px;
}

.social-btn{
  color:#0f172a !important;
  background:#fff !important;
  border:1px solid var(--border) !important;
}

@media (max-width: 920px){
  .info-card{
    grid-column: span 12;
  }
}

.social-links .btn{
  min-width:160px;
}

.info-card{
  grid-column: span 6;
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:20px;
  box-shadow: 0 8px 22px rgba(2,6,23,.04);
  transition:transform .15s ease, box-shadow .15s ease;
}

.info-card:hover{
  transform:translateY(-2px);
  box-shadow: 0 12px 28px rgba(2,6,23,.08);
}

/* ===============================
   Info / Ubicación y contacto
   =============================== */
.info-layout{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:16px;
  align-items:start;
}

.info-main,
.info-side{
  display:grid;
  gap:16px;
}

.info-block + .info-block{
  margin-top:18px;
}

.info-block p{
  margin:0 0 10px;
  color:var(--muted);
}

.info-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}

.info-light-btn{
  color:#0f172a !important;
  background:#fff !important;
  border:1px solid var(--border) !important;
}

.info-map{
  min-height:360px;
}

.social-feed-panel{
  padding:14px;
}

.social-links .btn{
  min-width:160px;
}

@media (max-width: 920px){
  .info-layout{
    grid-template-columns: 1fr;
  }

  .info-map{
    min-height:320px;
  }
}

/* ===============================
   Floating Online Button
   =============================== */
.floating-online{
  position:fixed;
  right:18px;
  bottom:18px;
  z-index:60;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:12px 16px;
  border-radius:999px;
  font-weight:800;
  font-size:14px;
  color:#fff;
  background:linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow:0 14px 30px rgba(15,23,42,.18);
  border:1px solid rgba(255,255,255,.18);
}

.floating-online span{
  background:rgba(255,255,255,.18);
  padding:3px 8px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
}

.floating-online:hover{
  transform:translateY(-2px);
}

@media (max-width: 680px){
  .floating-online{
    right:14px;
    bottom:14px;
    padding:11px 14px;
    font-size:13px;
  }
}

/* ===============================
   Servicios PRO layout
   =============================== */
.services-grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap:16px;
}

/* Card base */
.service-card{
  grid-column: span 3;
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:18px;
  box-shadow: 0 8px 22px rgba(2,6,23,.04);
  transition:transform .15s ease, box-shadow .15s ease;
}

.service-card:hover{
  transform:translateY(-3px);
  box-shadow: 0 12px 28px rgba(2,6,23,.08);
}

.service-card h3{
  margin:10px 0 6px;
}

.service-card p{
  margin:0;
  color:var(--muted);
  font-size:14px;
}

/* Card principal RX */
.service-card.large{
  grid-column: span 6;
}

/* Lista dentro */
.service-card .feature-list{
  margin-top:10px;
}

/* App buttons dentro */
.service-card .app-buttons{
  margin-top:12px;
}

/* Responsive */
@media (max-width: 920px){
  .service-card{
    grid-column: span 6;
  }

  .service-card.large{
    grid-column: span 12;
  }
}

@media (max-width: 520px){
  .service-card{
    grid-column: span 12;
  }
}

/* ===============================
   Vacunas PRO
   =============================== */
.vaccines-pro{
  display:grid;
  grid-template-columns: 1.35fr .85fr;
  gap:16px;
  align-items:stretch;
}

.vaccine-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:22px;
  box-shadow: 0 8px 22px rgba(2,6,23,.04);
  transition:transform .15s ease, box-shadow .15s ease;
}

.vaccine-card:hover{
  transform:translateY(-2px);
  box-shadow: 0 12px 28px rgba(2,6,23,.08);
}

.vaccine-card h3{
  margin:10px 0 8px;
}

.vaccine-card p{
  margin:0;
  color:var(--muted);
}

.vaccine-intro{
  margin-bottom:16px !important;
}

.vaccine-list.two-cols{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
  margin-top:12px;
}

.vaccine-pill{
  display:flex;
  align-items:center;
  min-height:52px;
  padding:12px 14px;
  border:1px solid var(--border);
  border-radius:14px;
  background:#f8fafc;
  font-weight:600;
  color:var(--text);
}

.vaccine-notes{
  margin:14px 0 0;
  padding-left:18px;
  color:var(--muted);
}

.vaccine-notes li{
  margin:8px 0;
}

.vaccine-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:18px;
}

@media (max-width: 920px){
  .vaccines-pro{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px){
  .vaccine-list.two-cols{
    grid-template-columns: 1fr;
  }
}
