/* ============================================================
   Dr. Mena Aplicano — Diseño Médico Clínico
   Paleta: Azul marino + Violeta + Blanco
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
  --blue:         #1d4ed8;
  --blue-dark:    #1e3a8a;
  --blue-deeper:  #0f2460;
  --blue-light:   #dbeafe;
  --blue-pale:    #eff6ff;
  --violet:       #6d28d9;
  --violet-mid:   #8b5cf6;
  --violet-light: #ede9fe;
  --white:        #ffffff;
  --dark:         #0f172a;
  --gray-700:     #374151;
  --gray-500:     #6b7280;
  --gray-200:     #e5e7eb;
  --gray-100:     #f3f4f6;
  --red:          #dc2626;
  --shadow-sm:    0 1px 4px rgba(30,58,138,.08);
  --shadow-md:    0 4px 16px rgba(30,58,138,.14);
  --shadow-lg:    0 12px 40px rgba(30,58,138,.18);
  --radius:       12px;
  --radius-lg:    20px;
  --transition:   all .25s ease;
}

body { font-family: 'Poppins','Segoe UI',sans-serif; color: var(--gray-700); background: var(--white); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
h1,h2,h3,h4 { font-weight: 700; line-height: 1.25; color: var(--dark); }
h1 { font-size: clamp(1.9rem,4.5vw,3rem); }
h2 { font-size: clamp(1.5rem,3vw,2.2rem); }
h3 { font-size: 1.2rem; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.5rem; border-radius: 50px; border: none;
  font-size: .93rem; font-weight: 600; cursor: pointer;
  transition: var(--transition); text-align: center; font-family: inherit;
}
.btn-primary  { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 4px 18px rgba(29,78,216,.35); }
.btn-violet   { background: var(--violet); color: #fff; }
.btn-violet:hover { background: #5b21b6; transform: translateY(-1px); box-shadow: 0 4px 18px rgba(109,40,217,.35); }
.btn-outline  { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-ghost    { background: rgba(255,255,255,.15); color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-ghost:hover { background: rgba(255,255,255,.25); }
.btn-sm { padding: .4rem .95rem; font-size: .82rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #b91c1c; }

/* ── Labels ──────────────────────────────── */
.section-tag {
  display: inline-block; background: var(--blue-pale); color: var(--blue);
  padding: .28rem .85rem; border-radius: 50px; font-size: .75rem;
  font-weight: 700; letter-spacing: .07em; text-transform: uppercase; margin-bottom: .65rem;
}
.section-tag.violet { background: var(--violet-light); color: var(--violet); }

