/* Telomarco - hoja de estilos unica. Colores de marca en :root. */
:root {
  --brand: #f07d00;
  --brand-dark: #a84f00;
  --on-brand: #141414;
  --link: #a34a00;
  --ink: #1d1d1f;
  --muted: #555;
  --bg: #fff;
  --soft: #fff3e6;
  --line: #e2e2e2;
  --head-bg: #ffffff;
  --head-ink: #1d1d1f;
  --foot-bg: #1f1f1f;
  --radius: 10px;
  --wrap: 72rem;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-wrap: break-word; color: var(--ink); background: var(--bg); font-size: 1.0625rem; line-height: 1.6; padding-bottom: calc(3.5rem + env(safe-area-inset-bottom)); }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--link); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand-dark); outline-offset: 2px; box-shadow: 0 0 0 6px #fff; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 max(1rem, env(safe-area-inset-right)) 0 max(1rem, env(safe-area-inset-left)); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* Header y navegacion */
.site-header { background: var(--head-bg); color: var(--head-ink); border-bottom: 4px solid var(--brand); position: relative; z-index: 10; }
.hdr { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; min-height: 44px; margin-right: auto; }
.brand img { width: auto; height: 48px; }
.nav-toggle { display: none; align-items: center; gap: .5rem; min-height: 44px; padding: 0 .9rem; font: inherit; font-weight: 600;
  color: var(--head-ink); background: transparent; border: 2px solid currentColor; border-radius: var(--radius); cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; }
.bars::before { top: -6px; } .bars::after { top: 6px; }
.nav { width: 100%; }
.menu, .sub { list-style: none; margin: 0; padding: 0; }
.menu a { display: flex; align-items: center; min-height: 44px; padding: .25rem .75rem; color: var(--head-ink); text-decoration: none; font-weight: 600; border-radius: 6px; }
.menu a:hover, .menu a[aria-current="page"], .menu a.is-active { background: var(--soft); color: var(--ink); }
.sub a { font-weight: 400; padding-left: 1.75rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.has-sub { display: flex; flex-wrap: wrap; align-items: center; }
.has-sub > a { flex: 1; }
.has-sub > .sub { flex-basis: 100%; }
.sub-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 6px;
  background: transparent; color: var(--head-ink); cursor: pointer; }
.sub-toggle::before { content: ""; width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .15s; }
.sub-toggle[aria-expanded="true"]::before { transform: translateY(2px) rotate(-135deg); }
.sub-toggle:hover { background: var(--soft); color: var(--ink); }
.js .sub-toggle { display: inline-flex; }
.js .sub { display: none; }
.js .has-sub.is-open > .sub { display: block; }
.btn.hdr-call { display: none; }
.js .nav-toggle { display: inline-flex; }
.js .nav { display: none; padding-bottom: .75rem; }
.js .nav.is-open { display: block; }

@media (min-width: 60rem) {
  .js .nav-toggle { display: none; }
  .nav, .js .nav { display: block; width: auto; padding: 0; }
  .menu { display: flex; gap: .25rem; }
  .has-sub { position: relative; flex-wrap: nowrap; }
  .has-sub > a { flex: none; }
  .sub-toggle { margin-left: -.5rem; }
  .sub { display: none; position: absolute; left: 0; top: 100%; min-width: 15rem; padding: .4rem; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.12); }
  .sub a { color: var(--ink); padding-left: .75rem; }
  html:not(.js) .has-sub:hover .sub, html:not(.js) .has-sub:focus-within .sub { display: block; }
  .btn.hdr-call { display: inline-flex; }
}

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .6rem 1.2rem; border-radius: var(--radius);
  font-weight: 700; text-decoration: none; border: 2px solid transparent; }
.btn-primary { background: var(--brand); color: var(--on-brand); }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: rgba(127,127,127,.12); }

/* Migas */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem; padding: .9rem 1rem 0; margin: 0; font-size: .95rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: .35rem; color: #999; }
.crumbs a { color: var(--muted); display: inline-block; padding: 10px 4px; margin: -10px -4px; }

