/* Rounded section transitions, keeping the brand's graphite and ivory. */
#instagram-inquiry { box-sizing: border-box; width: min(600px, calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow: auto; border: 1px solid #bca57455; border-radius: 28px; background: #f4f0e7; color: #181d1b; padding: 32px; font: 400 17px/1.6 'DM Sans', sans-serif; }
#instagram-inquiry::backdrop { background: #111813bb; }
#instagram-inquiry h2 { font: 400 34px/1.15 'DM Serif Display', serif; margin: 0 0 20px; }
#instagram-inquiry label { display: block; font-size: 14px; margin: 24px 0 8px; }
#instagram-inquiry textarea { box-sizing: border-box; width: 100%; border: 1px solid #181d1b44; border-radius: 12px; background: #fffaf1; color: #181d1b; padding: 14px; font: inherit; resize: vertical; }
#instagram-inquiry [role="status"] { font-size: 14px; min-height: 24px; }
#instagram-inquiry .inquiry-actions { display: flex; flex-wrap: wrap; gap: 12px; }
#instagram-inquiry button, #instagram-inquiry a { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 18px; border: 1px solid #181d1b44; border-radius: 14px; background: transparent; color: #181d1b; font: inherit; font-size: 16px; text-decoration: none; cursor: pointer; }
#instagram-inquiry a { background: #bca574; border-color: #bca574; }
#instagram-inquiry button:hover, #instagram-inquiry a:hover { box-shadow: 0 4px 14px #181d1b22; }
#instagram-inquiry :focus-visible { outline: 2px solid #75613b; outline-offset: 3px; }
#matias-web { --section-curve: 40px; --image-curve: 26px; max-width: none; width: 100%; margin: 0; }
#matias-web .nav, #matias-web footer {
  padding-left: max(7%, calc((100% - 1120px) / 2));
  padding-right: max(7%, calc((100% - 1120px) / 2));
}
#matias-web main > .section { position: relative; background: var(--ink); }
#matias-web main > .section.light { background: var(--ivory); }
#matias-web main > .section:not(.hero):not(.personal-gallery) {
  border-radius: 0;
  margin-top: 0;
}
#matias-web main > #matias-sobre {
  border-radius: 44px;
  margin: 0 32px 48px;
  padding-top: 88px;
  padding-bottom: 88px;
  box-shadow: 0 18px 46px #0000001c;
}
#matias-web main > #matias-filosofia { border-radius: 0; margin-top: 0; }
#matias-web main > #matias-experiencias { margin-top: 0; }
#matias-web main > .section:not(.personal-gallery) {
  padding-bottom: calc(85px + var(--section-curve));
}
#matias-web main > .section.hero { padding-bottom: calc(85px + var(--section-curve)); }
#matias-web .portrait-frame { overflow: hidden; border-radius: var(--image-curve); aspect-ratio: 3 / 4; }
#matias-web .portrait-frame .about-portrait { border-radius: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center; transform: scale(1.1) translateX(-4%); }
#matias-web .coaching-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--image-curve); margin: 0 0 40px; }
#matias-web .coaching-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 52px;
  padding-top: 56px;
  padding-bottom: 56px;
}
#matias-web .coaching-layout .coaching-photo { max-width: 500px; margin: 0; justify-self: end; }
#matias-web .coaching-layout .experience-grid { display: block; min-width: 0; }
#matias-web .coaching-layout .experience-grid > div + div { margin-top: 28px; }
#matias-web .photo-grid figure { border-radius: var(--image-curve); overflow: hidden; }
#matias-web .photo-grid img { border-radius: var(--image-curve); }
#matias-web main > .personal-gallery { padding-bottom: 110px; }
#matias-web main > #matias-contacto {
  background: #222b25;
  border-radius: 44px;
  margin: 56px 32px;
  box-shadow: 0 18px 46px #00000026;
  min-height: 640px;
  padding-top: 130px;
  padding-bottom: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#matias-web #matias-contacto .contact { display: block; }
