/* =============================================
   Clínica Veterinaria Lomas de Mazatlán
   main.css — Estilos globales compartidos
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Reset & Variables ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:    #336DD3;
  --brand-d:  #1f4fa8;
  --brand-l:  #e8f0fc;
  --brand-p:  #f4f8ff;
  --gold:     #c89b3c;
  --dark:     #0d1b2a;
  --mid:      #3a4a5c;
  --soft:     #6b7f96;
  --radius:   12px;
  --radius-lg: 18px;
  --nav-h:    64px;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'DM Sans', system-ui, sans-serif;
}

body {
  font-family: var(--font-sans);
  color: var(--dark);
  background: #fff;
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ── Topbar ── */
.topbar {
  background: var(--dark);
  color: rgba(255,255,255,.7);
  font-size: .75rem; font-weight: 500;
  padding: .4rem 1.5rem;
  display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap;
}
.topbar a { color: rgba(255,255,255,.8); }
.topbar a:hover { color: #fff; }
.topbar-r { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.em-badge {
  background: linear-gradient(90deg,#b91c1c,#dc2626);
  color: #fff; font-size: .68rem; font-weight: 700;
  padding: .2rem .6rem; border-radius: 20px; letter-spacing: .05em;
  animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,.4); }
  50%       { box-shadow: 0 0 0 6px rgba(220,38,38,0); }
}

/* ── Navbar ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.97); backdrop-filter: blur(12px);
  border-bottom: .5px solid rgba(51,109,211,.12);
  padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--nav-h); transition: box-shadow .3s;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo svg, .nav-logo img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-links a { font-size: .85rem; font-weight: 500; color: var(--mid); transition: color .2s; }
.nav-links a:hover, .nav-links a.active { color: var(--brand); }
.nav-cta {
  background: var(--brand); color: #fff !important;
  padding: .45rem 1.1rem; border-radius: 8px; font-weight: 600; font-size: .82rem;
}
.nav-cta:hover { background: var(--brand-d) !important; }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .25rem;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px;
  background: var(--dark); border-radius: 2px; transition: all .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg,#0d1b2a 0%,#1a2f52 60%,#0f2044 100%);
  padding: 4rem 1.5rem 3.5rem; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 40%,rgba(51,109,211,.22) 0%,transparent 60%);
  pointer-events: none;
}
.hero-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 380px; gap: 3rem; align-items: center;
  position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(51,109,211,.18); border: .5px solid rgba(51,109,211,.4);
  color: #a8c4f0; font-size: .72rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase;
  padding: .35rem .9rem; border-radius: 20px; margin-bottom: 1.2rem;
}
.hero-badge-cnt {
  background: rgba(51,211,100,.18); border: .5px solid rgba(51,211,100,.4);
  color: #7af0a8;
}
.hero-h1 {
  font-family: var(--font-serif);
  font-size: clamp(2rem,3.5vw,3rem); font-weight: 700; color: #fff; line-height: 1.18; margin-bottom: 1.2rem;
}
.hero-h1 em { font-style: normal; color: #7aabf0; }
.hero-desc { font-size: .95rem; color: rgba(255,255,255,.68); line-height: 1.75; margin-bottom: 1.8rem; max-width: 460px; }
.hero-desc strong { color: rgba(255,255,255,.92); }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-bottom: 2rem; }
.btn-p {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--brand); color: #fff; font-size: .88rem; font-weight: 600;
  padding: .7rem 1.5rem; border-radius: var(--radius); border: none; cursor: pointer;
  box-shadow: 0 4px 16px rgba(51,109,211,.4); transition: background .2s, transform .2s;
}
.btn-p:hover { background: var(--brand-d); transform: translateY(-1px); }
.btn-s {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.07); border: .5px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.85); font-size: .88rem; font-weight: 500;
  padding: .7rem 1.3rem; border-radius: var(--radius); cursor: pointer; transition: background .2s;
}
.btn-s:hover { background: rgba(255,255,255,.12); }
.hero-trust { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.ht-item { display: flex; align-items: center; gap: .5rem; }
.ht-icon {
  width: 34px; height: 34px; background: rgba(255,255,255,.07);
  border: .5px solid rgba(255,255,255,.14); border-radius: 9px;
  display: flex; align-items: center; justify-content: center; font-size: .95rem; flex-shrink: 0;
}
.ht-text strong { display: block; color: #fff; font-size: .82rem; font-weight: 600; }
.ht-text span   { color: rgba(255,255,255,.5); font-size: .72rem; }

/* Hero card */
.hero-card {
  background: rgba(255,255,255,.06); border: .5px solid rgba(255,255,255,.12);
  backdrop-filter: blur(10px); border-radius: var(--radius-lg); padding: 1.8rem;
  position: relative; overflow: hidden;
}
.hero-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg,var(--brand),#5b9bd5,var(--gold));
}
.hc-title {
  font-family: var(--font-serif); font-size: 1.05rem; color: #fff;
  margin-bottom: 1.2rem; display: flex; align-items: center; gap: .5rem;
}
.hours { display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1.2rem; }
.hour-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: .55rem .8rem; background: rgba(255,255,255,.05);
  border: .5px solid rgba(255,255,255,.07); border-radius: 8px; font-size: .78rem;
}
.hour-row .d { color: rgba(255,255,255,.7); font-weight: 500; }
.hour-row .t { color: #fff; font-weight: 600; }
.hour-row.em { border-color: rgba(220,38,38,.3); background: rgba(220,38,38,.07); }
.hour-row.em .d { color: #f08080; }
.hour-row.em .t { color: #ffaaaa; }
.contacts { display: flex; flex-direction: column; gap: .5rem; }
.c-btn {
  display: flex; align-items: center; gap: .6rem;
  background: rgba(51,109,211,.18); border: .5px solid rgba(51,109,211,.3);
  color: #a8c4f0; font-size: .78rem; font-weight: 500;
  padding: .55rem .8rem; border-radius: 8px; transition: all .2s;
}
.c-btn:hover { background: rgba(51,109,211,.3); color: #fff; }
.hstats {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1px;
  background: rgba(255,255,255,.08); border-radius: 10px; overflow: hidden; margin-top: 1.2rem;
}
.hs { background: rgba(255,255,255,.04); padding: 1rem .6rem; text-align: center; }
.hs .n { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; color: #fff; line-height: 1; }
.hs .n span { color: var(--gold); }
.hs .l { font-size: .65rem; color: rgba(255,255,255,.5); margin-top: .25rem; line-height: 1.3; }

/* ── Proof bar ── */
.proof-bar {
  background: var(--brand-p); border-bottom: .5px solid var(--brand-l);
  padding: .9rem 1.5rem;
  display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap;
}
.pi { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: var(--mid); font-weight: 500; }
.pi strong { color: var(--brand); }
.psep { width: 1px; height: 20px; background: var(--brand-l); }

/* ── Section helpers ── */
.section { padding: 4.5rem 1.5rem; }
.section-alt { background: var(--brand-p); }
.container { max-width: 1100px; margin: 0 auto; }
.s-label {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); margin-bottom: .8rem;
}
.s-label::before { content: ''; width: 20px; height: 2px; background: var(--brand); border-radius: 1px; }
.s-h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.7rem,2.8vw,2.4rem); font-weight: 700; line-height: 1.25; margin-bottom: .8rem;
}
.s-h2 em { font-style: normal; color: var(--brand); }
.s-sub { font-size: .95rem; color: var(--soft); max-width: 520px; line-height: 1.7; }
.tc { text-align: center; }
.tc .s-label { justify-content: center; }
.tc .s-sub { margin: 0 auto; }

/* ── Pillars ── */
.pillars { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.2rem; margin-top: 3rem; }
.pc {
  background: #fff; border: .5px solid rgba(51,109,211,.12);
  border-radius: var(--radius-lg); padding: 1.7rem 1.4rem; text-align: center;
  transition: all .25s; position: relative; overflow: hidden;
}
.pc::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg,var(--brand),#7aabf0);
  transform: scaleX(0); transition: transform .25s;
}
.pc:hover { transform: translateY(-5px); box-shadow: 0 16px 40px rgba(51,109,211,.12); }
.pc:hover::after { transform: scaleX(1); }
.pc-icon {
  width: 56px; height: 56px; background: var(--brand-p); border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin: 0 auto 1rem;
}
.pc-h3 { font-family: var(--font-serif); font-size: 1rem; font-weight: 700; margin-bottom: .5rem; }
.pc-p { font-size: .82rem; color: var(--soft); line-height: 1.6; }

/* ── Services grid ── */
.svc-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.2rem; margin-top: 3rem; }
.sc {
  background: #fff; border: .5px solid rgba(51,109,211,.12);
  border-radius: var(--radius-lg); overflow: hidden; transition: all .25s; display: flex; flex-direction: column;
}
.sc:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(51,109,211,.1); }
.sc-head {
  padding: 1.4rem 1.3rem 1rem;
  background: linear-gradient(135deg,var(--brand-p),#fff);
  border-bottom: .5px solid rgba(51,109,211,.1); position: relative;
}
.sc-num { position: absolute; top: .8rem; right: 1rem; font-size: .65rem; font-weight: 700; color: rgba(51,109,211,.2); letter-spacing: .05em; }
.sc-ico { font-size: 1.7rem; margin-bottom: .6rem; display: block; }
.sc-h3 { font-family: var(--font-serif); font-size: .95rem; font-weight: 700; line-height: 1.3; }
.sc-body { padding: 1rem 1.3rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.sc-desc { font-size: .8rem; color: var(--soft); line-height: 1.6; flex: 1; }
.sc-dets { margin-top: .8rem; display: flex; flex-direction: column; gap: .3rem; }
.sc-det { display: flex; align-items: flex-start; gap: .4rem; font-size: .75rem; color: var(--soft); }
.sc-det::before { content: '✓'; color: var(--brand); font-weight: 700; flex-shrink: 0; margin-top: .05rem; }
.sc-cta {
  display: inline-flex; align-items: center; gap: .3rem;
  color: var(--brand); font-size: .78rem; font-weight: 600; margin-top: 1rem;
}
.sc-cta:hover { color: var(--brand-d); }

/* ── Cremation section ── */
.crem {
  background: linear-gradient(135deg,#1a2035,#0d1b2a); color: #fff;
  padding: 4rem 1.5rem; position: relative; overflow: hidden;
}
.crem::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%,rgba(51,109,211,.15) 0%,transparent 60%);
}
.crem-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; position: relative; z-index: 1; }
.crem-badge {
  display: inline-block; background: rgba(200,155,60,.12); border: .5px solid rgba(200,155,60,.3);
  color: var(--gold); font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  padding: .3rem .8rem; border-radius: 20px; margin-bottom: 1rem;
}
.crem-h2 { font-family: var(--font-serif); font-size: clamp(1.6rem,2.8vw,2.2rem); font-weight: 700; line-height: 1.25; margin-bottom: 1rem; }
.crem-h2 em { font-style: normal; color: #7aabf0; }
.crem-desc { color: rgba(255,255,255,.65); line-height: 1.75; font-size: .92rem; margin-bottom: 1.6rem; }
.crem-feats { display: flex; flex-direction: column; gap: .7rem; margin-bottom: 1.8rem; }
.cf { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: rgba(255,255,255,.8); }
.cf-i { width: 28px; height: 28px; background: rgba(51,109,211,.22); border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: .8rem; flex-shrink: 0; }
.crem-card { background: rgba(255,255,255,.05); border: .5px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 2rem; }
.crem-q {
  font-family: var(--font-serif); font-size: 1.1rem; line-height: 1.55;
  color: rgba(255,255,255,.88); font-style: italic; position: relative; padding-left: 1.3rem;
}
.crem-q::before {
  content: '"'; position: absolute; left: 0; top: -.15rem;
  font-size: 2.5rem; color: var(--gold); line-height: 1; font-family: var(--font-serif);
}
.crem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1.5rem; }
.cp { background: rgba(255,255,255,.05); border-radius: 10px; padding: .9rem; text-align: center; }
.cp-i { font-size: 1.2rem; margin-bottom: .3rem; }
.cp-l { font-size: .72rem; color: rgba(255,255,255,.6); line-height: 1.4; }

