/* Unified visual layer: current page structure with the softer index2 direction. */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@700;800&display=swap');
@import url('styles2.css');
@import url('site-overrides.css');

:root {
  --navy: #102957;
  --blue: #176de8;
  --muted: #61708e;
  --line: #dbe6f5;
  --pale: #f5f9ff;
  --radius: 22px;
  --soft-shadow: 0 16px 40px rgba(16, 41, 87, .08);
}

body {
  font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  color: var(--muted);
  background: linear-gradient(180deg, #fff 0%, #fbfdff 54%, #fff 100%);
  overflow-x: hidden;
}

.container {
  width: min(1120px, calc(100% - 80px));
  margin-inline: auto;
}

/* The panel class must not override the centered container width. */
.container.panel,
.container.coming {
  width: min(1120px, calc(100% - 80px));
}

.fleet-photo {
  width: 100%;
  height: 100%;
  max-height: none;
  right: 0;
  top: 0;
  object-fit: cover;
  object-position: center;
  border-radius: 38px;
  mask-image: none;
  z-index: 1;
}

.hero-visual {
  isolation: isolate;
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  content: '';
  pointer-events: none;
}

.hero-visual::before {
  inset: 6% -8% 4% 4%;
  z-index: 0;
  border-radius: 48% 52% 42% 58%;
  background:
    radial-gradient(circle at 58% 32%, rgba(255, 255, 255, .96) 0 14%, transparent 43%),
    linear-gradient(145deg, #dff5ff 0%, #edfaff 48%, #fff 100%);
  filter: blur(2px);
}

.hero-visual::after {
  right: 8%;
  bottom: 5%;
  z-index: 0;
  width: 270px;
  height: 150px;
  border-radius: 50%;
  background: rgba(91, 190, 239, .18);
  filter: blur(34px);
}

.hero-mockup {
  position: absolute;
  right: -10%;
  bottom: -8%;
  z-index: 2;
  width: 112%;
  height: auto;
  filter: drop-shadow(0 22px 24px rgba(16, 41, 87, .2));
}

.phone {
  width: 170px;
  height: auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.phone img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.dashboard-frame {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-frame img {
  width: min(100%, 577px);
  height: auto;
  object-fit: contain;
  margin-inline: auto;
}

.reports-visual {
  min-height: 360px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.reports-city {
  position: absolute;
  left: -8%;
  bottom: 0;
  z-index: 0;
  width: 76%;
  max-width: 520px;
  height: auto;
}

.reports-laptop {
  position: relative;
  z-index: 1;
  width: 82%;
  max-width: 590px;
  height: auto;
  margin-left: 18%;
  filter: drop-shadow(0 18px 22px rgba(16, 41, 87, .16));
}

.audit-visual {
  position: relative;
  min-height: 420px;
  display: block;
  overflow: visible;
  border-radius: 28px;
  background: transparent;
}

#auditorias .illustration {
  width: calc(100% - 24px);
  height: 420px;
  max-height: none;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
  filter: none;
}

.audit-checklist {
  position: absolute;
  z-index: 2;
  left: auto;
  right: -15px;
  top: auto;
  bottom: 141px;
  display: grid;
  gap: 5px;
  padding: 11px 10px;
  border: 1px solid rgba(219, 230, 245, .72);
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 16px 30px rgba(16, 41, 87, .14);
  transform: none;
}

.audit-checklist .offline-check {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 19px;
  justify-content: initial;
  gap: 6px;
  font-size: 11px;
  line-height: 1.05;
}

.audit-checklist .offline-check i {
  flex-basis: 19px;
  width: 19px;
  height: 19px;
  font-size: 11px;
}

/* Alternate image/text direction between visual feature sections. */
.panel-mint.split > .offline-visual,
#auditorias .audit-visual {
  order: -1;
}

.reports > .reports-visual {
  order: 2;
}

.coming-art img {
  width: 240px;
  height: auto;
  max-height: 270px;
  object-fit: contain;
}

.coming {
  grid-template-columns: 220px 1fr 260px;
}

.coming-art {
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  margin-left: -36px;
  margin-bottom: -36px;
}

@media (min-width: 701px) {
  .coming {
    grid-template-columns: 220px minmax(0, 1fr) 220px;
  }

  .coming > div:not(.coming-art) {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    text-align: left;
  }

  .coming > ul {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
  }

  .coming-art {
    grid-column: 1;
    grid-row: 1;
    justify-content: flex-start;
    margin-right: 0;
    margin-left: -36px;
  }
}

h1,
h2,
h3 {
  font-family: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -.045em;
}

h1,
h2 {
  color: var(--navy);
}

.section h2,
.coming h2 {
  font-size: 2.25rem;
  line-height: 1.1;
}

.section h2 em {
  font-style: normal;
  color: var(--blue);
}

.panel-rose h2 em {
  color: #e73555;
}

.coming h2,
.coming h2 em {
  color: #fff;
}

#funcionalidades .functionality-visual {
  min-height: 370px;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #eef8ff 0%, #f4f3ff 100%);
}

#funcionalidades .functionality-visual .illustration {
  width: 100%;
  height: 370px;
  max-height: none;
  object-fit: contain;
  object-position: right center;
  border-radius: inherit;
  filter: none;
}

.site-header {
  box-shadow: 0 2px 22px rgba(8, 37, 93, .07);
}

.hero {
  background: linear-gradient(118deg, #fff 18%, #f2f8ff 72%, #e8f8fc);
  border-bottom: 1px solid #e4f0fb;
}

.hero h1 {
  font-size: clamp(2.15rem, 3.55vw, 3.6rem);
  line-height: 1.06;
  margin-bottom: 22px;
}

.hero {
  min-height: max(620px, calc(100vh - 140px));
}

.hero + .section {
  padding-top: 24px;
}

.hero-grid {
  gap: 48px;
}

.hero-copy {
  max-width: 500px;
}

.hero h1 em {
  display: block;
  color: #176de8;
  font-size: .91em;
}

.hero-copy > p {
  margin-bottom: 24px;
  line-height: 1.5;
}

.hero .actions {
  gap: 14px;
  margin: 24px 0;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: stretch;
  gap: 0;
  margin-top: 26px;
  color: var(--navy);
}

.hero-point {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  min-width: 112px;
  min-height: 42px;
  padding: 0 16px;
  border-right: 1px solid #dce9f7;
  font-size: 11px;
  line-height: 1.2;
}

.hero-point:first-child {
  padding-left: 0;
}

.hero-point:last-child {
  border-right: 0;
}

.hero-point img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.hero-copy > p,
.section-heading > p,
.split > div > p {
  color: var(--muted);
}

.section-heading {
  max-width: 720px;
}

.section {
  position: relative;
  isolation: isolate;
  padding: 42px 0;
}

.section::before,
.section::after {
  position: absolute;
  z-index: -1;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  content: '';
  filter: blur(12px);
  opacity: .7;
  pointer-events: none;
}

.section::before {
  top: 7%;
  left: -150px;
  background: radial-gradient(circle, rgba(98, 197, 247, .2), transparent 68%);
}

.section::after {
  right: -150px;
  bottom: 5%;
  background: radial-gradient(circle, rgba(132, 93, 235, .16), transparent 68%);
}

.section:nth-of-type(odd)::before {
  background: radial-gradient(circle, rgba(255, 177, 185, .2), transparent 68%);
}

.section:nth-of-type(3n)::after {
  background: radial-gradient(circle, rgba(57, 212, 170, .18), transparent 68%);
}

.panel,
.coming,
.contact-form,
.dashboard-frame {
  box-shadow: var(--soft-shadow);
}

.panel {
  border: 1px solid rgba(219, 230, 245, .72);
  width: 100%;
  position: relative;
  border-radius: 28px;
  background-clip: padding-box;
  margin-inline: auto;
}

.coming {
  width: 100%;
  margin-inline: auto;
}

.panel::before {
  position: absolute;
  top: -110px;
  right: 8%;
  width: 270px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, .72), transparent 70%);
  content: '';
  pointer-events: none;
}

