/* ============================================================
   Tec-iNfo — sistema visual (fiel a apple.com)
   ============================================================ */

:root {
  --text:        #1d1d1f;
  --text-2:      #6e6e73;
  --text-3:      #86868b;
  --bg:          #ffffff;
  --bg-2:        #f5f5f7;
  --bg-3:        #fafafc;
  --ink:         #000000;
  --hairline:    #d2d2d7;
  --blue:        #0071e3;   /* botones */
  --blue-link:   #0066cc;   /* enlaces */
  --blue-hover:  #0077ed;
  --green:       #1a8f47;

  --r-pill: 980px;
  --r-card: 22px;
  --r-tile: 28px;

  --pad-x: max(22px, env(safe-area-inset-left));
  --maxw: 1024px;        /* contenedor de texto Apple */
  --maxw-wide: 1240px;   /* grids / tiles */

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", Helvetica, Arial, sans-serif;

  --ease: cubic-bezier(0.28, 0.11, 0.32, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.01em;
}

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

a { color: var(--blue-link); text-decoration: none; }
a:hover { text-decoration: underline; }

::selection { background: rgba(0,113,227,0.18); }

/* ---------- Layout helpers ---------- */
.wrap   { width: 100%; max-width: var(--maxw);      margin-inline: auto; padding-inline: var(--pad-x); }
.wrap-w { width: 100%; max-width: var(--maxw-wide); margin-inline: auto; padding-inline: var(--pad-x); }

.section { padding-block: clamp(64px, 9vw, 130px); }
.section--tight { padding-block: clamp(40px, 5vw, 64px); }
.bg-2 { background: var(--bg-2); }
.bg-ink { background: var(--ink); color: #f5f5f7; }

.center { text-align: center; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: clamp(15px, 1.6vw, 19px);
  font-weight: 600;
  color: var(--blue-link);
  letter-spacing: 0;
  margin: 0 0 8px;
}
.eyebrow--muted { color: var(--text-3); }

h1, h2, h3 { letter-spacing: -0.022em; font-weight: 600; margin: 0; text-wrap: balance; }

.display {
  font-size: clamp(40px, 7vw, 88px);
  line-height: 1.04;
  font-weight: 600;
}
.h-section {
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.07;
  font-weight: 600;
}
.h-tile {
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.1;
  font-weight: 600;
}
.lead {
  font-size: clamp(19px, 2.1vw, 26px);
  line-height: 1.38;
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.012em;
}
.sub {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  color: var(--text-2);
  font-weight: 400;
}
.small { font-size: 14px; color: var(--text-3); line-height: 1.45; }

.measure { max-width: 720px; margin-inline: auto; }

/* ---------- Buttons & links ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; }
.btn-row.center { justify-content: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-family: inherit; font-size: 17px; font-weight: 400;
  line-height: 1; cursor: pointer; border: 0;
  padding: 12px 22px; border-radius: var(--r-pill);
  background: var(--blue); color: #fff;
  transition: background .22s var(--ease), transform .22s var(--ease);
}
.btn:hover { background: var(--blue-hover); text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn--ghost {
  background: transparent; color: var(--blue-link);
  border: 1px solid var(--hairline);
}
.btn--ghost:hover { background: rgba(0,0,0,0.04); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: #e8e8ed; }

/* Apple text link with chevron */
.link {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: clamp(17px, 1.5vw, 21px); color: var(--blue-link);
  font-weight: 400;
}
.link::after { content: "›"; font-size: 1.18em; line-height: 0; transform: translateY(1px); }
.link:hover { text-decoration: none; }
.link:hover span { text-decoration: underline; }
.link--lg { font-size: clamp(19px, 1.8vw, 23px); }

/* ---------- Placeholders (sustituyen fotos reales) ---------- */
.ph {
  position: relative; width: 100%;
  border-radius: 18px; overflow: hidden;
  background-color: #ececf0;
  background-image:
    repeating-linear-gradient(135deg,
      rgba(0,0,0,0.035) 0 2px, transparent 2px 16px);
  display: grid; place-items: center;
  color: var(--text-3);
}
.ph::after {
  content: attr(data-label);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px; letter-spacing: 0.02em;
  color: #8a8a90;
  background: rgba(255,255,255,0.7);
  padding: 5px 11px; border-radius: 100px;
  backdrop-filter: blur(4px);
}
.ph--dark {
  background-color: #1c1c1e;
  background-image:
    repeating-linear-gradient(135deg,
      rgba(255,255,255,0.05) 0 2px, transparent 2px 16px);
}
.ph--dark::after { color: #b6b6bd; background: rgba(0,0,0,0.35); }
.ph-img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; display: block; border: 0;
}
.ph-map {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; border: 0; display: block;
}

/* ---------- Sticky nav (Apple frosted bar) ---------- */
.promo {
  background: var(--bg-2); color: var(--text-2);
  font-size: 13px; text-align: center; padding: 9px 16px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.promo b { color: var(--text); font-weight: 600; }

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.nav__in {
  max-width: 1100px; margin-inline: auto;
  height: 52px; padding-inline: var(--pad-x);
  display: flex; align-items: center; gap: 8px;
}
.nav__logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 19px; font-weight: 600; color: var(--text);
  letter-spacing: -0.02em; margin-right: auto;
  white-space: nowrap; flex-shrink: 0;
}
.nav__mark { height: 27px; width: auto; display: block; }
.nav__word { letter-spacing: -0.02em; }
.nav__logo b { font-weight: 700; }
.nav__logo:hover { text-decoration: none; }
.nav__links { display: flex; gap: clamp(18px, 2.4vw, 34px); margin: 0 auto; }
.nav__links a {
  font-size: 14px; color: rgba(29,29,31,0.82); font-weight: 400;
  letter-spacing: -0.01em;
}
.nav__links a:hover { color: var(--text); text-decoration: none; }
.nav__links a.on { color: var(--text); font-weight: 500; }
.nav__cta { display: flex; gap: 10px; margin-left: auto; align-items: center; }
.nav__call { font-size: 14px; color: var(--text); font-weight: 500; }
.nav__call:hover { text-decoration: none; color: var(--blue-link); }
.nav__wa {
  font-size: 14px; font-weight: 500; color: #fff; background: var(--green);
  padding: 7px 15px; border-radius: var(--r-pill);
}
.nav__wa:hover { text-decoration: none; filter: brightness(1.07); }
.nav__burger { display: none; }

@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__call { display: none; }
}

/* ---------- Tiles / cards ---------- */
.tiles { display: grid; gap: 14px; }
.tile {
  position: relative; border-radius: var(--r-tile); overflow: hidden;
  background: var(--bg-2);
  padding: clamp(34px, 4vw, 56px) clamp(26px, 4vw, 56px);
  display: flex; flex-direction: column; min-height: 460px;
}
.tile--ink { background: var(--ink); color: #f5f5f7; }
.tile--ink .sub { color: #a1a1a6; }
.tile__head { text-align: center; }
.tile__head .sub { margin-top: 10px; }
.tile__links { display: flex; gap: 10px 22px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.tile__art { margin-top: auto; padding-top: 28px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 820px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .tile { min-height: 400px; }
}

/* ---------- Service mini-cards ---------- */
.svc-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline); border-radius: var(--r-card); overflow: hidden;
}
.svc {
  background: var(--bg); padding: 30px 28px 34px;
  display: flex; flex-direction: column; min-height: 200px;
  transition: background .2s var(--ease);
}
.svc:hover { background: var(--bg-3); text-decoration: none; }
.svc__t { font-size: 21px; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.svc__d { font-size: 15px; color: var(--text-2); margin-top: 8px; line-height: 1.45; flex: 1; }
.svc__l { font-size: 15px; color: var(--blue-link); margin-top: 16px; display: inline-flex; gap: 3px; }
.svc__l::after { content: "›"; }
@media (max-width: 820px) { .svc-grid { grid-template-columns: 1fr; } }

/* ---------- Store cards ---------- */
.store {
  background: var(--bg); border: 1px solid var(--hairline);
  border-radius: var(--r-tile); overflow: hidden; display: flex; flex-direction: column;
}
.store__map { aspect-ratio: 16/10; }
.store__body { padding: 30px 32px 34px; }
.store__rating { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); margin-top: 4px; }
.store__rating b { color: var(--text); }
.store__addr { color: var(--text-2); font-size: 16px; margin: 14px 0 0; line-height: 1.5; }
.store__tag { display:inline-block; font-size: 13px; font-weight: 600; color: var(--blue-link); background: rgba(0,113,227,0.08); padding: 5px 11px; border-radius: 100px; }

/* ---------- Stat strip ---------- */
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 0; }
.stat { flex: 1 1 0; min-width: 150px; padding: 0 24px; text-align: center; position: relative; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--hairline); }
.stat__n { font-size: clamp(34px, 4vw, 52px); font-weight: 600; letter-spacing: -0.03em; }
.stat__l { font-size: 15px; color: var(--text-2); margin-top: 4px; }

