@media (min-width: 1081px) {
  .brand img {
    width: 136px;
    height: 42px;
  }

  .hero {
    margin-top: 34px;
    margin-bottom: 28px;
    min-height: 525px;
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
  }

  h1 {
    font-size: clamp(48px, 4.2vw, 64px);
    line-height: 1.04;
    letter-spacing: -.052em;
  }

  .trust-strip {
    margin-bottom: 58px;
  }
}

.lead-summary {
  width: 100%;
  margin: 8px 0 22px;
  padding: 0;
  text-align: left;
  border-top: 1px solid #dce3ea;
}

.lead-summary div {
  padding: 12px 0;
  border-bottom: 1px solid #dce3ea;
}

.lead-summary dt {
  margin-bottom: 3px;
  color: #607080;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.lead-summary dd {
  margin: 0;
  color: #142536;
  overflow-wrap: anywhere;
}

.edit-lead {
  margin-top: 16px;
}

.excel-header nav { display: flex; align-items: center; gap: 26px; }
.back-home { color: #536177; font-size: 14px; font-weight: 700; }
.excel-hero { width: min(1316px, calc(100% - 64px)); min-height: 650px; margin: 24px auto 48px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }
.excel-hero h1 { max-width: 750px; }
.excel-proof { margin: 22px 0 0; color: #64748b; font-size: 13px; font-weight: 600; }
.migration-panel { overflow: hidden; border: 1px solid #cad9e8; border-radius: 16px; background: #f8fbff; box-shadow: 0 28px 70px #133e7024; }
.migration-head, .migration-row { display: grid; grid-template-columns: 1fr 1fr; }
.migration-head { color: #fff; background: #0d1b31; font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.migration-head span, .migration-row p, .migration-row strong { padding: 18px 24px; }
.migration-head span + span, .migration-row strong { border-left: 1px solid #d4e0ed; }
.migration-row { border-top: 1px solid #d4e0ed; }
.migration-row p, .migration-row strong { margin: 0; }
.migration-row p { color: #68778a; text-decoration: line-through; }
.migration-row strong { color: #0f6f75; background: #fff; }
.excel-symptoms { padding: 42px max(32px, calc((100vw - 1000px)/2)); color: #dbeafe; background: #1557e7; text-align: center; }
.excel-symptoms p { margin: 0; font-size: 21px; line-height: 1.65; }
.use-case-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #dbe5f0; }
.use-case-grid article { min-height: 230px; padding: 32px 30px; border-bottom: 1px solid #dbe5f0; }
.use-case-grid article:not(:nth-child(3n + 1)) { border-left: 1px solid #dbe5f0; }
.use-case-grid span { color: #0f9494; font-size: 12px; font-weight: 800; }
.use-case-grid h3 { margin: 28px 0 14px; font-size: 24px; }
.use-case-grid p { color: #536177; line-height: 1.7; }
.excel-outcomes { padding: 96px max(32px, calc((100vw - 1316px)/2)); display: grid; grid-template-columns: 1fr 1fr; gap: 90px; color: #fff; background: #0d1b31; }
.excel-outcomes h2 { max-width: 620px; font-size: clamp(36px, 4vw, 58px); line-height: 1.1; letter-spacing: -.045em; }
.excel-outcomes ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.excel-outcomes li { padding: 18px 0; border-bottom: 1px solid #33465f; color: #d7e1ed; font-weight: 600; }
.excel-outcomes li::before { content: "✓"; margin-right: 14px; color: #5eead4; }
.excel-faq { background: #f3f7fc; }
.faq-list { max-width: 920px; }
.faq-list details { padding: 24px 0; border-top: 1px solid #cbd8e6; }
.faq-list details:last-child { border-bottom: 1px solid #cbd8e6; }
.faq-list summary { cursor: pointer; font-size: 19px; font-weight: 700; }
.faq-list details p { max-width: 760px; margin: 16px 0 0; color: #536177; line-height: 1.7; }
.landing-footer { grid-template-columns: 1.4fr 1fr; }
.footer-brand img { filter: none; }
.case-link { display: inline-block; margin-top: 22px; }
.case-live-link { display: inline-block; margin-top: 24px; }
.cases-grid .case > img { background: #fff; }
.case-hero { width: min(1316px, calc(100% - 64px)); margin: 54px auto 90px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; }
.smart-tech-section { position: relative; overflow: hidden; padding: 90px 32px; color: #fff; background: radial-gradient(ellipse at 50% 120%, #1557e738, transparent 65%), linear-gradient(135deg, #212832, #0f172a); }
.smart-tech-inner { max-width: 1120px; margin: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.smart-tech-copy h2 { max-width: 510px; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -.025em; margin: 0 0 20px; }
.smart-tech-copy > p { color: #ffffffd1; line-height: 1.6; margin: 0 0 22px; }
.smart-tech-copy ul { list-style: none; padding: 0; margin: 0 0 28px; }
.smart-tech-copy li { display: flex; gap: 10px; margin-bottom: 12px; color: #ffffffeb; font-weight: 600; }
.smart-tech-copy li::before { content: '✓'; color: #00c2ff; }
.smart-tech-visual { position: relative; display: grid; place-items: center; background: radial-gradient(circle, #0061f220, transparent 70%); }
.smart-tech-visual img { width: 100%; max-width: 470px; height: auto; opacity: .9; animation: tech-float 6s ease-in-out infinite; }
.smart-tech-visual::after { content: ''; position: absolute; inset: 65% 0 0; background: linear-gradient(to top, #0003, transparent); pointer-events: none; }
@keyframes tech-float { 50% { transform: translateY(-10px); } }
#contacto.final-cta { background: linear-gradient(135deg, #1e3a8a, #0061f2); border-top: 1px solid #ffffff20; }
footer { background: linear-gradient(180deg, #10264c 0, #0f172a 100px); }
.footer-brand img { width: 130px; max-width: 100%; height: auto; object-fit: contain; }
.social-links { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.social-links a { display: inline-flex; margin: 0; color: #cbd5e1; opacity: .8; transition: opacity .18s ease; }
.social-links a:hover { opacity: 1; }
.social-links img { width: 18px; height: 18px; }
body[data-page="home"] .privacy-note { font-size: 12px; }
.case-link:focus-visible { outline: 3px solid #1557e7; outline-offset: 6px; border-radius: 2px; }
@media (prefers-reduced-motion: reduce) { .smart-tech-visual img { animation: none; } }
@media (max-width: 760px) {
  .smart-tech-section { padding: 64px 24px; }
  .smart-tech-inner { grid-template-columns: 1fr; gap: 28px; }
  .smart-tech-visual img { max-width: 340px; }
}
.case-hero h1 { margin-bottom: 24px; }
.case-hero > img { width: 100%; border: 1px solid #d8e3ee; border-radius: 16px; box-shadow: 0 28px 70px #133e7024; }
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.case-tags span { padding: 9px 12px; border-radius: 6px; color: #174a9d; background: #eef5ff; font-size: 12px; font-weight: 700; }
.case-story { padding: 100px max(32px, calc((100vw - 1316px)/2)); display: grid; grid-template-columns: 1fr 1fr; gap: 90px; color: #fff; background: #0d1b31; }
.case-story h2 { font-size: clamp(30px, 3vw, 46px); line-height: 1.12; letter-spacing: -.04em; }
.case-story article > p:last-child { color: #c9d4e3; line-height: 1.75; }
.case-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.case-gallery figure { margin: 0; overflow: hidden; border: 1px solid #d8e3ee; border-radius: 14px; background: #fff; }
.case-gallery figure img { width: 100%; aspect-ratio: 1.13; object-fit: contain; background: #eef2f7; }
.case-gallery figcaption { padding: 26px; }
.case-gallery h3 { margin-bottom: 10px; font-size: 22px; }
.case-gallery p { margin: 0; color: #536177; line-height: 1.65; }
.case-result { padding: 96px max(32px, calc((100vw - 1316px)/2)); display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; color: #fff; background: #1557e7; }
.case-result h2 { margin: 0; font-size: clamp(36px, 4vw, 58px); line-height: 1.1; letter-spacing: -.045em; }
.case-result > p { margin: 0; color: #dbeafe; line-height: 1.8; }

@media (max-width: 900px) {
  .excel-hero, .excel-outcomes, .case-hero, .case-story, .case-result { grid-template-columns: 1fr; }
  .excel-hero { min-height: 0; margin-top: 55px; }
  .use-case-grid { grid-template-columns: 1fr 1fr; }
  .case-hero { margin-top: 55px; }
  .use-case-grid article:not(:nth-child(3n + 1)) { border-left: 0; }
  .use-case-grid article:nth-child(even) { border-left: 1px solid #dbe5f0; }
}

@media (max-width: 760px) {
  .excel-header nav .back-home { display: none; }
  .excel-header nav .button { min-height: 42px; padding-inline: 14px; font-size: 12px; }
  .excel-hero { width: calc(100% - 32px); margin-bottom: 56px; gap: 42px; }
  .migration-head span, .migration-row p, .migration-row strong { padding: 14px 12px; font-size: 12px; }
  .excel-symptoms { padding: 34px 20px; }
  .excel-symptoms p { font-size: 17px; }
  .use-case-grid, .excel-outcomes, .case-gallery { grid-template-columns: 1fr; }
  .use-case-grid article, .use-case-grid article:nth-child(even) { min-height: 0; border-left: 0; }
  .excel-outcomes { padding: 78px 20px; gap: 36px; }
  .landing-footer { grid-template-columns: 1fr; }
  .case-hero { width: calc(100% - 32px); margin-bottom: 60px; gap: 36px; }
  .case-story, .case-result { padding: 78px 20px; gap: 42px; }
}

/* The native hidden attribute controls the static diagnosis dialog and its steps. */
[hidden] { display: none !important; }

.case-closing {
  background: linear-gradient(135deg, #1e3a8a, #0061f2);
}
.case-closing .case-result,
.case-closing .final-cta {
  background: transparent;
}

@media (max-width: 360px) {
  .hero h1 { font-size: 40px; }
}
