:root {
  --home-title-size: clamp(22px, 2.8vw, 40px);
  --blue: #00348d;
  --blue-dark: #00256c;
  --red: #ee0b16;
  --ink: #0b1d3f;
  --muted: #5d6575;
  --line: #dfe5ef;
  --soft: #f4f7fb;
  --white: #ffffff;
  --shadow: 0 18px 48px rgba(0, 39, 106, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, transparent 0 84%, rgba(0, 52, 141, 0.12) 84% 88%, transparent 88%),
    linear-gradient(315deg, transparent 0 82%, rgba(238, 11, 22, 0.1) 82% 86%, transparent 86%),
    #fbfcff;
}

button,
input,
select,
textarea,
optgroup {
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.section-shell {
  width: min(1400px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 440px;
  align-items: center;
  gap: 18px;
  width: min(1400px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 16px 18px;
  border: 1px solid rgba(0, 52, 141, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 36px rgba(0, 39, 106, 0.1);
  backdrop-filter: blur(16px);
}

.brand img {
  display: block;
  width: 174px;
  height: auto;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.main-nav a {
  position: relative;
  padding: 10px 8px;
  color: #162443;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a::after {
  position: absolute;
  right: 12px;
  bottom: 4px;
  left: 12px;
  height: 2px;
  background: var(--red);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.header-actions,
.hero-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}



.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 39, 106, 0.14);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn i {
  margin-right: 8px;
  font-size: 20px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(0, 39, 106, 0.2);
}

.btn-primary {
  background: var(--red);
}

.btn-primary:hover {
  background: #c9000b;
}

.btn-secondary {
  background: var(--blue);
}

.btn-secondary:hover {
  background: var(--blue-dark);
}

.btn-light {
  color: var(--blue);
  background: var(--white);
}

.btn-intranet {
  border: 1px solid var(--line);
}

.btn-large {
  min-height: 54px;
  padding: 0 24px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--blue);
  background: var(--white);
  font-size: 24px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 36px;
  min-height: 580px;
  padding: 48px 54px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0 34%, rgba(255, 255, 255, 0.82) 42%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0) 56%),
    url("../img/hero-transformer-inspection.png") 72% center / cover no-repeat;
  box-shadow: 0 18px 48px rgba(0, 39, 106, 0.08);
}

.hero::before {
  position: absolute;
  top: 42px;
  bottom: 32px;
  left: -90px;
  width: 720px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  content: "";
  z-index: -1;
}

.hero::after {
  position: absolute;
  top: 30px;
  left: -6px;
  width: 136px;
  height: 110px;
  background-image: radial-gradient(circle, rgba(0, 52, 141, 0.28) 0 4px, transparent 5px);
  background-size: 26px 26px;
  content: "";
  z-index: -1;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.contact-copy h2,
.documents-hero h1 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(48px, 6vw, 76px);
  line-height: 0.98;
  font-weight: 900;
}

.hero h1 {
  font-size: var(--home-title-size);
}

.hero h1 span,
.section-heading strong {
  color: var(--red);
}

.hero-text {
  max-width: 560px;
  margin: 0 0 30px;
  color: #17233d;
  font-size: 18px;
  line-height: 1.55;
}

.hero-text strong {
  color: var(--blue);
  font-weight: 900;
}

.hero-rule {
  position: relative;
  width: min(470px, 100%);
  height: 3px;
  margin: 28px 0 30px;
  background: linear-gradient(90deg, var(--blue) 0 35%, rgba(0, 52, 141, 0.18) 35% 100%);
}

.hero-rule::after {
  position: absolute;
  right: 0;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
  transform: translateY(-50%);
}

.hero-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  max-width: 520px;
  margin: 0 0 30px;
}