/* ── Testimonials ── */
.testi-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; margin-top: 3rem; }
.tc-card {
  background: #fff; border: .5px solid rgba(51,109,211,.12);
  border-radius: var(--radius-lg); padding: 1.7rem; position: relative; transition: all .25s;
}
.tc-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(51,109,211,.08); }
.tc-card::before {
  content: '"'; position: absolute; top: .9rem; right: 1.3rem;
  font-size: 3rem; color: var(--brand-l); font-family: var(--font-serif); line-height: 1;
}
.stars { display: flex; gap: .1rem; margin-bottom: .8rem; }
.stars span { color: var(--gold); font-size: .9rem; }
.tc-text { font-size: .85rem; color: var(--soft); line-height: 1.75; margin-bottom: 1.2rem; font-style: italic; }
.tc-auth { display: flex; align-items: center; gap: .7rem; padding-top: .9rem; border-top: .5px solid rgba(51,109,211,.1); }
.ta-av {
  width: 36px; height: 36px; background: var(--brand); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: .85rem; flex-shrink: 0;
}
.ta-name { font-weight: 600; font-size: .85rem; }
.ta-meta { font-size: .72rem; color: var(--soft); }
.g-tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .68rem; color: #4285f4; font-weight: 600; margin-top: .15rem; }

