/* ============================================================
   ÓPTICA VISIÓN CLARA — main.css
   ============================================================ */

/* ── TOKENS ── */
:root {
  --blue:       #1a3a5c;
  --blue-mid:   #2e7db5;
  --blue-light: #5bc4e0;
  --gold:       #c9a84c;
  --gold-light: #e8c97e;
  --dark:       #0d1b2a;
  --dark-mid:   #1a2d40;
  --light:      #f8fafc;
  --light-mid:  #eef2f7;
  --text:       #1e293b;
  --text-mid:   #475569;
  --text-light: #94a3b8;
  --white:      #ffffff;
  --green-wa:   #25d366;
  --red:        #e63946;

  --grad-blue:  linear-gradient(135deg, #1a3a5c 0%, #2e7db5 100%);
  --grad-gold:  linear-gradient(135deg, #c9a84c 0%, #e8c97e 100%);
  --grad-dark:  linear-gradient(160deg, #0d1b2a 0%, #1a3a5c 100%);
  --grad-hero:  linear-gradient(160deg, rgba(13,27,42,.92) 0%, rgba(26,58,92,.80) 60%, rgba(46,125,181,.50) 100%);
  --grad-kids:  linear-gradient(135deg, #1e3a6e 0%, #2563eb 100%);

  --shadow-sm:  0 2px 8px rgba(0,0,0,.08);
  --shadow-md:  0 8px 24px rgba(0,0,0,.12);
  --shadow-lg:  0 16px 48px rgba(0,0,0,.18);
  --shadow-xl:  0 24px 64px rgba(0,0,0,.25);

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  28px;
  --radius-full:999px;

  --header-h:   72px;
  --max-w:      1320px;

  --ease:       cubic-bezier(.4, 0, .2, 1);
  --dur:        .28s;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; font-size: 16px; -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', 'Segoe UI', sans-serif; background: var(--light); color: var(--text); line-height: 1.65; overflow-x: hidden; }
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font-family: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
input, textarea, select { font-size: 16px; font-family: inherit; }
ul   { list-style: none; }
section { scroll-margin-top: var(--header-h); }

/* ── CONTAINER ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px; border-radius: var(--radius-full);
  font-weight: 600; font-size: .95rem; border: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), opacity var(--dur);
  cursor: pointer; white-space: nowrap; text-decoration: none;
}
.btn:hover  { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: scale(.97); }
.btn-primary   { background: var(--grad-gold); color: #fff; box-shadow: 0 4px 18px rgba(201,168,76,.4); }
.btn-blue      { background: var(--grad-blue); color: #fff; box-shadow: 0 4px 18px rgba(46,125,181,.4); }
.btn-ghost     { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.4); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-outline   { background: transparent; color: var(--blue); border: 2px solid var(--blue); }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-outline-light { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-wa        { background: var(--green-wa); color: #fff; }
.btn-block     { width: 100%; }

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--header-h);
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(26,58,92,.08);
  box-shadow: 0 2px 16px rgba(13,27,42,.08);
  transition: box-shadow var(--dur);
}
#navbar.scrolled { box-shadow: 0 4px 24px rgba(13,27,42,.14); }

.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  gap: 16px;
}
.nav-logo img { height: 48px; width: auto; transition: opacity var(--dur); }
.nav-logo:hover img { opacity: .85; }

/* Nav links */
.nav-links {
  display: flex; align-items: center; gap: 4px;
  flex: 1; justify-content: center;
}
.nav-links > li > a,
.nav-drop-btn {
  padding: 8px 14px; border-radius: var(--radius-md);
  font-size: .9rem; font-weight: 500; color: var(--text);
  background: none; border: none;
  transition: background var(--dur), color var(--dur);
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-drop-btn:hover { background: var(--light-mid); color: var(--blue); }

/* Dropdown */
.nav-drop { position: relative; }
.nav-drop-menu {
  display: none; position: absolute; top: calc(100% + 8px); left: 0;
  background: #fff; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); min-width: 220px;
  padding: 8px 0; border: 1px solid rgba(26,58,92,.06);
  z-index: 600;
}
.nav-drop.open .nav-drop-menu { display: block; }
.nav-drop-menu a {
  display: block; padding: 10px 18px;
  font-size: .875rem; font-weight: 500; color: var(--text);
  transition: background var(--dur), color var(--dur);
}
.nav-drop-menu a:hover { background: var(--light-mid); color: var(--blue); }
/* Active state for open button */
.nav-drop.open .nav-drop-btn { background: var(--light-mid); color: var(--blue); }

.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-phone {
  background: var(--grad-blue); color: #fff;
  padding: 9px 20px; border-radius: var(--radius-full);
  font-weight: 600; font-size: .875rem;
  box-shadow: 0 4px 14px rgba(46,125,181,.35);
  white-space: nowrap;
  transition: transform var(--dur), box-shadow var(--dur);
}
.nav-phone:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(46,125,181,.45); }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; justify-content: space-between;
  width: 30px; height: 21px;
  background: none; border: none; padding: 0;
}
.nav-hamburger span {
  display: block; height: 3px; border-radius: 3px;
  background: var(--blue);
  transition: transform .3s, opacity .3s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ── Overlay ── */
.drawer-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.55); z-index: 490;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
}
body.drawer-open .drawer-overlay { display: block; }
body.drawer-open { overflow: hidden; }

/* ── Mobile Drawer ── */
.mobile-drawer {
  position: fixed; top: 0; right: -100%;
  width: min(82vw, 320px); height: 100dvh;
  background: #fff; z-index: 510;
  display: flex; flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,.2);
  transition: right .33s cubic-bezier(.4,0,.2,1);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.mobile-drawer.open { right: 0; }

.drawer-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--light-mid);
}
.drawer-close {
  background: none; border: none; font-size: 1.3rem;
  color: var(--text-mid); padding: 6px; border-radius: 50%;
  transition: background var(--dur);
}
.drawer-close:hover { background: var(--light-mid); }

.drawer-nav { flex: 1; padding: 12px 0; }
.drawer-link {
  display: block; padding: 14px 24px;
  font-size: .95rem; font-weight: 500; color: var(--text);
  border-bottom: 1px solid var(--light-mid);
  transition: background var(--dur), color var(--dur);
}
.drawer-link:hover { background: var(--light-mid); color: var(--blue); }

.drawer-accordion { border-bottom: 1px solid var(--light-mid); }
.drawer-acc-btn {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 14px 24px;
  font-size: .95rem; font-weight: 500; background: none; border: none;
  color: var(--text); text-align: left;
}
.drawer-acc-btn span { transition: transform .25s; font-size: .75rem; }
.drawer-accordion.open .drawer-acc-btn span { transform: rotate(180deg); }
.drawer-acc-body { background: var(--light); overflow: hidden; max-height: 0; transition: max-height .3s cubic-bezier(.4,0,.2,1); }
.drawer-accordion.open .drawer-acc-body { max-height: 400px; }
.drawer-sub {
  display: block; padding: 11px 24px 11px 36px;
  font-size: .875rem; color: var(--text-mid);
  border-bottom: 1px solid var(--light-mid);
  transition: color var(--dur);
}
.drawer-sub:hover { color: var(--blue); }

.drawer-footer {
  padding: 20px 24px; border-top: 1px solid var(--light-mid);
  text-align: center;
}
.drawer-footer a { font-weight: 700; color: var(--blue); font-size: 1.05rem; }
.drawer-footer p { font-size: .8rem; color: var(--text-mid); margin-top: 8px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; color: #fff; text-align: center;
}
.hero-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0;
}
/* Imagen de fondo con opacidad 0.5 */
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  /*background-image: url('https://images.unsplash.com/photo-1574258495973-f010dfbb5371?w=1600&q=85');*/
  background-image: url('https://optica.expertech.es/assets/images/cabecera.jpg');
  background-size: cover; background-position: center;
  opacity: 0.5;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(13,27,42,.75) 0%, rgba(26,58,92,.65) 60%, rgba(46,125,181,.40) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  padding: calc(var(--header-h) + 40px) 24px 60px;
  max-width: 820px; width: 100%;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(201,168,76,.2); border: 1px solid rgba(201,168,76,.45);
  color: var(--gold-light); backdrop-filter: blur(6px);
  padding: 7px 22px; border-radius: var(--radius-full);
  font-size: .8rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeUp .8s both;
}
.hero-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  font-weight: 900; line-height: 1.08;
  text-shadow: 0 4px 24px rgba(0,0,0,.4);
  margin-bottom: 24px;
  animation: fadeUp .9s both .1s;
}
.hero-title em { color: var(--gold-light); font-style: italic; }
.hero-desc {
  font-size: clamp(.95rem, 2vw, 1.2rem);
  max-width: 580px; margin: 0 auto 36px;
  color: rgba(255,255,255,.88);
  animation: fadeUp 1s both .2s;
}
.hero-btns {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 1s both .3s;
}
/* Scroll hint: pegado abajo a la DERECHA */
.hero-scroll-hint {
  position: absolute; bottom: 28px; right: 32px;
  z-index: 2;
  font-size: 1.4rem; color: rgba(255,255,255,.55);
  animation: bounce 2s infinite;
  cursor: pointer; background: none; border: none;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.25);
  transition: background .2s, border-color .2s;
}
.hero-scroll-hint:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.5);
}
@keyframes fadeUp  { from { opacity:0; transform:translateY(30px) } to { opacity:1; transform:none } }
@keyframes bounce  { 0%,100% { transform:translateX(-50%) translateY(0) } 50% { transform:translateX(-50%) translateY(10px) } }

