/* Loaded only at the existing phone breakpoint. */
:root {
  --phone-gutter: clamp(14px, 4.5vw, 28px);
  --phone-ink: #0d1b2d;
  --phone-dark: #0d1725;
  --phone-blue: #0858ce;
  --phone-sky: #76beff;
  --phone-line: #dce6f2;
  --phone-dock: calc(68px + env(safe-area-inset-bottom, 0px));
  scroll-padding: 76px 0 calc(var(--phone-dock) + 12px);
}

body {
  padding-bottom: var(--phone-dock);
  background: #f4f7fb;
}

.shell { width: calc(100% - 2 * var(--phone-gutter)); }
.site-header { background: #0d1725; }
.header-row { min-height: 63px; }
.header-row .brand-logo { width: 112px; }
.head-actions { display: none; }
.menu-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-color: #b1c6e447;
  border-radius: 13px;
  background: #1b2b3f;
}
.menu-toggle .ico { width: 23px; height: 23px; }
.menu-toggle[aria-expanded="true"] { background: #244263; }
.main-nav {
  inset: calc(100% + 8px) var(--phone-gutter) auto;
  max-height: calc(100dvh - 82px - var(--phone-dock));
  overflow-y: auto;
  padding: 7px;
  border: 1px solid #334a65;
  border-radius: 16px;
  background: #142438;
  box-shadow: 0 14px 32px #03091569;
}
.main-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 13px;
  border-radius: 9px;
  white-space: normal;
}
.main-nav a + a { border-top: 1px solid #ffffff12; }
.main-nav a:focus-visible { outline-offset: -3px; }

.info-strip { font-size: 12px; }
.info-strip-group a { min-height: 35px; padding-inline: 15px; }

.hero { background: var(--phone-dark); }
.hero-media { aspect-ratio: 1.82; }
.hero-media img { object-position: right center; }
.hero-media::after {
  display: block;
  background: linear-gradient(180deg, transparent 78%, var(--phone-dark));
}
.hero-content {
  padding: 1px var(--phone-gutter) 28px;
  background: radial-gradient(ellipse at 90% 130%, #193659, transparent 74%);
}
.hero-kicker {
  gap: 9px;
  color: #d9e9fc;
  font-size: 10px;
  letter-spacing: .13em;
}
.hero-kicker::before { width: 25px; }
.hero h1 {
  margin: 12px 0;
  font-size: clamp(33px, 9.9vw, 55px);
  line-height: 1.02;
  font-weight: 810;
}
.hero h1 span { color: var(--phone-sky); font-weight: inherit; }
.hero-lead {
  max-width: 43ch;
  color: #d8e5f6;
  font-size: clamp(14px, 3.8vw, 16px);
  line-height: 1.55;
}
.hero-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}
.hero-action {
  padding-inline: 5px;
  border-radius: 12px;
  min-height: 46px;
  text-align: center;
  font-size: clamp(11px, 3.35vw, 14px);
}
.hero-action-primary { color: var(--phone-blue); }
.hero-action-secondary { background: #ffffff0c; border-color: #a1c1e564; }

.content { padding-block: 20px 0; }
.audiences { gap: 14px; }
.audience {
  border-color: #293b51;
  border-radius: 19px;
  background: #122034;
}
.audience.private { --audience-photo: url("assets/particulares-sunset.optimized.webp"); }
.audience.company { --audience-photo: url("assets/empresas-mobile.optimized.webp"); }
.audience::before {
  aspect-ratio: 2.23;
  background-size: 115% auto;
  background-position: right center;
}
.audience-copy { padding: 17px; }
.audience h2 {
  margin: 8px 0 11px;
  font-size: clamp(26px, 6.8vw, 34px);
  text-wrap: balance;
}
.audience .checks li { font-size: 13px; line-height: 1.43; }
.audience .checks li + li { margin-top: 6px; }
.audience-action { width: 100%; border-radius: 11px; }

.block { margin-top: 32px; }
.section-head { gap: 8px; margin: 0 0 14px; }
.section-head h2 {
  gap: 9px;
  color: var(--phone-ink);
  font-size: clamp(26px, 6.9vw, 36px);
}
.section-head h2::before {
  content: "";
  width: 18px;
  height: 3px;
  flex: none;
  border-radius: 5px;
  background: #1671ed;
}
.section-head p { max-width: 51ch; font-size: 14px; line-height: 1.5; }

.services-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.services-grid-complete > .photo-card > img { aspect-ratio: auto; }
#servicios .services-grid-complete { gap: 8px; }
#servicios .services-grid-complete .photo-copy { padding: 9px 10px; }
#servicios .services-grid-complete h3 { font-size: 14px; line-height: 1.18; }
#servicios .services-grid-complete .photo-copy p { font-size: 11.5px; line-height: 1.35; margin: 5px 0; }
#servicios .services-grid-complete .card-more { min-height: 34px; padding-inline: 8px; font-size: 11px; }
.services-grid .photo-card {
  display: grid;
  grid-template-columns: minmax(0, 33%) minmax(0, 1fr);
  border-color: var(--phone-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 2px 8px #23385308;
}
.services-grid .photo-card > img {
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
}
.services-grid .photo-card > .diagnostic-photo { object-fit: cover; object-position: 72% center; }
.services-grid .photo-card > .alientech-photo { object-position: 77% center; }
.services-grid .photo-copy { padding: 12px 11px 8px; }
.photo-copy h3 { font-size: 15px; line-height: 1.18; color: var(--phone-ink); }
.photo-copy p { margin: 5px 0; color: #36495f; font-size: 12.5px; line-height: 1.4; }
.card-more {
  display: inline-flex;
  width: auto;
  height: auto;
  min-height: 44px;
  gap: 6px;
  padding-inline: 9px;
  border-radius: 9px;
  background: #eef5ff;
  color: #154a96;
  font-size: 12px;
  font-weight: 750;
}
.card-more::before { content: "Ver servicio"; }
.card-more .ico { display: block; width: 14px; height: 14px; }
.more-services { gap: 7px; margin: 12px 0 0; }
.more-services button {
  min-height: 44px;
  padding: 5px 11px;
  border: 1px solid var(--phone-line);
  border-radius: 999px;
  background: #fff;
  font-size: 12px;
}

.sector-banner { --sector-gap: 8px; border-radius: 19px; }
  .sector-banner-photo,
  .institutional-art { display: none; }
  .sector-banner-header { display: block; padding-bottom: 12px; }
.sector-banner-copy { padding: 6px 4px 1px; }
.sector-banner h2 {
  max-width: 20ch;
  font-size: clamp(26px, 7.5vw, 37px);
  text-wrap: initial;
}
.sector-banner-kicker { font-size: 10px; }
.sector-banner-lead { line-height: 1.5; }
.sector-banner-cover { aspect-ratio: 2.3; object-fit: cover; }
.sector-banner-card p { font-size: 12px; }
.sector-banner-credits summary { min-height: 38px; padding-block: 9px; }

.cases-instagram-label { white-space: normal; }
.cases-grid {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: min(79%, 300px);
  gap: 10px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  padding-block: 2px 11px;
}
.cases-grid .instagram-case {
  scroll-snap-align: start;
  border-radius: 16px;
  background: #fff;
}
.instagram-case img { aspect-ratio: 1.3; }
.instagram-case .photo-copy { padding: 12px; }
.instagram-case-link { font-size: 12px; }

.institutional { margin-top: 26px; border-radius: 19px; }
.institutional-copy {
    width: 100%;
  gap: 10px;
  padding: 17px;
}
.institutional h2 { font-size: clamp(24px, 6.4vw, 33px); }
.institutional-copy > p { line-height: 1.5; }
.institutional-benefits { gap: 8px; }
.institutional-actions { display: grid; padding-top: 3px; }
.institutional-actions .button { justify-content: center; min-height: 44px; border-radius: 10px; }
.institutional-art { height: auto; aspect-ratio: 2.42; border-top: 1px solid #6ea6eb57; }
.institutional-copy > .institutional-kicker { font-size: 9px; }
.institutional-highlight {
  grid-template-columns: 1fr;
  gap: 7px;
  margin-top: 1px;
}
.institutional-highlight > div { padding: 9px 10px; }
.institutional-highlight span { font-size: 11px; }
.equipment-showcase {
  margin: 0 14px 18px;
  padding-top: 15px;
}
.equipment-heading {
  grid-template-columns: 1fr;
  gap: 4px;
}
.equipment-heading h3 { font-size: 20px; }
.equipment-heading > p:last-child { font-size: 11px; }
.equipment-grid {
  grid-template-columns: repeat(3, minmax(210px, 1fr));
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
}
.equipment-card {
  min-height: 82px;
  scroll-snap-align: start;
}
.equipment-card img { min-height: 82px; }

/* Perfil corporativo: preserve the supplied reference structure on phones. */
.profile-section {
  margin-top: 22px;
  border-radius: 17px;
}
.profile-hero { grid-template-columns: 1fr; }
.profile-hero-copy { padding: 24px 18px 22px; }
.profile-kicker { margin-bottom: 13px; font-size: 9px; }
.profile-hero h2 { font-size: clamp(35px, 12vw, 52px); }
.profile-hero-copy > p:not(.profile-kicker) { font-size: 14px; line-height: 1.45; }
.profile-facebook { width: 100%; justify-content: center; }
.profile-hero-photo { min-height: 225px; }
.profile-hero-photo small { font-size: 8px; }
.profile-panels {
  grid-template-columns: 1fr;
  gap: 9px;
  padding: 12px;
}
.profile-panel { padding: 17px 16px 16px; border-radius: 12px; }
.profile-panel-icon { width: 29px; height: 29px; margin-bottom: 8px; }
.profile-panel h3 { margin-bottom: 8px; font-size: 22px; }
.profile-panel p, .profile-panel li { font-size: 12px; }
.profile-section .equipment-showcase { padding: 19px 13px 15px; }
.profile-section .equipment-heading {
  grid-template-columns: 1fr;
  gap: 5px;
  margin-bottom: 10px;
}
.profile-section .equipment-heading h3 { font-size: 24px; }
.profile-section .equipment-heading > p:last-child { font-size: 11px; }
.profile-section .equipment-grid {
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.profile-section .equipment-card {
  min-height: 144px;
  scroll-snap-align: start;
}
.profile-section .equipment-card img { height: 82px; min-height: 82px; }
.equipment-credit { text-align: left; }

.contact-section { margin-block: 24px; }

/* Mobile profile: retain the reference's dark photo-led app card. */
.profile-section {
  margin-top: 22px;
  border-radius: 17px;
  background: #f5f6f8;
}
.profile-hero {
  min-height: 570px;
  border-radius: 17px 17px 0 0;
}
.profile-hero-photo { min-height: 0; }
.profile-hero-photo::after {
  background: linear-gradient(180deg, #07111d88 0%, #07111d10 34%, #07111dbd 66%, #07111de8 100%);
}
.profile-hero-photo img {
  object-position: 68% center;
}
.profile-hero-copy {
  width: 100%;
  min-height: 570px;
  padding: 25px 18px 22px;
  justify-content: flex-end;
  background: linear-gradient(180deg, #07111d18 0%, transparent 35%, #07111dc9 72%, #07111df2 100%);
}
.profile-hero-brand {
  position: absolute;
  top: 25px;
  left: 18px;
  right: 18px;
  gap: 8px;
  margin: 0;
}
.profile-hero-brand strong { font-size: 21px; }
.profile-hero-brand strong::before { margin-right: 5px; }
.profile-hero-brand em {
  padding-left: 8px;
  border-left-width: 3px;
  font-size: 8px;
}
.profile-hero h2 {
  font-size: clamp(42px, 12vw, 58px);
  line-height: .92;
}
.profile-hero-copy > p:not(.profile-kicker) {
  font-size: 14px;
  line-height: 1.38;
}
.profile-red-rule { width: 62px; height: 4px; margin: 13px 0 15px; }
.profile-facebook {
  width: 100%;
  min-width: 0;
  justify-content: flex-start;
  padding: 10px 12px;
  font-size: 13px;
}
.profile-facebook > span strong { font-size: 15px; }
.profile-facebook > b { font-size: 27px; }
.profile-panels {
  grid-template-columns: 1fr;
  gap: 0;
  padding: 8px 17px 14px;
}
.profile-panel, .profile-panel:first-child, .profile-panel:last-child {
  min-height: 0;
  padding: 18px 0;
  border-right: 0;
  border-bottom: 1px solid #d2d7de;
}
.profile-panel:last-child { border-bottom: 0; }
.profile-panel-icon { width: 31px; height: 31px; margin-bottom: 8px; }
.profile-panel h3 { font-size: 23px; margin-bottom: 8px; }
.profile-panel p, .profile-panel li { font-size: 13px; line-height: 1.35; }
.profile-section .equipment-showcase { padding: 20px 13px 15px; }
.profile-section .equipment-heading { grid-template-columns: 1fr; gap: 4px; margin-bottom: 10px; }
.profile-section .equipment-heading h3 { font-size: 26px; }
.profile-section .equipment-heading > p:last-child { font-size: 11px; }
.profile-section .equipment-grid {
  grid-template-columns: repeat(3, minmax(170px, 1fr));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 3px;
}
.profile-section .equipment-card { min-height: 140px; scroll-snap-align: start; }
.profile-section .equipment-card img { height: 82px; min-height: 82px; }
.profile-section .equipment-card strong { font-size: 13px; }
.profile-section .equipment-card span { font-size: 10px; }
.equipment-credit { text-align: left; }
.profile-section .profile-hero { min-height: 535px; }
.profile-section .profile-hero-copy { width: 100%; min-height: 535px; padding: 235px 20px 24px; justify-content: flex-end; }
.profile-section .profile-hero h2 { font-size: clamp(37px, 10vw, 49px); line-height: 1; margin-bottom: 13px; }
.profile-section .profile-hero-copy > p { font-size: 13px; line-height: 1.5; }
.profile-section .profile-hero-photo img { width: 100%; margin: 0; object-position: 65% top; }
.profile-section .profile-hero-photo::after { background: linear-gradient(180deg, #0c101505 0%, #0c101510 24%, #0c1015bf 46%, #0c1015f5 64%, #0c1015 100%); }
.profile-section .profile-red-rule { margin: 14px 0 17px; }
.profile-section .profile-facebook { min-width: 0; width: 100%; }
.profile-section .profile-panels {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding: 16px 14px 20px;
  background: #f3f6fa;
}
.profile-section .profile-panel {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 12px 10px;
  min-width: 0;
  min-height: 0;
  padding: 18px;
  border: 1px solid #e0e7ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 10px #102a4305;
}
.profile-section .profile-panel:last-child { border: 1px solid #e0e7ef; }
.profile-section .profile-panel-icon { float: none; width: 26px; height: 26px; margin: 0; align-self: center; }
.profile-section .profile-panel h3 { min-height: 0; font-size: 18px; line-height: 1.25; letter-spacing: -.025em; align-self: center; margin: 0; }
.profile-section .profile-panel p, .profile-section .profile-panel ul { grid-column: 1 / -1; margin: 0; }
.profile-section .profile-panel p, .profile-section .profile-panel li { font-size: 13px; line-height: 1.6; color: #425268; }
.profile-section .profile-panel ul { display: grid; gap: 8px; }
.profile-section .profile-panel li { padding-inline-start: 21px; }
.profile-section .equipment-card { grid-template-rows: 122px auto; }
.profile-section .equipment-card img { height: 122px; min-height: 122px; padding: 10px; }
.profile-section .equipment-heading h3 { font-size: 26px; }
.profile-section .equipment-heading > p:last-child { font-size: 12px; line-height: 1.5; }
.profile-section .equipment-heading .institutional-kicker { display: none; }
.profile-section .equipment-credit { font-size: 9px; }
.contact-panel { border-radius: 19px; }
  .contact-intro {
    background: #10243b;
  }
.contact-intro-copy { padding: 20px 17px 11px; }
.contact-intro h2 { font-size: clamp(27px, 7.4vw, 37px); }
.contact-intro-copy > p { max-width: 40ch; margin-top: 10px; }
.contact-intro-details { margin-top: 13px; }
.contact-intro-photo {
    display: none;
  }

  .contact-intro-photo[aria-hidden="true"] {
  width: 100%;
  aspect-ratio: 2.05;
  background:
    linear-gradient(180deg, #12253c, #12253c00 21%),
    url("assets/contacto-camioneta-mobile.optimized.webp") center 77% / cover no-repeat;
}
.contact-form { gap: 19px; padding: 17px; }
.contact-form label { font-size: 13px; }
.contact-fields { grid-template-columns: minmax(0, 1fr); }
.contact-form :is(input:not([type="checkbox"]), select, textarea),
#quote-form :is(input, textarea) { min-height: 46px; font-size: 16px; }
.contact-services { gap: 7px; }
.contact-services label { min-height: 48px; font-size: 12px; line-height: 1.25; }
.contact-submit .button { width: 100%; min-height: 46px; }
.dialog-inner { padding: 19px; }
.dialog-inner .close { display: grid; place-items: center; width: 44px; height: 44px; }

.footer-grid { gap: 19px 14px; padding: 22px 0; }
.footer-grid .footer-brand, .footer-grid > div:last-child { grid-column: 1 / -1; }
.footer-grid > div:last-child { padding-top: 15px; border-top: 1px solid #9dbbe52b; }
.footer-brand p { max-width: 42ch; }
.footer-grid nav, .footer-grid ul { gap: 8px; }

.mobile-dock[hidden] {
  position: fixed;
  z-index: 12;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.32fr) minmax(0, 1fr);
  gap: 5px;
  padding: 8px max(9px, env(safe-area-inset-right, 0px))
    calc(8px + env(safe-area-inset-bottom, 0px)) max(9px, env(safe-area-inset-left, 0px));
  border-top: 1px solid #fff;
  border-radius: 19px 19px 0 0;
  background: #f6fafff5;
  box-shadow: 0 -5px 22px #162e5024;
  backdrop-filter: blur(14px);
}
.mobile-dock a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 49px;
  border: 1px solid #dde8f5;
  border-radius: 12px;
  background: #fff;
  color: var(--phone-ink);
  font-size: clamp(11px, 3.2vw, 14px);
  font-weight: 750;
}
.mobile-dock .ico { width: 17px; height: 17px; color: var(--phone-blue); }
.mobile-dock .mobile-dock-wa { border-color: #077747; background: #077747; color: #fff; }
.mobile-dock a:focus-visible { outline-offset: -3px; }
.mobile-dock-wa:focus-visible { outline-color: #fff; }

@media (min-width: 480px) {
  .contact-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Mobile composition: centered, image-led and intentionally independent from desktop. */
@media (max-width: 640px) {
  :root {
    --phone-frame: 100%;
  }

  body {
    padding-bottom: 0;
    background: #fff;
    overflow-x: hidden;
  }

  .site-header,
  #principal,
  .site-footer {
    width: 100%;
    margin-inline: 0;
  }

  .site-header {
    position: absolute;
    inset: 0 auto auto;
    z-index: 10;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
  }

  .header-row {
    min-height: 72px;
    padding: 8px 10px 13px;
  }

  .header-row .brand-logo { width: 124px; max-height: 57px; }
  .menu-toggle {
    width: 42px;
    height: 42px;
    border-color: #ffffff66;
    background: #081522a8;
    backdrop-filter: blur(8px);
  }
  .main-nav { inset-inline: 10px; }
  .info-strip { display: none; }

  .hero {
    display: block;
    min-height: clamp(520px, 145vw, 640px);
    border-radius: 0;
    background: #091522;
  }

  .hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    bottom: 0;
    height: auto;
    aspect-ratio: auto;
  }

  .hero-media picture {
    display: block;
    width: 100%;
    height: 100%;
  }

  .hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 68% center;
  }

  .hero-media::after {
    background: none;
  }

  .hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: inherit;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px 18px 24px;
    background: none;
    text-shadow: 0 2px 8px #03070bd9;
  }

  .hero-kicker {
    margin-bottom: 3px;
    font-size: 9px;
    letter-spacing: .12em;
  }

  .hero h1 {
    max-width: 11ch;
    margin: 7px 0 10px;
    font-size: clamp(34px, 9.8vw, 48px);
    line-height: .98;
    letter-spacing: -.055em;
  }

  .hero h1 span { color: #55b6ff; }
  .hero-lead {
    max-width: 34ch;
    color: #f5f8fc;
    font-size: 14px;
    line-height: 1.42;
  }

  .hero-actions {
    display: block;
    margin-top: 16px;
  }

  .hero-action {
    width: 100%;
    min-height: 45px;
    border-radius: 999px;
    border: 0;
    box-shadow: 0 5px 16px #001b4938;
    text-shadow: none;
  }

  .hero-action-primary {
    color: #fff;
    background: #086ee8;
  }

  .hero-action-primary:hover {
    color: #fff;
    background: #075dcc;
  }

  .hero-action-secondary { display: none; }
  .mobile-hero-wa { display: inline-block; vertical-align: middle; margin-right: 7px; }

  .content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: -17px;
    padding: 28px 14px 0;
    border-radius: 22px 22px 0 0;
    background: #fff;
  }

  #principal {
    overflow: hidden;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  .content > .audiences {
    order: 2;
    margin-top: 20px;
  }
  .content > #servicios { order: 1; margin-top: 0; }
  .content > #sectores { order: 3; }
  .content > #casos { order: 4; }
  .content > #nosotros { order: 5; }

  #servicios .section-head h2 {
    font-size: 0;
    line-height: 1;
  }

  #servicios .section-head h2::after {
    content: "Nuestros servicios especializados";
    font-size: clamp(25px, 7.1vw, 35px);
    line-height: 1.04;
    letter-spacing: -.045em;
  }

  .section-head p {
    font-size: 12px;
    line-height: 1.42;
  }

  .services-grid .photo-card {
    grid-template-columns: 31% minmax(0, 1fr);
    min-height: 108px;
  }

  .services-grid .photo-card > img { min-height: 108px; }
  .services-grid .photo-copy { padding: 11px 10px 8px; }
  .photo-copy h3 { font-size: 14px; }
  .photo-copy p { font-size: 11.5px; line-height: 1.32; }
  .card-more { min-height: 35px; font-size: 11px; }

  .audiences { gap: 12px; }
  .audience { border-radius: 17px; }
  .audience::before { aspect-ratio: 2.15; }

  .site-footer {
    margin-top: 0;
    padding-bottom: 10px;
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
  }

  .mobile-dock[hidden] { display: none; }
}
