/* ========== Base ========== */
:root{
  --bg: #F6F8FB;
  --card: #ffffff;
  --text: #0F172A;
  --muted: rgba(15, 23, 42, .65);
  --line: rgba(15, 23, 42, .10);

  --primary: #1E5AA8;
  --primary-2: #174B8C;

  --radius: 18px;
  --shadow: 0 10px 30px rgba(2, 8, 23, 0.08);
}

*{ box-sizing:border-box; }

html,
body{
  height:100%;
}

body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  overflow-x: hidden;
}

a{
  color: inherit;
  text-decoration: none;
}

img{
  max-width:100%;
  display:block;
}

.container{
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

/* Utilities */
.muted{ color: var(--muted); }
.small{ font-size: .92rem; }
.m0{ margin:0; }
.mt10{ margin-top:10px; }
.mt16{ margin-top:16px; }
.w100{ width:100%; }

.hr{
  border:0;
  border-top:1px solid var(--line);
  margin: 18px 0;
}

/* Sections */
.section{
  padding: 54px 0;
}

.section.alt{
  background: rgba(255,255,255,.55);
  border-top: 1px solid rgba(15,23,42,.06);
  border-bottom: 1px solid rgba(15,23,42,.06);
}

.section-head{
  margin-bottom: 18px;
}

.section-head h2{
  margin: 0 0 6px;
  font-size: 1.75rem;
}

.section-head p{
  margin:0;
}

/* Grids */
.grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.grid4{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.mini-grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:16px;
}

/* Cards */
.card{
  background: var(--card);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 10px 24px rgba(2,8,23,.06);
}

.card.soft{
  box-shadow: none;
  background: rgba(255,255,255,.75);
}

.card.pad0{
  padding:0;
  overflow:hidden;
}

.full-width-card{
  width: 100%;
}

.icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(30, 90, 168, .10);
  font-size: 20px;
  margin-bottom: 10px;
}

.small-icon{
  width:42px;
  height:42px;
  min-width:42px;
  font-size:18px;
}

.card h3{
  margin: 6px 0 6px;
}

.card p{
  margin: 0;
  color: rgba(15,23,42,.70);
}

.list{
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(15,23,42,.74);
}

.list li{
  margin: 6px 0;
}

.note{
  background: rgba(30, 90, 168, .08);
  border: 1px solid rgba(30, 90, 168, .14);
  padding: 12px 14px;
  border-radius: 16px;
  color: rgba(15,23,42,.78);
}

.link{
  color: var(--primary);
  font-weight: 800;
}

.link:hover{
  text-decoration: underline;
}

/* ========== Topbar ========== */
.topbar{
  background:#071225;
  color:rgba(255,255,255,.92);
  font-size:.95rem;
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:10px 0;
}

.topbar-left,
.topbar-right{
  display:flex;
  align-items:center;
  gap:8px;
}

.dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background: #36D399;
  box-shadow: 0 0 0 4px rgba(54, 211, 153, .18);
}

.toplink{
  color:rgba(255,255,255,.95);
  text-decoration:none;
}

.toplink:hover{
  text-decoration:underline;
}

.sep{
  opacity:.6;
}

.menu-webmail{
  background:#eef2ff;
  padding:6px 10px;
  border-radius:8px;
  font-weight:600;
}

.menu-webmail::before{
  content:"✉";
  margin-right:6px;
  font-size:0.9em;
}

/* ========== Header ========== */
.header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,248,251,.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(15,23,42,.08);
}

.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand{
  display:flex;
  align-items:center;
  gap: 12px;
}

.brand-logo{
  height: 74px;
  width: auto;
}

.nav{
  display:flex;
  gap: 18px;
  align-items:center;
}

.nav-link{
  font-weight: 600;
  color: rgba(15,23,42,.78);
  padding: 10px 10px;
  border-radius: 12px;
}

.nav-link:hover{
  background: rgba(15,23,42,.06);
}

.header-actions{
  display:flex;
  align-items:center;
  gap: 10px;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  cursor: pointer;
  white-space: nowrap;
}

.btn:active{
  transform: translateY(1px);
}

.btn-primary{
  background: var(--primary);
  color:#fff;
  box-shadow: 0 10px 20px rgba(30, 90, 168, .18);
}

.btn-primary:hover{
  background: var(--primary-2);
}

.btn-secondary{
  background: rgba(30, 90, 168, .10);
  color: var(--primary);
  border-color: rgba(30, 90, 168, .18);
}

.btn-secondary:hover{
  background: rgba(30, 90, 168, .14);
}

.btn-ghost{
  background: transparent;
  border-color: rgba(15,23,42,.14);
  color: rgba(15,23,42,.82);
}

.btn-ghost:hover{
  background: rgba(15,23,42,.05);
}

/* Hamburger */
.hamburger{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.14);
  background: #fff;
  display:none;
  align-items:center;
  justify-content:center;
  gap: 4px;
  padding: 10px;
}

.hamburger span{
  display:block;
  width: 18px;
  height: 2px;
  background: rgba(15,23,42,.78);
  border-radius: 999px;
}