/* ============================================================
   TICKER
   ============================================================ */
.ticker-wrap {
  background: var(--blue); color: #fff;
  overflow: hidden; padding: 14px 0;
  border-top: 2px solid rgba(201,168,76,.4);
  border-bottom: 2px solid rgba(201,168,76,.4);
}
.ticker-track {
  display: inline-flex; gap: 48px; white-space: nowrap;
  animation: ticker 40s linear infinite;
}
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { font-size: .85rem; font-weight: 500; letter-spacing: .5px; }
@keyframes ticker { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ============================================================
   SECTIONS
   ============================================================ */
.section       { padding: 100px 0; }
.section-light { background: var(--light); }
.section-dark  { background: var(--grad-dark); }
.section-kids  { background: var(--grad-kids); }
.section-alt   { background: var(--light-mid); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-eyebrow {
  display: inline-block; margin-bottom: 14px;
  font-size: .72rem; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold);
}
.section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700; line-height: 1.15;
  color: var(--blue); margin-bottom: 16px;
}
.section-title em { color: var(--gold); font-style: italic; }
.section-sub {
  color: var(--text-mid); font-size: 1rem; max-width: 580px; margin: 0 auto;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.service-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow-md);
  border-top: 4px solid var(--blue-mid);
  transition: transform var(--dur), box-shadow var(--dur);
  position: relative;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-icon { font-size: 2.4rem; margin-bottom: 16px; }