/* Rating aggregate */
.rating-agg {
  display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap;
  margin-top: 2.5rem; background: var(--brand-p); border: .5px solid var(--brand-l);
  border-radius: var(--radius-lg); padding: 1.7rem;
}
.ra-score { text-align: center; }
.ra-num { font-family: var(--font-serif); font-size: 3rem; font-weight: 700; color: var(--brand); line-height: 1; }
.ra-stars { display: flex; gap: .15rem; justify-content: center; margin: .3rem 0; }
.ra-stars span { color: var(--gold); font-size: 1.05rem; }
.ra-lbl { font-size: .75rem; color: var(--soft); }
.ra-sep { width: 1px; height: 50px; background: var(--brand-l); }
.ra-d { text-align: center; }
.ra-big { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; }
.ra-sub { font-size: .75rem; color: var(--soft); margin-top: .2rem; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; align-items: start; margin-top: 3rem; }
.ci { display: flex; flex-direction: column; gap: 1rem; }
.ci-card {
  background: #fff; border: .5px solid rgba(51,109,211,.12);
  border-radius: var(--radius); padding: 1.1rem 1.3rem; display: flex; align-items: flex-start; gap: .9rem; transition: all .2s;
}
.ci-card:hover { border-color: rgba(51,109,211,.3); transform: translateX(3px); }
.ci-card.em { background: #fff8f8; border-color: rgba(220,38,38,.18); }
.ci-ico { width: 38px; height: 38px; background: var(--brand-p); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; flex-shrink: 0; }
.ci-card.em .ci-ico { background: #fdecea; }
.ci-lbl { font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand); margin-bottom: .25rem; }
.ci-card.em .ci-lbl { color: #dc2626; }
.ci-val { font-size: .88rem; font-weight: 500; line-height: 1.5; }
.ci-val a { color: var(--brand); }
.ci-val a:hover { color: var(--brand-d); }

/* ── Form ── */
.form-wrap {
  background: #fff; border: .5px solid rgba(51,109,211,.12);
  border-radius: var(--radius-lg); padding: 2rem;
}
.f-title { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 700; margin-bottom: .3rem; }
.f-sub { font-size: .82rem; color: var(--soft); margin-bottom: 1.5rem; }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.f-group { display: flex; flex-direction: column; gap: .35rem; }
.f-group.full { grid-column: 1/-1; }
.f-label { font-size: .75rem; font-weight: 600; color: var(--mid); }
.f-input, .f-select, .f-textarea {
  width: 100%; padding: .65rem .9rem;
  border: .5px solid rgba(51,109,211,.2); border-radius: 9px;
  font-size: .85rem; color: var(--dark); background: #fff;
  font-family: var(--font-sans); outline: none; appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.f-input:focus, .f-select:focus, .f-textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(51,109,211,.1);
}
.f-textarea { resize: vertical; min-height: 100px; }
.f-submit {
  width: 100%; background: var(--brand); color: #fff; border: none; cursor: pointer;
  font-family: var(--font-sans); font-size: .9rem; font-weight: 600;
  padding: .85rem 2rem; border-radius: var(--radius); margin-top: 1rem;
  display: flex; align-items: center; justify-content: center; gap: .4rem; transition: all .2s;
}
.f-submit:hover { background: var(--brand-d); transform: translateY(-1px); }
.f-submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.f-guar { display: flex; align-items: center; gap: .4rem; font-size: .72rem; color: var(--soft); margin-top: .7rem; justify-content: center; }
.success-msg { display: none; background: #f0fdf4; border: .5px solid #86efac; border-radius: 9px; padding: .9rem; text-align: center; margin-top: .8rem; color: #166534; font-weight: 600; font-size: .85rem; }
.error-msg { display: none; background: #fef2f2; border: .5px solid #fca5a5; border-radius: 9px; padding: .9rem; text-align: center; margin-top: .8rem; color: #dc2626; font-size: .82rem; }

/* ── Footer ── */
footer { background: var(--dark); color: rgba(255,255,255,.65); padding: 3.5rem 1.5rem 0; }
.f-grid-4 {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem;
  padding-bottom: 2.5rem; border-bottom: .5px solid rgba(255,255,255,.07);
}
.f-brand-col .logo svg { height: 30px; filter: brightness(0) invert(1); opacity: .8; }
.f-tag { font-size: .83rem; line-height: 1.7; color: rgba(255,255,255,.5); margin: 1rem 0; }
.f-socials { display: flex; gap: .5rem; }
.f-soc {
  width: 32px; height: 32px; background: rgba(255,255,255,.06); border: .5px solid rgba(255,255,255,.1);
  border-radius: 7px; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.55); font-size: .8rem; transition: all .2s;
}
.f-soc:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.f-col-t { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.88); margin-bottom: 1rem; }
.f-links { display: flex; flex-direction: column; gap: .6rem; }
.f-links a { font-size: .82rem; color: rgba(255,255,255,.5); transition: color .2s; display: flex; align-items: center; gap: .3rem; }
.f-links a:hover { color: rgba(255,255,255,.88); }
.f-links a::before { content: '→'; font-size: .68rem; color: var(--brand); }
.f-contacts { display: flex; flex-direction: column; gap: .8rem; }
.f-ci { display: flex; align-items: flex-start; gap: .6rem; font-size: .8rem; color: rgba(255,255,255,.5); line-height: 1.5; }
.f-ci .ic { color: var(--brand); font-size: .85rem; margin-top: .1rem; flex-shrink: 0; }
.f-ci a { color: rgba(255,255,255,.7); }
.f-ci a:hover { color: #fff; }
.f-bottom {
  max-width: 1100px; margin: 0 auto; padding: 1.2rem 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .4rem;
  font-size: .73rem; color: rgba(255,255,255,.3);
}
.f-bottom a { color: rgba(255,255,255,.45); }

/* ── Floating buttons ── */
.float { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999; display: flex; flex-direction: column; gap: .5rem; align-items: flex-end; }
.fb {
  display: flex; align-items: center; gap: .5rem; padding: .65rem 1.1rem;
  border-radius: 24px; font-size: .82rem; font-weight: 600; color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.2); transition: all .2s; white-space: nowrap;
}
.fb:hover { transform: translateY(-2px); }
.fb.wa { background: #25d366; }
.fb.ph { background: var(--brand); }
.fb-i { font-size: .95rem; }

/* ── Breadcrumb ── */
.breadcrumb {
  background: var(--brand-p); padding: .8rem 1.5rem;
  font-size: .78rem; color: var(--soft);
}
.breadcrumb-inner { max-width: 1100px; margin: 0 auto; display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--brand); }
.breadcrumb a:hover { color: var(--brand-d); }
.breadcrumb span { color: var(--soft); }

/* ── Page hero (inner pages) ── */
.page-hero {
  background: linear-gradient(135deg,#0d1b2a 0%,#1a2f52 100%);
  padding: 3.5rem 1.5rem 3rem; text-align: center; position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 80%,rgba(51,109,211,.2) 0%,transparent 65%);
}
.page-hero-inner { max-width: 700px; margin: 0 auto; position: relative; z-index: 1; }
.page-hero .hero-badge { margin: 0 auto 1rem; }
.page-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem,3vw,2.6rem); font-weight: 700; color: #fff; line-height: 1.22; margin-bottom: 1rem;
}
.page-hero h1 em { font-style: normal; color: #7aabf0; }
.page-hero p { font-size: .95rem; color: rgba(255,255,255,.65); line-height: 1.75; max-width: 560px; margin: 0 auto; }

/* ── Emergency hero (red) ── */
.em-hero {
  background: linear-gradient(135deg,#7f1d1d 0%,#991b1b 60%,#7f1d1d 100%);
  padding: 4rem 1.5rem 3.5rem; position: relative; overflow: hidden; text-align: center;
}
.em-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 60%,rgba(220,38,38,.3) 0%,transparent 65%);
}
.em-hero-inner { max-width: 800px; margin: 0 auto; position: relative; z-index: 1; }
.em-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem,3vw,2.8rem); font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 1rem;
}
.em-hero p { font-size: 1rem; color: rgba(255,255,255,.75); line-height: 1.7; margin-bottom: 2rem; }
.pulse-btn {
  display: inline-flex; align-items: center; gap: .6rem;
  background: #dc2626; color: #fff;
  padding: 1rem 2.5rem; border-radius: 50px; font-size: 1.1rem; font-weight: 700;
  box-shadow: 0 0 0 0 rgba(220,38,38,.7);
  animation: pulse-call 1.8s infinite;
  border: none; cursor: pointer;
}
.pulse-btn:hover { background: #b91c1c; }
@keyframes pulse-call {
  0%   { box-shadow: 0 0 0 0 rgba(220,38,38,.7); }
  70%  { box-shadow: 0 0 0 18px rgba(220,38,38,0); }
  100% { box-shadow: 0 0 0 0 rgba(220,38,38,0); }
}
.em-phones { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin-top: 1.2rem; }
.em-phone-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; padding: .6rem 1.4rem; border-radius: 40px; font-size: .9rem; font-weight: 600;
  transition: all .2s;
}
.em-phone-btn:hover { background: rgba(255,255,255,.2); }