.hero-benefits div {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.hero-benefits span {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(0, 39, 106, 0.1);
}

.hero-benefits i {
  font-size: 30px;
}

.hero-benefits div:nth-child(2) i,
.hero-benefits div:nth-child(3) i {
  color: var(--red);
}

.hero-benefits p {
  margin: 0;
  color: #17233d;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.documents-hero {
  padding: 74px 0 34px;
}

.documents-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.hero-visual {
  position: relative;
  min-height: 470px;
}

.hero-visual:not(.hero-visual-image) {
  border-radius: 50%;
  background: radial-gradient(circle at 45% 52%, #eef3fb 0 58%, transparent 59%);
}

.hero-visual-image {
  position: relative;
  min-height: 480px;
  border-radius: 0;
  background: transparent;
}

.technical-board {
  position: absolute;
  top: 70px;
  left: 24px;
  width: 280px;
  height: 315px;
  border: 3px solid var(--blue);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.64);
}

.technical-board::before,
.technical-board::after {
  position: absolute;
  border: 2px solid var(--blue);
  content: "";
}

.technical-board::before {
  top: 34px;
  left: 34px;
  width: 110px;
  height: 150px;
}

.technical-board::after {
  top: 54px;
  left: 62px;
  width: 78px;
  height: 58px;
  background: #f8fbff;
}

.technical-board span {
  position: absolute;
  display: block;
  width: 3px;
  height: 125px;
  background: var(--blue);
}

.technical-board span:nth-child(1) {
  top: 60px;
  left: 48px;
}

.technical-board span:nth-child(2) {
  top: 60px;
  left: 82px;
}

.technical-board span:nth-child(3) {
  top: 60px;
  left: 116px;
}

.technical-board span:nth-child(4) {
  top: 134px;
  right: 42px;
  width: 72px;
  height: 3px;
}

.meter-check {
  position: absolute;
  right: 34px;
  bottom: 52px;
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border: 3px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  font-size: 40px;
}

.inspector {
  position: absolute;
  right: 14px;
  bottom: 18px;
  width: 235px;
  height: 360px;
}

.helmet {
  position: absolute;
  top: 0;
  left: 36px;
  display: grid;
  place-items: center;
  width: 134px;
  height: 70px;
  border: 3px solid var(--blue);
  border-radius: 90px 90px 14px 14px;
  color: var(--red);
  font-size: 26px;
  background: var(--white);
}

.head {
  position: absolute;
  top: 70px;
  left: 72px;
  width: 72px;
  height: 92px;
  border: 3px solid var(--blue);
  border-top: 0;
  border-radius: 0 0 34px 34px;
  background: #fff;
}

.body {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  width: 205px;
  height: 210px;
  padding-top: 58px;
  border: 3px solid var(--blue);
  border-radius: 90px 10px 0 0;
  background: #fff;
}

.body img {
  display: block;
  width: 118px;
  height: auto;
  object-fit: contain;
}

.tablet {
  position: absolute;
  bottom: 104px;
  left: 0;
  display: grid;
  place-items: center;
  width: 82px;
  height: 122px;
  border: 3px solid var(--blue);
  border-radius: 12px;
  color: var(--blue);
  font-size: 34px;
  background: #fff;
  transform: rotate(-10deg);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  text-align: center;
}

.section-heading span {
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0, 52, 141, 0.34), transparent);
}

.section-heading h2 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 900;
}

.topic-section,
.why,
.contact-section,
.service-detail,
.policy-section,
.portfolio-section,
.documents-section {
  padding: 36px 0;
}

.about-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  gap: 36px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.about-lead h2,
.dictamen-panel h2 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  font-weight: 900;
}

.about-lead h2 {
  font-size: var(--home-title-size);
}

.about-detail p,
.dictamen-panel p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.about-detail ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-detail li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #28344d;
  font-weight: 700;
  line-height: 1.45;
}

.about-detail i {
  color: var(--red);
  font-size: 22px;
}

.dictamen-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  margin-top: 28px;
  padding: 30px 34px;
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(0, 37, 108, 0.96), rgba(0, 52, 141, 0.9)),
    url("../img/portfolio/tablero-distribucion.jpg") center/cover;
}

.dictamen-panel .eyebrow,
.dictamen-panel h2,
.dictamen-panel p {
  color: var(--white);
}

.service-grid,
.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.service-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-grid article,
.policy-grid a {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(0, 39, 106, 0.08);
}

