/* Shared edges for the page, fixed header and footer controls. */
:root {
  --site-header-row: 100px;
  --site-social-row: 58px;
  --site-header-height: calc(var(--site-header-row) + var(--site-social-row));
}
html { scroll-padding-top: calc(var(--site-header-height) + 18px); overflow-x: hidden; }
body { overflow-x: hidden; }
.content-frame { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: 5%; }
.site-header { position: fixed; inset: 0 0 auto; z-index: 20; height: auto; display: block; padding: 0; border: 0; background: rgba(34,34,34,.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
body { padding-top: var(--site-header-height); }
.header-main { height: var(--site-header-row); display: flex; align-items: center; justify-content: space-between; min-width: 0; }
.social-bar { height: var(--site-social-row); border-block: 1px solid var(--line); }
.social-bar-inner { height: 100%; display: flex; align-items: center; justify-content: flex-end; min-width: 0; overflow: hidden; }
.social-links { display: flex; align-items: center; gap: 10px; max-width: 100%; min-width: 0; }
.whatsapp-link { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding-inline: 10px; margin-right: 8px; color: #25d366; font-size: 8px; letter-spacing: 1px; font-weight: 600; white-space: nowrap; }
.whatsapp-link svg { display: block; width: 18px; height: 20px; }
.whatsapp-link:hover, .whatsapp-link:focus-visible { color: #f6f5f2; background: #3c3c3c; }
.whatsapp-link:hover svg, .whatsapp-link:focus-visible svg { color: #25d366; }
.whatsapp-link:focus-visible { outline: 1px solid #25d366; outline-offset: 4px; }
.social-link { width: 40px; height: 40px; display: grid; place-items: center; background: #363636; color: #f6f5f2; }
.social-link svg { display: block; width: 20px; height: 20px; }
.social-link:hover, .social-link:focus-visible { color: #ff8000; background: #3c3c3c; }
.social-link:focus-visible { outline-color: #ff8000; outline-offset: 3px; }
.intro { padding-top: 24px; }
#portada h1, #quienes-somos h2, #trabajos .portfolio-heading h2, #contacto h2 { font-size: clamp(38px, 5.6vw, 86px); font-weight: 700; }
.logo-ticker-track { display: flex; align-items: center; gap: clamp(34px, 4vw, 72px); width: max-content; min-width: max-content; animation: logoTickerScroll 54s linear infinite; }
.logo-ticker-track img { display: block; width: clamp(68px, 6vw, 120px); height: clamp(47px, 4.5vw, 74px); object-fit: contain; opacity: .62; filter: grayscale(1) brightness(1.75); }
@keyframes logoTickerScroll { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 27px)); } }
@media (prefers-reduced-motion: reduce) { .logo-ticker-track { animation: none; } }
.site-footer { display: block; margin: 40px 0 0; padding: 0; border: 0; }
.footer-content { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 32px 0; border-top: 1px solid var(--line); }
.site-footer .brand { justify-self: start; font-size: 20px; white-space: nowrap; }
.brand { min-width: 0; max-width: 42%; overflow: hidden; }
.brand img { display: block; width: clamp(225px, 27.5vw, 450px); height: auto; max-height: 131px; object-fit: contain; object-position: left center; }
.contact-whatsapp { margin-right: 0; }
.contact-whatsapp { border-bottom: 0; padding-bottom: 0; width: auto; }
.contact-whatsapp span { font-size: inherit; margin-left: 0; }
.footer-meta { text-align: center; display: flex; flex-direction: column; gap: 5px; }
.footer-meta p { margin: 0; width: auto; line-height: 1.6; }
.footer-services { font-size: 8px; letter-spacing: 1px; color: #999; }
.footer-meta .copyright { font-size: 10px; letter-spacing: .5px; color: #b3b3b3; }
.back-to-top-dock { position: fixed; inset-inline: 0; bottom: calc(30px + env(safe-area-inset-bottom, 0px)); z-index: 8; pointer-events: none; }
.back-to-top-dock .content-frame { display: flex; justify-content: flex-end; }
.back-to-top { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 38px; padding: 10px 13px; border: 1px solid #555; background: #222f; color: #b3b3b3; font-size: 8px; letter-spacing: 1px; line-height: 1.6; pointer-events: auto; backdrop-filter: blur(12px); }
.back-to-top svg { flex-shrink: 0; }
.back-to-top:hover { color: #ff8000; border-color: #ff8000; }
.about-profile { display: grid; grid-template-columns: minmax(150px, 0.62fr) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 42px; }
.about-profile-photo { box-sizing: border-box; aspect-ratio: 4 / 5; min-height: 220px; display: grid; place-items: end start; padding: 16px; overflow: hidden; background: linear-gradient(145deg, #444, #1b1b1b); color: #aaa; font-size: 8px; letter-spacing: 1.5px; line-height: 1.5; }
.about-profile-photo img { box-sizing: border-box; width: 100%; height: 100%; display: block; object-fit: cover; object-position: center top; }
.about-profile-text h3 { margin: 0 0 8px; font-size: 16px; letter-spacing: 1.5px; font-weight: 700; }
.about-profile-text .about-profile-role { margin: 0 0 14px; color: #ddd; font-size: 11px; line-height: 1.6; }
.about-profile-text > p:last-child { margin: 0; }
.profile-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 26px; padding: 10px 0 11px; border-bottom: 1px solid #777; color: #b3b3b3; font-size: 9px; font-weight: 600; letter-spacing: 1.2px; line-height: 1.4; transition: color .2s ease, border-color .2s ease; }
.profile-link span { font-size: 14px; line-height: 1; }
.profile-link:hover, .profile-link:focus-visible { color: #ff8000; border-color: #ff8000; }
.modal-open .back-to-top-dock { visibility: hidden; }
@media (max-width: 900px) {
  .footer-content { grid-template-columns: 1fr; gap: 24px; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
  .footer-meta { grid-row: 1; text-align: left; }
  .site-footer .brand { grid-row: 2; }
  .back-to-top-dock { bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 700px) {
  :root { --site-header-row: 76px; --site-social-row: 52px; }
  .content-frame { padding-inline: 6%; }
  .site-header #navigation { top: 100%; max-height: calc(100dvh - var(--site-header-height)); overflow: auto; }
  .social-link { width: 36px; height: 36px; }
  .social-link svg { width: 18px; height: 18px; }
  .whatsapp-link { min-height: 36px; padding-inline: 7px; font-size: 7px; letter-spacing: .7px; gap: 6px; margin-right: 2px; }
  .whatsapp-link svg { width: 16px; height: 17px; }
  .intro { padding-top: 20px; }
  #portada h1, #quienes-somos h2, #trabajos .portfolio-heading h2, #contacto h2 { font-size: clamp(38px, 11.25vw, 86px); }
  .site-footer .brand { font-size: 18px; }
  .brand { max-width: 48%; }
  .brand img { width: clamp(188px, 52.5vw, 288px); max-height: 106px; }
  .social-links { gap: 5px; }
  .about-profile { grid-template-columns: 1fr; gap: 20px; margin-bottom: 34px; }
  .about-profile-photo { aspect-ratio: 16 / 10; min-height: 0; }
  .whatsapp-link { max-width: 48vw; overflow: hidden; text-overflow: ellipsis; }
  .whatsapp-link span { overflow: hidden; text-overflow: ellipsis; }
  .contact-whatsapp { width: auto; }
  .footer-services { font-size: 7px; line-height: 1.8; }
  .back-to-top { min-height: 36px; gap: 10px; padding: 9px 11px; font-size: 7px; letter-spacing: .8px; }
  .back-to-top svg { width: 12px; height: 12px; }
}