/* ── Accordion (FAQ) ── */
.accordion { display: flex; flex-direction: column; gap: .6rem; margin-top: 2rem; }
.acc-item {
  background: #fff; border: .5px solid rgba(51,109,211,.15);
  border-radius: var(--radius); overflow: hidden;
}
.acc-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.3rem; background: none; border: none; cursor: pointer;
  font-family: var(--font-sans); font-size: .9rem; font-weight: 600; color: var(--dark);
  text-align: left; gap: 1rem;
}
.acc-trigger:hover { color: var(--brand); }
.acc-icon {
  font-size: 1.1rem; color: var(--brand); flex-shrink: 0;
  transition: transform .3s; line-height: 1;
}
.acc-item.open .acc-icon { transform: rotate(45deg); }
.acc-body {
  max-height: 0; overflow: hidden; transition: max-height .35s ease;
}
.acc-body-inner {
  padding: 0 1.3rem 1.1rem; font-size: .88rem; color: var(--soft); line-height: 1.75;
}
.acc-body-inner a { color: var(--brand); }

/* FAQ categories */
.faq-cat { margin-top: 3rem; }
.faq-cat-title {
  font-family: var(--font-serif); font-size: 1.3rem; font-weight: 700; margin-bottom: 1.2rem;
  padding-left: .8rem; border-left: 3px solid var(--brand);
}

