/* ==========================================================================
   Hueso Informática — hoja de estilos del sitio
   Los colores y la tipografía se inyectan como variables desde el editor
   (ver bloque <style> con :root en cada página). Aquí solo hay valores de
   reserva por si se abre el CSS de forma aislada.
   ========================================================================== */

:root {
  --primary: #007dc3;
  --primary-dark: #005e93;
  --dark: #0b2239;
  --radius: 14px;
  --container: 1200px;
  --font: "Trebuchet MS", "Lucida Sans Unicode", "Lucida Grande", Tahoma, Verdana, sans-serif;

  --ink: #16222f;
  --muted: #5b6b7c;
  --line: #e2e8f0;
  --soft: #f4f7fa;
  --white: #fff;
  --shadow-sm: 0 1px 2px rgba(11, 34, 57, .06), 0 4px 12px rgba(11, 34, 57, .05);
  --shadow-md: 0 8px 30px rgba(11, 34, 57, .10);
  --shadow-lg: 0 18px 50px rgba(11, 34, 57, .14);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  line-height: 1.18;
  color: var(--dark);
  font-weight: 700;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 2.9vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0; padding: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: 820px; }

.eyebrow {
  margin: 0 0 .75rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
}

.lead { font-size: 1.09rem; color: var(--muted); }

.block { padding: 84px 0; }
.block.alt { background: var(--soft); }

