@font-face {
  font-family: Cormorant; src: url("./assets/cormorant.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: optional;
}
@font-face {
  font-family: Instrument; src: url("./assets/instrument.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: optional;
}
:root {
  --wine: #761628; --dark-wine: #310d16; --ink: #2b191c;
  --quiet: #645456; --paper: #fffdfa; --soft: #f7efec; --line: #e7d7d5;
  --serif: Cormorant, Georgia, serif; --sans: Instrument, Arial, sans-serif;
  scroll-behavior: smooth;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--sans); }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
h1,h2,h3,p,figure { margin: 0; }
h1,h2,h3 { font-family: var(--serif); font-weight: 600; text-wrap: balance; }
h2 { font-size: clamp(2.65rem,5.9vw,5.15rem); letter-spacing: -.045em; line-height: .92; }
i { font-style: normal; }
[hidden] { display: none !important; }
button, summary { cursor: pointer; }
a:focus-visible,button:focus-visible,summary:focus-visible,[tabindex]:focus-visible { outline: 2px solid #b54f65; outline-offset: 4px; }
.wrap { width: min(100% - 104px,1280px); margin-inline: auto; }
.eyebrow { color: var(--wine); font-size: .7rem; font-weight: bold; letter-spacing: .16em; text-transform: uppercase; }
.top { position: relative; z-index: 5; border-bottom: 1px solid var(--line); background: var(--paper); }
.masthead { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { flex: 0 1 212px; }
.brand img { width: 100%; }
.quick-nav,.mast-actions { display: flex; align-items: center; gap: clamp(8px,2vw,26px); }
.quick-nav a { font-size: .77rem; text-decoration: none; white-space: nowrap; }
.quick-nav a:hover,.menu nav a:hover { color: var(--wine); text-decoration: underline; }
.button { min-height: 44px; border: 1px solid currentColor; padding: 11px 16px; display: inline-flex; justify-content: center; align-items: center; gap: 16px; border-radius: 3px; color: var(--wine); text-decoration: none; text-align: center; line-height: 1.25; font-size: .73rem; font-weight: bold; letter-spacing: .06em; transition: background .2s,color .2s; }
.button:hover { background: #76162812; }
.button.primary { color: white; background: var(--wine); border-color: var(--wine); }
.button.primary:hover { background: #96253a; }
.menu { position: relative; }
.menu summary { list-style: none; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 3px; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { width: 16px; height: 1px; background: var(--wine); }
.menu nav { position: absolute; top: calc(100% + 10px); right: 0; z-index: 2; width: min(310px,calc(100vw - 36px)); padding: 9px 17px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 15px 45px #30101828; }
.menu nav a { display: block; padding: 8px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: .86rem; }
.menu nav a:last-child { border-bottom: 0; }
.hero { position: relative; isolation: isolate; overflow: hidden; background: #220a10; color: #fffaf6; }
.hero-media,.hero::after { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 66% center; }
.hero::after { content: ""; z-index: -1; background: linear-gradient(90deg,#210810e6 1%,#240b12bb 27%,#240b1240 55%,transparent 72%); }
.hero-layout { min-height: clamp(515px,49vw,740px); display: grid; align-items: center; }
.hero-copy { padding: 60px 0; width: min(58%,690px); }
.hero .eyebrow { color: #f3c8ce; margin-bottom: 23px; display: flex; gap: 11px; align-items: center; }
.hero .eyebrow::before { content: ""; width: 27px; border-top: 1px solid currentColor; }
h1 { font-size: clamp(3.5rem,6.45vw,7.25rem); line-height: .89; letter-spacing: -.04em; text-wrap: initial; }
.hero-subtitle { font-size: clamp(1.05rem,1.8vw,1.5rem); margin-top: 22px; color: #fff2ee; }
.hero-actions { margin-top: 27px; }
.hero .button { background: #8e1731; min-width: 146px; }
.rating { position: absolute; bottom: 22px; right: max(24px, calc((100% - 1280px)/2)); color: white; display: grid; background: #260d15d9; border: 1px solid #f6e1de75; padding: 6px 11px; font-size: .55rem; letter-spacing: .1em; text-decoration: none; }
.rating span { color: #f2d0d1; font-size: .73rem; }
.jump { border-bottom: 1px solid var(--line); background: var(--soft); }
.jump nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); }
.jump a { display: flex; gap: 9px; align-items: center; padding: 17px 12px; border-right: 1px solid var(--line); text-decoration: none; font-size: .77rem; font-weight: bold; line-height: 1.35; }
.jump a:first-child { border-left: 1px solid var(--line); }
.jump span { color: var(--wine); font-size: .9rem; }
.jump a:hover { background: #ebdcda; }
.section { padding: clamp(58px,7.7vw,110px) 0; scroll-margin-top: 15px; }
.layout { display: grid; gap: 30px 46px; }
.section-title h2 { max-width: 840px; }
.subhead { margin-top: 13px; color: var(--wine); font-size: .89rem; font-weight: bold; }
.section-copy { min-width: 0; color: var(--quiet); }
.section-copy p:empty { display: none; }
.prose-panel + .prose-panel,.section-copy>div+p,.section-copy>p+div { margin-top: 13px; }
.section-copy strong { color: var(--ink); }
.feature .layout,.experiencia .layout { grid-template-columns: minmax(0,1fr) minmax(0,1.08fr); align-items: stretch; }
.feature .section-title,.experiencia .section-title { grid-column: 1/-1; }
.feature.alternate,.experiencia { background: var(--soft); }
.feature.alternate .editorial-image { grid-column: 2; grid-row: 2; }
.feature.alternate .section-copy { grid-column: 1; grid-row: 2; }
.editorial-image { position: relative; min-height: 345px; overflow: hidden; background: var(--dark-wine); border-radius: 4px; }
.editorial-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prose-panel { padding: 14px 17px; border: 1px solid var(--line); background: var(--paper); border-radius: 3px; }
.contact-line { margin-top: 17px; }
.contact-line + p { margin-top: 9px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.measures article { padding: 13px; border: 1px solid #c9a0a6; border-radius: 3px; background: #f5e5e6; color: #641425; font-size: .76rem; font-weight: bold; }
.bands { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.bands article { border: 1px solid var(--line); border-top: 3px solid var(--wine); border-radius: 3px; padding: 20px; background: var(--paper); }
.bands p+p { margin-top: 10px; }
.rows { display: grid; gap: 7px; }
.rows article { padding: 12px 15px; border: 1px solid var(--line); border-left: 2px solid #b86f7b; background: var(--paper); border-radius: 3px; }
.etapas { background: var(--dark-wine); color: var(--paper); }
.etapas .subhead { color: #f5bfc9; }
.etapas .section-copy { color: #f2dce0; }
.etapas .section-copy strong { color: white; }
.etapas .prose-panel { padding: 0; background: none; border: 0; max-width: 860px; }
.steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.step { min-width: 0; padding: 22px; border: 1px solid #d098a071; border-radius: 4px; background: #4a1522; }
.step>span { display: block; font: 600 1.7rem/1 var(--serif); color: #f1acb9; margin-bottom: 15px; }
.step h3 { color: #fffaf7; font-size: 1.88rem; line-height: 1; margin-bottom: 12px; text-wrap: initial; }
.step p { font-size: .9rem; }
.profile-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: clamp(25px,6vw,85px); align-items: center; }
.profile .eyebrow { margin-bottom: 14px; }
.profile .section-copy { margin-top: 21px; }
.profile .section-copy>p+p { margin-top: 13px; }
.profile-image { height: clamp(360px,39vw,510px); background: radial-gradient(ellipse at 52% 43%, #a94b5c,#761628 60%,#45111b); border-radius: 4px; display: grid; place-items: end center; overflow: hidden; }
.profile-image img { width: min(90%,420px); height: 94%; object-fit: contain; object-position: bottom; }
.credentials { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin-top: 20px; }
.credentials span { padding: 10px 13px; border: 1px solid var(--line); border-radius: 3px; color: var(--wine); font-weight: bold; font-size: .7rem; }
.certificates { background: var(--soft); border-top: 1px solid var(--line); }
.certificates header { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 27px; }
.gallery-controls { display: flex; gap: 8px; }
.round { display: grid; place-items: center; width: 41px; height: 41px; border: 1px solid #b26d78; border-radius: 50%; color: var(--wine); background: var(--paper); font: 1.15rem var(--sans); }
.round:hover { background: #edd9dc; }
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 32%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 3px 3px 13px; scrollbar-color: #a66b75 #ead9da; }
.certificate { display: grid; place-items: center; aspect-ratio: 1.4; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: 12px; scroll-snap-align: start; }
.certificate img { width: 100%; height: 100%; object-fit: contain; }
.certificate:hover { border-color: var(--wine); }
.services ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.services li { display: grid; align-content: start; gap: 11px; padding: 20px 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--paper); font: 600 1.55rem/1.1 var(--serif); overflow-wrap: anywhere; }
.services li span { color: var(--wine); font-size: .8rem; }
.footer { background: var(--dark-wine); color: #f6e4e8; padding: 48px 0; font-size: .85rem; }
.footer-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-logo { width: 210px; filter: brightness(0) invert(1); margin-bottom: 14px; }
.footer a { display: block; width: fit-content; text-underline-offset: 4px; overflow-wrap: anywhere; }
.footer a+a { margin-top: 3px; }
.lightbox { width: min(920px,calc(100% - 22px)); max-height: 94dvh; background: var(--dark-wine); border: 1px solid var(--line); border-radius: 4px; padding: 50px 14px 14px; }
.lightbox::backdrop { background: #210810e6; }
.lightbox img { width: 100%; max-height: calc(94dvh - 67px); object-fit: contain; }
.lightbox .close { position: absolute; right: 8px; top: 6px; }
@media (max-width: 960px) {
  .wrap { width: calc(100% - 60px); }
  .quick-nav { display: none; }
  .bands { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .services ul { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 36px); }
  .masthead { min-height: 62px; gap: 12px; }
  .brand { flex-basis: 157px; }
  .mast-actions { gap: 7px; }
  .masthead .button,.menu summary { min-height: 37px; height: 37px; padding: 7px; gap: 5px; }
  .menu summary { width: 36px; }
  .hero { --hero-photo-height: min(84vw,440px); display: flex; flex-direction: column; }
  .hero-layout { min-height: auto; }
  .hero-copy { width: 100%; padding: 23px 0 31px; }
  .hero .eyebrow { margin-bottom: 16px; }
  .hero-subtitle { margin-top: 15px; }
  .hero-actions { margin-top: 15px; }
  .hero::after { content: none; }
  .hero-media { position: relative; z-index: 0; }
  .hero-media img { width: 100%; height: var(--hero-photo-height); object-position: 50% 25%; }
  .hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top,#220a10,transparent 21%); pointer-events: none; }
  h1 { font-size: clamp(3.1rem,12vw,5.3rem); }
  h2 { font-size: clamp(2.5rem,10vw,4rem); }
  .rating { top: calc(var(--hero-photo-height) - 55px); bottom: auto; right: 14px; z-index: 1; }
  .jump nav { grid-template-columns: 1fr 1fr; }
  .jump a { border: 0; padding: 10px 8px; }
  .jump a:first-child { border: 0; }
  .jump a:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .feature .layout,.experiencia .layout,.steps,.profile-grid,.footer-layout { grid-template-columns: 1fr; }
  .layout { gap: 17px; }
  .feature.alternate .editorial-image,.feature.alternate .section-copy { grid-column: 1; grid-row: auto; }
  .editorial-image { min-height: 0; height: clamp(180px,60vw,315px); }
  .profile-image { height: clamp(300px,90vw,450px); }
  .profile .section-copy { margin-top: 17px; }
  .certificates header { align-items: start; flex-direction: column; gap: 13px; }
  .gallery { grid-auto-columns: 80%; }
}
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { scroll-behavior: auto !important; transition: none !important; }
}
.hero-actions span,.jump span,.rating span,.round,.services li span,.button i,.footer i { font-family: "DejaVu Sans", sans-serif; }

/* Interior sections */
#defesa .layout { gap: 32px clamp(36px,6vw,86px); }
#defesa .section-copy { align-self: center; }
#defesa .prose-panel,#riscos .prose-panel,#diferencial>.layout>.section-copy>.prose-panel {
  padding: 0; border: 0; background: transparent;
}
#defesa .section-copy>p:first-child {
  color: var(--ink); font: 600 clamp(1.65rem,2.65vw,2.55rem)/1.12 var(--serif);
  padding-left: 18px; border-left: 2px solid var(--wine); margin-bottom: 24px;
}
#defesa .prose-panel+.prose-panel { margin-top: 18px; }
#defesa .contact-line,#riscos .contact-line,#diferencial .contact-line { margin-top: 25px; }
#defesa .original-contact,#riscos .original-contact,#diferencial .original-contact {
  color: white; background: var(--wine); border-color: var(--wine);
}
#defesa .original-contact:hover,#riscos .original-contact:hover,#diferencial .original-contact:hover { background: #96253a; }
#riscos .rows { gap: 0; border-block: 1px solid #d1b8bd; }
#riscos .rows article { border: 0; border-radius: 0; background: transparent; padding: 15px 0; }
#riscos .rows article+article { border-top: 1px solid #d1b8bd; }
#riscos .section-copy>p:first-child { font-size: 1.15rem; color: var(--ink); margin-bottom: 20px; }
#riscos .section-copy>.rows+p { margin-top: 24px; }
#diferencial { background: #fffdf9; }
#diferencial .section-title { text-align: center; }
#diferencial h2 { margin-inline: auto; }
#diferencial .bands { align-items: start; gap: clamp(24px,5vw,68px); }
#diferencial .bands article { border: 0; padding: 22px 0 0; border-radius: 0; border-top: 1px solid #b67683; background: transparent; }
#diferencial .bands h3 { color: var(--wine); font-size: clamp(2rem,3.6vw,3.2rem); line-height: 1; margin-bottom: 19px; }
#diferencial .bands p+p { margin-top: 14px; }
#diferencial .section-copy>.prose-panel { max-width: 740px; margin: 36px auto 0; text-align: center; }
#diferencial .section-copy>.contact-line { text-align: center; }

#etapas { padding-block: clamp(70px,9vw,132px); }
#etapas .layout { gap: clamp(25px,4vw,52px); }
#etapas .section-title,#etapas .section-copy>p { text-align: center; }
#etapas .section-title h2 { margin-inline: auto; }
#etapas .section-copy>p { max-width: 710px; margin-inline: auto; }
#etapas .section-copy>p+div.steps { margin-top: 27px; }
#etapas .steps { gap: clamp(12px,2vw,27px); }
#etapas .step { padding: clamp(20px,2.6vw,34px); }
#etapas .section-copy>.steps+p { margin-top: 34px; }

#medidas { color: var(--paper); background: radial-gradient(ellipse at 50% 54%,#702538 0%,#41101c 49%,#290b13 83%); }
#medidas .layout { display: block; text-align: center; }
#medidas h2 { margin-inline: auto; }
#medidas .subhead { color: #f1c0c9; }
#medidas .section-copy { margin-top: clamp(24px,4vw,42px); color: #f8e8e9; }
#medidas .section-copy>p { max-width: 690px; margin-inline: auto; }
#medidas .section-copy strong { color: #fffdfb; }
#medidas .prose-panel { padding: 0; border: 0; background: transparent; }
#medidas .measures {
  max-width: 1050px; margin: 26px auto 34px;
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.13fr) minmax(0,1fr);
  grid-template-rows: 1fr 1fr; gap: 0 clamp(16px,4vw,55px); align-items: center;
}
#medidas .justice { grid-area: 1 / 2 / 3 / 3; }
#medidas .justice img { width: 100%; max-height: 370px; object-fit: contain; filter: drop-shadow(12px 18px 23px #22050bb0); }
#medidas .measures article {
  border: 0; border-top: 1px solid #e8afb477; border-radius: 0; padding: 15px 0 0;
  background: transparent; color: #fff7f4; font-size: .85rem; line-height: 1.55; letter-spacing: .04em;
}
#medidas .consequence-1 { grid-area: 1 / 1; }
#medidas .consequence-2 { grid-area: 2 / 1; }
#medidas .consequence-3 { grid-area: 1 / 3; }
#medidas .consequence-4 { grid-area: 2 / 3; }
#medidas .original-contact { color: white; background: #a12740; border-color: #d78291; }
#medidas .original-contact:hover { background: #bc3d55; }

.certificates { background: #f6eeeb; }
.certificates header { display: grid; justify-items: center; text-align: center; justify-content: center; gap: 20px; }
.certificates h2 { max-width: 800px; }
.certificate-view {
  max-width: 850px; margin-inline: auto; padding: clamp(12px,2.4vw,27px);
  background: #49131f; border: 1px solid #731b2d; border-radius: 5px;
  box-shadow: 0 18px 48px #4a152228;
}
.certificate-feature {
  display: grid; place-items: center; min-height: min(350px,65vw);
  background: #fdf9f5; border-radius: 2px; padding: clamp(9px,1.5vw,18px); cursor: zoom-in;
}
.certificate-feature img { width: auto; max-width: 100%; height: clamp(210px,34vw,440px); object-fit: contain; }
.gallery.gallery-thumbnails {
  max-width: 700px; margin: 18px auto 0;
  grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(5,minmax(0,1fr));
  overflow: visible; padding: 2px; gap: clamp(5px,1.3vw,13px);
}
.gallery-thumbnails .certificate {
  border: 1px solid #cbb4b8; min-width: 0; padding: clamp(4px,1vw,10px);
  opacity: .77; transition: opacity .2s,border-color .2s,box-shadow .2s;
}
.gallery-thumbnails .certificate:hover,.gallery-thumbnails .certificate[aria-current] { opacity: 1; border-color: var(--wine); }
.gallery-thumbnails .certificate[aria-current] { box-shadow: 0 0 0 1px var(--wine); }
.gallery-thumbnails .certificate img { min-width: 0; }
@media (max-width: 700px) {
  #defesa .layout { gap: 21px; }
  #medidas .measures { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: auto; gap: 16px 14px; }
  #medidas .justice { grid-area: auto; grid-column: 1/-1; grid-row: 1; }
  #medidas .justice img { max-height: 260px; }
  #medidas .measures article { grid-area: auto; align-self: stretch; font-size: .72rem; padding-top: 11px; }
  #diferencial .bands { gap: 20px; }
  #diferencial .bands article { padding-top: 14px; }
  #diferencial .bands h3 { margin-bottom: 11px; }
  #etapas .section-copy>.steps+p { margin-top: 25px; }
}

/* Shared contact buttons */
a.button:is(.primary,.original-contact) {
  --button-top: #a42f46;
  --button-bottom: #741629;
  min-height: 45px;
  gap: 12px;
  padding: 11px 18px;
  border: 1px solid #ed9aad66;
  border-radius: 6px;
  color: #fffaf8;
  background: linear-gradient(112deg,var(--button-top),var(--button-bottom));
  box-shadow: inset 0 1px 0 #ffffff27, 0 5px 14px #74162933;
  font: 600 .83rem/1.3 var(--sans);
  letter-spacing: .015em;
  transition: box-shadow .2s, filter .2s;
}
:where(#defesa,#medidas,#riscos,#diferencial) a.button.original-contact {
  margin-top: 0;
}
a.button:is(.primary,.original-contact):hover {
  background: linear-gradient(112deg,#b84659,#882037);
  box-shadow: inset 0 1px 0 #ffffff32, 0 7px 18px #76162857;
  filter: brightness(1.05);
}
#defesa a.button.original-contact,#medidas a.button.original-contact,
#riscos a.button.original-contact,#diferencial a.button.original-contact {
  background: linear-gradient(112deg,var(--button-top),var(--button-bottom));
  border-color: #ed9aad66;
}
#defesa a.button.original-contact:hover,#medidas a.button.original-contact:hover,
#riscos a.button.original-contact:hover,#diferencial a.button.original-contact:hover {
  background: linear-gradient(112deg,#b84659,#882037);
}
.button i { flex: 0 0 auto; font: .9rem/1 "DejaVu Sans",sans-serif; }
.menu summary,.round {
  border-radius: 6px;
  box-shadow: inset 0 1px 0 #fff8,0 3px 10px #76162819;
  border: 1px solid #b97884;
  background: linear-gradient(115deg,#fffdfb,#f0d9dd);
}
.menu summary:hover,.round:hover { background: #edd0d7; }

/* Profile composition */
.profile {
  background: radial-gradient(ellipse at 14% 45%,#421a21 0%,#250f15 47%,#170d10 82%);
  color: #fffaf6;
}
.profile-grid {
  max-width: 1120px;
  grid-template-columns: minmax(0,1fr) minmax(0,1.04fr);
  gap: clamp(30px,5.7vw,84px);
}
.profile-image {
  height: auto;
  aspect-ratio: 4/4.9;
  position: relative;
  display: block;
  border: 1px solid #ffc0ca47;
  border-radius: 7px;
  background: #220d14;
  box-shadow: 0 12px 36px #13050983;
}
.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 41%;
}
.profile .eyebrow {
  color: #f5d5db;
  display: inline-block;
  padding: 5px 10px;
  border: 1px solid #dc98a36b;
  border-radius: 30px;
  font-size: .6rem;
  letter-spacing: .09em;
}
.profile h2 {
  font-size: clamp(2.7rem,5.4vw,4.85rem);
  color: #fff7f2;
  text-wrap: initial;
}
.profile .section-copy { color: #f6e5e6; }
.profile .section-copy strong { color: #fffaf6; }
.profile .section-copy>p+p { margin-top: 12px; }
.profile .credentials { display: flex; flex-wrap: wrap; gap: 5px 16px; margin-top: 17px; }
.profile .credentials span { padding: 0; border: 0; color: #edb0bd; }
.profile-contact { margin-top: 23px; min-width: 125px; }
@media (max-width: 700px) {
  .profile-grid { grid-template-columns: 1fr; gap: 24px; }
  .profile-image { aspect-ratio: 4/4.45; max-height: 460px; }
  .profile h2 { font-size: clamp(2.55rem,10.8vw,4rem); }
  .masthead a.button.primary { min-height: 37px; padding: 7px 9px; gap: 6px; }
}

/* Alternating editorial panels */
#diferencial {
  background: radial-gradient(ellipse at 48% 36%,#401520 0%,#280f16 60%,#1d0d12 100%);
  color: #fffaf6;
}
#diferencial .subhead { color: #edb0bd; }
#diferencial .section-copy { color: #f0dce0; }
#diferencial .section-copy strong { color: #fff9f6; }
#diferencial .bands { grid-template-columns: 1fr; gap: clamp(20px,3.3vw,39px); max-width: 1110px; margin-inline: auto; }
#diferencial .bands article {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,.95fr) minmax(0,1.1fr);
  align-items: center;
  gap: clamp(21px,4.3vw,58px);
  padding: clamp(18px,3.25vw,42px);
  border: 1px solid #d598a95c;
  border-radius: 7px;
  background: linear-gradient(125deg,#fff3 0%,#fff0 27%),#3b1722;
}
#diferencial .bands h3 { color: #fff4f0; margin-bottom: 16px; }
.pillar-copy { min-width: 0; }
.pillar-image { overflow: hidden; border-radius: 5px; border: 1px solid #e3a1ad57; min-width: 0; }
.pillar-image img { width: 100%; height: auto; aspect-ratio: 1.25; object-fit: cover; }
.pillar-number {
  position: absolute;
  top: 17px;
  right: -10px;
  min-width: 39px;
  padding: 6px 7px;
  border: 1px solid #e79cac7d;
  background: linear-gradient(115deg,#b44760,#74162c);
  color: #fff6f5;
  border-radius: 4px;
  text-align: center;
  font: 600 1.05rem/1 var(--serif);
}
@media (min-width: 701px) {
  .bands article:nth-child(even) .pillar-image { grid-column: 2; grid-row: 1; }
  .bands article:nth-child(even) .pillar-copy { grid-column: 1; grid-row: 1; }
  .bands article:nth-child(even) .pillar-number { right: auto; left: -10px; }
}
@media (max-width: 700px) {
  #diferencial .bands article { grid-template-columns: 1fr; }
  .pillar-image img { aspect-ratio: 1.48; }
  .pillar-number { right: 10px; top: 10px; }
}

/* Light framing keeps the red cards distinct from the section background. */
#diferencial {
  background: var(--soft);
  color: var(--ink);
}
#diferencial .subhead { color: var(--wine); }
#diferencial .section-copy { color: var(--quiet); }
#diferencial .section-copy strong { color: var(--ink); }
#diferencial .pillar-copy { color: #fff2ef; }
#diferencial .pillar-copy strong { color: #fffaf6; }
#diferencial .bands article {
  background: linear-gradient(125deg,#ffffff14,transparent 45%),#761628;
  border-color: #792538;
}

#cursos { padding-bottom: clamp(32px,4vw,60px); }
#experiencia { padding-top: clamp(24px,3vw,44px); }
#experiencia .layout {
  grid-template-columns: minmax(0,1fr);
  max-width: 1110px;
  gap: clamp(20px,3vw,40px);
}
#experiencia .section-title { text-align: center; }
#experiencia h2 {
  margin-inline: auto;
  font-size: clamp(2.5rem,4.15vw,4.35rem);
  text-wrap: initial;
}
#experiencia .section-title::after {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  background: var(--wine);
  margin: 20px auto 0;
}
#experiencia .rows {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
}
#experiencia .rows article {
  min-width: 0;
  min-height: 155px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(15px,1.8vw,23px);
  background: linear-gradient(145deg,#8c2337,#611322);
  border: 1px solid #822d3d;
  border-radius: 6px;
  color: #fff8f5;
  font-size: .89rem;
  line-height: 1.48;
}
#experiencia .rows strong { color: inherit; }
.experience-marker {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f6DFdf;
  color: #721326;
  font: 600 1.04rem/1 var(--serif);
}
@media (max-width: 1050px) {
  #experiencia .section-title::after { margin-top: 16px; }
}
@media (max-width: 700px) {
  #experiencia .rows { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 420px) {
  #experiencia .rows { grid-template-columns: 1fr; }
  #experiencia .rows article { grid-template-columns: auto 1fr; min-height: auto; align-items: start; }
}

#medidas .measures article {
  display: grid;
  justify-items: center;
  gap: 12px;
  border: 0;
  padding: 0;
}
.measure-marker {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f6dcdf;
  color: #721326;
  font: 600 1.22rem/1 var(--serif);
}
#medidas .measures article p { max-width: 230px; text-wrap: balance; }
@media (min-width: 701px) {
  #riscos .layout { grid-template-rows: auto 1fr; text-align: left; }
  #riscos .section-title { grid-area: 1 / 1; }
  #riscos .section-title h2 { font-size: clamp(2.65rem,4.75vw,4.65rem); text-wrap: balance; }
  #riscos .section-copy { grid-area: 2 / 1; }
  #riscos .editorial-image { grid-area: 1 / 2 / 3 / 3; min-height: 0; }
  #riscos .editorial-image img { object-position: center center; }
}
@media (max-width: 700px) {
  #medidas .measures article { padding: 5px 0; }
  .measure-marker { width: 34px; height: 34px; }
}
@media (max-width: 700px) {
  .masthead a.button.primary { font-size: .7rem; white-space: nowrap; }
}

#etapas .steps-contact { margin-top: 23px; text-align: center; }
@supports (grid-template-rows: subgrid) {
  @media (min-width: 701px) {
    #etapas .steps { grid-template-rows: auto auto 1fr; row-gap: 0; }
    #etapas .step { display: grid; grid-row: 1 / span 3; grid-template-rows: subgrid; align-items: start; }
    #etapas .step > div { display: contents; }
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-in, .section-entered {
    animation: entrance 460ms cubic-bezier(.22,.61,.36,1) var(--entry-delay,0ms) backwards;
  }
  .hero-in { --entry-y: 13px; }
  .hero-in:nth-child(2) { --entry-delay: 70ms; }
  .hero-in:nth-child(3) { --entry-delay: 130ms; }
  .hero-in:nth-child(4) { --entry-delay: 190ms; }
  .section-entered { --entry-y: 12px; }
  .section-entered[data-direction="left"] { --entry-x: -16px; --entry-y: 0px; }
  .section-entered[data-direction="right"] { --entry-x: 16px; --entry-y: 0px; }
  .section-entered:focus-within, .hero-in:focus-within { animation: none; }

  @keyframes entrance {
    from { transform: translate(var(--entry-x,0px),var(--entry-y,0px)); }
    to { transform: translate(0,0); }
  }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 700px) {
  .section-entered[data-direction] { --entry-x: 0px; --entry-y: 10px; }
}
