/* ==========================================================================
   PLC Instalaciones Placas Solares Alcalá de Henares — Sistema de diseño
   Tipografías: Bitter (titulares) + Public Sans (texto), vía Google Fonts
   ========================================================================== */

:root {
  --primary: #4B1D2C;
  --primary-light: #6A2B40;
  --primary-deep: #2E1019;
  --accent: #E9B44C;
  --accent-hover: #D39A2C;
  --accent-light: #F2CC7E;
  --accent-text: #7A4F00;      /* AA sobre blanco y sobre --warm-bg */
  --accent-solid: #E9B44C;     /* botón principal: texto oscuro encima */
  --accent-solid-hover: #F4C766;
  --sage: #9A6B52;
  --warm-bg: #F7F1EC;
  --text: #2A1C21;
  --text-muted: #6A5A60;
  --border: #E1D5CC;
  --white: #FFFFFF;
  --success: #1E7A46;

  --font-heading: 'Bitter', Georgia, serif;
  --font-body: 'Public Sans', system-ui, sans-serif;

  --radius-sm: 3px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --radius-pill: 3px;

  --shadow-sm: 0 1px 0 rgba(46, 16, 25, 0.06);
  --shadow-md: 6px 6px 0 rgba(75, 29, 44, 0.14);

  --container-max: 1180px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--primary);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
p { margin: 0 0 1em; }

h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.4rem); font-weight: 600; }

.overline {
  display: inline-flex; align-items: center; gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-text);
  margin-bottom: 10px;
}
.overline::before { content: ""; width: 26px; height: 3px; background: var(--accent); display: inline-block; }
.copy-centered .overline, .block-head.copy-centered .overline { justify-content: center; }