/* ---------- Footer (Apple style) ---------- */
.foot { background: var(--bg-2); color: var(--text-2); font-size: 12px; line-height: 1.5; }
.foot__in { max-width: 1100px; margin-inline: auto; padding: 36px var(--pad-x) 28px; }
.foot__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 24px; padding-bottom: 26px; border-bottom: 1px solid var(--hairline); }
.foot__col h4 { font-size: 12px; font-weight: 600; color: var(--text); margin: 0 0 12px; }
.foot__col a { display: flex; align-items: center; gap: 9px; color: var(--text-2); padding: 5px 0; font-size: 12px; }
.foot__col a:hover { color: var(--text); }
.foot-ico { flex: none; width: 22px; height: 22px; display: grid; place-items: center; }
.foot-ico svg { width: 18px; height: 18px; }
.foot__bottom { padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
.foot__legal { display: flex; gap: 16px; flex-wrap: wrap; }
.foot__legal a { color: var(--text-2); }
@media (max-width: 820px) { .foot__cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Floating WhatsApp ---------- */
.fab {
  position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 200; transform: translateZ(0); -webkit-transform: translateZ(0); will-change: transform; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--green); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 26px rgba(0,0,0,0.22);
  transition: transform .2s var(--ease);
}
.fab:hover { transform: translateZ(0) scale(1.06); -webkit-transform: translateZ(0) scale(1.06); text-decoration: none; }
.fab svg { width: 30px; height: 30px; }

/* ---------- Internal pages ---------- */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,64px); align-items: center; }
@media (max-width: 840px) { .split-grid { grid-template-columns: 1fr; } }