/* Bloques */
.section { padding-block: 2.5rem; }
.section-soft { background: var(--soft); }
.hero { padding-block: 2.5rem; background: var(--soft); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; align-items: center; }
.lead { font-size: 1.2rem; }
.hero-btns, .cta-btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; padding-block: 1.75rem 2.5rem; }
.intro figure { margin: 0; }
.intro img, .gallery img, .card img { border-radius: var(--radius); }
.prose { max-width: 42rem; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card img { border-radius: 0; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 1rem 1.1rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card:hover { border-color: var(--brand); }
.card:focus-within { outline: 3px solid var(--brand-dark); outline-offset: 2px; }
.card h3 a:focus-visible { outline: none; }
.more { margin-top: auto; font-weight: 700; color: var(--link); }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.related { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.related a { display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1rem; border: 2px solid var(--brand); border-radius: 999px;
  color: var(--ink); text-decoration: none; font-weight: 600; }
.related a:hover { background: var(--brand); color: var(--on-brand); }
.cta { background: var(--foot-bg); color: #fff; padding-block: 2.5rem; }
.cta h2 { color: #fff; }
.cta-btns .btn-ghost { color: #fff; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-block: 1.5rem 2.5rem; }
.nap { font-style: normal; }
.ico { width: 24px; height: 24px; flex: none; }
.ico-s { width: 18px; height: 18px; opacity: .85; }
.foot-contact { list-style: none; padding: 0; margin: 0 0 1em; }
.foot-contact li { display: flex; align-items: center; gap: .5rem; }
.foot-contact a { display: inline-block; padding: 10px 0; margin: -3px 0; }
/* Contacto: bloque de ubicacion + tarjetas clicables */
.location, .ccard { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; min-height: 44px; }
.location { flex-wrap: wrap; margin: 1.5rem 0 2rem; background: var(--soft); }
.location .btn { margin-left: auto; }
a.ccard:hover, .location:hover { border-color: var(--ink); }
a.ccard:hover .ccard-value, .location:hover .ccard-value { text-decoration: underline; }
.ccard-ico { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: none;
  border-radius: 50%; background: var(--brand); color: var(--on-brand); }
.ccard-txt { display: flex; flex-direction: column; min-width: 0; }
.ccard-label { font-size: .875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ccard-value { font-weight: 700; overflow-wrap: anywhere; }
.cgrid { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.cgrid li { display: flex; min-width: 0; }
.cgrid .ccard { flex: 1; min-width: 0; }
.mail-alt { margin: .75rem 0 0; color: var(--muted); }
.cta .mail-alt { color: #e8e8e8; }
.cta .mail-alt a { color: #fff; }
.budget p { max-width: 42rem; }
@media (max-width: 47.99rem) { .hero-btns .btn-call { display: none; } }
.card .media { display: flex; align-items: center; justify-content: center; padding: .75rem; }
.card .media img { width: auto; max-width: 100%; aspect-ratio: auto; object-fit: contain; border-radius: 0; }
.media-orange { background: #ff6600; }
.media-gray { background: #555555; }
.budget { padding: 1.5rem; border-radius: var(--radius); background: var(--soft); margin-bottom: 1rem; }
.todo { background: #fff4c2; border: 2px dashed #b38600; padding: 0 .3rem; font-weight: 700; }

/* Footer */
.site-footer { background: var(--foot-bg); color: #e8e8e8; padding-top: 2.5rem; border-top: 4px solid var(--brand); }
.site-footer a { color: #fff; }
.foot { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.foot-h { font-size: 1.05rem; color: #fff; text-transform: uppercase; letter-spacing: .05em; }
.foot-links { list-style: none; padding: 0; margin: 0; }
.foot-links a { display: inline-flex; min-height: 44px; align-items: center; }
.site-footer .nap a, .site-footer .links a { display: inline-block; padding: 10px 0; margin: -3px 0; }
.copy { border-top: 1px solid rgba(255,255,255,.2); margin-top: 2rem; padding-top: 1rem; padding-bottom: 1rem; font-size: .95rem; }

/* Barra de llamada fija en movil */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); z-index: 20;
  padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  background: var(--brand); box-shadow: 0 -2px 10px rgba(0,0,0,.2); }
.callbar a { display: flex; align-items: center; justify-content: center; min-height: 3.5rem; padding: 0 .25rem; color: var(--on-brand); font-weight: 700; font-size: 1rem; line-height: 1.2; text-align: center; text-decoration: none; white-space: nowrap; }
.callbar a + a { border-left: 1px solid rgba(0,0,0,.2); }

@media (min-width: 48rem) {
  body { padding-bottom: 0; }
  .callbar { display: none; }
  .hero .wrap { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .intro { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .foot { grid-template-columns: 1.3fr 1fr 1fr; }
}
@media (forced-colors: active) {
  .bars, .bars::before, .bars::after { background: CanvasText; forced-color-adjust: none; }
  .ccard-ico { border: 1px solid CanvasText; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .site-header nav, .callbar, .cta, .nav-toggle { display: none !important; } }