/* ---- Layout ---- */
.shell { max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.block { padding: 84px 0; }
.block-shade { background: var(--warm-bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.layout { display: grid; gap: 24px; }
.layout-2 { grid-template-columns: repeat(2, 1fr); gap: 48px; }
.layout-3 { grid-template-columns: repeat(3, 1fr); }
.layout-4 { grid-template-columns: repeat(4, 1fr); }
.flex { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.copy-centered { text-align: center; }
.block-head { max-width: 720px; margin: 0 auto 52px; }
.block-head.copy-centered { text-align: center; }

@media (max-width: 1024px) {
  .layout-4 { grid-template-columns: repeat(2, 1fr); }
  .layout-3 { grid-template-columns: repeat(2, 1fr); }
  .layout-2 { gap: 32px; }
}
@media (max-width: 640px) {
  .layout-2, .layout-3, .layout-4 { grid-template-columns: 1fr; }
  .block { padding: 56px 0; }
  .reachus-frm { order: -1; }
}

/* ---- Botones ---- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.97rem;
  letter-spacing: 0.01em;
  border: 2px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.cta-solid { background: var(--accent-solid); color: var(--primary-deep); border-color: var(--accent-solid); box-shadow: 4px 4px 0 rgba(46,16,25,0.28); }
.cta-solid:hover { background: var(--accent-solid-hover); border-color: var(--accent-solid-hover); box-shadow: 2px 2px 0 rgba(46,16,25,0.28); }
.cta-ghost { background: transparent; border-color: var(--white); color: var(--white); }
.cta-ghost:hover { background: var(--white); color: var(--primary); }
.cta-frame { background: transparent; border-color: var(--primary); color: var(--primary); }
.cta-frame:hover { background: var(--primary); color: var(--white); }
.cta-goto { color: var(--primary); font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.cta-wide { width: 100%; }

/* ---- Cabecera ---- */
.ribbon {
  background: var(--warm-bg);
  color: var(--primary);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.ribbon .shell { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 8px; }
.ribbon a { color: var(--primary); font-weight: 600; }
.ribbon a:hover { color: var(--accent-text); text-decoration: underline; }
.ribbon-cell { display: inline-flex; align-items: center; gap: 6px; margin-right: 22px; }

.shell2-crown {
  background: var(--white);
  border-bottom: 4px solid var(--primary);
  position: sticky;
  top: 0;
  z-index: 50;
}
.shell2-crown .shell { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-heading); font-weight: 700; font-size: 1.12rem; line-height: 1.1; color: var(--primary); }
.logo svg { height: 44px; width: 44px; flex-shrink: 0; }
.logo-copy { display: flex; flex-direction: column; }
.logo-name { display: block; }
.logo-below { display: block; font-family: var(--font-body); font-weight: 600; font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); margin-top: 2px; }

.primary2-links ul { display: flex; gap: 2px; align-items: center; }
.primary2-links a { position: relative; font-weight: 600; font-size: 0.98rem; color: var(--primary); padding: 10px 14px; border-radius: var(--radius-sm); }
.primary2-links a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.2s ease; }
.primary2-links a:hover::after,
.primary2-links a[aria-current="page"]::after { transform: scaleX(1); }
.primary2-links a[aria-current="page"] { color: var(--primary); font-weight: 700; }

.owns-flyout { position: relative; }
.flyout-opener { display: inline-flex; align-items: center; gap: 5px; }
.flyout-chevron { font-size: 0.65em; transition: transform 0.2s ease; }
.owns-flyout:hover .flyout-chevron,
.owns-flyout:focus-within .flyout-chevron { transform: rotate(180deg); }
.primary2-links .flyout-menu {
  display: block;
  position: absolute; top: 100%; left: 0; margin: 0; padding: 12px 0 6px;
  background: var(--white); border: 2px solid var(--primary); border-top-width: 4px; border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-md); min-width: 280px;
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-4px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 60;
}
.owns-flyout:hover .flyout-menu,
.owns-flyout:focus-within .flyout-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.flyout-menu li { margin: 0; }
.primary2-links .flyout-menu a { display: block; padding: 10px 20px; border-radius: 0; font-weight: 600; font-size: 0.94rem; white-space: nowrap; }
.primary2-links .flyout-menu a::after { display: none; }
.primary2-links .flyout-menu a:hover { background: var(--warm-bg); color: var(--accent-text); }

.crown-call { display: flex; align-items: center; gap: 12px; }
.crown-call .cta { font-size: 0.95rem; padding: 11px 22px; }
.links-burger { display: none; background: var(--primary); border: none; border-radius: var(--radius-sm); padding: 12px; min-width: 46px; min-height: 46px; }
.links-burger span { display: block; width: 22px; height: 2px; background: var(--white); margin: 5px auto; }
.crown-call .cta .cta-copy-tiny { display: none; }

@media (max-width: 900px) {
  .primary2-links { position: fixed; inset: 0 0 0 24%; background: var(--white); transform: translateX(100%); transition: transform 0.28s ease; padding: 96px 28px 28px; border-left: 4px solid var(--accent); overflow-y: auto; z-index: 70; }
  .primary2-links.is-active { transform: translateX(0); }
  .primary2-links ul { flex-direction: column; align-items: flex-start; gap: 14px; }
  .primary2-links a::after { display: none; }
  .links-burger { display: block; position: relative; z-index: 80; }
  .crown-call .cta .cta-copy-spread { display: none; }
  .crown-call .cta .cta-copy-tiny { display: inline; }
  .primary2-links .flyout-menu {
    position: static; opacity: 1; visibility: visible; pointer-events: auto; transform: none;
    box-shadow: none; border: none; border-left: 3px solid var(--border); border-radius: 0; background: transparent; padding: 2px 0 6px 12px; margin: 4px 0 0 4px; min-width: 0;
  }
  .primary2-links .flyout-menu a { font-size: 0.88rem; padding: 7px 10px; color: var(--text-muted); }
  .flyout-chevron { display: none; }
}

/* ---- Hero a sangre con imagen de fondo ---- */
.banner {
  position: relative;
  background: var(--primary-deep);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.banner-visual { position: static; }
.banner-visual img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.banner::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(100deg, rgba(46,16,25,0.96) 0%, rgba(46,16,25,0.86) 42%, rgba(46,16,25,0.35) 100%);
}
.banner-layout {
  display: block;
  padding-top: 96px;
  padding-bottom: 120px;
  min-height: 600px;
}
.banner-content { position: relative; z-index: 1; max-width: 680px; }
.banner-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--primary-deep); font-weight: 700;
  padding: 7px 14px; border-radius: var(--radius-sm); font-size: 0.82rem; margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.banner h1 { color: var(--white); font-size: clamp(2.3rem, 5vw, 3.8rem); margin-bottom: 18px; }
