/* Refinamientos que preservan la composición original. */
:root { --focus: #315f7d; --accent: #466b84; --canvas-alt: #f1f6f9; }
body { overflow-x: hidden; }
[id] { scroll-margin-top: 92px; }
.hero { padding-top: 58px; padding-bottom: 42px; }
.container.hero-grid { margin-top: 40px; }
.hero-statement { margin-top: 38px; }
.section { padding-block: clamp(58px, 6.2vw, 78px); }
.section-grid { gap: clamp(2rem, 4vw, 3.5rem); }
.section h2 { margin-bottom: 1.45rem; }
.beliefs-list, .project-stack, .ideas-grid { margin-top: 2.2rem; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(49,95,125,.35); outline-offset: 4px; }
.header { box-shadow: 0 1px 0 rgba(23,48,68,.03); }
.brand-logo { transition: opacity .2s ease; }
.brand:hover .brand-logo { opacity: .78; }
.nav a { position: relative; }
.nav > a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 1px; background: var(--accent); transition: right .22s ease; }
.nav > a:not(.btn):hover::after { right: 0; }
.hero-role::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--accent); vertical-align: 1px; }
.portrait-card { position: relative; }
.portrait-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(23,48,68,.08); border-radius: inherit; }
.about-aside { min-width: 0; }
.about-photo { position: relative; width: 100%; max-width: 340px; aspect-ratio: 4 / 5; margin: 32px 0 0; overflow: hidden; border-radius: 14px; background: #eaf0f6; box-shadow: 0 16px 36px rgba(23,48,68,.12); }
.about-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; border: 1px solid rgba(23,48,68,.1); border-radius: inherit; }
.about-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.globe-legend { position: absolute; z-index: 3; top: 12px; left: 12px; display: flex; gap: 12px; padding: 7px 10px; border-radius: 6px; background: rgba(13,40,55,.7); color: #fff; font-size: .62rem; backdrop-filter: blur(8px); }
.globe-legend span { display: inline-flex; align-items: center; gap: 5px; }
.globe-legend i, .travel-status i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.globe-legend .is-completed, .travel-status .is-completed { background: #dc8b5c; }
.globe-legend .is-upcoming, .travel-status .is-upcoming { background: #fff; border: 1px solid #315f7d; }
.globe-tooltip { position: absolute; z-index: 5; display: none; width: 180px; max-width: calc(100% - 20px); padding: 9px 11px; border-radius: 7px; background: rgba(10,32,45,.94); color: #fff; box-shadow: 0 8px 22px rgba(0,0,0,.22); pointer-events: none; font-size: .7rem; line-height: 1.35; }
.globe-tooltip.is-visible { display: grid; gap: 3px; }
.globe-tooltip span { color: #bcd0db; font-size: .64rem; }
#world-globe { cursor: grab; touch-action: none; }
#world-globe.is-dragging { cursor: grabbing; }
#world-globe:focus-visible { outline: 3px solid rgba(255,255,255,.9); outline-offset: -5px; border-radius: inherit; }
.world-caption b { font: inherit; font-weight: 600; }
.world-caption-mobile { display: none; }
.globe-controls { position: absolute; z-index: 6; right: 12px; bottom: 12px; display: none; flex-direction: column; gap: 6px; }
.globe-controls button { display: grid; width: 42px; height: 42px; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.48); border-radius: 50%; background: rgba(10,32,45,.84); color: #fff; box-shadow: 0 6px 15px rgba(4,19,27,.2); cursor: pointer; font: 600 1.1rem/1 var(--font-sans); backdrop-filter: blur(8px); }
.globe-controls button:active { transform: scale(.96); }
.globe-controls button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.btn { box-shadow: 0 8px 20px rgba(23,48,68,.08); }
.btn-ghost { box-shadow: none; }
.beliefs-list article, .ideas-grid article { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.beliefs-list article:hover, .ideas-grid article:hover { transform: translateY(-4px); border-color: rgba(90,124,154,.55); box-shadow: 0 14px 34px rgba(23,48,68,.08); }
.project-stack article { transition: padding-left .22s ease, background-color .22s ease; }
.project-stack article:hover { padding-left: 12px; background: rgba(90,124,154,.035); }
.project-stack .project-featured { padding-bottom: 38px; }
.project-stack article > .project-site-preview { position: relative; grid-column: 1 / -1; display: block; width: 100%; max-width: 680px; min-width: 0; margin-top: 12px; overflow: hidden; border: 1px solid rgba(23,48,68,.16); border-radius: 13px; background: #fff; box-shadow: 0 12px 30px rgba(23,48,68,.09); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.project-site-preview:hover { transform: translateY(-3px); border-color: rgba(49,95,125,.45); box-shadow: 0 22px 48px rgba(23,48,68,.16); }
.project-browser-bar { display: flex; height: 40px; align-items: center; gap: 6px; padding: 0 14px; border-bottom: 1px solid rgba(23,48,68,.1); background: #f3f6f8; }
.project-browser-bar i { display: block; width: 8px; height: 8px; border-radius: 50%; background: #b8c5cd; }
.project-browser-bar i:first-child { background: #d78272; }
.project-browser-bar i:nth-child(2) { background: #dfb768; }
.project-browser-bar i:nth-child(3) { background: #79ad90; }
.project-browser-bar b { min-width: 0; margin-left: 6px; overflow: hidden; color: #617785; font-size: .68rem; font-weight: 600; letter-spacing: .02em; text-overflow: ellipsis; white-space: nowrap; }
.project-preview-media { display: block; aspect-ratio: 8 / 3; overflow: hidden; background: #e8eef1; }
.project-preview-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .45s ease; }
.project-site-preview:hover .project-preview-media img { transform: scale(1.012); }
.project-preview-action { position: absolute; right: 15px; bottom: 15px; display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border: 1px solid rgba(255,255,255,.55); border-radius: 999px; background: rgba(11,34,48,.9); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .04em; box-shadow: 0 8px 20px rgba(11,34,48,.2); backdrop-filter: blur(8px); }
.project-preview-action b { transition: transform .2s ease; }
.project-site-preview:hover .project-preview-action b { transform: translate(2px,-2px); }
@media (min-width: 981px) {
  .project-stack article.project-featured { grid-template-columns: 60px minmax(260px,1fr) minmax(340px,460px); column-gap: 34px; align-items: center; }
  .project-stack article.project-featured > span:first-child { grid-column: 1; grid-row: 1 / span 4; }
  .project-stack article.project-featured > :not(:first-child):not(.project-site-preview) { grid-column: 2; }
  .project-stack article.project-featured > .project-site-preview { grid-column: 3; grid-row: 1 / span 4; align-self: center; max-width: 460px; margin: 0; }
  .project-stack article.project-featured .text-link { grid-column: 2; }
}
.social-links a { transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
.social-links a:hover { background: rgba(90,124,154,.08); }
.social-links b { font-weight: inherit; }
.field-section { background: linear-gradient(125deg, #244c63 0%, #356d84 100%); }
.field-section h2, .field-section .section-label, .field-section .text-link { color: #fff; }
.field-section .section-content p { color: #dfebf0; }
.field-section .route-tags span { color: #fff; border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.08); }
.field-section .route-tags span:first-child { background: #fff; border-color: #fff; color: #244c63; }
.travel-heading { display: grid; grid-template-columns: 180px minmax(0,760px); justify-content: space-between; gap: 4rem; }
.travel-heading h2 { color: #fff; }
.travel-heading p { color: #dfebf0; max-width: 680px; }
.travel-status { display: flex; justify-content: flex-end; gap: 18px; margin: 1.5rem 0 2rem; color: #d8e6ec; font-size: .72rem; }
.travel-status span { display: inline-flex; align-items: center; gap: 7px; }
.travel-status .is-upcoming { border-color: #fff; }
.travel-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.travel-card { min-height: 245px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(255,255,255,.2); border-radius: 12px; background: rgba(255,255,255,.1); box-shadow: 0 12px 26px rgba(10,32,45,.13); }
.travel-card.has-image { background: #fff; }
.travel-card img { display: block; width: 100%; height: 210px; object-fit: cover; }
.travel-card[data-travel-gallery="ciudad-de-mexico"] > img { object-position: center 19%; }
.travel-card[data-travel-gallery="medellin"] > img { object-position: 38% center; }
.travel-card[data-travel-gallery="cartagena-de-indias"] > img { object-position: 25% center; }
.travel-card[data-travel-gallery="cancun"] > img { object-position: 65% center; }
.travel-card-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 24px; }
.travel-card h3 { color: #fff; font-size: 1.35rem; line-height: 1.15; margin: .55rem 0 .7rem; }
.travel-card p { color: #dce8ee; font-size: .88rem; line-height: 1.55; margin-bottom: 1.2rem; }
.travel-card.has-image h3 { color: #173044; }
.travel-card.has-image p { color: #586e7c; }
.travel-date { color: #a9cadb; font-size: .67rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.travel-card.has-image .travel-date { color: #4f7893; }
.travel-state { margin-top: auto; padding: 5px 9px; border-radius: 999px; font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.travel-state.completed { color: #8c492c; background: #f9e4d8; }
.travel-state.upcoming { color: #234c63; background: #e1edf3; }
.travel-card.has-gallery { cursor: pointer; transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease; }
.travel-card.has-gallery:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.62); box-shadow: 0 20px 38px rgba(10,32,45,.24); }
.travel-card.has-gallery:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.travel-card.has-gallery > img { transition: transform .45s ease; }
.travel-card.has-gallery:hover > img { transform: scale(1.025); }
.travel-card-footer { display: flex; width: 100%; margin-top: auto; align-items: center; justify-content: space-between; gap: 14px; }
.travel-card-footer .travel-state { flex: 0 0 auto; margin-top: 0; }
.travel-gallery-hint { color: #315f7d; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.travel-gallery-hint b { display: inline-block; margin-left: 2px; transition: transform .2s ease; }
.travel-card.has-gallery:hover .travel-gallery-hint b { transform: translate(2px,-2px); }
.travel-card.upcoming { border-style: dashed; }
.travel-card-wide { grid-column: span 2; min-height: 220px; background: linear-gradient(125deg,rgba(255,255,255,.12),rgba(255,255,255,.05)); }
.contact-section { background: linear-gradient(135deg, #102b3d 0%, #1e465a 100%); color: #fff; }
.contact-section .section-label { color: #a9cadb; border-color: #a9cadb; }
.contact-section .section-content h2 { color: #fff; }
.contact-section .section-content p, .contact-section .contact-lead { color: #d7e5ec; }
.contact-section .contact-form label { color: #edf5f8; }
.contact-section .contact-form input, .contact-section .contact-form textarea { color: #173044; background: #fff; border-color: rgba(255,255,255,.7); }
.contact-section .btn-ghost { color: #fff !important; border-color: rgba(255,255,255,.65); }
.contact-section .btn-ghost:hover { color: #173044 !important; background: #fff; border-color: #fff; }
.footer { background: #0b2230; border-top-color: rgba(255,255,255,.12); }
.footer-meta { display: grid; justify-items: end; gap: .35rem; }
.developer-credit { max-width: 620px; color: #c4d7e1; font-size: .67rem; line-height: 1.55; letter-spacing: .04em; text-align: right; transition: color .2s ease; }
.developer-credit:hover { color: #fff; }
.contact-form { max-width: 720px; margin-top: 2rem; }
.contact-form label { display: grid; gap: .5rem; margin-bottom: 1rem; color: var(--ink); font-size: .82rem; font-weight: 600; }
.contact-form input, .contact-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font: inherit; font-weight: 400; padding: .85rem 1rem; transition: border-color .2s ease, box-shadow .2s ease; }
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form input:focus, .contact-form textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(90,124,154,.15); }
.contact-form .btn { cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { max-width: 720px; margin: 0 0 1.25rem; padding: .9rem 1rem; border-radius: 7px; font-size: .9rem; }
.form-status.is-success { color: #175b39; background: #e8f6ef; border: 1px solid #b7dfc9; }
.form-status.is-warning { color: #714c08; background: #fff7dc; border: 1px solid #ead391; }
.form-status.is-error { color: #8b2f2f; background: #fff0f0; border: 1px solid #efc4c4; }
@media (max-width: 800px) {
  body { overflow-x: clip; }
  .menu-btn { display: grid; width: 44px; height: 44px; flex: 0 0 44px; place-items: center; cursor: pointer; }
  .menu-icon, .menu-icon::before, .menu-icon::after { transition: transform .2s ease, top .2s ease, opacity .2s ease; }
  .menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
  .menu-btn[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }
  .nav { position: fixed; top: 72px; left: 0; right: 0; z-index: 50; padding: 1.5rem 1.25rem 2rem; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--line); box-shadow: 0 18px 35px rgba(23,48,68,.12); }
  .nav.is-open { display: flex; }
  .nav { max-height: calc(100dvh - 72px); overflow-y: auto; }
  .nav a { width: 100%; padding-block: .4rem; }
  .nav .btn { width: auto; margin-top: .35rem; }
  .hero-top { gap: 1rem; }
  .hero-top span:last-child { max-width: 52%; text-align: right; }
  .hero { padding-top: 38px; }
  .hero-statement p { font-size: 1.15rem; }
  .about-photo { width: min(100%, 380px); max-width: none; aspect-ratio: 4 / 3; margin-top: 24px; }
  .about-photo img { object-position: center 29%; }
  .project-stack article:hover { padding-left: 0; }
  .project-site-preview { margin-top: 8px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .footer-meta { justify-items: center; text-align: center; }
  .developer-credit { text-align: center; }
  .travel-heading { grid-template-columns: 1fr; gap: 1.2rem; }
  .travel-grid { grid-template-columns: 1fr 1fr; }
  .travel-card-wide { grid-column: span 2; }
  .visual-composition .world-frame { aspect-ratio: 4 / 3; min-height: 270px; }
  #world-globe { touch-action: pan-y; }
  .globe-controls { display: flex; }
  .world-caption { right: 64px; width: auto; max-width: calc(100% - 82px); line-height: 1.35; }
  .world-caption-desktop { display: none; }
  .world-caption-mobile { display: inline; }
  .globe-tooltip { width: min(190px,calc(100% - 20px)); }
  .social-links a { display: inline-flex; min-height: 44px; align-items: center; }
}
@media (max-width: 560px) {
  .project-browser-bar { height: 36px; padding-inline: 11px; }
  .project-preview-action { right: 10px; bottom: 10px; padding: 8px 11px; }
  .container, .container.hero-grid { width: calc(100% - 2rem); }
  .section { padding-block: 56px; }
  .hero h1 { font-size: clamp(2.15rem,10.5vw,2.85rem); }
  .visual-composition .world-frame { aspect-ratio: 1; min-height: 0; }
  .globe-legend { top: 10px; left: 10px; flex-direction: column; gap: 4px; padding: 7px 9px; font-size: .58rem; }
  .globe-controls { right: 10px; bottom: 10px; }
  .globe-controls button { width: 40px; height: 40px; }
  .world-caption { bottom: 10px; left: 10px; right: 58px; max-width: calc(100% - 76px); padding: .4rem .5rem; font-size: .55rem; letter-spacing: .08em; }
  .globe-tooltip { font-size: .66rem; }
  .travel-status { justify-content: flex-start; flex-wrap: wrap; }
  .travel-grid { grid-template-columns: 1fr; }
  .travel-card-wide { grid-column: auto; }
  .travel-card img { height: 190px; }
  .travel-card-body { padding: 20px; }
  .contact-actions { display: grid; grid-template-columns: 1fr; }
  .contact-actions .btn { width: 100%; }
  .project-stack article { grid-template-columns: 38px minmax(0,1fr); }
  .project-stack article > span:first-child { font-size: .62rem; }
  .beliefs-list { gap: 12px; }
  .beliefs-list article,
  .beliefs-list article:first-child,
  .beliefs-list article:nth-child(odd) { position: relative; min-height: 0; padding: 22px; }
  .beliefs-list article b { position: absolute; top: 20px; right: 20px; float: none; margin: 0; font-size: 1.05rem; }
  .beliefs-list h3 { margin: .8rem 0 .55rem; padding-right: 34px; font-size: 1.15rem; line-height: 1.25; }
  .beliefs-list p { margin: 0; font-size: .88rem; line-height: 1.55; }
}
@media (max-width: 420px) {
  .hero-top { font-size: .54rem; letter-spacing: .08em; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .hero-tags { line-height: 1.8; }
  .footer-links { column-gap: 1rem; row-gap: .65rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