/* ── Blog ── */
.blog-filters {
  display: flex; gap: .5rem; flex-wrap: wrap; margin: 2rem 0 1.5rem;
}
.blog-filter-btn {
  padding: .4rem 1rem; border-radius: 20px; font-size: .8rem; font-weight: 600; cursor: pointer;
  background: none; border: 1.5px solid var(--brand-l); color: var(--mid); transition: all .2s;
}
.blog-filter-btn:hover, .blog-filter-btn.active {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.blog-search {
  position: relative; max-width: 380px; margin-bottom: 1.5rem;
}
.blog-search input {
  width: 100%; padding: .65rem 1rem .65rem 2.5rem;
  border: .5px solid rgba(51,109,211,.2); border-radius: 40px;
  font-size: .88rem; font-family: var(--font-sans); outline: none; color: var(--dark);
  transition: border-color .2s, box-shadow .2s;
}
.blog-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(51,109,211,.1); }
.blog-search::before { content: '🔍'; position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); font-size: .85rem; }
.blog-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2.5rem; align-items: start; }
.blog-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.2rem; }
.blog-card {
  background: #fff; border: .5px solid rgba(51,109,211,.12);
  border-radius: var(--radius-lg); overflow: hidden; transition: all .25s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(51,109,211,.1); }
.blog-card.hidden { display: none; }
.blog-card-img {
  height: 160px; overflow: hidden; background: linear-gradient(135deg,var(--brand-p),var(--brand-l));
  display: flex; align-items: center; justify-content: center; font-size: 3rem; position: relative;
}
.blog-cat-tag {
  position: absolute; top: .8rem; left: .8rem;
  background: var(--brand); color: #fff; font-size: .65rem; font-weight: 700; letter-spacing: .05em;
  padding: .2rem .6rem; border-radius: 12px; text-transform: uppercase;
}
.blog-card-body { padding: 1.2rem; }
.blog-card-title { font-family: var(--font-serif); font-size: 1rem; font-weight: 700; line-height: 1.35; margin-bottom: .5rem; color: var(--dark); }
.blog-card-title:hover { color: var(--brand); }
.blog-card-excerpt { font-size: .8rem; color: var(--soft); line-height: 1.6; margin-bottom: .8rem; }
.blog-card-meta { display: flex; align-items: center; gap: .6rem; font-size: .72rem; color: var(--soft); }
.blog-card-meta span::before { content: '·'; margin-right: .6rem; }
.blog-card-meta span:first-child::before { display: none; }
.blog-sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-box {
  background: #fff; border: .5px solid rgba(51,109,211,.12);
  border-radius: var(--radius-lg); padding: 1.4rem;
}
.sidebar-title { font-family: var(--font-serif); font-size: 1rem; font-weight: 700; margin-bottom: 1rem; }
.sidebar-art { display: flex; flex-direction: column; gap: .8rem; }
.sidebar-art-item { display: flex; gap: .7rem; align-items: flex-start; }
.sidebar-art-item .thumb { width: 52px; height: 52px; border-radius: 8px; background: var(--brand-p); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.sidebar-art-item a { font-size: .82rem; font-weight: 600; color: var(--dark); line-height: 1.4; }
.sidebar-art-item a:hover { color: var(--brand); }
.sidebar-art-item .meta { font-size: .7rem; color: var(--soft); margin-top: .2rem; }

/* ── Article ── */
.article-layout { display: grid; grid-template-columns: 1fr 280px; gap: 2.5rem; align-items: start; max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem; }
.article-content { min-width: 0; }
.article-meta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: .5px solid var(--brand-l); font-size: .8rem; color: var(--soft); }
.article-author { display: flex; align-items: center; gap: .5rem; }
.article-author .av { width: 32px; height: 32px; background: var(--brand); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: .8rem; }
.article-body h2 { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 700; margin: 2rem 0 .8rem; color: var(--dark); }
.article-body h3 { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 700; margin: 1.5rem 0 .6rem; color: var(--dark); }
.article-body p { font-size: .93rem; line-height: 1.8; color: var(--mid); margin-bottom: 1rem; }
.article-body ul, .article-body ol { margin: .8rem 0 1rem 1.2rem; }
.article-body li { font-size: .93rem; line-height: 1.8; color: var(--mid); margin-bottom: .3rem; }
.article-body ul li { list-style: disc; }
.article-body strong { color: var(--dark); font-weight: 600; }
.article-toc {
  background: var(--brand-p); border: .5px solid var(--brand-l); border-left: 3px solid var(--brand);
  border-radius: var(--radius); padding: 1.2rem; margin-bottom: 2rem;
}
.article-toc-title { font-weight: 700; font-size: .82rem; letter-spacing: .07em; text-transform: uppercase; color: var(--brand); margin-bottom: .8rem; }
.article-toc ol { margin-left: 1rem; }
.article-toc li { font-size: .83rem; line-height: 1.9; }
.article-toc a { color: var(--brand); }
.article-toc a:hover { color: var(--brand-d); }
.article-cta {
  background: linear-gradient(135deg,var(--brand),var(--brand-d));
  border-radius: var(--radius-lg); padding: 2rem; text-align: center; margin: 2.5rem 0; color: #fff;
}
.article-cta h3 { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; }
.article-cta p { font-size: .88rem; opacity: .85; margin-bottom: 1.2rem; }
.article-cta .btn-light { background: #fff; color: var(--brand); font-weight: 700; padding: .7rem 1.8rem; border-radius: var(--radius); display: inline-block; font-size: .88rem; }
.article-cta .btn-light:hover { background: var(--brand-p); }
.related-articles { margin-top: 3rem; padding-top: 2rem; border-top: .5px solid var(--brand-l); }
.related-articles h3 { font-family: var(--font-serif); font-size: 1.2rem; font-weight: 700; margin-bottom: 1.2rem; }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.article-sidebar { display: flex; flex-direction: column; gap: 1.5rem; position: sticky; top: calc(var(--nav-h) + 1rem); }

/* ── Service page ── */
.svc-process { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; margin-top: 2.5rem; }
.svc-step {
  text-align: center; padding: 1.5rem; background: #fff; border: .5px solid rgba(51,109,211,.12);
  border-radius: var(--radius-lg); position: relative;
}
.svc-step::after {
  content: '→'; position: absolute; right: -.8rem; top: 50%; transform: translateY(-50%);
  color: var(--brand-l); font-size: 1.2rem; display: block;
}
.svc-step:last-child::after { display: none; }
.step-num {
  width: 44px; height: 44px; background: var(--brand); color: #fff;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; margin: 0 auto .9rem;
}
.step-icon { font-size: 1.8rem; margin-bottom: .6rem; }
.step-title { font-family: var(--font-serif); font-size: .95rem; font-weight: 700; margin-bottom: .4rem; }
.step-desc { font-size: .8rem; color: var(--soft); line-height: 1.55; }
.svc-benefits { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-top: 2.5rem; }
.benefit-card {
  display: flex; gap: .8rem; align-items: flex-start;
  padding: 1.2rem; background: #fff; border: .5px solid rgba(51,109,211,.12);
  border-radius: var(--radius);
}
.benefit-icon { font-size: 1.4rem; flex-shrink: 0; }
.benefit-text h4 { font-size: .88rem; font-weight: 700; margin-bottom: .25rem; }
.benefit-text p { font-size: .78rem; color: var(--soft); line-height: 1.55; }

/* ── Team ── */
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 2.5rem; }
.team-card {
  background: #fff; border: .5px solid rgba(51,109,211,.12);
  border-radius: var(--radius-lg); overflow: hidden; transition: all .25s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(51,109,211,.1); }