.sec-head { max-width: 760px; margin-bottom: 48px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head .lead { margin-bottom: 0; }
.sec-head.light h2,
.sec-head.light .lead { color: #fff; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 14px 26px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: .97rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(0, 125, 195, .28); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--dark); background: #fff; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: #eef6fc; color: var(--primary-dark); }
.btn-outline-light { border-color: rgba(255, 255, 255, .55); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.btn-sm { padding: 10px 20px; font-size: .9rem; }
.btn.full { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.btn-row:empty { display: none; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.topbar {
  background: var(--dark);
  color: rgba(255, 255, 255, .82);
  font-size: .85rem;
}
.topbar-inner { display: flex; justify-content: space-between; gap: 16px; padding: 8px 24px; }
.topbar a { color: #fff; }
.topbar a:hover { color: #9fd4f2; }
.topbar-contact { display: flex; gap: 20px; }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
}

.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { height: 42px; width: auto; }
.brand-text { font-size: 1.25rem; font-weight: 700; color: var(--dark); }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.main-nav a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--dark);
  font-size: .97rem;
  font-weight: 600;
}
.main-nav a:hover { background: var(--soft); color: var(--primary); }
.main-nav li.active > a { color: var(--primary); }
.main-nav .caret { width: 15px; height: 15px; opacity: .6; }

.main-nav .has-sub { position: relative; }
.main-nav .sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.main-nav .has-sub:hover .sub,
.main-nav .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.main-nav .sub a { padding: 9px 12px; font-weight: 500; }

.header-actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.header-phone { font-weight: 700; color: var(--dark); white-space: nowrap; }
.header-phone:hover { color: var(--primary); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--dark);
  transition: transform .2s ease, opacity .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 84px 0 92px;
  background:
    radial-gradient(1000px 420px at 88% -10%, rgba(0, 125, 195, .13), transparent 60%),
    linear-gradient(180deg, #f7fafd 0%, #fff 100%);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 34, 57, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 34, 57, .045) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent 72%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent 72%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.hero-text h1 { margin-bottom: 1rem; }
.hero-text .lead { font-size: 1.16rem; max-width: 56ch; }
.hero-media img {
  width: 100%;
  border-radius: calc(var(--radius) + 6px);
  box-shadow: var(--shadow-lg);
}

.hero-bullets { list-style: none; margin-top: 2rem; display: grid; gap: 12px; }
.hero-bullets li { display: flex; align-items: flex-start; gap: 11px; font-weight: 600; color: var(--dark); }
.tick { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px; color: var(--primary); }

/* ---------- Cabecera de página interior ---------- */
.pagehero {
  padding: 68px 0 60px;
  background: linear-gradient(140deg, var(--dark) 0%, #123a5c 55%, var(--primary-dark) 100%);
  color: #fff;
}
.pagehero h1 { color: #fff; margin-bottom: .6rem; }
.pagehero .eyebrow { color: #8ed0f1; }
.pagehero .lead { color: rgba(255, 255, 255, .86); max-width: 68ch; margin-bottom: 0; }

/* ---------- Cifras ---------- */
.stats.blue { background: var(--primary); color: #fff; }
.stats.light { background: var(--soft); }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  padding: 44px 24px;
}
.stat { text-align: center; }
.stat-value { display: block; font-size: 2.4rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.stat-label { display: block; margin-top: 4px; font-size: .93rem; opacity: .9; }
.stats.light .stat-value { color: var(--primary); }
.stats.light .stat-label { color: var(--muted); }

/* ---------- Rejillas ---------- */
.grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Tarjetas de servicio ---------- */
.card {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(0, 125, 195, .35); box-shadow: var(--shadow-md); }
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 13px;
  background: rgba(0, 125, 195, .1);
  color: var(--primary);
}
.card-icon .icon { width: 26px; height: 26px; }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--muted); margin-bottom: 1rem; }
.card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: .93rem;
}
.arrow { width: 17px; height: 17px; transition: transform .16s ease; }
.card-link:hover .arrow { transform: translateX(4px); }

/* ---------- Pasos ---------- */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  counter-reset: paso;
}
.step { position: relative; padding: 30px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--dark);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
}
.step p { color: var(--muted); margin-bottom: 0; }

/* ---------- Texto + imagen ---------- */
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feat-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.feat-list { list-style: none; display: grid; gap: 18px; margin-top: 1.75rem; }
.feat-list li { display: flex; gap: 12px; align-items: flex-start; }
.feat-list strong { display: block; color: var(--dark); }
.feat-list span { color: var(--muted); font-size: .97rem; }

/* ---------- Testimonios ---------- */
.quote {
  margin: 0;
  padding: 30px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.quote blockquote { margin: 0 0 18px; color: var(--ink); font-size: 1.03rem; }
.quote blockquote::before { content: "\201C"; color: var(--primary); font-size: 2.4rem; line-height: 0; vertical-align: -.35em; margin-right: 4px; }
.quote figcaption strong { display: block; color: var(--dark); }
.quote figcaption span { color: var(--muted); font-size: .9rem; }

/* ---------- Logos ---------- */
.logos { padding: 44px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos-title { text-align: center; color: var(--muted); font-size: .88rem; letter-spacing: .1em; text-transform: uppercase; }
.logo-row { list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 46px; }
.logo-row img { max-height: 42px; width: auto; filter: grayscale(1); opacity: .65; transition: filter .2s, opacity .2s; }
.logo-row img:hover { filter: none; opacity: 1; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq details {
  padding: 4px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.faq summary {
  padding: 18px 0;
  cursor: pointer;
  font-weight: 700;
  color: var(--dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq-body { padding-bottom: 20px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { padding: 62px 0; background: linear-gradient(120deg, var(--primary) 0%, var(--primary-dark) 100%); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .35rem; }
.cta p { color: rgba(255, 255, 255, .88); margin: 0; max-width: 62ch; }
.cta .btn-row { margin-top: 0; }

/* ---------- Texto libre ---------- */
.prose h2 { margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.3rem; }
.prose li { margin-bottom: .4rem; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; }
.prose th { background: var(--soft); }

/* ---------- Galería y equipo ---------- */
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.gallery figcaption { margin-top: 8px; color: var(--muted); font-size: .92rem; }

.member { text-align: center; padding: 26px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.member img { width: 104px; height: 104px; margin: 0 auto 16px; border-radius: 50%; object-fit: cover; background: var(--soft); }
.member h3 { margin-bottom: .1rem; font-size: 1.05rem; }
.member p { color: var(--muted); font-size: .93rem; margin: 0; }

/* ---------- Planes ---------- */
.plans { align-items: start; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.plan.featured { border-color: var(--primary); box-shadow: var(--shadow-md); }
.plan-tag {
  position: absolute;
  top: -13px;
  left: 28px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.plan-price { font-size: 1.9rem; font-weight: 700; color: var(--dark); margin: 0 0 .4rem; letter-spacing: -.02em; }
.plan-price span { font-size: .95rem; font-weight: 500; color: var(--muted); margin-left: 4px; }
.plan-text { color: var(--muted); font-size: .96rem; }
.plan-feats { list-style: none; display: grid; gap: 10px; margin: 18px 0 26px; }
.plan-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; }
.plan .btn { margin-top: auto; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 56px; align-items: start; }
.info-box { display: grid; gap: 2px; margin-top: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.info-row { display: flex; gap: 16px; padding: 16px 20px; background: #fff; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; }
.info-label { flex: 0 0 96px; color: var(--muted); font-size: .9rem; }
.info-value { font-weight: 600; color: var(--dark); }
.map { margin-top: 24px; border-radius: var(--radius); overflow: hidden; }
.map iframe { display: block; width: 100%; min-height: 280px; border: 0; }

.form {
  display: grid;
  gap: 18px;
  padding: 34px 30px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 7px; font-size: .92rem; font-weight: 600; color: var(--dark); }
.form input,
.form textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.form input:focus,
.form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 125, 195, .16); }
.form textarea { resize: vertical; }
.form .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; font-size: .89rem; color: var(--muted); }
.form .check input { width: 17px; height: 17px; margin-top: 2px; flex: 0 0 auto; }
.form-note { margin: 0; font-size: .86rem; color: var(--muted); text-align: center; }

/* ---------- Pie ---------- */
.site-footer { background: var(--dark); color: rgba(255, 255, 255, .74); padding-top: 64px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 52px; }
.site-footer h4 { color: #fff; font-size: .84rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, .74); }
.site-footer a:hover { color: #fff; }
.foot-brand img { height: 40px; width: auto; margin-bottom: 18px; background: #fff; padding: 7px 11px; border-radius: 9px; }
.foot-brand p { max-width: 44ch; }
.foot-contact { display: grid; gap: 6px; margin-top: 18px; }
.foot-contact a, .foot-contact span { color: #fff; font-weight: 600; }
.foot-social { display: flex; gap: 14px; margin-top: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 20px 0; font-size: .88rem; }

/* ---------- Adaptación a pantallas pequeñas ---------- */
@media (max-width: 1080px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .header-phone { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(360px, 86vw);
    margin: 0;
    padding: 84px 20px 32px;
    background: #fff;
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .24s ease;
  }
  body.nav-open .main-nav { transform: translateX(0); }
  body.nav-open { overflow: hidden; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .main-nav a { padding: 13px 12px; font-size: 1.02rem; }
  .main-nav .caret { margin-left: auto; }
  .main-nav .sub {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border: 0;
    border-left: 2px solid var(--line);
    border-radius: 0;
    margin: 0 0 8px 12px;
    padding: 0 0 0 6px;
    min-width: 0;
  }
  .main-nav .has-sub.open .sub { display: block; }
  .hero-grid, .feat-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { order: -1; }
  .feat-media { order: 2; }
  .cols-3 { grid-template-columns: repeat(2, 1fr); }
  .block { padding: 64px 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar-inner { flex-direction: column; gap: 2px; text-align: center; font-size: .78rem; }
  .topbar-contact { justify-content: center; gap: 14px; }
  .cols-2, .cols-3, .cols-4, .grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form { padding: 24px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .stat-value { font-size: 2rem; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  .header-actions .btn { display: none; }
}

@media print {
  .site-header, .cta, .site-footer, .nav-toggle { display: none; }
}
