/* Navegación y movimiento compartidos en todas las páginas públicas. */
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { padding-top: 78px; }
body > div[style*="height: 70px"] { height: 0 !important; }
.menu { height: 78px; transition: background .25s, box-shadow .25s; }
.menu.is-scrolled { background: #17345f; box-shadow: 0 8px 24px #10284c30; }
.menu__container { width: 94%; max-width: 1320px; }
.menu .logo { margin-left: 0; max-width: 165px; }
.menu__links { position: static; margin: 0; }
.menu__item { display: flex; align-items: center; }
.menu__link { font-family: Intelo, Arial, sans-serif; }
.menu__nesting { top: 100%; bottom: auto; left: 0; right: auto; transform: none; padding-top: 8px; min-width: 220px; }
.menu__link--inside { padding: 14px 18px; }
.menu__item--active { --clip: polygon(0 0,100% 0,100% 100%,0 100%); --transform: rotate(0); }
.menu__item > .menu__nesting { visibility: hidden; pointer-events: none; }
.menu__item--active > .menu__nesting { visibility: visible; pointer-events: auto; }
.menu__link[aria-current="page"], .has-current-page > .menu__link { box-shadow: inset 0 -3px #f9b718; }
a:focus-visible, button:focus-visible, [role="button"]:focus-visible, input:focus-visible { outline: 3px solid #e9a900; outline-offset: 4px; }
.menu__hamburguer { border: 0; }
.reveal-section { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal-section.is-visible { opacity: 1; transform: none; }
.proyectos-section3 a img, .section3 a img { transition: transform .25s ease; }
.proyectos-section3 a:hover img, .section3 a:hover img { transform: scale(1.035); }
.wrapper5 .form-control { transition: border-color .2s, box-shadow .2s; }
.wrapper5 .form-control:focus { border-color: #245b96; box-shadow: 0 0 0 4px #245b961c; }
.back-to-top { position: fixed; bottom: 24px; left: 20px; z-index: 900; width: 46px; height: 46px; border: 1px solid #ffffff80; border-radius: 50%; color: white; background: #17345f; font: 24px Arial; box-shadow: 0 5px 18px #10284c30; cursor: pointer; }
.back-to-top[hidden] { display: none; }
.slider img { animation: slide-appear .5s ease both; }
@keyframes slide-appear { from { opacity: .4; } to { opacity: 1; } }
.slider-nav span { position: relative; }
.slider-nav span::before { content: ''; position: absolute; inset: -8px; }
.slider-control { position: absolute; z-index: 4; top: 45%; border: 1px solid #ffffff80; border-radius: 50%; width: 42px; height: 42px; background: #17345fcc; color: #fff; font: 26px Arial; cursor: pointer; }
.slider-previous { left: 12px; } .slider-next { right: 12px; }
.slider-pause { top: 12px; right: 12px; font-size: 16px; }
@media (max-width: 1100px) { .menu__link { padding-left: 10px; padding-right: 10px; font-size: .88rem; } }
@media (max-width: 900px) {
  body { padding-top: 70px; }
  body.navigation-open { overflow: hidden; }
  .menu { height: 70px; }
  .menu .logo { max-width: 145px; }
  .menu__hamburguer { display: flex; }
  .menu__links { position: fixed; top: 70px; bottom: 0; right: 0; height: calc(100dvh - 70px); width: min(100%,420px); margin: 0; padding: 18px; display: grid; align-content: start; gap: 8px; background: #17345f; transform: translateX(105%); visibility: hidden; transition: transform .3s, visibility .3s; }
  .menu__links--show { transform: translateX(0); visibility: visible; }
  .menu__item { display: block; height: auto; flex-shrink: 0; }
  .menu__item--show { background: transparent; }
  .menu__link { min-height: 48px; padding: 12px 16px; color: white; border-radius: 10px; }
  .menu__nesting { position: static; transform: none; min-width: 0; overflow: hidden; padding: 0 0 0 12px; border: 0; background: transparent; }
  .menu__link--inside { width: 100%; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-section { opacity: 1; transform: none; }
}

/* Contacto: fotografía existente y formulario con texto HTML. */
.contact-modern, .contact-modern * { box-sizing: border-box; }
.contact-modern { width: min(1180px, 92%); margin: 64px auto; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; color: #17345f; font-family: Intelo, Arial, sans-serif; }
.contact-modern h2, .contact-modern h3, .contact-modern p { margin: 0; padding: 0; font-family: inherit; }
.contact-eyebrow { display: block; font: 700 11px/1.5 Arial, sans-serif; letter-spacing: 1.8px; color: #58718e; margin-bottom: 14px; }
.contact-story h2 { font-size: clamp(30px, 3.1vw, 44px); line-height: 1.15; font-weight: 800; letter-spacing: -1px; }
.contact-story > p { max-width: 420px; margin-top: 18px; color: #607189; font-size: 16px; line-height: 1.7; }
.contact-photo { position: relative; margin: 24px 0 16px; padding: 12px 20px 0; border-radius: 28px; background: radial-gradient(ellipse at 50% 100%, #d8e7f4 0%, #edf3f9 60%, transparent 72%); }
.contact-photo img { display: block; width: 100%; height: auto; max-height: 340px; object-fit: contain; object-position: bottom; filter: drop-shadow(0 12px 18px #17345f15); }
.contact-phone { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: #52677e; font-size: 13px; text-decoration: none; }
.contact-phone > span { display: grid; place-items: center; width: 30px; height: 30px; background: #e6edf5; color: #17345f; border-radius: 50%; font-size: 18px; }
.contact-phone strong { color: #17345f; }
.contact-phone:hover strong { text-decoration: underline; }
.contact-card { width: 100%; min-width: 0; padding: clamp(24px, 3.3vw, 42px); margin: 0; border: 1px solid #e1e8f1; border-radius: 24px; background: #fff; box-shadow: 0 18px 48px #17345f0d; scroll-margin-top: 100px; }
.contact-card .contact-eyebrow { color: #967018; font-size: 10px; }
.contact-card h3 { color: #17345f; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; font-weight: 700; letter-spacing: -.6px; }
.contact-card .contact-intro { color: #67768a; font-size: 14px; line-height: 1.65; margin-top: 12px; margin-bottom: 26px; }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.contact-field { min-width: 0; }
.contact-field-wide { grid-column: 1 / -1; }
.contact-field label { display: block; color: #30445f; font-family: inherit; font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.contact-field input, .contact-field textarea { display: block; width: 100%; max-width: 100%; height: auto; min-height: 48px; border: 1px solid #dce4ed; border-radius: 10px; padding: 13px 14px; background: #f8fafc; color: #17345f; font: 14px/1.5 Arial, sans-serif; transition: background .2s, border-color .2s, box-shadow .2s; }
.contact-field textarea { min-height: 105px; resize: vertical; }
.contact-field input::placeholder, .contact-field textarea::placeholder { color: #8290a3; opacity: 1; }
.contact-field input:focus, .contact-field textarea:focus { outline: none; background: #fff; border-color: #245b96; box-shadow: 0 0 0 4px #245b9614; }
.contact-submit { display: flex; justify-content: space-between; align-items: center; gap: 16px; width: 100%; margin-top: 24px; padding: 15px 20px; border: 0; border-radius: 11px; background: #17345f; color: #fff; font: 700 15px/1.5 Arial, sans-serif; cursor: pointer; transition: background .2s, transform .2s, box-shadow .2s; }
.contact-submit > span { font-size: 23px; line-height: 1; color: #f9b718; transition: transform .2s; }
.contact-submit:hover { background: #245080; box-shadow: 0 8px 20px #17345f24; transform: translateY(-2px); }
.contact-submit:hover > span { transform: translateX(3px); }
.contact-submit:active { transform: translateY(0); }
.contact-card .contact-note { font-size: 11px; color: #77869a; text-align: center; line-height: 1.6; margin-top: 14px; }
@media (max-width: 760px) {
  .contact-modern { grid-template-columns: 1fr; gap: 28px; margin: 36px auto; }
  .contact-story { text-align: center; }
  .contact-story > p { margin-left: auto; margin-right: auto; }
  .contact-photo { max-width: 360px; margin-left: auto; margin-right: auto; }
  .contact-photo img { max-height: 240px; }
  .contact-phone { justify-content: center; }
  .contact-card { max-width: 540px; justify-self: center; }
}
@media (max-width: 380px) { .contact-fields { grid-template-columns: 1fr; } }