.banner h1 span { color: var(--accent-light); font-weight: 600; }
.banner-offers { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.76rem; font-weight: 700; color: var(--accent-light); margin-bottom: 18px; }
.banner-intro { font-size: 1.1rem; color: rgba(255,255,255,0.9); max-width: 600px; }
.banner-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.banner-bullets { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.22); font-size: 0.92rem; color: rgba(255,255,255,0.94); max-width: 640px; }
.banner-bullets .bullet-cell { display: flex; align-items: flex-start; gap: 10px; }

.banner-metric-box {
  position: absolute; right: 24px; bottom: 28px; z-index: 2;
  background: var(--accent); color: var(--primary-deep);
  border-radius: var(--radius-sm); box-shadow: 6px 6px 0 rgba(0,0,0,0.3);
  padding: 16px 20px; display: flex; align-items: center; gap: 14px; max-width: 290px;
}
.banner-metric-glyph { width: 42px; height: 42px; border-radius: var(--radius-sm); background: var(--primary-deep); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.banner-metric-box strong { display: block; font-family: var(--font-heading); font-size: 1.3rem; color: var(--primary-deep); line-height: 1.1; }
.banner-metric-box span { display: block; font-size: 0.8rem; color: var(--primary-deep); margin-top: 2px; font-weight: 500; }

@media (max-width: 900px) {
  .banner-layout { padding-top: 60px; padding-bottom: 150px; min-height: 0; }
  .banner::before { background: linear-gradient(180deg, rgba(46,16,25,0.93) 0%, rgba(46,16,25,0.84) 100%); }
  .banner-metric-box { left: 24px; right: 24px; max-width: none; bottom: 24px; }
}
@media (max-width: 560px) {
  .banner-bullets { grid-template-columns: 1fr; }
}

.pgx-banner { position: relative; background: var(--primary); color: var(--white); padding: 60px 0 64px; overflow: hidden; border-bottom: 6px solid var(--accent); }
.pgx-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,0.045) 0 2px, transparent 2px 22px);
  pointer-events: none;
}
.pgx-banner .shell { position: relative; z-index: 1; }
.pgx-banner h1 { color: var(--white); margin-bottom: 12px; max-width: 880px; }
.pgx-banner p { color: rgba(255,255,255,0.88); max-width: 680px; margin: 0; font-size: 1.05rem; }
.path { font-size: 0.82rem; letter-spacing: 0.02em; color: rgba(255,255,255,0.7); margin-bottom: 16px; }
.path a { color: var(--accent-light); }
.path a:hover { text-decoration: underline; }

/* ---- Tarjetas ---- */
.box {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 26px 26px 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.box:hover { border-left-color: var(--primary); box-shadow: var(--shadow-md); transform: translate(-2px, -2px); }
.block-shade .box { background: var(--white); }
.box-glyph {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--primary); color: var(--accent-light);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 16px;
}
.box h3 { margin-bottom: 8px; }
.box p { color: var(--text-muted); font-size: 0.96rem; margin-bottom: 0; }
.box-goto { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 0.9rem; color: var(--primary); border-bottom: 3px solid var(--accent); padding-bottom: 1px; }
.box-goto:hover { color: var(--accent-text); }