.service-grid i,
.policy-grid i {
  color: var(--red);
  font-size: 42px;
}

.service-grid article:nth-child(even) i,
.policy-grid a:nth-child(even) i {
  color: var(--blue);
}

.service-grid h3,
.policy-grid h3 {
  margin: 16px 0 10px;
  color: var(--blue);
  font-size: 20px;
}

.service-grid p,
.policy-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.service-grid a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--red);
  font-weight: 900;
}

.policy-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.policy-grid a {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.policy-grid a:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.document-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.document-grid a {
  display: flex;
  min-height: 94px;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(0, 39, 106, 0.08);
  color: var(--blue);
  font-weight: 900;
  line-height: 1.35;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.document-grid a:hover {
  border-color: rgba(238, 11, 22, 0.28);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.document-grid i {
  color: var(--red);
  font-size: 34px;
  flex: 0 0 auto;
}

.document-grid a:nth-child(even) i {
  color: var(--blue);
}

.document-grid-wide {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.portfolio-grid a {
  position: relative;
  min-height: 230px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--blue);
  box-shadow: 0 14px 36px rgba(0, 39, 106, 0.14);
}

.portfolio-grid img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
  opacity: 0.86;
  transition: transform 220ms ease, opacity 220ms ease;
}

.portfolio-grid span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(0, 37, 108, 0.88);
  font-weight: 900;
}

.portfolio-grid a:hover img {
  opacity: 1;
  transform: scale(1.05);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 18px;
}

.topic-card {
  display: flex;
  min-height: 250px;
  padding: 24px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(0, 39, 106, 0.08);
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.topic-card:hover {
  border-color: rgba(238, 11, 22, 0.28);
  box-shadow: var(--shadow);
  transform: translateY(-5px);
}

.topic-card > i {
  color: var(--blue);
  font-size: 50px;
}

.electric-risk-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 56px;
}

.electric-risk-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.risk-triangle {
  fill: none;
  stroke: var(--red);
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-width: 5;
}

.risk-bolt {
  fill: var(--blue);
  stroke: var(--blue);
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.topic-card:nth-child(odd) > i {
  color: var(--red);
}

.topic-card h3 {
  min-height: 42px;
  margin: 16px 0 10px;
  color: var(--blue);
  font-size: 18px;
  font-weight: 900;
}

.topic-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.card-arrow {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-top: auto;
  border: 2px solid var(--blue);
  border-radius: 50%;
  color: var(--blue);
  font-size: 22px;
}

.why {
  margin-top: 20px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f6f8fc, #ffffff);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
}

.why-grid article {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 18px;
  padding: 26px 22px;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
}

.why-grid article:last-child {
  border-right: 0;
}

.why-grid i {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  color: var(--blue);
  background: var(--white);
  font-size: 36px;
  box-shadow: 0 10px 28px rgba(0, 39, 106, 0.1);
}

.why-grid article:nth-child(even) i {
  color: var(--red);
}

.why-grid h3 {
  margin: 6px 0 8px;
  font-size: 16px;
}

.why-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.75fr);
  gap: 42px;
  align-items: start;
}

.contact-copy h2 {
  font-size: var(--home-title-size);
}

.contact-copy > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.contact-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.contact-list i {
  color: var(--blue);
  font-size: 32px;
}

.contact-list span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.contact-list strong {
  color: var(--blue);
}