.team-photo {
  height: 240px; display: flex; align-items: center; justify-content: center;
  font-size: 4rem;
}
.team-photo-1 { background: linear-gradient(135deg,#1a2f52,#336DD3); }
.team-photo-2 { background: linear-gradient(135deg,#1a3a52,#3366a0); }
.team-photo-3 { background: linear-gradient(135deg,#2a1f52,#6633D3); }
.team-photo-4 { background: linear-gradient(135deg,#1a4033,#33A36D); }
.team-info { padding: 1.4rem; }
.team-name { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 700; }
.team-title { font-size: .78rem; color: var(--brand); font-weight: 600; margin: .3rem 0 .7rem; }
.team-bio { font-size: .82rem; color: var(--soft); line-height: 1.65; }
.team-tags { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .8rem; }
.team-tag { background: var(--brand-p); color: var(--brand); font-size: .68rem; font-weight: 600; padding: .2rem .7rem; border-radius: 12px; }

/* ── Gallery ── */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 1rem; margin-top: 2rem; }
.gallery-item {
  border-radius: var(--radius); overflow: hidden; position: relative;
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: transform .25s;
}
.gallery-item:hover { transform: scale(1.02); }
.gallery-item:hover .gal-overlay { opacity: 1; }
.gallery-bg-1 { background: linear-gradient(135deg,#1a2f52,#336DD3); }
.gallery-bg-2 { background: linear-gradient(135deg,#1a3a52,#2a6088); }
.gallery-bg-3 { background: linear-gradient(135deg,#0d2a0d,#2d7a2d); }
.gallery-bg-4 { background: linear-gradient(135deg,#3a1a0d,#8a4a1a); }
.gallery-bg-5 { background: linear-gradient(135deg,#2a0d3a,#6a1a8a); }
.gallery-bg-6 { background: linear-gradient(135deg,#1a1a3a,#3a3a8a); }
.gal-icon { font-size: 3.5rem; opacity: .7; }
.gal-overlay {
  position: absolute; inset: 0; background: rgba(51,109,211,.7);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; opacity: 0; transition: opacity .25s;
}
.gal-label { font-size: .82rem; font-weight: 600; margin-top: .4rem; }

/* ── Map embed ── */
.map-section { margin-top: 2rem; border-radius: var(--radius-lg); overflow: hidden; border: .5px solid rgba(51,109,211,.15); }
.map-section iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ── Exit intent popup ── */
.popup-overlay {
  position: fixed; inset: 0; background: rgba(13,27,42,.7); backdrop-filter: blur(4px);
  z-index: 9999; display: none; align-items: center; justify-content: center; padding: 1rem;
}
.popup-overlay.show { display: flex; }
.popup-box {
  background: #fff; border-radius: var(--radius-lg); padding: 2.2rem; max-width: 420px; width: 100%;
  position: relative; text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.25);
}
.popup-close {
  position: absolute; top: .8rem; right: .9rem;
  background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--soft);
}
.popup-close:hover { color: var(--dark); }
.popup-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.popup-title { font-family: var(--font-serif); font-size: 1.4rem; font-weight: 700; margin-bottom: .5rem; }
.popup-desc { font-size: .88rem; color: var(--soft); margin-bottom: 1.5rem; line-height: 1.65; }
.popup-wa-btn {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  background: #25d366; color: #fff; font-weight: 700; font-size: 1rem;
  padding: .85rem 2rem; border-radius: var(--radius); width: 100%; transition: background .2s;
}
.popup-wa-btn:hover { background: #1da855; }
.popup-skip { display: block; margin-top: .9rem; font-size: .78rem; color: var(--soft); cursor: pointer; }
.popup-skip:hover { color: var(--brand); }

/* Citas disponibles badge */
.citas-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(51,211,100,.15); border: .5px solid rgba(51,211,100,.35);
  color: #16a34a; font-size: .8rem; font-weight: 600;
  padding: .3rem .9rem; border-radius: 20px; margin-bottom: .8rem;
}
.citas-badge::before { content: '●'; font-size: .5rem; animation: blink 1.5s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

/* ── Responsive ── */
@media (max-width: 1100px) {
  .svc-process { grid-template-columns: repeat(2,1fr); }
  .svc-process .svc-step::after { display: none; }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { display: grid; grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .pillars { grid-template-columns: repeat(2,1fr); }
  .svc-grid { grid-template-columns: repeat(2,1fr); }
  .crem-inner { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .f-grid-4 { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .svc-benefits { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .pillars { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .f-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: rgba(255,255,255,.98); padding: 1rem 1.5rem 1.5rem; border-bottom: .5px solid var(--brand-l); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .nav { position: relative; }
  .proof-bar { gap: .8rem; }
  .psep { display: none; }
  .f-grid-4 { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-sidebar { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .svc-process { grid-template-columns: 1fr; }
  .svc-benefits { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .em-phones { flex-direction: column; align-items: center; }
  .gallery-grid { grid-template-columns: repeat(2,1fr); }
}
