:root {
  --blue-900: #063766;
  --blue-700: #075da7;
  --blue-500: #00a8f0;
  --ink: #14202b;
  --muted: #637284;
  --line: #d8e1ea;
  --paper: #ffffff;
  --soft: #f3f7fb;
  --steel: #243746;
  --warning: #ffe9a8;
  --shadow: 0 18px 50px rgb(6 55 102 / 14%);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: linear-gradient(180deg, #f8fbff 0%, #ffffff 42%); font-size: 16px; line-height: 1.55; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; justify-content: space-between; min-height: 78px; padding: 12px clamp(18px, 4vw, 56px); background: rgb(255 255 255 / 92%); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 58px; height: 44px; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1rem; }
.brand small { color: var(--muted); font-size: .82rem; }
nav { display: flex; gap: 8px; align-items: center; }
nav a, .header-phone { min-height: 42px; display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 700; }
nav a:hover, .header-phone:hover { background: var(--soft); }
.header-phone { background: var(--blue-900); color: white; }
main { overflow: hidden; }

.hero, .tool-detail-hero, .page-hero, .quick-tools, .info-strip, .contact-band, .detail-content, .catalog-controls, .tool-grid, .empty-state, .legal-copy { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.about-section { width: min(1120px, calc(100% - 32px)); margin: 64px auto 0; padding: clamp(24px, 5vw, 42px); border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 10px 28px rgb(20 32 43 / 6%); }
.about-section h2 { margin-top: 12px; }
.about-copy { max-width: 860px; color: var(--steel); }
.about-copy p { margin: 18px 0 0; }
.about-copy strong { color: var(--blue-900); }
.knowledge-section { width: min(1120px, calc(100% - 32px)); margin: 64px auto 0; padding: clamp(24px, 5vw, 42px); border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 10px 28px rgb(20 32 43 / 6%); }
.knowledge-section h2 { margin: 12px 0 24px; }
.knowledge-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 36px; }
.knowledge-grid article { padding: 0; background: transparent; }
.knowledge-grid h3 { margin: 0 0 12px; color: var(--blue-900); }
.knowledge-grid p { margin: 0 0 14px; color: var(--steel); }
.knowledge-grid p:last-child { margin-bottom: 0; }
.hero { min-height: calc(100vh - 78px); display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(280px, .96fr); align-items: center; gap: clamp(32px, 6vw, 72px); padding: clamp(36px, 7vw, 88px) 0; }
.hero-copy { position: relative; }
.eyebrow, .pill { display: inline-flex; align-items: center; min-height: 30px; width: fit-content; padding: 4px 10px; border: 1px solid rgb(0 168 240 / 30%); border-radius: 999px; color: var(--blue-900); background: rgb(0 168 240 / 8%); font-weight: 800; font-size: .82rem; }
h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: 0; }
h1 { margin-top: 16px; font-size: clamp(2.6rem, 8vw, 5.5rem); color: var(--blue-900); }
h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); color: var(--steel); }
h3 { font-size: 1.25rem; }
.lead { margin: 18px 0 0; max-width: 650px; color: var(--steel); font-size: clamp(1.08rem, 2vw, 1.35rem); }
.hero-phone { margin: 28px 0 0; padding: 18px; width: fit-content; min-width: min(100%, 360px); border-left: 6px solid var(--blue-500); background: var(--paper); box-shadow: var(--shadow); }
.hero-phone span { display: block; color: var(--muted); font-weight: 700; }
.hero-phone a { color: var(--blue-900); font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 900; text-decoration: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 12px 18px; border: 1px solid transparent; border-radius: 8px; cursor: pointer; text-decoration: none; font-weight: 900; }
.btn.primary { background: var(--blue-900); color: white; }
.btn.whatsapp { background: #128c7e; color: white; }
.btn.ghost, .btn.secondary { background: white; color: var(--blue-900); border-color: var(--line); }
.hero-logo { position: relative; padding: 18px; background: linear-gradient(135deg, rgb(0 168 240 / 16%), transparent 36%), var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-logo::before { content: ""; position: absolute; inset: 18px; border: 1px dashed rgb(6 55 102 / 20%); pointer-events: none; }
.hero-logo img { width: 100%; aspect-ratio: 1.24; object-fit: contain; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading h2 { margin-top: 10px; }
.text-link { color: var(--blue-700); font-weight: 900; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tool-card { display: flex; flex-direction: column; min-height: 100%; background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 36px rgb(20 32 43 / 8%); overflow: hidden; }
.tool-card[hidden] { display: none; }
.tool-card-media { display: grid; place-items: center; min-height: 190px; padding: 18px; background: linear-gradient(135deg, rgb(6 55 102 / 8%), rgb(0 168 240 / 10%)), var(--soft); }
.tool-card-media img { height: 150px; object-fit: contain; }
.tool-card-body { flex: 1; display: flex; flex-direction: column; padding: 18px; }
.tool-card h3 { margin-top: 12px; }
.tool-card h3 a { text-decoration: none; }
.tool-card p { color: var(--muted); margin: 10px 0 16px; }
.card-meta { margin-top: auto; display: grid; gap: 4px; }
.card-meta strong { color: var(--blue-900); }
.card-meta span { color: var(--muted); font-size: .92rem; }
.tool-card .text-link { margin-top: 16px; }
.info-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 54px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.info-strip article { padding: 22px; background: white; }
.info-strip strong, .info-strip span { display: block; }
.info-strip span { color: var(--muted); }
.contact-band { display: grid; grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr); gap: 32px; margin-top: 64px; margin-bottom: 64px; padding: clamp(24px, 5vw, 42px); border-radius: 8px; background: var(--steel); color: white; }
.contact-band h2 { margin-top: 12px; color: white; }
.contact-band .eyebrow { min-height: 38px; padding: 7px 14px; color: white; border-color: rgb(255 255 255 / 50%); background: rgb(255 255 255 / 16%); font-size: .98rem; letter-spacing: .01em; box-shadow: 0 8px 18px rgb(0 0 0 / 12%); }
.contact-band p { color: rgb(255 255 255 / 78%); }
.contact-form { display: grid; gap: 12px; padding: 18px; border-radius: 8px; background: white; color: var(--ink); }
.contact-form select { min-height: 52px; min-width: 0; }
label { display: grid; gap: 6px; color: var(--steel); font-weight: 800; }
input, select, textarea { width: 100%; min-height: 46px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; color: var(--ink); background: white; }
textarea { resize: vertical; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form-note, .source-note { color: var(--muted); font-size: .9rem; }
.form-error { margin: 0; color: #a12828; font-weight: 800; }
.date-range { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; border: 0; }
.date-range legend { grid-column: 1 / -1; padding: 0; color: var(--steel); font-weight: 800; }
.date-range input { min-width: 0; }

.page-hero.compact { padding: 58px 0 28px; }
.page-hero.compact p { max-width: 720px; color: var(--muted); font-size: 1.1rem; }
.catalog-controls { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 14px; padding: 18px; margin-bottom: 24px; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 10px 28px rgb(20 32 43 / 6%); }
.tool-detail-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); gap: 38px; padding: 54px 0 32px; align-items: center; }
.back-link { color: var(--blue-700); font-weight: 900; text-decoration: none; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.detail-meta strong, .detail-meta span { min-height: 42px; display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 8px; background: white; border: 1px solid var(--line); }
.detail-meta strong { color: var(--blue-900); }
.gallery { display: grid; gap: 12px; }
.gallery figure { display: grid; place-items: center; min-height: 260px; margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: var(--shadow); }
.gallery img { max-height: 260px; object-fit: contain; }
.gallery-placeholder { color: var(--muted); background: repeating-linear-gradient(45deg, #f5f8fb 0, #f5f8fb 10px, #eef4fa 10px, #eef4fa 20px) !important; }
.gallery-main { position: relative; }
.gallery-stage { min-height: clamp(280px, 42vw, 520px) !important; padding: 14px !important; }
.gallery-image-button { display: grid; place-items: center; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.gallery-stage img { width: 100%; max-height: clamp(250px, 40vw, 500px); object-fit: contain; }
.gallery-arrow { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 44px; height: 56px; padding: 0; border: 1px solid rgb(255 255 255 / 70%); border-radius: 8px; transform: translateY(-50%); background: rgb(6 55 102 / 88%); color: white; cursor: pointer; font-size: 2.3rem; line-height: 1; }
.gallery-arrow:hover, .gallery-arrow:focus-visible { background: var(--blue-700); }
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-toolbar { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .9rem; }
.gallery-sources { display: none; }
.gallery-lightbox { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 56px; background: rgb(6 20 32 / 94%); }
.gallery-lightbox[hidden] { display: none; }
.gallery-lightbox-stage { width: min(1120px, 100%); height: min(760px, 100%); min-height: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
.gallery-lightbox-stage img { width: 100%; height: 100%; max-height: calc(100vh - 112px); object-fit: contain; }
.gallery-lightbox .gallery-arrow { position: fixed; }
.gallery-lightbox-close { position: fixed; top: 18px; right: 22px; z-index: 3; width: 44px; height: 44px; border: 1px solid rgb(255 255 255 / 70%); border-radius: 8px; background: rgb(6 55 102 / 88%); color: white; cursor: pointer; font-size: 2rem; line-height: 1; }
.gallery-lightbox-close:hover, .gallery-lightbox-close:focus-visible { background: var(--blue-700); }
.gallery-lightbox-counter { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); color: white; font-weight: 800; }
body.gallery-open { overflow: hidden; }
.detail-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); gap: 28px; align-items: start; }
.copy-block, .calculator, .legal-copy { padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: white; box-shadow: 0 10px 28px rgb(20 32 43 / 6%); }
.copy-block h2 + p, .copy-block h2 + ul { margin-top: 10px; }
.copy-block ul { padding-left: 20px; }
.calculator { position: sticky; top: 96px; }
.calculator h2 { margin-top: 10px; }
.calculator-subtitle { margin: 8px 0 0; color: var(--muted); font-weight: 700; }
.calculator-grid { display: grid; gap: 12px; margin: 18px 0; }
.price-result { display: grid; gap: 8px; padding: 16px; border-radius: 8px; background: var(--soft); }
.price-result div { display: flex; justify-content: space-between; gap: 16px; }
.price-result .total { padding-top: 8px; border-top: 1px solid var(--line); }
.price-result .subtle-line { color: var(--muted); font-size: .92rem; }
.price-result .subtle-line strong { color: var(--muted); font-weight: 700; }
.price-result strong { color: var(--blue-900); }
.price-result p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }
.legal-copy { margin-bottom: 64px; }
.legal-copy h2 { margin-top: 24px; font-size: 1.35rem; }
mark { padding: 2px 5px; border-radius: 4px; background: var(--warning); }
.site-footer { display: flex; justify-content: space-between; gap: 24px; padding: 32px clamp(18px, 4vw, 56px) 92px; color: white; background: var(--blue-900); }
.site-footer p { margin: 6px 0 0; color: rgb(255 255 255 / 72%); }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-links a { color: white; font-weight: 800; text-decoration: none; }
.mobile-contact { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: none; grid-template-columns: repeat(4, 1fr); background: white; border-top: 1px solid var(--line); box-shadow: 0 -12px 30px rgb(20 32 43 / 14%); }
.mobile-contact a { min-height: 58px; display: grid; place-items: center; text-decoration: none; color: var(--blue-900); font-weight: 900; }
.mobile-contact a:nth-child(2) { color: #128c7e; }

@media (max-width: 880px) {
  .site-header { min-height: 70px; padding: 10px 16px; }
  nav, .header-phone { display: none; }
  .hero, .tool-detail-hero, .detail-content, .contact-band { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 34px; }
  .hero-logo { order: -1; }
  .tool-grid, .info-strip, .catalog-controls, .knowledge-grid { grid-template-columns: 1fr; }
  .section-heading { display: block; }
  .calculator { position: static; }
  .site-footer { display: block; }
  .footer-links { margin-top: 18px; }
  .mobile-contact { display: grid; }
}

@media (max-width: 560px) {
  .hero, .tool-detail-hero, .page-hero, .quick-tools, .info-strip, .knowledge-section, .about-section, .contact-band, .detail-content, .catalog-controls, .tool-grid, .empty-state, .legal-copy { width: min(100% - 24px, 1120px); }
  h1 { font-size: 2.45rem; }
  .hero-phone { width: 100%; }
  .hero-phone a { font-size: 2rem; }
  .btn { width: 100%; }
  .contact-form select { max-width: 100%; }
  .tool-card-media { min-height: 160px; }
  .contact-band { padding: 18px; }
  .date-range { grid-template-columns: 1fr; }
  .gallery-stage { min-height: 240px !important; }
  .gallery-stage img { max-height: 320px; }
  .gallery-arrow { width: 38px; height: 48px; font-size: 2rem; }
  .gallery-lightbox { padding: 48px 12px; }
  .gallery-lightbox-stage { height: calc(100vh - 96px); }
}
