/* ================================================================
   Alarmita.com — Shared CSS para páginas satélite (/alarmas/)
   Espeja los tokens de diseño de base.css + styles.css del sitio
   principal. No modificar valores de color, tipografía ni layout
   sin actualizarlos también en src/base.css y src/styles.css.
   ================================================================ */

/* ── Variables de diseño ── */
:root {
  --blue:       #005daa;
  --blue-dark:  #003d75;
  --blue-light: #e8f1fb;
  --yellow:     #f9db00;
  --green-wa:   #4fb961;
  --text:       #262627;
  --text-muted: #555555;
  --border:     #dde4ee;
  --white:      #ffffff;
  --max-width:  1200px;
  --radius:     10px;
}

/* ── Reset (de base.css) ── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-margin-top: 60px;
  font-family: "Raleway", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

body {
  margin: 0;
  font-family: "Raleway", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.77778;
  background-color: #fafafa;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-width: 375px;
}

/* ── Tipografía (de styles.css) ── */
h1 {
  font-size: 53px;
  font-family: "Raleway", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  line-height: 1;
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--blue);
}
h1 span { font-weight: 600; }

h2 {
  font-size: 50px;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 20px;
  color: var(--blue);
  line-height: 1.1;
}
h2 span { font-weight: 600; }

h3 {
  font-size: 24px;
  font-weight: 400;
  margin-top: 0;
}
h3 span { font-weight: 600; }

h4 { font-size: 20px; margin-top: 0; margin-bottom: 5px; }
h5 { color: var(--blue); font-weight: 700; font-size: 15px; margin-top: 0; margin-bottom: 0; }
h6 { margin-top: 0; }

p { color: var(--text); font-size: 14px; margin: 0 0 1rem; }

strong {
  font-family: "Raleway", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
}

a { text-decoration: none; color: var(--blue); transition: all 0.3s; }
a:hover { text-decoration: none; }

img { vertical-align: middle; border-style: none; -webkit-user-drag: none; }

ul, ol, dl { margin-top: 0; margin-bottom: 1rem; list-style: inside; padding-left: 0; }

/* ── Layout (de base.css) ── */
.container-lg,
.container {
  width: 100%;
  max-width: var(--max-width);
  padding-right: 30px;
  padding-left: 30px;
  margin-right: auto;
  margin-left: auto;
}

.section { padding: 70px 0; width: 100%; }
.section--alt { background: #f8fafd; }

.flex         { display: flex; }
.flexCol      { flex-direction: column; }
.flexRow      { flex-direction: row; }
.flexCenter   { justify-content: center; align-items: center; align-self: center; }
.flexWrap     { flex-wrap: wrap; }
.space        { justify-content: space-between; }
.alignCenter  { align-items: center; }
.justifyCenter { justify-content: center; }
.textCenter   { text-align: center; }

/* Botón base (de styles.css) */
.btn {
  background: var(--yellow);
  color: #000;
  font-size: 18px;
  font-weight: 700;
  padding: 9px 25px;
  outline: none;
  border: none;
  border-radius: 7px;
  cursor: pointer;
}

/* ── Componentes de páginas satélite ── */

/* HEADER */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header__logo svg { height: 42px; width: auto; display: block; }
.site-header__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.site-header__contact a { font-weight: 700; font-size: 1rem; color: var(--blue); }

/* BREADCRUMB */
.breadcrumb {
  background: #f5f7fa;
  border-bottom: 1px solid var(--border);
  padding: 10px 24px;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.breadcrumb__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--blue); }
.breadcrumb span { color: #999; }

/* HERO */
.hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  padding: 60px 24px 56px;
}
.hero__inner { max-width: 760px; }
.hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero__tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 100px;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero__intro {
  font-size: 1.05rem;
  line-height: 1.7;
  opacity: 0.9;
  max-width: 600px;
  margin-bottom: 32px;
  color: var(--white);
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* BOTONES CTA */
.btn-cta {
  display: inline-block;
  background: var(--yellow);
  color: #000;
  font-family: "Raleway", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: var(--radius);
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-cta:hover { opacity: 0.92; transform: translateY(-1px); text-decoration: none; }

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green-wa);
  color: var(--white);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 24px;
  border-radius: var(--radius);
  transition: opacity 0.2s;
  text-decoration: none;
}
.btn-wa:hover { opacity: 0.9; text-decoration: none; }
.btn-wa svg { flex-shrink: 0; }