.photo-box { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius-md); overflow: hidden; border: 3px solid var(--primary); box-shadow: 8px 8px 0 var(--accent); }
.photo-box img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-box-content { display: flex; flex-direction: column; flex: 1; padding: 20px; background: var(--white); }
.photo-box-content .box-goto { margin-top: auto; }

main img[loading="lazy"]:not([class]) { border-radius: var(--radius-md) !important; }

.tag { display: inline-block; background: var(--primary); color: var(--accent-light); font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: var(--radius-sm); }

/* ---- Pasos: línea de tiempo vertical ---- */
.phases { counter-reset: step; position: relative; }
.phases::before { content: ""; position: absolute; left: 19px; top: 8px; bottom: 28px; width: 3px; background: var(--border); }
.phase { position: relative; padding-left: 62px; margin-bottom: 30px; }
.phase:last-child { margin-bottom: 0; }
.phase::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--primary-deep);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 800; font-size: 1.1rem;
  box-shadow: 3px 3px 0 var(--primary);
}
.phase h3 { margin-bottom: 4px; font-size: 1.12rem; }
.phase p { color: var(--text-muted); margin: 0; }

/* ---- Testimonios ---- */
.opinion { background: var(--white); border: 1px solid var(--border); border-top: 5px solid var(--accent); border-radius: var(--radius-md); padding: 26px; }
.opinion .rating { color: var(--accent-text); margin-bottom: 12px; letter-spacing: 2px; }
.opinion p { color: var(--text); font-style: italic; }
.opinion-byline { font-weight: 700; color: var(--primary); font-style: normal; margin-top: 12px; font-size: 0.9rem; }
.opinion-byline span { display: block; font-weight: 400; color: var(--text-muted); font-size: 0.82rem; }

/* ---- FAQ ---- */
.qa-cell { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 12px; }
.block-shade .qa-cell { background: var(--white); }
.qa-opener {
  width: 100%; background: none; border: none; text-align: left;
  padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; color: var(--primary);
}
.qa-opener .glyph { flex-shrink: 0; width: 30px; height: 30px; border-radius: var(--radius-sm); background: var(--accent); color: var(--primary-deep); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; line-height: 1; transition: transform 0.25s ease; }
.qa-opener[aria-expanded="true"] { border-bottom: 1px solid var(--border); }
.qa-opener[aria-expanded="true"] .glyph { transform: rotate(45deg); }
.qa-drawer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.qa-drawer p { padding: 16px 20px 6px; color: var(--text-muted); margin: 0 0 12px; }