.quote-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.quote-form label {
  display: grid;
  gap: 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.quote-form input,
.quote-form textarea {
  width: 100%;
  border: 1px solid #cfd7e6;
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.quote-form input:focus,
.quote-form textarea:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(0, 52, 141, 0.12);
}

.btn-submit {
  min-height: 52px;
  width: 100%;
}

.form-status {
  display: none;
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-success {
  color: #0b6b3a;
  background: #eaf8f0;
}

.form-status.is-error {
  color: #9d1018;
  background: #fff0f1;
}

.document-page {
  display: grid;
  grid-template-columns: minmax(320px, 0.42fr) minmax(0, 0.9fr);
  gap: 34px;
  align-items: start;
  margin-top: 24px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.document-intro {
  position: sticky;
  top: 118px;
  display: grid;
  justify-items: start;
  gap: 18px;
}

.document-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.document-intro h1 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.04;
}

.document-intro > p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.document-viewer {
  overflow: hidden;
  min-height: 760px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f7fb;
}

.document-viewer iframe {
  display: block;
  width: 100%;
  min-height: 760px;
  border: 0;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 36px;
  padding: 24px 20px 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--blue);
  font-weight: 800;
}

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
    justify-self: end;
  }

  .main-nav,
  .header-actions {
    display: none;
    grid-column: 1 / -1;
  }

  .site-header.is-open .main-nav,
  .site-header.is-open .header-actions {
    display: flex;
  }

  .site-header.is-open .main-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .site-header.is-open .header-actions {
    display: grid;
  }

  .topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .why-grid,
  .policy-grid,
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 540px;
    padding: 36px;
  }
}

@media (max-width: 860px) {
  .hero,
  .contact-section,
  .about-panel,
  .document-page {
    grid-template-columns: 1fr;
  }

  .document-intro {
    position: static;
  }

  .hero {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0 44%, rgba(255, 255, 255, 0.7) 58%, rgba(255, 255, 255, 0.06) 78%),
      url("../img/hero-transformer-inspection.png") center bottom / cover no-repeat;
    min-height: auto;
    padding-top: 48px;
  }

  .hero::before {
    left: -160px;
    width: 620px;
  }

  .hero-benefits {
    max-width: none;
  }

  .hero-visual {
    min-height: 390px;
  }

  .hero-visual-image {
    min-height: 260px;
  }

  .dictamen-panel {
    grid-template-columns: 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section-shell {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    width: min(100% - 20px, 1180px);
    margin-top: 10px;
    padding: 12px;
  }

  .brand img {
    width: 145px;
  }

  .header-actions {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 30px 24px;
    gap: 20px;
  }

  :root {
    --home-title-size: clamp(22px, 5.6vw, 36px);
  }

  .hero-rule {
    margin: 22px 0 24px;
  }

  .hero-actions,
  .header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-benefits {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .hero-benefits div {
    grid-template-columns: 58px 1fr;
    justify-items: start;
    align-items: center;
    text-align: left;
  }

  .hero-benefits span {
    width: 58px;
    height: 58px;
  }

  .hero-benefits i {
    font-size: 29px;
  }

  .topic-grid,
  .why-grid,
  .contact-list,
  .policy-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .about-panel,
  .dictamen-panel {
    padding: 24px 18px;
  }

  .topic-card {
    min-height: 218px;
  }

  .why-grid article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .hero-visual:not(.hero-visual-image) {
    min-height: 320px;
    transform: scale(0.82);
    transform-origin: top center;
    margin-bottom: -56px;
  }

  .hero-visual-image {
    min-height: 320px;
    margin-top: 10px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.normatividad-modal {
  width: min(900px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--blue);
  background: var(--white);
  box-shadow: var(--shadow);
}
.normatividad-modal::backdrop { background: rgba(0, 24, 65, 0.65); }
.normatividad-modal-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.normatividad-modal-heading h2 { margin: 0; }
.normatividad-modal-heading button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue);
  background: var(--white);
  font-size: 24px;
  cursor: pointer;
}
.normatividad-modal > p { color: var(--muted); }
.normatividad-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.normatividad-cards a { padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); box-shadow: 0 12px 34px rgba(0, 39, 106, 0.08); }
.normatividad-cards a:hover { border-color: var(--blue); box-shadow: var(--shadow); }
.normatividad-cards a:focus-visible, .normatividad-modal button:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.normatividad-cards i { color: var(--red); font-size: 42px; }
.normatividad-cards h3 { margin: 16px 0 10px; color: var(--blue); font-size: 20px; }
.normatividad-cards p { margin: 0; color: var(--muted); line-height: 1.55; }
@media (max-width: 640px) {
  .normatividad-modal { padding: 20px; }
  .normatividad-cards { grid-template-columns: 1fr; }
}