.panel > * {
  position: relative;
  z-index: 1;
}

.panel-rose {
  background: linear-gradient(135deg, #fff2f3 0%, #fffafa 100%);
}

.panel-blue {
  background: linear-gradient(135deg, #e9f6ff 0%, #f4faff 100%);
}

.panel-lilac {
  background: linear-gradient(135deg, #f1f7ff 0%, #f7f1ff 100%);
}

.panel-mint {
  background: linear-gradient(135deg, #eafbf3 0%, #f1faff 100%);
}

/* Full-width section bands with centered inner content. */
.section:has(> .container.panel-rose) {
  background: linear-gradient(135deg, #fff1f3 0%, #fffafb 52%, #fff 100%);
}

.section:has(> .container.panel-blue) {
  background: linear-gradient(135deg, #eaf7ff 0%, #f4faff 54%, #fff 100%);
}

.section:has(> .container.panel-lilac) {
  background: linear-gradient(135deg, #f2f7ff 0%, #f8f2ff 54%, #fff 100%);
}

.section:has(> .container.panel-mint) {
  background: linear-gradient(135deg, #eafbf3 0%, #f2faff 54%, #fff 100%);
}

.section:has(> .container.panel) > .container.panel {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.mini-card,
.steps > div,
.asset-cards span,
.audit-cards span {
  border: 1px solid rgba(219, 230, 245, .8);
  box-shadow: 0 7px 22px rgba(18, 49, 92, .05);
}

.mini-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 158px;
  padding: 20px 14px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.mini-card h3 {
  min-height: 40px;
  margin: 10px 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-section .section-heading {
  width: min(720px, 100%);
  margin-inline: 0;
  text-align: left;
}

.process-section .section-heading p {
  margin-inline: 0;
}

.process-section .steps {
  position: relative;
  width: 100%;
  align-items: stretch;
}

.process-section .steps::before {
  position: absolute;
  top: 35px;
  left: 8%;
  right: 8%;
  height: 2px;
  content: '';
  background: #cfe1f8;
}

.process-section .steps > div {
  position: relative;
  z-index: 1;
}

.process-section .steps h3 {
  min-height: 38px;
  margin: 14px 0 12px;
}

.section-heading > p {
  margin-top: 20px;
}

.mini-card img {
  width: 48px;
  height: 48px;
  padding: 8px;
  border-radius: 13px;
  background: #edf5ff;
}

.asset-cards span,
.audit-cards span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.asset-cards img,
.audit-cards img {
  width: 30px;
  height: 30px;
  padding: 5px;
  border-radius: 9px;
  background: #e7f2ff;
  object-fit: contain;
}

.audit-cards img {
  background: #eee7ff;
}

.panel-rose .mini-card img {
  background: #ffe3e6;
}

.panel-blue .mini-card img {
  background: #dff0ff;
}

.panel-lilac .mini-card img {
  background: #ebe5ff;
}

.mini-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(18, 49, 92, .1);
}

.btn {
  border-radius: 11px;
  font-family: 'DM Sans', sans-serif;
}

.btn-primary {
  box-shadow: 0 10px 22px rgba(23, 109, 232, .18);
}

.offline-visual,
.dashboard-frame,
.illustration {
  filter: drop-shadow(0 14px 25px rgba(16, 41, 87, .08));
}

.offline-note {
  width: 220px;
  right: -4px;
  bottom: 8px;
  z-index: 2;
  gap: 10px;
  padding: 18px 16px;
  border: 1px solid rgba(219, 230, 245, .72);
  border-radius: 20px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 16px 30px rgba(16, 41, 87, .14);
}

.offline-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.offline-check i {
  display: grid;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: #17c58d;
  color: #fff;
  font-size: 15px;
  font-style: normal;
  line-height: 1;
}

.coming {
  background: linear-gradient(110deg, #5428bb 0%, #0a2b7d 100%);
}

.contact-section .panel {
  background: linear-gradient(120deg, #eaf7ff 0%, #f3f0ff 100%);
}

.contact-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 16px;
}

.contact-option {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d8e7f5;
  border-radius: 15px;
  background: rgba(255, 255, 255, .8);
  color: var(--navy);
  box-shadow: 0 8px 20px rgba(16, 41, 87, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.contact-option:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(16, 41, 87, .1);
}

.contact-option-whatsapp {
  border-color: #b9e5d4;
}

.contact-option-phone {
  border-color: #c7dcfa;
}

.contact-option > span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.contact-option small {
  color: #71819c;
  font-size: 11px;
}

.contact-option strong {
  font-size: 12px;
  white-space: nowrap;
}

.contact-option b {
  color: var(--blue);
  font-size: 22px;
  font-weight: 500;
}

.contact-icon {
  display: grid;
  justify-self: center;
  place-items: center;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  line-height: 1;
}

.whatsapp-mark {
  background: transparent url('../img/Preoptix_Icono_WhatsApp.png') center / contain no-repeat;
}

.phone-mark {
  background: transparent url('../img/Preoptix_Icono_Telefono.png') center / contain no-repeat;
  color: transparent;
  font-size: 0;
}

.phone-mark::before {
  content: none;
}

.contact-section .fine-print {
  max-width: 430px;
}

@media (max-width: 700px) {
  .contact-options {
    grid-template-columns: 1fr;
  }
}

.coming,
.contact-section .panel,
.panel {
  animation: panel-drift 12s ease-in-out infinite alternate;
}

.section .panel,
.section .coming,
.contact-section .panel {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

.section.is-visible .panel,
.section.is-visible .coming,
.section.is-visible .contact-section .panel {
  opacity: 1;
  transform: translateY(0);
}

@keyframes panel-drift {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}

.brand-logo {
  flex: 0 0 auto;
}

@media (max-width: 700px) {
  .process-section .steps::before {
    display: none;
  }

  .process-section .section-heading {
    margin-inline: 0;
    text-align: left;
  }

  .process-section .section-heading p {
    margin-inline: 0;
  }

  .section h2,
  .coming h2 {
    font-size: 1.85rem;
  }

  #funcionalidades .functionality-visual {
    min-height: 275px;
  }

  #funcionalidades .functionality-visual .illustration {
    width: 100%;
    height: 275px;
  }

  html {
    overflow-x: hidden;
  }

  .container {
    width: min(100% - 28px, 550px);
    margin-inline: auto;
  }

  .section > .container {
    width: min(100% - 28px, 550px);
  }

  .container.panel,
  .container.coming,
  .section > .container.panel,
  .section > .container.coming {
    width: min(100% - 28px, 550px);
  }

  .hero h1 {
    font-size: clamp(2rem, 7vw, 2.7rem);
    line-height: 1.04;
  }

  .hero {
    min-height: calc(100vh - 110px);
    padding-bottom: 36px;
  }

  .hero-grid {
    gap: 22px;
  }

  .panel {
    width: 100%;
    margin-inline: auto;
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(16, 41, 87, .06);
  }

  .coming {
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    margin-inline: auto;
  }

  .coming-art {
    order: 3;
    justify-content: center;
    align-items: flex-end;
    margin-left: 0;
    margin-bottom: -25px;
    display: flex;
  }

  .coming-art img {
    width: 190px;
    max-height: 230px;
  }

  .coming > div:not(.coming-art),
  .coming > ul {
    text-align: center;
  }

  .section {
    padding: 28px 0;
  }

  .section::before,
  .section::after {
    width: 180px;
    height: 180px;
    opacity: .45;
  }

  .section::before {
    left: -115px;
  }

  .section::after {
    right: -115px;
  }

  .split,
  .hero-grid {
    justify-items: center;
  }

  .split > *,
  .hero-copy,
  .hero-visual {
    width: 100%;
    max-width: 100%;
  }

  .split > .illustration {
    width: auto;
    max-width: 100%;
  }

  #auditorias .audit-visual {
    min-height: 300px;
  }

  #auditorias .illustration {
    width: calc(100% - 12px);
    height: 300px;
  }

  .audit-checklist {
    right: -15px;
    top: auto;
    bottom: 24px;
    padding: 9px 8px;
    transform: none;
  }

  .panel-mint.split > .offline-visual,
  #auditorias .audit-visual,
  .reports > .reports-visual {
    order: initial;
  }

  .phone {
    width: 145px;
  }

  .offline-note {
    right: -4px;
    bottom: 4px;
    width: min(220px, 58%);
    padding: 14px 13px;
  }

  .offline-check {
    font-size: 12px;
  }

  .fleet-photo {
    right: 0;
    top: 0;
    width: 100%;
    height: 100%;
  }

  .hero-mockup {
    right: -3%;
    bottom: -2%;
    width: 104%;
  }

  .reports-visual {
    min-height: 300px;
    width: 100%;
  }

  .reports-city {
    left: 0;
    width: 88%;
  }

  .reports-laptop {
    width: 92%;
    margin-left: 8%;
  }

  .hero-copy,
  .section-heading,
  .section-heading.centered {
    text-align: center;
    margin-inline: auto;
  }

  .hero-copy {
    padding: 36px 0 0;
  }

  .hero h1 {
    margin-bottom: 18px;
  }

  .hero-copy > p {
    margin-bottom: 20px;
  }

  .hero .actions {
    margin: 22px 0;
  }

  .hero-copy > p,
  .section-heading p {
    margin-inline: auto;
  }

  .actions,
  .hero-points {
    justify-content: center;
  }

  .hero-visual {
    height: 390px;
    margin-inline: auto;
    margin-top: 18px;
  }

  .hero-points {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 0;
  }

  .hero-point,
  .hero-point:first-child {
    min-width: 0;
    padding: 0 10px;
    border-right: 0;
  }
}

@media (max-width: 400px) {
  .hero-visual {
    height: 350px;
  }

  .hero-mockup {
    right: -5%;
    width: 108%;
  }

  .audit-checklist {
    right: -8px;
    bottom: 18px;
  }
}

@media (min-width: 701px) and (max-width: 1000px) {
  .container,
  .container.panel,
  .container.coming {
    width: min(100% - 48px, 900px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* Clean, white footer inspired by the supplied reference. */
.footer {
  padding: 64px 0 24px;
  border-top: 1px solid #e4edf7;
  background: #fff;
  color: var(--muted);
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(260px, 1.45fr) repeat(3, minmax(130px, .7fr));
  gap: 42px 52px;
}

.footer-brand .brand {
  display: inline-flex;
  margin-bottom: 22px;
}

.footer-lead,
.footer-description {
  max-width: 360px;
  margin: 0;
  line-height: 1.55;
}

.footer-lead {
  color: var(--navy);
  font-size: 17px;
  font-weight: 700;
}

.footer-description {
  margin-top: 8px;
  font-size: 13px;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.footer-social a,
.footer-column a {
  color: #6d7c98;
  font-size: 13px;
  transition: color .2s ease;
}

.footer-social a {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #dbe6f5;
  border-radius: 50%;
  color: var(--navy);
}

.footer-social svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.8;
}

.footer-social svg rect,
.footer-social svg circle {
  fill: none;
}

.footer-social svg .social-dot {
  fill: currentColor;
  stroke: none;
}

.footer-social a:hover,
.footer-column a:hover {
  color: var(--blue);
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 12px;
}

.footer-column h3 {
  margin: 0 0 6px;
  color: var(--navy);
  font-size: 11px;
  letter-spacing: .12em;
}

.footer-bottom {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 20px;
  border-top: 1px solid #e7eef7;
  color: #8794aa;
  font-size: 11px;
}

@media (max-width: 700px) {
  .footer {
    padding: 44px 0 22px;
  }

  .footer-shell {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .footer-brand,
  .footer-bottom {
    grid-column: 1 / -1;
  }

  .footer .brand-company {
    display: block;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
}