/* TÍTULOS DE SECCIÓN */
.section__title { font-size: 1.5rem; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.section__subtitle { color: var(--text-muted); margin-bottom: 32px; font-size: 0.95rem; }

/* POR QUÉ ADT */
.porque { padding: 70px 24px 0; }
.porque h2 { font-size: 1.8rem; font-weight: 700; text-align: center; margin-bottom: 0; color: var(--text); }
.porque h2 span { color: #ffab00; font-weight: 700; }
.porque__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}
.porque__card {
  flex: 1 220px;
  max-width: 260px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0 20px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 90px;
}
.porque__card img { width: 100px; height: 100px; object-fit: contain; margin-top: -90px; }
.porque__card h3 { color: var(--blue); font-size: 18px; font-weight: 700; margin: 20px 0 10px; }
.porque__card p { color: #595959; font-size: 15px; line-height: 1.5; }

/* COBERTURA */
.coverage__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.coverage__text p { margin-bottom: 14px; color: var(--text-muted); line-height: 1.7; }
.coverage__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* PLANES */
.plans__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan-card {
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  position: relative;
  transition: box-shadow 0.2s;
  background: var(--white);
}
.plan-card:hover { box-shadow: 0 6px 24px rgba(0,93,170,0.1); }
.plan-card--featured { border-color: var(--blue); box-shadow: 0 4px 20px rgba(0,93,170,0.12); }
.plan-card__badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}
.plan-card__name { font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; color: var(--blue); }
.plan-card__price { font-size: 1.6rem; font-weight: 800; margin-bottom: 4px; color: var(--text); }
.plan-card__price span { font-size: 0.9rem; font-weight: 400; color: var(--text-muted); }
.plan-card__desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }
.plan-card__features { list-style: none; margin-bottom: 24px; display: flex; flex-direction: column; gap: 8px; }
.plan-card__features li { font-size: 0.88rem; display: flex; gap: 8px; align-items: flex-start; }
.plan-card__features li::before { content: "✓"; color: var(--blue); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.plan-card .btn-cta { width: 100%; text-align: center; font-size: 0.9rem; padding: 12px; }

/* PROCESO */
.process__steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process__steps--three { grid-template-columns: repeat(3, 1fr); }
.process__step { text-align: center; }
.process__step-num {
  width: 48px;
  height: 48px;
  background: var(--blue);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin: 0 auto 14px;
}
.process__step h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 6px; }
.process__step p { font-size: 0.85rem; color: var(--text-muted); }

/* FAQs */
.faqs { display: flex; flex-direction: column; gap: 10px; }
details { border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
details[open] { border-color: var(--blue); }
summary {
  padding: 18px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform 0.2s;
}
details[open] summary::after { content: "−"; }
.faq__answer { padding: 0 20px 18px; font-size: 0.92rem; color: var(--text-muted); line-height: 1.7; }

/* RELACIONADAS */
.related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: block;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
}
.related-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(0,93,170,0.08);
  text-decoration: none;
}
.related-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.related-card__title { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.related-card__arrow { font-size: 0.85rem; color: var(--blue); margin-top: 8px; display: block; }

.content-stack {
  max-width: 820px;
}

.content-stack .section__title {
  margin-top: 42px;
}

.content-stack .section__title:first-child {
  margin-top: 0;
}

.hub-group + .hub-group {
  margin-top: 34px;
}

.hub-group__heading {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.hub-card {
  display: block;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.hub-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(0,93,170,0.08);
  transform: translateY(-1px);
  text-decoration: none;
}

.hub-card__label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

.hub-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.hub-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 10px;
}

.hub-card__arrow {
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 600;
}

/* BANDA CTA FINAL */
.cta-band { background: var(--blue); color: var(--white); padding: 56px 24px; text-align: center; }
.cta-band h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 10px; color: var(--white); }
.cta-band p { opacity: 0.85; margin-bottom: 28px; font-size: 1rem; color: var(--white); }
.cta-band__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* FOOTER */
.site-footer {
  background: #0e1a2b;
  color: rgba(255,255,255,0.6);
  padding: 32px 24px;
  font-size: 0.85rem;
}
.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer a { color: rgba(255,255,255,0.6); }
.site-footer a:hover { color: #fff; text-decoration: none; }

/* ── Responsive ── */
@media (max-width: 850px) {
  .section { padding: 40px 0; }
  .porque { padding: 40px 24px 0; }
}

@media (max-width: 768px) {
  .coverage__grid { grid-template-columns: 1fr; gap: 24px; }
  .plans__grid    { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr 1fr; }
  .related__grid  { grid-template-columns: 1fr 1fr; }
  .hub-grid       { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
  html { font-size: 17px; }

  .container-lg,
  .container { padding-right: 13px; padding-left: 13px; }

  h1 { font-size: 33px; margin-top: 20px; }
  h2 { font-size: 36px; line-height: 1.3; margin-bottom: 10px; }
  h3 { font-size: 18px; }
  h4 { font-size: 17px; }

  .btn     { font-size: 15px; }
  .hero    { padding: 40px 20px 44px; }
  .section { padding: 44px 20px; }
  .porque__card   { max-width: 100%; }
  .process__steps { grid-template-columns: 1fr; }
  .related__grid  { grid-template-columns: 1fr; }
  .site-header__contact { display: none; }
}

@media (min-width: 650px) and (max-width: 1200px) {
  html { font-size: 15px; }
}