.ulist { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 11px; }
.ulist li { position: relative; padding-left: 26px; color: var(--text-2); font-size: 17px; line-height: 1.5; }
.ulist li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.ulist b { color: var(--text); font-weight: 600; }

.price { display: inline-flex; align-items: baseline; gap: 6px; font-size: 15px; color: var(--text-2); margin-top: 14px; }
.price b { font-size: 22px; color: var(--text); font-weight: 600; }

/* ---------- Pills (modelos / chips) ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; max-width: 880px; margin: 0 auto; }
.pills--start { justify-content: flex-start; }
.pill {
  display: inline-block; font-size: 14px; font-weight: 500;
  color: var(--text); background: var(--bg); border: 1px solid var(--hairline);
  padding: 8px 15px; border-radius: var(--r-pill); white-space: nowrap;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.pill:hover { border-color: var(--text-3); }
.pills-sep { text-align: center; font-size: 14px; color: var(--text-3); margin: 20px 0 16px; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--hairline); }
.qa { border-bottom: 1px solid var(--hairline); }
.qa > summary {
  list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative;
  font-size: clamp(18px,2vw,21px); font-weight: 600; color: var(--text);
  letter-spacing: -0.01em; line-height: 1.4;
}
.qa > summary::-webkit-details-marker { display: none; }
.qa > summary::after {
  content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  font-size: 28px; font-weight: 300; color: var(--text-3); transition: transform .25s var(--ease);
}
.qa[open] > summary::after { content: "−"; }
.qa__body { padding: 0 44px 26px 0; }
.qa__body p { margin: 0 0 12px; color: var(--text-2); font-size: 17px; line-height: 1.55; }
.qa__body a { color: var(--blue-link); }

/* ---------- Two-column feature ---------- */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,5vw,72px); align-items: center; }
.feat.is-reverse .feat__media { order: 2; }
@media (max-width: 840px) { .feat { grid-template-columns: 1fr; } .feat.is-reverse .feat__media { order: 0; } }
.feat__panel {
  background: var(--bg-2); border-radius: var(--r-tile); padding: clamp(28px,4vw,44px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
.feat__stat { background: var(--bg); border-radius: 16px; padding: 22px 20px; text-align: center; }
.feat__stat .n { display: block; font-size: clamp(26px,3vw,36px); font-weight: 600; letter-spacing: -0.03em; }
.feat__stat .l { display: block; font-size: 13.5px; color: var(--text-2); margin-top: 4px; }

/* ---------- Checklist ---------- */
.check { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 13px; }
.check li { position: relative; padding-left: 32px; color: var(--text-2); font-size: 17px; line-height: 1.5; }
.check li b { color: var(--text); font-weight: 600; }
.check li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 21px; height: 21px;
  border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat;
}
.check li.no::before { background: #e8484a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center/12px no-repeat; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: 14px; color: var(--text-2); padding-top: 18px; }
.crumbs a { color: var(--text-2); text-decoration: underline; text-underline-offset: 2px; }
.crumbs a:hover { color: var(--blue-link); }

/* ============================================================
   COLOR SYSTEM — acentos por categoría + tarjetas con color
   ============================================================ */
:root { --accent: #0071e3; --accent-soft: #eaf2fe; }
/* acentos de categoría (se setean con [data-accent] en <body>) */
[data-accent="blue"]   { --accent:#0071e3; --accent-soft:#eaf2fe; }
[data-accent="indigo"] { --accent:#5e5ce6; --accent-soft:#eeeefc; }
[data-accent="green"]  { --accent:#1a8f47; --accent-soft:#e8f6ee; }
[data-accent="teal"]   { --accent:#0a8a7a; --accent-soft:#e4f5f2; }
[data-accent="cyan"]   { --accent:#0a84c2; --accent-soft:#e6f4fb; }
[data-accent="amber"]  { --accent:#c0780a; --accent-soft:#fbf1e0; }
[data-accent="purple"] { --accent:#7d3cc9; --accent-soft:#f3ecfb; }
[data-accent="pink"]   { --accent:#c0398f; --accent-soft:#fbeaf4; }
[data-accent="slate"]  { --accent:#475569; --accent-soft:#eef1f5; }

/* eyebrow toma el acento de la página */
[data-accent] .eyebrow:not(.eyebrow--muted) { color: var(--accent); }

/* halo de color suave detrás del hero */
.hero-tint { position: relative; }
.hero-tint::before {
  content:""; position:absolute; inset:-10% 0 auto 0; height:420px; z-index:-1;
  background: radial-gradient(60% 100% at 50% 0%, var(--accent-soft) 0%, transparent 70%);
  pointer-events:none;
}

/* chip de icono para tarjetas */
.svc__ico {
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--ic-soft, var(--accent-soft)); color: var(--ic, var(--accent));
  display: grid; place-items: center; margin-bottom: 18px;
}
.svc__ico svg { width: 25px; height: 25px; }
.svc { align-items: flex-start; }
.svc:hover .svc__t { color: var(--ic, var(--accent)); }
.svc__l { color: var(--ic, var(--accent)) !important; }

/* bento de color: tarjetas con fondo tintado */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px){ .bento { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 540px){ .bento { grid-template-columns: 1fr; } }
.bento__c {
  border-radius: var(--r-tile); padding: 30px 26px 34px; min-height: 190px;
  display: flex; flex-direction: column; background: #fff; color: var(--text);
  border: 1px solid var(--hairline);
  transition: transform .25s var(--ease);
}
.bento__c:hover { transform: translateY(-4px); text-decoration: none; box-shadow: 0 22px 48px -26px rgba(0,0,0,.26); border-color: transparent; }
.bento__ico { width: 44px; height: 44px; border-radius: 12px; background: transparent !important; color: var(--a) !important;
  display: grid; place-items: center; margin-bottom: auto; }
.bento__ico svg { width: 30px; height: 30px; stroke-width: 1.5; }
.bento__t { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin-top: 22px; }
.bento__d { font-size: 14.5px; color: #5b5b61; margin-top: 7px; line-height: 1.45; }
.bento__l { font-size: 14px; color: var(--a); margin-top: 14px; font-weight: 500; }
.bento__l::after { content:" ›"; }

/* Reviews */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 820px) { .reviews { grid-template-columns: 1fr; } }
.review { background: var(--bg); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 28px 28px 30px; }
.review__stars { color: #f5a623; font-size: 16px; letter-spacing: 2px; }
.review__q { font-size: 18px; color: var(--text); line-height: 1.5; margin: 12px 0 16px; letter-spacing: -0.01em; }
.review__who { font-size: 14px; color: var(--text-3); }
.review__who b { color: var(--text); font-weight: 600; }

/* Contact methods */
.cmethods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 820px) { .cmethods { grid-template-columns: 1fr; } }
.cmethod { background: var(--bg-2); border-radius: var(--r-card); padding: 30px 28px; }
.cmethod h3 { font-size: 19px; font-weight: 600; }
.cmethod p { font-size: 15px; color: var(--text-2); margin: 8px 0 14px; line-height: 1.5; }

/* Legal / prose */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: 24px; font-weight: 600; margin: 34px 0 10px; letter-spacing: -0.02em; }
.prose p, .prose li { color: var(--text-2); font-size: 16px; line-height: 1.6; margin: 0 0 14px; }
.prose ul { padding-left: 20px; }
.prose a { color: var(--blue-link); }

/* ============================================================
   Accesibilidad — foco visible coherente (teclado)
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--blue, #0071e3);
  outline-offset: 3px;
  border-radius: 6px;
}
/* en superficies oscuras, foco claro */
.bg-ink :focus-visible, .foot :focus-visible, .tile--ink :focus-visible {
  outline-color: #9fc6ff;
}
/* no robamos el foco con :focus a ratón, solo lo mostramos con teclado */
:focus:not(:focus-visible) { outline: none; }

/* fix: evita desbordamiento horizontal en movil (carruseles/reseñas) que descolocaba el boton flotante */
html, body { overflow-x: clip; max-width: 100%; }