/* ---- Formularios ---- */
.frm-row { margin-bottom: 18px; }
.frm-row label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; color: var(--primary); }
.frm-field, .frm-multiline, .frm-dropdown2 {
  width: 100%; padding: 12px 14px; border: 2px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.97rem; background: var(--white); color: var(--text);
}
.frm-field:focus, .frm-multiline:focus, .frm-dropdown2:focus { outline: none; border-color: var(--primary); box-shadow: 3px 3px 0 var(--accent); }
.frm-bullet { display: flex; align-items: flex-start; gap: 10px; font-size: 0.85rem; color: var(--text-muted); }
.frm-bullet input { margin-top: 4px; accent-color: var(--primary); }
.frm-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 10px; }
.frm-result { font-size: 0.9rem; font-weight: 700; margin-top: 14px; min-height: 1.2em; }
.frm-result-success { color: var(--success); }
.frm-result-error:not(:empty),
.frm-result-success:not(:empty) { border-radius: var(--radius-sm); padding: 12px 14px; }
.frm-result-error:not(:empty) { color: #A5281B; background: #FDECEA; border: 1px solid #F5B7B1; border-left: 4px solid #A5281B; }
.frm-result-success:not(:empty) { background: #EAFAF1; border: 1px solid #A9DFBF; border-left: 4px solid var(--success); }
.reachus-frm { border: 3px solid var(--primary); box-shadow: 8px 8px 0 var(--accent); border-left-width: 3px; }
.reachus-frm:hover { transform: none; box-shadow: 8px 8px 0 var(--accent); border-left-color: var(--primary); }

/* ---- Pie de página ---- */
.shell2-base { background: var(--primary-deep); color: rgba(255,255,255,0.78); padding-top: 68px; border-top: 6px solid var(--accent); }
.base-layout { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 44px; padding-bottom: 44px; }
.shell2-base h3 { color: var(--accent-light); font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 18px; }
.shell2-base ul li { margin-bottom: 10px; font-size: 0.93rem; }
.shell2-base a:hover { color: var(--accent-light); text-decoration: underline; }
.base-logo { display: flex; align-items: center; gap: 12px; font-family: var(--font-heading); font-weight: 700; color: var(--white); font-size: 1.08rem; line-height: 1.1; margin-bottom: 16px; }
.base-logo svg { height: 40px; width: 40px; flex-shrink: 0; }
.base-logo .logo-below { color: rgba(255,255,255,0.62); }
.base-summary { font-size: 0.9rem; max-width: 320px; }
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-links a { width: 36px; height: 36px; border-radius: var(--radius-sm); background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; }
.social-links a:hover { background: var(--accent); color: var(--primary-deep); }
.below-base { border-top: 1px solid rgba(255,255,255,0.14); padding: 20px 0; font-size: 0.82rem; }
.below-base .shell { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.below-base a { color: rgba(255,255,255,0.72); }
.below-base a:hover { color: var(--accent-light); }

@media (max-width: 900px) { .base-layout { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .base-layout { grid-template-columns: 1fr; } }

/* ---- Chips ---- */
.pill-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { background: var(--white); border: 1px solid var(--border); border-bottom: 3px solid var(--border); padding: 7px 14px; border-radius: var(--radius-sm); font-size: 0.86rem; font-weight: 600; color: var(--primary); }
.block-shade .pill { background: var(--white); }
.pill.pill-goto { border-bottom-color: var(--accent); }
.pill.pill-goto:hover { background: var(--primary); color: var(--white); border-color: var(--primary); border-bottom-color: var(--accent); }

/* ---- Precios ---- */
.pricing-box { text-align: center; }
.pricing-box .price { font-family: var(--font-heading); font-size: 2rem; font-weight: 700; color: var(--primary); margin: 6px 0; }
.pricing-box .price span { font-size: 0.95rem; font-weight: 600; color: var(--text-muted); }
.pricing-note { font-size: 0.82rem; color: var(--text-muted); text-align: center; margin-top: 18px; }

/* ---- Utilidades ---- */
.mt-0 { margin-top: 0; }
.copy-faded { color: var(--text-muted); }
.location-frame { border-radius: var(--radius-md); overflow: hidden; border: 3px solid var(--primary); box-shadow: 6px 6px 0 var(--accent); }
.location-frame iframe { width: 100%; height: 400px; border: 0; display: block; }

.reviews-summary { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; font-size: 1rem; }
.reviews-summary .rating-rating { color: var(--accent-text); letter-spacing: 2px; }
.reviews-call { display: flex; gap: 18px; margin-top: 24px; flex-wrap: wrap; align-items: center; }

.bypass-goto { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--primary-deep); font-weight: 700; padding: 10px 16px; z-index: 100; }
.bypass-goto:focus { left: 10px; top: 10px; }

/* ---- Widget de WhatsApp ---- */
.chat-launcher {
  position: fixed; bottom: 22px; right: 22px; z-index: 90;
  width: 62px; height: 62px; border-radius: 16px;
  background: #25D366; border: 3px solid var(--primary-deep); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 4px 4px 0 var(--primary-deep); cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.chat-launcher:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--primary-deep); }
.chat-launcher svg { width: 32px; height: 32px; }

.chat-drawer {
  position: fixed; bottom: 98px; right: 22px; z-index: 91;
  width: min(350px, calc(100vw - 32px));
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 8px 8px 0 rgba(46,16,25,0.35);
  overflow: hidden;
  border: 3px solid var(--primary-deep);
}
.chat-drawer[hidden] { display: none; }

.chat-drawer-crown { background: #1B8A47; color: #fff; display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.chat-drawer-crown-glyph { width: 40px; height: 40px; border-radius: var(--radius-sm); background: #fff; color: #1B8A47; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.chat-drawer-crown-glyph svg { width: 24px; height: 24px; color: #1B8A47; }
.chat-drawer-crown strong { display: block; font-family: var(--font-heading); font-size: 0.95rem; }
.chat-drawer-crown span { display: block; font-size: 0.78rem; color: rgba(255,255,255,0.88); }
.chat-drawer-dismiss { margin-left: auto; background: none; border: none; color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; padding: 4px 8px; }

.chat-drawer-content { padding: 16px; max-height: 70vh; overflow-y: auto; background: var(--warm-bg); }
.chat-balloon { background: #fff; border: 1px solid var(--border); border-radius: 0 var(--radius-md) var(--radius-md) var(--radius-md); padding: 12px 14px; font-size: 0.9rem; color: var(--text); margin-bottom: 16px; }
.chat-frm { display: flex; flex-direction: column; gap: 10px; }
.chat-frm label { font-size: 0.8rem; font-weight: 700; color: var(--primary); }
.chat-frm input, .chat-frm select, .chat-frm textarea { width: 100%; padding: 10px 12px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 0.92rem; background: #fff; color: var(--text); }
.chat-frm textarea { resize: vertical; }
.chat-deliver { margin-top: 6px; background: #25D366; color: #06210F; border: 2px solid var(--primary-deep); padding: 12px; border-radius: var(--radius-sm); font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.chat-deliver:hover { background: #3EE07F; }
.chat-deliver svg { width: 18px; height: 18px; }

@media (max-width: 480px) {
  .chat-drawer { right: 14px; left: 14px; width: auto; bottom: 88px; }
  .chat-launcher { right: 14px; bottom: 14px; }
}

/* ---- Blog y textos legales ---- */
.entry-content { max-width: 760px; margin: 0 auto; }
.entry-content p { font-size: 1.04rem; color: var(--text); }
.entry-content h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-top: 1.5em; padding-top: 0.4em; border-top: 3px solid var(--accent); display: inline-block; }
.entry-content h3 { font-size: 1.12rem; margin-top: 1.1em; }
.entry-content ul, .entry-content ol { list-style: disc; padding-left: 1.3em; margin: 0 0 1.2em; color: var(--text); }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 8px; }
.entry-content figure { margin: 30px 0; }
.entry-content figure img { border: 3px solid var(--primary); }
.entry-content figcaption { font-size: 0.85rem; color: var(--text-muted); margin-top: 8px; }
.entry-content a:not(.cta) { color: var(--primary); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 3px; font-weight: 600; }
.entry-dateline { font-size: 0.86rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.entry-call {
  background: var(--primary);
  border-radius: var(--radius-md);
  padding: 32px;
  margin-top: 44px;
  text-align: center;
  border-bottom: 6px solid var(--accent);
}
.entry-call h3 { margin-bottom: 8px; color: var(--white); }
.entry-call p { color: rgba(255,255,255,0.85); margin-bottom: 20px; }
.rules-content { max-width: 820px; margin: 0 auto; }
.rules-content h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-top: 1.6em; padding-left: 14px; border-left: 5px solid var(--accent); }
.rules-content p, .rules-content li { color: var(--text); }
.rules-content ul { list-style: disc; padding-left: 1.3em; margin: 0 0 1.2em; }
.rules-content li { margin-bottom: 6px; }
