/* ============================================================
   LABORATORIOS VILAR — Design System
   ============================================================ */
:root {
  --red: #E30613;
  --rdk: #B8000E;
  --rxdk: #8c0009;
  --rlt: #fff5f5;
  --rbd: #ffd6d6;
  --glt: #F5F7FA;
  --gry: #64748b;
  --txt: #1a0808;
  --wht: #fff;
  --rad: 12px;
  --radl: 18px;
  --radxl: 24px;
  --shd: 0 4px 20px rgba(227,6,19,.10);
  --shdl: 0 8px 40px rgba(227,6,19,.18);
  --shdn: 0 2px 12px rgba(0,0,0,.07);
  --tr: .25s ease;
  --trm: .35s cubic-bezier(.4,0,.2,1);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--txt); background: #fff; overflow-x: hidden; line-height: 1.6; }
a { text-decoration: none; color: inherit; transition: color var(--tr); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ── TOPBAR ─────────────────────────────────────────────── */
.tb { background: var(--rxdk); padding: 7px 5vw; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.tb-l { display: flex; gap: 14px; align-items: center; }
.tb-l a { color: rgba(255,255,255,.8); font-size: .81rem; display: flex; align-items: center; gap: 5px; }
.tb-l a:hover { color: #fff; }
.tb-r { display: flex; gap: 8px; }
.tb-r a { color: rgba(255,255,255,.8); width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.1); transition: all var(--tr); }
.tb-r a:hover { background: rgba(255,255,255,.25); color: #fff; transform: scale(1.1); }

/* ── NAV ────────────────────────────────────────────────── */
nav { position: sticky; top: 0; z-index: 200; background: var(--red); box-shadow: 0 2px 20px rgba(0,0,0,.2); }
.ni { max-width: 1280px; margin: 0 auto; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nl { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nl img, .nl-logo { height: 44px; width: auto; object-fit: contain; }
.nlt { color: #fff; font-weight: 800; font-size: 1rem; line-height: 1.15; }
.nls { color: rgba(255,220,220,.85); font-size: .65rem; letter-spacing: 1.5px; text-transform: uppercase; }
.nm { display: flex; gap: 2px; align-items: center; }
.nm a { color: rgba(255,255,255,.88); padding: 7px 13px; border-radius: 8px; font-size: .84rem; font-weight: 500; transition: all var(--tr); white-space: nowrap; }
.nm a:hover, .nm a.act { color: #fff; background: rgba(255,255,255,.18); font-weight: 700; }
.nsb { background: rgba(255,255,255,.15); border: none; color: #fff; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: .95rem; transition: background var(--tr); display: flex; align-items: center; justify-content: center; }
.nsb:hover { background: rgba(255,255,255,.28); }
.hbg { display: none; cursor: pointer; background: none; border: none; flex-direction: column; gap: 5px; padding: 4px; }
.hbg span { width: 24px; height: 2.5px; background: #fff; border-radius: 2px; display: block; }

/* ── DRAWER ─────────────────────────────────────────────── */
.drw { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: var(--red); padding: 24px 5vw; z-index: 300; flex-direction: column; gap: 8px; overflow-y: auto; }
.drw.open { display: flex; }
.drc { align-self: flex-end; background: rgba(255,255,255,.15); border: none; color: #fff; width: 36px; height: 36px; border-radius: 50%; font-size: 1.1rem; cursor: pointer; margin-bottom: 12px; }
.drw a { color: #fff; font-size: 1.05rem; padding: 13px 16px; border-radius: 10px; font-weight: 500; border-bottom: 1px solid rgba(255,255,255,.08); }
.drw a:hover, .drw a.act { background: rgba(255,255,255,.12); }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 10px; font-weight: 700; font-size: .9rem; cursor: pointer; border: none; transition: all var(--tr); font-family: inherit; text-decoration: none; }
.btn-r { background: var(--red); color: #fff; }
.btn-r:hover { background: var(--rdk); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(227,6,19,.3); }
.btn-w { background: #fff; color: var(--red); }
.btn-w:hover { background: #ffe8e8; transform: translateY(-1px); }
.btn-o { background: transparent; color: var(--red); border: 2px solid var(--red); }
.btn-o:hover { background: var(--red); color: #fff; }
.btn-ow { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.5); }
.btn-ow:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #20ba58; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,211,102,.3); }
.btn-sm { padding: 8px 16px; font-size: .82rem; }
.btn-lg { padding: 15px 32px; font-size: 1rem; border-radius: 12px; }

/* ── WA FLOAT ────────────────────────────────────────────── */
.waf { position: fixed; bottom: 28px; right: 28px; z-index: 500; width: 56px; height: 56px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.4rem; box-shadow: 0 4px 20px rgba(37,211,102,.5); animation: wap 2s infinite; transition: transform var(--tr); }
.waf:hover { transform: scale(1.1); background: #20ba58; }
@keyframes wap { 0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.5); } 50% { box-shadow: 0 4px 30px rgba(37,211,102,.85); } }

/* ── FOOTER ─────────────────────────────────────────────── */
footer { background: var(--rxdk); padding: 56px 5vw 0; }
.fg { max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1.5fr 1.2fr; gap: 48px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,.1); }
.fb { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.fb img { height: 36px; width: auto; background: #fff; padding: 3px 7px; border-radius: 7px; object-fit: contain; }
.fbn { color: #fff; font-weight: 800; font-size: .95rem; }
.fbs { color: rgba(255,200,200,.8); font-size: .65rem; letter-spacing: 1.5px; text-transform: uppercase; }
.fa- { color: rgba(255,255,255,.5); font-size: .83rem; line-height: 1.65; margin-bottom: 18px; }
.fsc { display: flex; gap: 8px; }
.fsc a { width: 34px; height: 34px; background: rgba(255,255,255,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.75); font-size: .9rem; transition: all var(--tr); }
.fsc a:hover { background: rgba(255,255,255,.22); color: #fff; transform: scale(1.1); }
.fct { color: #fff; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.fl { display: flex; flex-direction: column; gap: 8px; }
.fl a { color: rgba(255,255,255,.52); font-size: .82rem; transition: color var(--tr); display: flex; align-items: center; gap: 6px; }
.fl a:hover { color: rgba(255,200,200,.9); }
.fbot { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; color: rgba(255,255,255,.3); font-size: .77rem; flex-wrap: wrap; gap: 10px; }
.fbl { display: flex; gap: 16px; }
.fbl a { color: rgba(255,255,255,.3); font-size: .77rem; transition: color var(--tr); }
.fbl a:hover { color: rgba(255,200,200,.8); }

/* ── FADE IN ─────────────────────────────────────────────── */
.fi { opacity: 0; transform: translateY(22px); transition: opacity .55s ease, transform .55s ease; }
.fi.vis { opacity: 1; transform: translateY(0); }

/* ── SHARED SECTION ──────────────────────────────────────── */
.sec { padding: 80px 5vw; }
.si { max-width: 1280px; margin: 0 auto; }
.stag { display: inline-block; background: rgba(227,6,19,.1); color: var(--red); border-radius: 6px; padding: 4px 12px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.stitle { font-family: 'Playfair Display', serif; font-size: clamp(1.7rem,3vw,2.4rem); color: var(--rdk); margin-bottom: 10px; line-height: 1.25; }
.sdesc { color: var(--gry); font-size: .97rem; line-height: 1.68; max-width: 580px; }

/* ── SECTION HEADER ──────────────────────────────────────── */
.sec-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; flex-wrap: wrap; }
.sec-hd-l {}
.sec-hd h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.5rem, 2.5vw, 2rem); color: var(--rdk); line-height: 1.25; margin-bottom: 6px; }
.sec-hd p { color: var(--gry); font-size: .92rem; }
.sec-hd a { color: var(--red); font-size: .88rem; font-weight: 700; display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.sec-hd a:hover { color: var(--rdk); }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  background: linear-gradient(140deg, #6e0007 0%, #c0000b 40%, #E30613 75%, #f5283a 100%);
  min-height: 90vh;
  padding: 80px 5vw 60px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -150px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,0,0,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,235,235,.95);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-badge span {
  width: 7px; height: 7px;
  background: #ff9999;
  border-radius: 50%;
  animation: blink 2s infinite;
  flex-shrink: 0;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: #fff;
  line-height: 1.15;
  margin-bottom: 18px;
  font-weight: 700;
}
.hero-title em { color: #ffcccc; font-style: normal; }
.hero-sub {
  color: rgba(255,255,255,.75);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 500px;
}
/* Hero search */
.hero-search {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  max-width: 520px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.25);
}
.hero-search input {
  flex: 1;
  padding: 16px 20px;
  border: none;
  font-size: .97rem;
  font-family: inherit;
  outline: none;
  background: #fff;
  color: var(--txt);
  min-width: 0;
}
.hero-search input::placeholder { color: #999; }
.hero-search button {
  padding: 16px 22px;
  background: var(--rxdk);
  color: #fff;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  white-space: nowrap;
  transition: background var(--tr);
}
.hero-search button:hover { background: #6e0007; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero-stat strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hero-stat span {
  font-size: .73rem;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-top: 3px;
  display: block;
}
/* Hero right – service cards */
.hero-cards { display: flex; flex-direction: column; gap: 14px; }
.hero-card {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(30px);
  opacity: 0;
  animation: slideIn .5s forwards;
  cursor: pointer;
  transition: background var(--tr), border-color var(--tr);
  text-decoration: none;
}
.hero-card:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.35); }
.hero-card:nth-child(1) { animation-delay: .05s; }
.hero-card:nth-child(2) { animation-delay: .15s; }
.hero-card:nth-child(3) { animation-delay: .25s; }
.hero-card:nth-child(4) { animation-delay: .35s; }
@keyframes slideIn { to { transform: translateX(0); opacity: 1; } }
.hero-card-icon {
  width: 48px; height: 48px;
  background: rgba(255,255,255,.15);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.hero-card-txt {}
.hero-card-txt strong { color: #fff; font-size: .95rem; font-weight: 700; display: block; }
.hero-card-txt span { color: rgba(255,255,255,.65); font-size: .8rem; }
.hero-card-arr { margin-left: auto; color: rgba(255,255,255,.5); font-size: .85rem; }

/* ================================================================
   SEARCH RESULTS DROPDOWN (hero)
   ================================================================ */
.hero-search-wrap { position: relative; max-width: 520px; margin-bottom: 28px; }
.hero-search-wrap .hero-search { margin-bottom: 0; }
.search-drop {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  z-index: 100;
  overflow: hidden;
  max-height: 320px;
  overflow-y: auto;
}
.search-drop.show { display: block; }
.search-drop-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background var(--tr);
}
.search-drop-item:last-child { border-bottom: none; }
.search-drop-item:hover { background: var(--rlt); }
.search-drop-item .name { font-size: .9rem; font-weight: 600; color: var(--txt); }
.search-drop-item .price { font-size: .9rem; font-weight: 800; color: var(--red); }
.search-drop-empty { padding: 20px 18px; text-align: center; color: var(--gry); font-size: .9rem; }

/* ================================================================
   CATEGORIES
   ================================================================ */
.cats-section { background: var(--glt); padding: 80px 5vw; }
.cats-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cat-card {
  background: #fff;
  border-radius: var(--radl);
  padding: 28px 24px;
  border: 1.5px solid transparent;
  box-shadow: var(--shdn);
  transition: all var(--trm);
  display: flex;
  align-items: flex-start;
  gap: 18px;
  text-decoration: none;
}
.cat-card:hover {
  border-color: var(--red);
  box-shadow: var(--shdl);
  transform: translateY(-4px);
}
.cat-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}
.cat-icon.r1 { background: #fff0f0; color: var(--red); }
.cat-icon.r2 { background: #fff0e6; color: #e87500; }
.cat-icon.r3 { background: #f0f5ff; color: #2563eb; }
.cat-icon.r4 { background: #f0fff4; color: #16a34a; }
.cat-icon.r5 { background: #fdf4ff; color: #9333ea; }
.cat-icon.r6 { background: #fefce8; color: #ca8a04; }
.cat-body { flex: 1; min-width: 0; }
.cat-body h3 { font-size: .97rem; font-weight: 800; color: var(--txt); margin-bottom: 5px; }
.cat-body p { font-size: .82rem; color: var(--gry); line-height: 1.5; margin-bottom: 10px; }
.cat-link { font-size: .8rem; font-weight: 700; color: var(--red); display: flex; align-items: center; gap: 4px; }
.cat-card:hover .cat-link { gap: 8px; }

/* ================================================================
   CHECK-UPS
   ================================================================ */
.chk-section { padding: 80px 5vw; background: #fff; }
.chk-scroll {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.chk-card {
  background: #fff;
  border-radius: var(--radl);
  padding: 24px 20px;
  border: 1.5px solid var(--rbd);
  box-shadow: var(--shdn);
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: all var(--trm);
}
.chk-card:hover {
  border-color: var(--red);
  box-shadow: var(--shdl);
  transform: translateY(-4px);
}
.chk-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--rlt);
  color: var(--red);
  border-radius: 6px;
  padding: 3px 10px;
  font-size: .71rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 14px;
  width: fit-content;
}
.chk-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rdk);
  margin-bottom: 12px;
  line-height: 1.3;
}
.chk-studies {
  flex: 1;
  margin-bottom: 16px;
}
.chk-studies li {
  font-size: .8rem;
  color: var(--gry);
  padding: 3px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.chk-studies li::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--red);
  border-radius: 50%;
  flex-shrink: 0;
}
.chk-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--rbd);
  flex-wrap: wrap;
  gap: 8px;
}
.chk-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--red);
  line-height: 1;
}
.chk-price span {
  display: block;
  font-size: .7rem;
  font-weight: 500;
  color: var(--gry);
  margin-top: 2px;
}
.chk-note {
  font-size: .71rem;
  color: var(--gry);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
}

/* ================================================================
   WHY VILAR
   ================================================================ */
.why-section {
  background: linear-gradient(135deg, #fdf2f2 0%, #fff5f5 50%, #fdf2f2 100%);
  padding: 80px 5vw;
}
.why-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.why-card {
  background: #fff;
  border-radius: var(--radl);
  padding: 28px 24px;
  box-shadow: var(--shdn);
  border: 1px solid var(--rbd);
  transition: all var(--trm);
  text-align: left;
}
.why-card:hover { box-shadow: var(--shdl); transform: translateY(-3px); }
.why-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--red), var(--rdk));
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.35rem;
  margin-bottom: 18px;
}
.why-card h3 { font-size: .97rem; font-weight: 800; color: var(--txt); margin-bottom: 8px; }
.why-card p { font-size: .83rem; color: var(--gry); line-height: 1.6; }

/* ================================================================
   DOMICILIO CTA
   ================================================================ */
.dom-section { padding: 0; overflow: hidden; }
.dom-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}
.dom-left {
  background: linear-gradient(140deg, #6e0007 0%, #E30613 100%);
  padding: 64px 5vw 64px 5vw;
  position: relative;
  overflow: hidden;
}
.dom-left::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  pointer-events: none;
}
.dom-left-inner { max-width: 560px; margin-left: auto; position: relative; z-index: 1; }
.dom-tag { display: inline-block; background: rgba(255,255,255,.15); color: rgba(255,235,235,.95); border-radius: 6px; padding: 4px 12px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.dom-title { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem,3vw,2.6rem); color: #fff; font-weight: 700; line-height: 1.2; margin-bottom: 12px; }
.dom-sub { color: rgba(255,255,255,.75); font-size: .97rem; line-height: 1.65; margin-bottom: 32px; }
.dom-steps { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.dom-step { display: flex; align-items: flex-start; gap: 14px; }
.dom-step-n {
  width: 34px; height: 34px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: .85rem;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}
.dom-step-txt strong { color: #fff; font-size: .92rem; display: block; }
.dom-step-txt span { color: rgba(255,255,255,.65); font-size: .82rem; }

.dom-right {
  background: var(--glt);
  padding: 64px 5vw;
  display: flex;
  align-items: center;
}
.dom-right-inner { max-width: 480px; }
.dom-form-title { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--rdk); margin-bottom: 6px; }
.dom-form-sub { color: var(--gry); font-size: .88rem; margin-bottom: 24px; }
.dom-form { display: flex; flex-direction: column; gap: 14px; }
.dom-form input, .dom-form textarea {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--rbd);
  font-size: .9rem;
  font-family: inherit;
  outline: none;
  background: #fff;
  transition: border var(--tr);
  resize: none;
}
.dom-form input:focus, .dom-form textarea:focus { border-color: var(--red); }
.dom-form input::placeholder, .dom-form textarea::placeholder { color: #aaa; }
.dom-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ================================================================
   SUCURSALES
   ================================================================ */
.suc-section { padding: 80px 5vw; background: #fff; }
.suc-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.suc-card {
  background: #fff;
  border-radius: var(--radl);
  padding: 24px 20px;
  border: 1.5px solid var(--rbd);
  box-shadow: var(--shdn);
  transition: all var(--trm);
}
.suc-card:hover { border-color: var(--red); box-shadow: var(--shdl); transform: translateY(-3px); }
.suc-num {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  margin-bottom: 10px;
  letter-spacing: .5px;
}
.suc-name { font-size: 1rem; font-weight: 800; color: var(--txt); margin-bottom: 8px; }
.suc-phone { font-size: .88rem; color: var(--gry); display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.suc-phone i { color: var(--red); font-size: .8rem; }
.suc-actions { display: flex; gap: 8px; }
.suc-actions a {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: .78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all var(--tr);
  text-decoration: none;
  border: 1.5px solid var(--rbd);
  color: var(--txt);
}
.suc-actions a:hover { background: var(--rlt); border-color: var(--red); color: var(--red); }
.suc-actions a.wa-btn { background: #25d366; border-color: #25d366; color: #fff; }
.suc-actions a.wa-btn:hover { background: #20ba58; border-color: #20ba58; }

/* ================================================================
   ESTUDIOS BADGE
   ================================================================ */
.badge-a { display: inline-block; background: #fff3cd; color: #856404; border-radius: 4px; padding: 2px 8px; font-size: .71rem; font-weight: 600; }
.badge-n { display: inline-block; background: #d1f7dc; color: #155724; border-radius: 4px; padding: 2px 8px; font-size: .71rem; font-weight: 600; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media(max-width: 1100px) {
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .chk-scroll { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .suc-grid { grid-template-columns: repeat(2, 1fr); }
  .fg { grid-template-columns: 1fr 1fr; }
}
@media(max-width: 900px) {
  .nm { display: none; }
  .hbg { display: flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .dom-inner { grid-template-columns: 1fr; }
  .dom-left-inner { max-width: 100%; }
}
@media(max-width: 640px) {
  .sec { padding: 56px 4vw; }
  .cats-section, .chk-section, .why-section, .suc-section { padding: 56px 4vw; }
  .cats-grid { grid-template-columns: 1fr; gap: 14px; }
  .chk-scroll { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .suc-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .fg { grid-template-columns: 1fr; gap: 32px; }
  .hero-cards { grid-template-columns: 1fr; }
  .hero-title { font-size: 2rem; }
  .waf { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 1.25rem; }
  .dom-left, .dom-right { padding: 48px 4vw; }
  .dom-form-row { grid-template-columns: 1fr; }
  .sec-hd { flex-direction: column; align-items: flex-start; }
}
@media(max-width: 420px) {
  .suc-grid { grid-template-columns: 1fr; }
}

/* ── TABLES (for other pages) ───────────────────────────── */
.tw { overflow-x: auto; border-radius: var(--rad); border: 1px solid var(--rbd); }
.st { width: 100%; border-collapse: collapse; min-width: 480px; }
.st thead tr { background: var(--red); }
.st th { padding: 12px 16px; color: #fff; font-size: .78rem; font-weight: 700; text-align: left; text-transform: uppercase; letter-spacing: .6px; white-space: nowrap; }
.st tbody tr { border-bottom: 1px solid var(--rbd); transition: background var(--tr); }
.st tbody tr:hover { background: var(--rlt); }
.st td { padding: 11px 16px; font-size: .86rem; }
.pc { font-weight: 700; color: var(--red); font-size: .95rem; white-space: nowrap; }
.ba { display: inline-block; background: #fff3cd; color: #856404; border-radius: 4px; padding: 2px 8px; font-size: .71rem; font-weight: 600; white-space: nowrap; }
.bn { display: inline-block; background: #d1f7dc; color: #155724; border-radius: 4px; padding: 2px 8px; font-size: .71rem; font-weight: 600; white-space: nowrap; }
.bs { display: inline-block; background: #d0e8ff; color: #0055a5; border-radius: 4px; padding: 2px 8px; font-size: .71rem; font-weight: 600; white-space: nowrap; }
/* ── TABS (for other pages) ─────────────────────────────── */
.tnav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tbtn { padding: 9px 16px; border-radius: 8px; border: 2px solid var(--rbd); background: #fff; color: var(--gry); font-weight: 600; font-size: .81rem; cursor: pointer; transition: all var(--tr); font-family: inherit; white-space: nowrap; }
.tbtn:hover { border-color: var(--red); color: var(--red); }
.tbtn.act { background: var(--red); color: #fff; border-color: var(--red); }
.tpanel { display: none; }
.tpanel.act { display: block; }
/* ── ACCORDION (for other pages) ────────────────────────── */
.acc-item { border: 1px solid var(--rbd); border-radius: var(--rad); margin-bottom: 10px; overflow: hidden; }
.acc-h { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; cursor: pointer; background: #fff; font-weight: 600; font-size: .93rem; transition: background var(--tr); }
.acc-h:hover { background: var(--rlt); }
.acc-h i { color: var(--red); transition: transform .3s; }
.acc-h.op i { transform: rotate(180deg); }
.acc-b { display: none; padding: 16px 20px; background: var(--glt); font-size: .89rem; color: var(--gry); line-height: 1.7; }
.acc-b.op { display: block; }
/* ── SEARCH BOX (other pages) ───────────────────────────── */
.srchbox { position: relative; max-width: 540px; margin-bottom: 28px; }
.srchbox input { width: 100%; padding: 13px 20px 13px 48px; border-radius: 50px; border: 2px solid var(--rbd); font-size: .91rem; font-family: inherit; outline: none; transition: border var(--tr); }
.srchbox input:focus { border-color: var(--red); }
.srchbox i { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--gry); font-size: .93rem; }
/* PAGE HERO (other pages) */
.ph { background: linear-gradient(135deg,var(--rxdk) 0%,var(--red) 100%); padding: 56px 5vw 48px; }
.phi { max-width: 1280px; margin: 0 auto; }
.ph-tag { display: inline-block; background: rgba(255,255,255,.2); color: rgba(255,235,235,.95); border-radius: 6px; padding: 4px 12px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }
.ph h1 { font-family: 'Playfair Display',serif; font-size: clamp(1.9rem,4vw,2.8rem); color: #fff; font-weight: 700; margin-bottom: 10px; line-height: 1.2; }
.ph p { color: rgba(255,255,255,.72); font-size: .97rem; line-height: 1.65; max-width: 580px; }
/* SERVICES GRID (index old) */
.svcs { background: var(--glt); padding: 72px 5vw; }
.sgrid { display: grid; grid-template-columns: repeat(auto-fill,minmax(210px,1fr)); gap: 18px; max-width: 1280px; margin: 0 auto; }
.slnk { background: #fff; border-radius: var(--radl); padding: 26px 22px; box-shadow: var(--shd); border: 1px solid var(--rbd); text-decoration: none; transition: all var(--tr); display: block; }
.slnk:hover { transform: translateY(-5px); box-shadow: var(--shdl); border-color: var(--red); }
.si2 { width: 46px; height: 46px; background: var(--rlt); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--red); font-size: 1.2rem; margin-bottom: 14px; }
.st2 { font-weight: 800; color: var(--rdk); font-size: .95rem; margin-bottom: 7px; }
.sd2 { color: var(--gry); font-size: .81rem; line-height: 1.55; margin-bottom: 12px; }
.sar { color: var(--red); font-size: .81rem; font-weight: 700; }

/* ================================================================
   SLIDER PRINCIPAL
   ================================================================ */
.sldr-wrap {
  background: #fff;
  user-select: none;
  padding: 14px 5%;
  box-sizing: border-box;
  width: 100%;
}
.sldr-area {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
}
.sldr {
  width: 100%;
  overflow: hidden;
}
.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .55s ease;
  z-index: 1;
}
.slide.act {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  z-index: 2;
}

/* Slide image */
.slide a { display: block; line-height: 0; }
.slide img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

/* Slider controls */
.sldr-prev, .sldr-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.88);
  border: 1.5px solid #e5e7eb;
  color: var(--txt);
  width: 36px; height: 36px;
  border-radius: 50%;
  font-size: .85rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.18);
  transition: all .2s ease;
  z-index: 10;
}
.sldr-prev { left: 10px; }
.sldr-next { right: 10px; }
.sldr-prev:hover, .sldr-next:hover { background: var(--red); color: #fff; border-color: var(--red); }

.sldr-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  padding: 10px 0 6px;
  background: #fff;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--rbd);
  cursor: pointer;
  transition: all .25s ease;
  padding: 0;
}
.dot.act { background: var(--red); width: 26px; border-radius: 5px; }

/* ── SEARCH BAR (below slider) ──────────────────────────── */
.hero-search-section {
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 20px 5vw 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,.05);
}
.hero-search-inner { max-width: 1280px; margin: 0 auto; }
.hero-search-wrap { position: relative; }
.hero-search {
  display: flex;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--rbd);
  background: #fff;
  transition: border-color .2s;
}
.hero-search:focus-within { border-color: var(--red); }
.hero-search input {
  flex: 1;
  padding: 14px 16px 14px 46px;
  border: none;
  font-size: .95rem;
  font-family: inherit;
  outline: none;
  background: transparent;
  color: var(--txt);
  min-width: 0;
}
.hero-search input::placeholder { color: #aaa; }
.hero-search button {
  padding: 14px 22px;
  background: var(--red);
  color: #fff;
  border: none;
  font-size: .9rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: background .2s;
}
.hero-search button:hover { background: var(--rdk); }
.hero-quick {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.hq-label { font-size: .78rem; font-weight: 600; color: var(--gry); white-space: nowrap; }
.hq-chip {
  display: inline-block;
  background: var(--glt);
  border: 1px solid #e5e7eb;
  color: var(--txt);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: .78rem;
  font-weight: 600;
  transition: all .2s;
  text-decoration: none;
}
.hq-chip:hover { background: var(--rlt); border-color: var(--red); color: var(--red); }

/* ── SLIDER RESPONSIVE ──────────────────────────────────── */
@media(max-width: 640px) {
  .sldr-wrap { padding: 8px 3%; }
  .sldr-prev, .sldr-next { width: 28px; height: 28px; font-size: .75rem; }
}