/* ── Flash ───────────────────────────────── */
.flash { padding: .85rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-size: .9rem; font-weight: 500; }
.flash-success { background: #dcfce7; color: #166534; border-left: 4px solid #22c55e; }
.flash-error   { background: #fee2e2; color: #991b1b; border-left: 4px solid #ef4444; }

/* ══════════════════════════════════════════
   HEADER
══════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 12px rgba(30,58,138,.07);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: .8rem 1.25rem; gap: 1rem; }
.site-logo img { height: 50px; width: auto; }
.site-logo-text { font-size: 1rem; font-weight: 700; color: var(--blue-dark); display: none; }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav a {
  font-size: .88rem; font-weight: 500; color: var(--gray-700);
  position: relative; transition: color .2s; white-space: nowrap;
}
.site-nav a::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 2px; background: var(--blue); transition: width .2s; }
.site-nav a:hover, .site-nav a.active { color: var(--blue); }
.site-nav a:hover::after, .site-nav a.active::after { width: 100%; }
.site-nav a.nav-doc { color: var(--violet); font-weight: 600; }
.site-nav a.nav-doc::after { background: var(--violet); }
.site-nav a.nav-doc:hover { color: var(--violet); }

.header-actions { display: flex; align-items: center; gap: .75rem; }
.cart-btn {
  position: relative; display: flex; align-items: center; gap: .5rem;
  background: var(--blue-pale); color: var(--blue);
  padding: .55rem 1.1rem; border-radius: 50px; font-weight: 600; font-size: .88rem;
  transition: var(--transition); border: none; cursor: pointer;
}
.cart-btn:hover { background: var(--blue); color: #fff; }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--violet); color: #fff; width: 20px; height: 20px;
  border-radius: 50%; font-size: .68rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .4rem; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); transition: var(--transition); }

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--blue-deeper) 0%, var(--blue-dark) 55%, var(--violet) 100%);
  color: #fff; overflow: hidden; position: relative;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(109,40,217,.25) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: 2rem; min-height: 520px; padding: 4rem 1.25rem;
  max-width: 1200px; margin: 0 auto; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25);
  padding: .35rem .9rem; border-radius: 50px; font-size: .75rem; font-weight: 500; margin-bottom: 1rem;
}
.hero-title { font-size: clamp(2rem,4.5vw,3.1rem); color: #fff; margin-bottom: 1rem; line-height: 1.2; }
.hero-title em { font-style: normal; color: #a5b4fc; }
.hero-subtitle { opacity: .85; margin-bottom: 2rem; max-width: 460px; font-size: 1rem; }
.hero-cta { display: flex; gap: .85rem; flex-wrap: wrap; }
.hero-img img {
  max-height: 420px; margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  border: 3px solid rgba(255,255,255,.15);
}
.hero-stats { display: flex; gap: 2rem; margin-top: 2rem; }
.hero-stat strong { display: block; font-size: 1.7rem; color: #a5b4fc; }
.hero-stat span { font-size: .78rem; opacity: .7; }

/* ══════════════════════════════════════════
   TRUST BAR
══════════════════════════════════════════ */
.trust-bar { background: var(--blue-pale); border-bottom: 1px solid var(--blue-light); padding: 1.25rem 0; }
.trust-bar-inner {
  display: flex; justify-content: space-around; align-items: center;
  flex-wrap: wrap; gap: 1rem; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem;
}
.trust-item { display: flex; align-items: center; gap: .65rem; }
.trust-item img { width: 34px; }
.trust-item span { font-size: .85rem; font-weight: 600; color: var(--blue-dark); }

/* ══════════════════════════════════════════
   PRODUCTS SECTION
══════════════════════════════════════════ */
.products-section { padding: 5rem 0; }
.products-header { text-align: center; margin-bottom: 2.25rem; }
.products-header p { color: var(--gray-500); max-width: 520px; margin: .5rem auto 0; }

.category-filters { display: flex; gap: .55rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2.5rem; }
.cat-filter {
  padding: .42rem 1.15rem; border-radius: 50px; border: 2px solid var(--gray-200);
  background: var(--white); color: var(--gray-500); font-size: .83rem; font-weight: 500;
  cursor: pointer; transition: var(--transition); font-family: inherit;
}
.cat-filter:hover { border-color: var(--blue); color: var(--blue); }
.cat-filter.active { border-color: var(--blue); background: var(--blue); color: #fff; }

.products-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(230px,1fr)); gap: 1.4rem; }

/* ── Product Card ────────────────────────── */
.product-card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--gray-200);
  transition: var(--transition); overflow: hidden; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--blue-light); }

.product-img-wrap { position: relative; cursor: default; }
.product-img {
  aspect-ratio: 1; background: var(--blue-pale);
  display: flex; align-items: center; justify-content: center; padding: 1.25rem; overflow: hidden;
  cursor: default;
}
.product-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; cursor: default; pointer-events: none; }
/* La imagen NO escala al hacer hover — solo los botones son interactivos */

.product-badge {
  position: absolute; top: .7rem; left: .7rem;
  background: var(--red); color: #fff;
  padding: .18rem .6rem; border-radius: 50px; font-size: .7rem; font-weight: 700;
}
.product-badge.new { background: var(--violet); }