#matias-web #matias-contacto .contact h2 {
  font-size: clamp(48px, 5.5vw, 80px);
  max-width: 850px;
  line-height: 1.08;
  margin: 26px 0 32px;
}
#matias-web #matias-contacto .contact .cta {
  font-size: 15px;
  padding: 17px 30px;
  min-height: 56px;
  margin-bottom: 24px;
}
#matias-web #matias-contacto > p { font-size: var(--reading-size); max-width: 850px; }
#matias-web footer { background: var(--ink); }
#matias-web .social-footer { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 40px 56px; padding-top: 72px; padding-bottom: 32px; }
#matias-web .social-footer h2 { font-size: clamp(32px, 3.4vw, 46px); margin: 18px 0 0; line-height: 1.15; }
#matias-web .footer-socials { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
#matias-web .footer-socials .social-link { display: flex; align-items: center; gap: 16px; min-height: 116px; padding: 24px 20px; border: 1px solid #bca57466; border-radius: 22px; background: #222b25; text-decoration: none; }
#matias-web .social-link svg { flex-shrink: 0; color: var(--gold); }
#matias-web .social-link strong { display: block; font: 500 21px/1.3 'DM Sans', sans-serif; }
#matias-web .social-link small { display: block; font-size: 14px; line-height: 1.5; margin-top: 6px; color: #d3cdbf; }
#matias-web .footer-socials .social-link:hover, #matias-web .footer-socials .social-link:focus-visible { background: #2b352e; border-color: var(--gold); box-shadow: 0 8px 24px #00000026; color: var(--ivory); }
#matias-web .footer-signature { grid-column: 1 / -1; padding-top: 28px; margin: 0; border-top: 1px solid #f4f0e722; font-size: 14px; color: #d3cdbf; }
@media (max-width: 1000px) { #matias-web .social-footer { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
@media (max-width: 480px) { #matias-web .footer-socials { grid-template-columns: minmax(0, 1fr); } #matias-web .footer-socials .social-link { min-height: 90px; padding: 20px; } }
#matias-web .experience + .experience { margin-top: 22px; }
#matias-web .experience-subtitle { font-family: 'DM Serif Display', serif; font-size: var(--quote-size); font-style: italic; line-height: 1.5; margin-bottom: 24px; }
#matias-web #matias-filosofia .philosophy { max-width: 1120px; width: 100%; }
#matias-web h2 {
  font-size: clamp(42px, 5.2vw, 72px);
  line-height: 1.1;
  margin: 24px 0 40px;
  max-width: 1050px;
}
#matias-web .prose > p:not(.eyebrow) {
  font-family: 'DM Sans', sans-serif;
  font-size: var(--reading-size);
  line-height: 1.8;
  max-width: 100%;
}
#matias-web .prose > p + p, #matias-web .experience p + p { margin-top: 24px; }
#matias-web .prose > p.quote, #matias-web .peace {
  font-family: 'DM Serif Display', serif;
  font-size: var(--quote-size);
  line-height: 1.5;
  font-style: italic;
  font-weight: 400;
}
#matias-web .philosophy-quote { color: var(--gold); }
#matias-web { --reading-size: 20px; --quote-size: 24px; font-size: var(--reading-size); line-height: 1.8; }
#matias-web h1 { font-size: clamp(52px, 7vw, 96px); line-height: 1.06; max-width: 1000px; }
#matias-web h3 { font-size: clamp(34px, 3.5vw, 46px); line-height: 1.15; margin: 20px 0 28px; }
#matias-web .eyebrow { font-size: 14px; line-height: 1.6; letter-spacing: 1.7px; }
#matias-web .intro { max-width: 760px; font-size: var(--reading-size); }
#matias-web nav { font-size: 16px; }
#matias-web .brand { font-size: 30px; }
#matias-web .cta, #matias-web .textlink, #matias-web summary { font-size: 16px; line-height: 1.5; }
#matias-web .cta { min-height: 52px; padding: 15px 24px; }
#matias-web .status, #matias-web .small { font-size: 15px; line-height: 1.65; }
#matias-web footer { font-size: 14px; line-height: 1.6; }
#matias-web .principles { font-size: 16px; margin-top: 40px; padding-top: 26px; }
#matias-web .experience-grid { gap: 52px; }
#matias-web #matias-sobre .split { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
#matias-web a, #matias-web summary {
  transition: color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease, text-decoration-color .2s ease;
}
#matias-web a:not(.cta) {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 6px;
}
#matias-web summary { border-radius: 10px; }
#matias-web .cta:focus-visible {
  box-shadow: 0 8px 24px #00000026;
  transform: translateY(-2px);
}
#matias-web a:not(.cta):focus-visible { color: var(--gold); text-decoration-color: currentColor; }
#matias-web summary:focus-visible { background: #181d1b0b; box-shadow: 0 4px 12px #181d1b0a; }
@media (hover: hover) and (pointer: fine) {
  #matias-web .cta:hover { box-shadow: 0 8px 24px #00000026; transform: translateY(-3px); }
  #matias-web a:not(.cta):hover { color: var(--gold); text-decoration-color: currentColor; }
  #matias-web summary:hover { background: #181d1b0b; box-shadow: 0 4px 12px #181d1b0a; }
}
#matias-web .cta:active { transform: translateY(0); box-shadow: 0 2px 6px #00000020; }
@media (max-width: 600px) {
  #matias-web { --section-curve: 26px; --image-curve: 18px; }
  #matias-web main > .section:not(.personal-gallery),
  #matias-web main > .section.hero { padding-bottom: calc(52px + var(--section-curve)); }
  #matias-web main > .personal-gallery { padding-bottom: 76px; }
  #matias-web .nav, #matias-web footer { padding-left: 24px; padding-right: 24px; }
  #matias-web main > #matias-sobre { margin: 0 12px 28px; border-radius: 28px; padding: 48px 24px; }
  #matias-web main > #matias-contacto { margin: 28px 12px; border-radius: 28px; min-height: 560px; padding: 72px 24px; }
  #matias-web #matias-contacto .contact h2 { font-size: clamp(40px, 10.5vw, 58px); }
  #matias-web { --reading-size: 18px; --quote-size: 22px; line-height: 1.75; }
  #matias-web .prose > p:not(.eyebrow) { line-height: 1.75; }
  #matias-web h2 { font-size: clamp(38px, 10vw, 52px); margin-bottom: 30px; }
  #matias-web .brand { font-size: 27px; }
  #matias-web .status, #matias-web .small { font-size: 14px; }
  #matias-web #matias-sobre .split, #matias-web .experience-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  #matias-web a, #matias-web summary { transition: none; }
  #matias-web .cta:hover, #matias-web .cta:focus-visible, #matias-web .cta:active { transform: none; }
}
@media (max-width: 800px) {
  #matias-web .coaching-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 36px; padding-bottom: 36px; }
}
