/*
 * Decorative geometry (halftone + contour lines), light blue on white.
 * Replaces raster banner / section / footer backgrounds.
 */

:root {
  /* Halftone / líneas: derivados del navy corporativo */
  --geo-blue: 90, 130, 178;
  --geo-dot-strong: rgba(var(--geo-blue), 0.38);
  --geo-dot-soft: rgba(var(--geo-blue), 0.16);
  --geo-line: rgba(var(--geo-blue), 0.26);
}

/* ---- Hero: white base + bottom waves (SVG) + side halftone ---- */
.main-banner {
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 200' preserveAspectRatio='none'%3E%3Cpath d='M0 165 Q200 142 400 158 T800 148 T1200 162' fill='none' stroke='rgb(90,130,178)' stroke-opacity='0.22' stroke-width='1.35'/%3E%3Cpath d='M0 172 Q220 155 440 168 T880 158 T1200 170' fill='none' stroke='rgb(90,130,178)' stroke-opacity='0.18' stroke-width='1.25'/%3E%3Cpath d='M0 178 Q180 162 360 174 T720 166 T1200 176' fill='none' stroke='rgb(90,130,178)' stroke-opacity='0.16' stroke-width='1.1'/%3E%3Cpath d='M0 184 Q260 175 520 182 T1000 178 T1200 182' fill='none' stroke='rgb(90,130,178)' stroke-opacity='0.14' stroke-width='1.05'/%3E%3Cpath d='M0 190 Q300 182 600 188 T1200 186' fill='none' stroke='rgb(90,130,178)' stroke-opacity='0.12' stroke-width='0.95'/%3E%3Cpath d='M0 196 Q240 190 480 194 T960 192 T1200 194' fill='none' stroke='rgb(90,130,178)' stroke-opacity='0.1' stroke-width='0.95'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% min(300px, 50vw);
}

.main-banner .container,
.main-banner .main-banner-inner {
  position: relative;
  z-index: 2;
}

/* ---- Hero: gallery slideshow (Owl), sin color sólido — solo fotos ---- */
.main-banner--has-slideshow {
  min-height: 92vh;
  padding-top: 230px;
  padding-bottom: 170px;
  background-color: transparent;
  background-image: none;
  background-size: auto;
  background-position: 0 0;
}

.main-banner--has-slideshow::before,
.main-banner--has-slideshow::after {
  display: none !important;
}

.hero-slideshow {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: 100%;
}

.hero-slideshow .owl-stage-outer {
  min-height: clamp(600px, 88vh, 1100px);
}

.hero-slide-img {
  display: block;
  width: 100%;
  min-height: clamp(600px, 88vh, 1100px);
  height: clamp(600px, 88vh, 1100px);
  object-fit: cover;
  object-position: center center;
}

.hero-slideshow-overlay {
  display: none;
}

.main-banner--has-slideshow .left-content .hero-eyebrow {
  color: #fff;
  text-shadow:
    0 0 2px rgba(0, 0, 0, 0.9),
    0 2px 24px rgba(0, 0, 0, 0.75),
    0 4px 40px rgba(0, 0, 0, 0.45);
}

.main-banner--has-slideshow .left-content h1,
.main-banner--has-slideshow .left-content h2 {
  color: #fff;
  text-shadow:
    0 0 2px rgba(0, 0, 0, 0.9),
    0 2px 28px rgba(0, 0, 0, 0.8),
    0 6px 48px rgba(0, 0, 0, 0.5);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  margin-top: 6px;
}

.main-banner--has-slideshow .hero-cta-row .border-first-button a,
.main-banner--has-slideshow .hero-cta-row .border-second-button a {
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 2px 22px rgba(0, 0, 0, 0.55);
}

.main-banner--has-slideshow .border-first-button a {
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.92) !important;
  background-color: rgba(4, 22, 48, 0.38) !important;
}

.main-banner--has-slideshow .border-first-button a:hover {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background-color: #fff !important;
  color: var(--color-primary, #041e42) !important;
}

.border-second-button a {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 10px 20px;
  border-radius: 23px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.16);
  transition: all 0.45s;
}

.border-second-button a .diprosof-btn-logo {
  width: auto !important;
  max-width: 1.1em;
  height: 1em !important;
  max-height: 1.05em;
  flex-shrink: 0;
  object-fit: contain;
  vertical-align: middle;
}

.main-banner--has-slideshow .border-second-button a {
  background: rgba(255, 255, 255, 0.2);
}

.border-second-button a:hover {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: #fff;
  color: var(--color-primary, #041e42);
  border-color: #fff;
}

.main-banner--has-slideshow .hero-slideshow .owl-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  z-index: 3;
  margin-top: 0;
  text-align: center;
}

.main-banner--has-slideshow .hero-slideshow .owl-dot span {
  width: 11px;
  height: 11px;
  margin: 4px 5px;
  background: rgba(255, 255, 255, 0.55);
  border: 2px solid rgba(0, 0, 0, 0.35);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: background 0.25s ease, transform 0.2s ease;
}

.main-banner--has-slideshow .hero-slideshow .owl-dot.active span,
.main-banner--has-slideshow .hero-slideshow .owl-dot:hover span {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.2);
}