.product-info { padding: 1rem 1.1rem; flex: 1; display: flex; flex-direction: column; gap: .3rem; }
.product-category { font-size: .7rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .05em; }
.product-name { font-size: .98rem; font-weight: 700; color: var(--dark); }
.product-desc { font-size: .8rem; color: var(--gray-500); flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.product-footer { margin-top: .85rem; display: flex; flex-direction: column; gap: .6rem; }
.product-price { display: flex; align-items: baseline; gap: .5rem; }
.price-real { font-size: 1.1rem; font-weight: 700; color: var(--blue-dark); }
.price-sale { font-size: 1.1rem; font-weight: 700; color: var(--red); }
.price-was  { font-size: .75rem; color: var(--gray-500); text-decoration: line-through; }

.card-actions { display: flex; align-items: center; gap: .5rem; }
.qty-control-sm {
  display: flex; align-items: center; gap: .3rem;
  border: 1.5px solid var(--gray-200); border-radius: 50px; padding: .2rem .5rem;
}
.qty-control-sm .q-btn {
  width: 22px; height: 22px; border-radius: 50%; border: none; background: none;
  cursor: pointer; font-size: 1rem; color: var(--blue-dark); line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.qty-control-sm .q-btn:hover { background: var(--blue-pale); }
.qty-control-sm .q-num { min-width: 18px; text-align: center; font-size: .85rem; font-weight: 700; }

.btn-add-cart {
  flex: 1; padding: .5rem .6rem; border-radius: 50px; background: var(--blue);
  color: #fff; border: none; cursor: pointer; font-size: .82rem; font-weight: 600;
  transition: var(--transition); font-family: inherit; white-space: nowrap;
}
.btn-add-cart:hover { background: var(--blue-dark); }

.btn-ver-mas {
  width: 100%; margin-top: .2rem; padding: .42rem; border-radius: 50px;
  background: none; border: 1.5px solid var(--gray-200); color: var(--gray-500);
  font-size: .78rem; font-weight: 600; cursor: pointer; transition: var(--transition); font-family: inherit;
}
.btn-ver-mas:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-pale); }