/* Mobile menu */
.mobile-menu{
  border-top: 1px solid rgba(15,23,42,.08);
  background: rgba(246,248,251,.98);
}

.mobile-menu-inner{
  padding: 12px 0 18px;
  display:flex;
  flex-direction:column;
  gap: 8px;
}

.mobile-link{
  font-weight: 700;
  padding: 12px 12px;
  border-radius: 14px;
  color: rgba(15,23,42,.82);
}

.mobile-link:hover{
  background: rgba(15,23,42,.06);
}

.mobile-cta{
  display:flex;
  flex-direction:column;
  gap: 10px;
  margin-top: 8px;
}

/* ========== Hero ========== */
.hero{
  padding: 34px 0 10px;
}

.hero-inner{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 22px;
  align-items: start;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(30, 90, 168, .10);
  color: var(--primary);
  font-weight: 800;
  letter-spacing: .2px;
  font-size: .92rem;
}

.hero h1{
  margin: 14px 0 10px;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.08;
}

.lead{
  margin: 0 0 16px;
  color: rgba(15,23,42,.72);
  font-size: 1.06rem;
}

.hero-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-pills{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.pill{
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 700;
  color: rgba(15,23,42,.75);
}

.hero-media{
  display:flex;
  flex-direction:column;
  gap: 12px;
}

.hero-photo{
  position: relative;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center 75%;
  min-height: 320px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(15,23,42,.08);
  overflow: hidden;
}

.hero-card{
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: var(--radius);
  padding: 14px 14px;
  box-shadow: 0 8px 18px rgba(2,8,23,.06);
}

.hero-card-title{
  font-weight: 900;
  margin-bottom: 10px;
}

.hero-card-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 8px 0;
}

/* Hero banner principal */
.hero-banner{
  padding: 28px 0 20px;
}

.hero-banner-box{
  min-height: 390px;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 36px 24px;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(11,18,32,.28) 0%, rgba(11,18,32,.10) 40%, rgba(11,18,32,.03) 100%),
    url('/2026/assets/img/hero-farmacia.jpg');
  background-size: cover;
  background-position: 42% 38%;
  box-shadow: var(--shadow);
}

.hero-banner-box::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 18% 52%, rgba(255,255,255,.12) 0%, rgba(255,255,255,.06) 18%, transparent 42%),
    linear-gradient(90deg, rgba(11,18,32,.18) 0%, rgba(11,18,32,.06) 30%, rgba(11,18,32,0) 55%);
}

.hero-banner-box::after{
  content: none;
}

.hero-overlay-content{
  position: relative;
  z-index: 1;
  max-width: 380px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  margin-top: -20px;
  margin-left: -10px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
}

.hero-banner h1,
.hero-overlay-content h1{
  margin: 0 0 8px;
  font-size: clamp(1.9rem, 2.8vw, 2.7rem);
  line-height: 1.04;
  color:#fff;
}

.hero-banner p,
.hero-overlay-content p{
  font-size: .92rem;
  line-height: 1.35;
  color: rgba(255,255,255,.92);
  margin: 0;
}

.hero-banner .btn-secondary{
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: rgba(255,255,255,.18);
}

.hero-banner .btn-secondary:hover{
  background: rgba(255,255,255,.18);
}