@media (max-width: 767px) {
  .main-banner--has-slideshow {
    min-height: 88vh;
    padding-top: 170px;
    padding-bottom: 120px;
  }

  .hero-slideshow .owl-stage-outer {
    min-height: clamp(480px, 80vh, 900px);
  }

  .hero-slide-img {
    min-height: clamp(480px, 80vh, 900px);
    height: clamp(480px, 80vh, 900px);
    object-position: center center;
  }

  .main-banner--has-slideshow .left-content h1,
  .main-banner--has-slideshow .left-content h2 {
    font-size: 34px;
  }
}

.main-banner::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: min(420px, 52vw);
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(
    circle at center,
    var(--geo-dot-strong) 0 2.85px,
    transparent 3.05px
  );
  background-size: 20px 20px;
  background-position: 0 0;
  background-repeat: repeat;
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 38%, transparent 100%);
  mask-image: linear-gradient(to right, #000 0%, #000 38%, transparent 100%);
}

.main-banner::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: min(700px, 64vw);
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(
    circle at center,
    var(--geo-dot-soft) 0 2.65px,
    transparent 2.85px
  );
  background-size: 19px 19px;
  background-position: 5px 8px;
  background-repeat: repeat;
  -webkit-mask-image: linear-gradient(to left, #000 0%, #000 44%, transparent 100%);
  mask-image: linear-gradient(to left, #000 0%, #000 44%, transparent 100%);
}

/* ---- Portfolio: soft corners halftone ---- */
.our-portfolio::before,
.our-portfolio::after {
  background-image: radial-gradient(
    circle at center,
    rgba(var(--geo-blue), 0.2) 0 2.55px,
    transparent 2.75px
  );
  background-size: 17px 17px;
  background-repeat: repeat;
}

.our-portfolio::before {
  right: 0;
  top: 0;
  width: min(480px, 48vw);
  height: min(820px, 92vh);
  -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 92%);
  mask-image: linear-gradient(to left, #000 0%, transparent 92%);
}

.our-portfolio::after {
  left: 0;
  top: 0;
  width: min(520px, 52vw);
  height: min(780px, 88vh);
  -webkit-mask-image: linear-gradient(to right, #000 0%, transparent 90%);
  mask-image: linear-gradient(to right, #000 0%, transparent 90%);
}

/* ---- Services: vertical halftone strips ---- */
.services::before,
.services::after {
  background-image: radial-gradient(
    circle at center,
    rgba(var(--geo-blue), 0.16) 0 2.5px,
    transparent 2.7px
  );
  background-size: 16px 16px;
  background-repeat: repeat;
}

.services::after {
  left: 0;
  top: 0;
  width: min(460px, 46vw);
  height: 100%;
  -webkit-mask-image: linear-gradient(to right, #000 0%, transparent 88%);
  mask-image: linear-gradient(to right, #000 0%, transparent 88%);
}

.services::before {
  right: 0;
  top: 200px;
  width: min(260px, 28vw);
  height: min(580px, 68vh);
  -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 85%);
  mask-image: linear-gradient(to left, #000 0%, transparent 85%);
}

/* ---- Contact form: thin geometric rules (no PNG) ---- */
form#contact::before,
form#contact::after {
  background-image: none;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 42%,
    rgba(var(--geo-blue), 0.35) 50%,
    transparent 58%,
    transparent 100%
  );
  height: 3px;
  width: min(520px, 62vw);
  opacity: 0.9;
}

form#contact::before {
  top: 12px;
  right: 12px;
  left: auto;
}

form#contact::after {
  bottom: 14px;
  right: 12px;
  left: auto;
  background: linear-gradient(
    -105deg,
    transparent 0%,
    transparent 40%,
    rgba(var(--geo-blue), 0.28) 50%,
    transparent 60%,
    transparent 100%
  );
}

/* ---- Footer: white + subtle dots ---- */
footer {
  background-color: #ffffff;
  background-image: radial-gradient(
    circle at center,
    rgba(var(--geo-blue), 0.12) 0 1.95px,
    transparent 2.15px
  );
  background-size: 26px 26px;
  background-position: 0 0;
  border-top: 1px solid rgba(var(--geo-blue), 0.25);
}

footer p,
footer p a {
  color: #686868 !important;
}

footer p a:hover {
  color: var(--color-primary, #041e42) !important;
}

@media (max-width: 992px) {
  .main-banner::before {
    display: block;
    width: min(360px, 78vw);
    opacity: 0.85;
  }
}

/* ---- Contact: hero video → logo reveal (stacked) ---- */
.contact-brand-stage {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  overflow: hidden;
  background-color: #fff;
  border: 1px solid #fff;
  box-shadow: 2px 2px 6px #8d99af;
  transition: box-shadow 0.45s ease;
}

.contact-brand-stage.contact-brand-stage--revealed {
  box-shadow: none;
}

.contact-brand-logo-finish {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 14px;
  object-fit: contain;
  object-position: center;
  z-index: 0;
  pointer-events: none;
}

.contact-brand-stage .video {
  border: none;
  box-shadow: none;
}

.contact-brand-video {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  z-index: 1;
  transition: opacity 0.35s ease;
}

.contact-brand-video.contact-brand-video--done {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0s linear 0.35s;
}

@media (max-width: 991px) {
  .contact-brand-stage.graphic {
    margin-left: auto;
    margin-right: auto;
  }
}