.service-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--blue); margin-bottom: 10px; }
.service-card p  { font-size: .9rem; color: var(--text-mid); line-height: 1.6; }
.service-tag {
  position: absolute; top: 16px; right: 16px;
  background: var(--grad-gold); color: #fff;
  padding: 3px 12px; border-radius: var(--radius-full);
  font-size: .7rem; font-weight: 700; letter-spacing: .5px;
}

/* ============================================================
   CATALOG TABS
   ============================================================ */
.catalog-tabs {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 36px; justify-content: center;
}
.ctab {
  padding: 10px 24px; border-radius: var(--radius-full);
  border: 2px solid var(--blue-mid); background: transparent;
  color: var(--blue-mid); font-weight: 600; font-size: .875rem;
  transition: background var(--dur), color var(--dur), border-color var(--dur), transform .15s;
  white-space: nowrap;
}
.ctab:hover  { background: rgba(46,125,181,.08); }
.ctab:active { transform: scale(.96); }
.ctab.active {
  background: var(--grad-blue); color: #fff;
  border-color: transparent; box-shadow: 0 4px 14px rgba(46,125,181,.35);
}
/* Tabs sobre fondo oscuro */
.section-dark .ctab,
.section-kids .ctab { border-color: rgba(255,255,255,.4); color: rgba(255,255,255,.75); }
.section-dark .ctab.active,
.section-kids .ctab.active { background: var(--grad-gold); border-color: transparent; color: #fff; }
.section-dark .ctab:hover,
.section-kids .ctab:hover  { background: rgba(255,255,255,.1); }

/* Panels */
.catalog-panel { display: none; }
.catalog-panel.active { display: block; }

/* ============================================================
   BRAND HEADER
   ============================================================ */
.brand-header {
  background: var(--light-mid); border-radius: var(--radius-md);
  padding: 20px 28px; margin-bottom: 28px;
  border-left: 4px solid var(--gold);
}
.brand-header.dark { background: rgba(255,255,255,.07); border-left-color: var(--gold); }
.brand-header h3 { font-size: 1.3rem; font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.brand-header p  { font-size: .9rem; color: var(--text-mid); }

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.product-card {
  background: #fff; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-md);
  transition: transform var(--dur), box-shadow var(--dur);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

.product-img-wrap { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.product-img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s var(--ease);
}
.product-card:hover .product-img-wrap img { transform: scale(1.06); }

.product-badge {
  position: absolute; top: 12px; right: 12px;
  background: var(--grad-gold); color: #fff;
  padding: 4px 12px; border-radius: var(--radius-full);
  font-size: .72rem; font-weight: 700;
}
.product-info { padding: 18px; }
.product-brand { font-size: .72rem; font-weight: 700; color: var(--gold); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.product-info h4 { font-size: .95rem; font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.product-info p  { font-size: .8rem; color: var(--text-mid); line-height: 1.55; margin-bottom: 12px; }
.product-price   { font-size: 1.15rem; font-weight: 800; color: var(--blue); }

/* ============================================================
   LENTES GRID
   ============================================================ */
.lentes-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.lente-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 24px;
  transition: transform var(--dur), background var(--dur);
}
.lente-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.11); }
.lente-quality { font-size: 1rem; margin-bottom: 12px; }
.lente-card h4 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.lente-type    { font-size: .78rem; font-weight: 600; color: var(--gold-light); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; }
.lente-features { padding: 0; }
.lente-features li { font-size: .82rem; color: rgba(255,255,255,.75); padding: 4px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.lente-features li:last-child { border: none; }
.lente-price {
  margin-top: 16px; font-size: 1rem; font-weight: 800;
  color: var(--gold-light);
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px;
}

/* Calidades */
.lente-quality.gold   { color: #ffd700; }
.lente-quality.silver { color: #c0c0c0; }
.lente-quality.bronze { color: #cd7f32; }

/* Sección lentes title */
.lentes-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.5rem; font-weight: 700; color: #fff;
  margin-bottom: 28px; text-align: center;
  position: relative;
}
.lentes-section-title::after {
  content: '';
  display: block; width: 60px; height: 2px;
  background: var(--grad-gold); margin: 10px auto 0;
}

/* ============================================================
   CATALOG CTA
   ============================================================ */
.catalog-cta {
  text-align: center; margin-top: 48px; padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.catalog-cta .btn {
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  text-align: center;
  margin-bottom: 30px;
}
.section-light .catalog-cta { border-top-color: var(--light-mid); }

/* ============================================================
   HORARIO GRID
   ============================================================ */
.horario-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.horario-card {
  background: #fff; border-radius: var(--radius-lg);
  padding: 32px 24px; box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform var(--dur);
}
.horario-card:hover { transform: translateY(-4px); }
.horario-icon { font-size: 2.4rem; margin-bottom: 14px; }
.horario-card h3 { font-size: 1rem; font-weight: 700; color: var(--blue); margin-bottom: 16px; }
.horario-table { text-align: left; width: 100%; }
.horario-row {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 8px 0; border-bottom: 1px solid var(--light-mid);
  font-size: .85rem;
}
.horario-row:last-child { border: none; }
.horario-row.closed { color: var(--text-light); }

/* ============================================================
   SOCIAL BUTTONS
   ============================================================ */
.social-links { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.social-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--light-mid); color: var(--blue);
  transition: background var(--dur), color var(--dur), transform var(--dur);
}
.social-btn:hover { transform: translateY(-3px); }
.social-btn.facebook  { background: #1877f2; color: #fff; }
.social-btn.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%,#fdf497 5%,#fd5949 45%,#d6249f 60%,#285AEB 90%); color: #fff; }
.social-btn.twitter   { background: #000; color: #fff; }
.social-btn.tiktok    { background: #010101; color: #fff; }
.social-btn.youtube   { background: #ff0000; color: #fff; }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 48px;
  align-items: start;
}
.contact-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; color: #fff; margin-bottom: 28px;
}
.contact-item {
  display: flex; align-items: flex-start; gap: 16px;
  margin-bottom: 24px;
}
.contact-ico { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.contact-item strong { color: var(--gold-light); display: block; margin-bottom: 4px; font-size: .85rem; text-transform: uppercase; letter-spacing: .5px; }
.contact-item a { color: rgba(255,255,255,.8); font-size: .95rem; transition: color var(--dur); }
.contact-item a:hover { color: var(--gold-light); }

/* Form */
.contact-form-wrap {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl); padding: 36px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.form-group   { margin-bottom: 18px; }
.form-label   { display: block; margin-bottom: 7px; font-weight: 600; font-size: .875rem; color: rgba(255,255,255,.85); }
.form-label .req { color: var(--gold-light); }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 13px 16px;
  background: rgba(255,255,255,.93); color: var(--text);
  border: none; border-radius: var(--radius-md);
  font-size: 16px; font-family: inherit;
  box-sizing: border-box;
  transition: box-shadow var(--dur);
  -webkit-appearance: none; appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(201,168,76,.5);
}
.form-textarea { resize: vertical; min-height: 110px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Radio group */
.radio-group { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-label {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.07); border: 1.5px solid rgba(255,255,255,.15);
  border-radius: var(--radius-md); padding: 10px 16px;
  cursor: pointer; font-size: .875rem; color: rgba(255,255,255,.75);
  transition: background var(--dur), border-color var(--dur), color var(--dur);
  flex: 1; min-width: 160px; justify-content: center;
}
.radio-label:hover { background: rgba(255,255,255,.12); }
.radio-label input { display: none; }
.radio-label:has(input:checked) {
  background: rgba(201,168,76,.2); border-color: var(--gold); color: var(--gold-light);
}

/* Success */
.form-success {
  background: rgba(37,211,102,.1); border: 1px solid rgba(37,211,102,.3);
  border-radius: var(--radius-md); padding: 28px; text-align: center; margin-top: 20px;
}
.success-icon { font-size: 2.5rem; margin-bottom: 12px; }
.form-success h4 { color: #fff; font-size: 1.2rem; margin-bottom: 8px; }
.form-success p  { color: rgba(255,255,255,.75); font-size: .9rem; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.7); z-index: 900;
  align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.modal-overlay.show { display: flex; }
.modal-box {
  background: var(--grad-dark); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-xl); max-width: 540px; width: 100%;
  overflow: hidden; box-shadow: var(--shadow-xl);
  animation: modalIn .3s var(--ease) both;
}
@keyframes modalIn { from { opacity:0; transform:scale(.92) translateY(20px) } to { opacity:1; transform:none } }

.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 10px; gap: 8px;
}
.modal-ornament {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,.5), transparent);
}
.modal-band {
  background: var(--grad-gold); color: #fff;
  text-align: center; padding: 11px; font-weight: 700;
  font-size: .95rem; letter-spacing: 1px;
}
.modal-body { padding: 28px 28px 20px; }
.modal-greeting { color: #fff; font-size: 1.1rem; margin-bottom: 10px; }
.modal-desc { color: rgba(255,255,255,.72); font-size: .9rem; margin-bottom: 20px; line-height: 1.6; }
.modal-details { background: rgba(255,255,255,.06); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 22px; }
.modal-details-header {
  background: rgba(255,255,255,.08); padding: 10px 16px;
  font-size: .78rem; font-weight: 700; color: var(--gold-light);
  letter-spacing: 1px; text-transform: uppercase;
}
.modal-table { width: 100%; border-collapse: collapse; }
.modal-table tr:not(:last-child) td { border-bottom: 1px solid rgba(255,255,255,.06); }
.modal-table td { padding: 9px 16px; font-size: .875rem; }
.modal-table td:first-child { color: rgba(255,255,255,.5); font-weight: 500; width: 40%; }
.modal-table td:last-child  { color: rgba(255,255,255,.9); }

.modal-actions {
  display: flex; gap: 12px; margin-top: 4px;
}
.modal-btn {
  flex: 1; padding: 13px 16px;
  border-radius: var(--radius-md); border: none;
  font-weight: 700; font-size: .9rem;
  cursor: pointer; transition: filter .2s, transform .15s;
}
.modal-btn:hover  { filter: brightness(1.1); transform: translateY(-1px); }
.modal-btn:active { transform: scale(.97); }
.modal-btn-modify {
  background: rgba(255,255,255,.07);
  border: 1.5px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.7);
}
.modal-btn-accept { background: var(--grad-gold); color: #fff; box-shadow: 0 4px 16px rgba(201,168,76,.3); }

.modal-footer {
  padding: 12px 28px;
  font-size: .75rem; color: rgba(255,255,255,.3);
  text-align: center; border-top: 1px solid rgba(255,255,255,.08);
}

@media (max-width: 400px) { .modal-actions { flex-direction: column; } }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: #071221; color: rgba(255,255,255,.65);
  padding-top: 72px;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px 56px;
}
.footer-brand img { margin-bottom: 16px; }
.footer-brand p   { font-size: .875rem; line-height: 1.7; color: rgba(255,255,255,.5); max-width: 300px; }
.footer-social    { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.fsoc {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.7);
  transition: background var(--dur), color var(--dur), transform var(--dur);
}
.fsoc:hover { background: var(--gold); color: #fff; transform: translateY(-3px); }
.footer-col h4 {
  font-size: .78rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold-light); margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col li  { font-size: .875rem; }
.footer-col a   { color: rgba(255,255,255,.55); transition: color var(--dur); }
.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 20px 24px;
  text-align: center; font-size: .8rem;
  color: rgba(255,255,255,.3);
  max-width: var(--max-w); margin: 0 auto;
}
.footer-bottom a { color: rgba(255,255,255,.4); transition: color var(--dur); }
.footer-bottom a:hover { color: var(--gold-light); }

/* ============================================================
   FABS
   ============================================================ */
.fab {
  position: fixed; width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; border: none; z-index: 400;
  box-shadow: 0 6px 24px rgba(0,0,0,.25);
  transition: transform var(--dur), box-shadow var(--dur), opacity var(--dur);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.fab:hover  { transform: scale(1.1); box-shadow: 0 10px 32px rgba(0,0,0,.3); }
.fab:active { transform: scale(.95); }
.fab-wa  {
  left:  max(20px, env(safe-area-inset-left) + 12px);
  bottom: max(20px, env(safe-area-inset-bottom) + 12px);
  background: var(--green-wa); color: #fff;
  text-decoration: none;
}
.fab-top {
  right:  max(20px, env(safe-area-inset-right) + 12px);
  bottom: max(20px, env(safe-area-inset-bottom) + 12px);
  background: var(--grad-blue); color: #fff;
  opacity: 0; pointer-events: none;
}
.fab-top.show { opacity: 1; pointer-events: auto; }

/* ============================================================
   FADE-IN ANIMATION
   ============================================================ */
.fade-in {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.fade-in.visible { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE — TABLET ≤ 1100px
   ============================================================ */
@media (max-width: 1100px) {
  .product-grid  { grid-template-columns: repeat(2, 1fr); }
  .lentes-grid   { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .horario-grid  { grid-template-columns: repeat(2, 1fr); }
  .footer-inner  { grid-template-columns: 1fr 1fr; gap: 36px; }
}

/* ============================================================
   RESPONSIVE — TABLET ≤ 820px
   ============================================================ */
@media (max-width: 820px) {
  .nav-links, .nav-right { display: none; }
  .nav-hamburger { display: flex; }

  .hero-content { padding-top: calc(var(--header-h) + 60px); }

  .section { padding: 72px 0; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px; }
  .form-row { grid-template-columns: 1fr; }

  .modal-box { margin: 0 8px; }
}

/* ============================================================
   RESPONSIVE — MÓVIL ≤ 640px
   ============================================================ */
@media (max-width: 640px) {
  :root { --header-h: 62px; }

  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section-header { margin-bottom: 36px; }

  .services-grid { grid-template-columns: 1fr; }
  .product-grid  { grid-template-columns: 1fr 1fr; gap: 12px; }
  .lentes-grid   { grid-template-columns: 1fr; }
  .horario-grid  { grid-template-columns: 1fr; }

  .catalog-tabs {
    flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start;
    padding-bottom: 8px; scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .catalog-tabs::-webkit-scrollbar { display: none; }
  .ctab { flex-shrink: 0; }

  .product-img-wrap { aspect-ratio: 1/1; }
  .product-info { padding: 12px; }
  .product-info h4 { font-size: .85rem; }
  .product-info p  { font-size: .75rem; }
  .product-price   { font-size: 1rem; }

  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 100%; max-width: 300px; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }

  .radio-group { flex-direction: column; }
  .radio-label { min-width: 0; }

  .contact-form-wrap { padding: 18px; }
  .contact-info { order: 2; }
  .contact-form-wrap { order: 1; }
}

/* ============================================================
   RESPONSIVE — MÓVIL PEQUEÑO ≤ 380px
   ============================================================ */
@media (max-width: 380px) {
  .product-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SAFE AREA
   ============================================================ */
/* ============================================================
   STORE NOTICE
   ============================================================ */
.store-notice {
  display: flex; align-items: flex-start; gap: 16px;
  background: var(--light-mid); border-radius: var(--radius-md);
  padding: 20px 24px; margin: 40px 0 0;
  border-left: 4px solid var(--gold);
}
.store-notice-dark {
  background: rgba(255,255,255,.07);
  border-left-color: var(--gold);
}
.store-notice-icon { font-size: 1.8rem; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.store-notice p    { font-size: .9rem; color: var(--text-mid); line-height: 1.6; }
.store-notice-dark p { color: rgba(255,255,255,.65); }
.store-notice strong { color: var(--blue); }
.store-notice-dark strong { color: var(--gold-light); }

@supports (padding: env(safe-area-inset-bottom)) {
  .site-footer { padding-bottom: env(safe-area-inset-bottom); }
}

/* ============================================================
   CARD OVERFLOW – tablet 6 visible, mobile 4 visible
   ============================================================ */
/* Desktop: todas visibles */
.card-overflow { display: none; }

@media (min-width: 1101px) {
  .card-overflow { display: block; } /* desktop: mostrar todas */
}

@media (max-width: 1100px) {
  .card-overflow { display: none; } /* tablet: ocultar a partir de la 7ª */
}

@media (max-width: 640px) {
  .card-overflow { display: none; } /* móvil: ocultar a partir de la 5ª */
}