/* ══════════════════════════════════════════
   PRODUCT MODAL
══════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.65);
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  padding: 1rem; opacity: 0; pointer-events: none; transition: opacity .3s;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-box {
  background: var(--white); border-radius: var(--radius-lg); width: 100%;
  max-width: 820px; max-height: 90vh; overflow-y: auto;
  box-shadow: 0 25px 80px rgba(15,23,42,.35);
  transform: scale(.95) translateY(20px); transition: transform .3s ease;
  position: relative;
}
.modal-overlay.open .modal-box { transform: scale(1) translateY(0); }

/* Barra sticky con título y botón cerrar — siempre visible al hacer scroll */
.modal-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.25rem .85rem 1.5rem; gap: 1rem;
  border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; background: var(--white); z-index: 5;
  flex-shrink: 0;
}
.modal-topbar-title {
  font-size: .9rem; font-weight: 700; color: var(--dark);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.modal-close {
  width: 36px; height: 36px; border-radius: 50%; border: none; flex-shrink: 0;
  background: var(--gray-100); color: var(--gray-700); font-size: 1.3rem;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.modal-close:hover { background: var(--gray-200); }

.modal-grid { display: grid; grid-template-columns: 1fr 1fr; }

.modal-gallery { padding: 1.5rem; background: var(--blue-pale); border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.modal-main-img { aspect-ratio: 1; background: var(--white); border-radius: var(--radius); overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 1rem; margin-bottom: .75rem; }
.modal-main-img img { width: 100%; height: 100%; object-fit: contain; transition: opacity .2s; }
.modal-thumbs { display: flex; gap: .5rem; flex-wrap: wrap; }
.modal-thumb {
  width: 58px; height: 58px; border-radius: 8px; overflow: hidden;
  background: var(--white); padding: .3rem; cursor: pointer;
  border: 2px solid transparent; transition: var(--transition);
}
.modal-thumb:hover, .modal-thumb.active { border-color: var(--blue); }
.modal-thumb img { width: 100%; height: 100%; object-fit: contain; }

.modal-info { padding: 2rem; }
.modal-cat  { font-size: .72rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .07em; margin-bottom: .4rem; }
.modal-name { font-size: 1.6rem; font-weight: 800; color: var(--dark); margin-bottom: .75rem; line-height: 1.2; }
.modal-price { margin-bottom: 1rem; display: flex; align-items: baseline; gap: .6rem; }
.modal-price-real { font-size: 1.8rem; font-weight: 700; color: var(--blue-dark); }
.modal-price-sale { font-size: 1.8rem; font-weight: 700; color: var(--red); }
.modal-price-was  { font-size: .95rem; color: var(--gray-500); text-decoration: line-through; }
.modal-desc { font-size: .9rem; color: var(--gray-500); line-height: 1.8; margin-bottom: 1.5rem; }
.modal-divider { border: none; border-top: 1px solid var(--gray-200); margin: 1.25rem 0; }

.modal-qty-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.modal-qty-label { font-size: .85rem; font-weight: 600; color: var(--gray-700); }
.qty-control-lg {
  display: flex; align-items: center; gap: .6rem;
  border: 2px solid var(--gray-200); border-radius: 50px; padding: .3rem .75rem;
}
.qty-control-lg .q-btn {
  width: 28px; height: 28px; border-radius: 50%; border: none; background: none;
  cursor: pointer; font-size: 1.1rem; color: var(--blue-dark); font-weight: 700;
  display: flex; align-items: center; justify-content: center; transition: background .15s;
}
.qty-control-lg .q-btn:hover { background: var(--blue-pale); }
.qty-control-lg .q-num { min-width: 24px; text-align: center; font-size: 1rem; font-weight: 700; }

.modal-add-btn {
  width: 100%; padding: .9rem; border-radius: 50px; background: var(--blue);
  color: #fff; border: none; cursor: pointer; font-size: 1rem; font-weight: 700;
  transition: var(--transition); font-family: inherit;
}
.modal-add-btn:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(29,78,216,.3); }
.modal-add-btn.added { background: #16a34a; }

/* ══════════════════════════════════════════
   ABOUT / DOCTOR SECTION
══════════════════════════════════════════ */
.about-section {
  background: linear-gradient(135deg, var(--blue-deeper) 0%, var(--blue-dark) 60%, var(--violet) 100%);
  color: #fff; padding: 5rem 0;
}
.about-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.about-img img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); border: 3px solid rgba(255,255,255,.15); }
.about-content .section-tag { background: rgba(165,180,252,.2); color: #a5b4fc; }
.about-content h2 { color: #fff; margin-bottom: 1rem; }
.about-content p { opacity: .85; margin-bottom: 1.1rem; line-height: 1.8; }
.about-badges { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.about-badge { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); padding: .45rem 1rem; border-radius: 50px; font-size: .8rem; }

/* ══════════════════════════════════════════
   FEATURES
══════════════════════════════════════════ */
.features-section { padding: 4.5rem 0; background: var(--gray-100); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(195px,1fr)); gap: 1.25rem; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.feature-card {
  text-align: center; padding: 1.75rem 1.25rem; background: var(--white);
  border-radius: var(--radius-lg); border: 1px solid var(--gray-200); transition: var(--transition);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-light); }
.feature-icon { width: 52px; height: 52px; margin: 0 auto 1rem; }
.feature-card h3 { font-size: .95rem; margin-bottom: .4rem; color: var(--blue-dark); }
.feature-card p { font-size: .82rem; color: var(--gray-500); }

/* ══════════════════════════════════════════
   DOCTOR PAGE (doctor.php)
══════════════════════════════════════════ */
.doctor-hero {
  background: linear-gradient(135deg, var(--blue-deeper) 0%, var(--blue-dark) 60%, var(--violet) 100%);
  color: #fff; padding: 4rem 0;
}
.doctor-hero-inner { display: grid; grid-template-columns: 320px 1fr; gap: 3rem; align-items: center; max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.doctor-hero-img img { border-radius: 50%; width: 280px; height: 280px; object-fit: cover; border: 5px solid rgba(255,255,255,.2); box-shadow: var(--shadow-lg); margin: 0 auto; }
.doctor-hero h1 { color: #fff; margin-bottom: .5rem; }
.doctor-title { font-size: 1rem; color: #a5b4fc; font-weight: 500; margin-bottom: 1.5rem; }
.doctor-credentials { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 1.5rem; }
.cred-badge { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: .35rem .85rem; border-radius: 50px; font-size: .78rem; }

.doctor-section { padding: 4rem 0; }
.doctor-section:nth-child(even) { background: var(--gray-100); }
.doctor-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.diplomas-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 1.25rem; margin-top: 2rem; }
.diploma-card {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200); transition: var(--transition); cursor: pointer;
}
.diploma-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.diploma-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.diploma-card-label { padding: .65rem 1rem; font-size: .82rem; font-weight: 600; color: var(--blue-dark); background: var(--white); }

.preguntale-section { background: linear-gradient(135deg,var(--blue-deeper),var(--violet)); color: #fff; padding: 5rem 0; text-align: center; }
.preguntale-section h2 { color: #fff; margin-bottom: .75rem; }
.preguntale-section p { opacity: .85; max-width: 500px; margin: 0 auto 2rem; }

/* ══════════════════════════════════════════
   CART SIDEBAR
══════════════════════════════════════════ */
.cart-overlay { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 1100; opacity: 0; pointer-events: none; transition: opacity .3s; }
.cart-overlay.open { opacity: 1; pointer-events: all; }
.cart-sidebar {
  position: fixed; top: 0; right: -420px; width: min(420px,100vw); height: 100%;
  background: var(--white); z-index: 1200; display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); transition: right .35s ease;
}
.cart-sidebar.open { right: 0; }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.5rem; border-bottom: 1px solid var(--gray-200); }
.cart-header h3 { font-size: 1.05rem; color: var(--blue-dark); }
.cart-close { background: none; border: none; cursor: pointer; font-size: 1.5rem; color: var(--gray-500); line-height: 1; }
.cart-close:hover { color: var(--dark); }
.cart-items { flex: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart-empty { text-align: center; padding: 3rem 1rem; color: var(--gray-500); }
.cart-empty svg { width: 54px; margin: 0 auto 1rem; opacity: .35; }
.cart-item { display: flex; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--gray-200); }
.cart-item-img { width: 68px; height: 68px; border-radius: var(--radius); background: var(--blue-pale); flex-shrink: 0; display: flex; align-items: center; justify-content: center; padding: .4rem; }
.cart-item-img img { width: 100%; height: 100%; object-fit: contain; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: .88rem; font-weight: 600; margin-bottom: .2rem; }
.cart-item-price { font-size: .83rem; color: var(--blue); font-weight: 700; }
.cart-item-qty { display: flex; align-items: center; gap: .45rem; margin-top: .45rem; }
.qty-btn { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--gray-200); background: none; cursor: pointer; font-size: .95rem; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.qty-btn:hover { border-color: var(--blue); color: var(--blue); }
.qty-num { min-width: 18px; text-align: center; font-weight: 700; font-size: .88rem; }
.cart-remove { background: none; border: none; cursor: pointer; color: var(--gray-500); font-size: 1.1rem; margin-left: auto; align-self: flex-start; transition: color .2s; }
.cart-remove:hover { color: var(--red); }
.cart-footer { padding: 1.25rem 1.5rem; border-top: 1px solid var(--gray-200); }
.cart-total-row { display: flex; justify-content: space-between; font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; color: var(--blue-dark); }

/* ══════════════════════════════════════════
   CHECKOUT
══════════════════════════════════════════ */
.checkout-section { padding: 4rem 0; }
.checkout-grid { display: grid; grid-template-columns: 1fr 380px; gap: 2.5rem; align-items: start; }
.checkout-form h2 { margin-bottom: 1.5rem; }
.form-group { margin-bottom: 1.15rem; }
.form-group label { display: block; font-size: .84rem; font-weight: 600; margin-bottom: .38rem; color: var(--gray-700); }
.form-control { width: 100%; padding: .68rem 1rem; border-radius: var(--radius); border: 2px solid var(--gray-200); font-size: .93rem; font-family: inherit; background: var(--white); transition: border-color .2s; }
.form-control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,78,216,.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.payment-methods { display: flex; flex-direction: column; gap: .7rem; }
.payment-option { display: flex; align-items: flex-start; gap: .85rem; padding: 1rem; border: 2px solid var(--gray-200); border-radius: var(--radius); cursor: pointer; transition: var(--transition); }
.payment-option:has(input:checked) { border-color: var(--blue); background: var(--blue-pale); }
.payment-option input[type=radio] { accent-color: var(--blue); margin-top: .2rem; }
.payment-option-info strong { display: block; font-size: .93rem; color: var(--dark); }
.payment-option-info span { font-size: .8rem; color: var(--gray-500); }
.bank-details { background: var(--blue-pale); border-left: 4px solid var(--blue); padding: 1rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; margin: .75rem 0; font-size: .86rem; }
.bank-details p { margin-bottom: .3rem; }
.bank-details strong { color: var(--blue-dark); }
.upload-zone { border: 2px dashed var(--gray-200); border-radius: var(--radius); padding: 1.5rem; text-align: center; cursor: pointer; transition: var(--transition); }
.upload-zone:hover, .upload-zone.dragover { border-color: var(--blue); background: var(--blue-pale); }
.upload-zone p { font-size: .83rem; color: var(--gray-500); margin-top: .4rem; }
.order-summary { background: var(--gray-100); border-radius: var(--radius-lg); padding: 1.5rem; position: sticky; top: 100px; border: 1px solid var(--gray-200); }
.order-summary h3 { margin-bottom: 1.25rem; color: var(--blue-dark); }
.summary-item { display: flex; justify-content: space-between; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--gray-200); font-size: .88rem; }
.summary-total { display: flex; justify-content: space-between; font-size: 1.2rem; font-weight: 700; padding-top: 1rem; border-top: 2px solid var(--gray-700); margin-top: .5rem; color: var(--blue-dark); }

/* ══════════════════════════════════════════
   THANK YOU
══════════════════════════════════════════ */
.thanks-section { padding: 6rem 0; text-align: center; }
.thanks-icon { font-size: 4.5rem; margin-bottom: 1.25rem; }
.thanks-section h1 { color: var(--blue-dark); }
.order-id-box { display: inline-block; background: var(--blue-pale); padding: .75rem 2rem; border-radius: var(--radius); border: 1px solid var(--blue-light); font-size: 1.2rem; font-weight: 700; color: var(--blue-dark); margin: 1.5rem 0; }
.thanks-contact { margin-top: 2rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ══════════════════════════════════════════
   BREADCRUMB & FOOTER
══════════════════════════════════════════ */
.breadcrumb { padding: 1rem 0; font-size: .83rem; color: var(--gray-500); }
.breadcrumb a { color: var(--blue); }
.breadcrumb span { margin: 0 .4rem; }

.site-footer { background: var(--dark); color: rgba(255,255,255,.72); padding: 4rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.footer-logo img { height: 46px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-about { font-size: .85rem; line-height: 1.8; opacity: .7; margin-bottom: 1.25rem; }
.footer-social { display: flex; gap: .7rem; }
.social-link { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; transition: background .2s; }
.social-link:hover { background: var(--blue); }
.social-link svg { width: 16px; height: 16px; fill: #fff; }
.footer-col h4 { color: #fff; font-size: .92rem; margin-bottom: .9rem; }
.footer-col ul li { margin-bottom: .45rem; }
.footer-col ul a { font-size: .84rem; opacity: .65; transition: opacity .2s; }
.footer-col ul a:hover { opacity: 1; }
.footer-contact li { display: flex; align-items: center; gap: .6rem; font-size: .84rem; opacity: .75; margin-bottom: .6rem; }
.footer-contact svg { width: 15px; height: 15px; flex-shrink: 0; fill: var(--blue-mid, #3b82f6); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.4rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; font-size: .78rem; opacity: .45; }

/* ══════════════════════════════════════════
   WHATSAPP FLOAT
══════════════════════════════════════════ */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 900;
  display: flex; align-items: center; gap: .6rem;
  background: #25d366; color: #fff; padding: .7rem 1.2rem;
  border-radius: 50px; font-weight: 600; font-size: .86rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.4); transition: var(--transition);
}
.whatsapp-float:hover { background: #128c45; transform: scale(1.05); }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-img { display: none; }
  .hero-cta, .hero-stats { justify-content: center; }
  .about-inner { grid-template-columns: 1fr; }
  .about-img { order: 1; }
  .checkout-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .modal-grid { grid-template-columns: 1fr; }
  .modal-gallery { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .doctor-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .doctor-hero-img img { width: 200px; height: 200px; }
}
@media (max-width: 680px) {
  /* Nav dropdown */
  .site-nav { display: none; flex-direction: column; position: fixed; top: 69px; left: 0; right: 0; background: var(--white); padding: 1.5rem; gap: 1.1rem; box-shadow: var(--shadow-md); z-index: 999; border-top: 1px solid var(--gray-200); }
  .site-nav.open { display: flex; }
  .nav-toggle { display: flex; }

  /* Header: ocultar botón de teléfono y texto del carrito */
  .header-phone { display: none !important; }
  .cart-label { display: none; }
  .cart-btn { padding: .55rem .75rem; gap: 0; }
  .cart-btn svg { margin: 0; }

  /* Grids */
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  /* Productos */
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: .75rem; }
  .product-info { padding: .75rem .85rem; }
  .product-name { font-size: .88rem; }

  /* Modal full-screen en mobile */
  .modal-box { max-height: 95vh; border-radius: var(--radius) var(--radius) 0 0; }
  .modal-overlay { align-items: flex-end; padding: 0; }
  .modal-info { padding: 1.25rem; }

  /* Doctor page */
  .doctor-credentials { justify-content: center; }
}
.text-center { text-align: center; }
.hidden { display: none !important; }