.hero-banner .pill{
  padding: 7px 11px;
  font-size: .92rem;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ========== Servicios ========== */
.service-head-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.mini-service{
  display:flex;
  align-items:flex-start;
  gap:14px;
  padding:14px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 16px;
}

.mini-service h4{
  margin: 2px 0 6px;
  font-size: 1.05rem;
}

.mini-service p{
  margin:0;
  color: rgba(15,23,42,.72);
}

.columns-2{
  columns: 3;
  column-gap: 28px;
}

.columns-2 li{
  break-inside: avoid;
  margin-bottom: 8px;
}

.lottery-visual{
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.lottery-visual img{
  max-width: 100%;
  max-height: 250px;
  object-fit: contain;
  display: block;
}

/* ========== Promociones ========== */
.promo{
  display:block;
  background: #fff;
  border: 1px solid rgba(15,23,42,.10);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 10px 22px rgba(2,8,23,.06);
  transition: transform .12s ease, border-color .12s ease;
  min-height: 140px;
}

.promo:hover{
  transform: translateY(-2px);
  border-color: rgba(30, 90, 168, .28);
}

.promo-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

.promo-badge{
  font-weight: 900;
  font-size: .85rem;
  color: var(--primary);
  background: rgba(30, 90, 168, .10);
  border: 1px solid rgba(30, 90, 168, .18);
  padding: 6px 10px;
  border-radius: 999px;
}

.promo-icon{
  font-size: 20px;
  opacity: .9;
}

.promo-tag{
  font-size:16px;
  opacity:.85;
}

.promo-mini-logo{
  width: 62px;
  height: 38px;
  object-fit: contain;
  display: block;
  padding: 4px;
  background: #fff;
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 8px;
}

.promo-title{
  margin-top: 12px;
  font-weight: 900;
  font-size: 1.05rem;
}

.promo-cta{
  margin-top: 8px;
  color: rgba(15,23,42,.70);
  font-weight: 800;
}

/* ========== Redes sociales ========== */
.facebook-feed-card{
  overflow: hidden;
  background:linear-gradient(180deg,#ffffff,#f8fafc);
}

.facebook-feed-card iframe{
  width: 100%;
  max-width: 100%;
  display: block;
  border: 0;
  border-radius: 14px;
}

.facebook-card-logo{
  display:block;
  max-width:240px;
  margin:36px auto 0 auto;
  opacity:.9;
}

.facebook-frame{
  padding:12px;
  background:#f8fafc;
  border-radius:16px;
  box-shadow:0 8px 24px rgba(15,23,42,.08);
}

.facebook-frame iframe{
  width:100%;
  border-radius:12px;
  display:block;
}

.social-logo{
  max-width: 180px;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 24px auto;
}

.social-logo-wrapper{
  display:flex;
  justify-content:center;
  margin-bottom:25px;
}

.social-logo-wrapper img{
  max-width:220px;
  height:auto;
  display:block;
}

.social-note{
  margin-top:10px;
}

.social-buttons{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.social-card .btn + .btn{
  margin-top:12px;
}

/* ========== Contacto / mapa ========== */
.map iframe{
  display:block;
}

.kv{
  display:flex;
  justify-content:space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(15,23,42,.12);
}

.kv:last-child{
  border-bottom:0;
}

.k{
  font-weight: 800;
  color: rgba(15,23,42,.80);
}

.v{
  color: rgba(15,23,42,.70);
}

.hours .row{
  display:flex;
  justify-content:space-between;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(15,23,42,.12);
}

.hours .row:last-child{
  border-bottom:0;
}

.cta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
}

.cta-actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ========== Footer ========== */
.footer{
  padding: 26px 0;
  border-top: 1px solid rgba(15,23,42,.08);
  background: rgba(255,255,255,.55);
}

.footer-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 14px;
}

.footer-brand{
  font-weight: 900;
}

.footer-right{
  display:flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-link{
  color: rgba(15,23,42,.74);
  font-weight: 800;
}

.footer-link:hover{
  text-decoration: underline;
}

/* ========== Responsive ========== */
@media (max-width: 980px){
  .hero-inner{
    grid-template-columns: 1fr;
  }

  .grid4{
    grid-template-columns: repeat(2, 1fr);
  }

  .columns-2{
    columns: 2;
  }

  .hero-banner-box{
    min-height: 460px;
    padding: 34px 24px;
    background-position: center center;
  }

  .hero-banner-box::after{
    left:16px;
    width: calc(100% - 32px);
    max-width: none;
  }

  .hero-overlay-content{
    max-width: 100%;
  }
}

@media (max-width: 860px){
  .nav{
    display:none;
  }

  .hamburger{
    display:inline-flex;
  }

  .grid3,
  .grid2,
  .mini-grid2{
    grid-template-columns: 1fr;
  }

  .columns-2{
    columns: 1;
  }
}

@media (max-width: 768px){
  .topbar-inner{
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
    padding:10px 0;
  }

  .topbar-left,
  .topbar-right{
    width:100%;
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    gap:8px;
  }

  .topbar-right{
    justify-content:flex-start;
  }

  .sep{
    display:none;
  }

  .toplink{
    display:inline-flex;
    align-items:center;
    padding:6px 10px;
    border-radius:999px;
    background:rgba(255,255,255,.08);
    line-height:1;
  }

  .hero-banner-box{
    min-height: 390px;
    padding: 22px 18px;
    border-radius: 22px;
  }

  .hero-banner-box::after{
    top:10px;
    left:10px;
    width: calc(100% - 20px);
    height: auto;
    bottom:10px;
    border-radius:18px;
  }

  @media (max-width: 768px){
  .hero-overlay-content{
    max-width: 290px;
    padding: 12px 12px;
    border-radius: 18px;
    margin-top: 2px;
    margin-left: 2px;
  }

  .hero-banner h1,
  .hero-overlay-content h1{
    font-size: 1.45rem;
    line-height: 1.08;
    margin-bottom: 8px;
  }

  .hero-banner p,
  .hero-overlay-content p{
    font-size: .80rem;
    line-height: 1.35;
  }
}

@media (max-width: 520px){
  .container{
    width: min(1120px, calc(100% - 26px));
  }

  .btn{
    width: 100%;
  }

  .header-actions .btn-primary{
    display:none;
  }

  .grid4{
    grid-template-columns: 1fr;
  }

  .cta{
    flex-direction: column;
    align-items: stretch;
  }

  .hero-banner{
    padding: 18px 0 14px;
  }

  .hero-banner h1,
  .hero-overlay-content h1{
    font-size: clamp(2.1rem, 3.5vw, 3.2rem);
  }

  .hero-banner p,
  .hero-overlay-content p{
    font-size: 1rem;
  }

  .social-buttons{
    gap:14px;
  }
}
