html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

:root {
  --abyss-bg: #030712;
  --abyss-bg-soft: #081120;
  --abyss-surface: rgba(10, 18, 34, 0.42);
  --abyss-surface-strong: rgba(10, 18, 34, 0.72);
  --abyss-border-soft: rgba(255, 255, 255, 0.06);
  --abyss-text: #edf4ff;
  --abyss-muted: #a8b6cb;
  --abyss-accent: #6ca8ff;
  --abyss-accent-soft: #9fd0ff;
  --abyss-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --abyss-glow: 0 0 80px rgba(108, 168, 255, 0.12);
  --abyss-pearl: #f4ede3;
  --abyss-pearl-soft: #ddd2c3;
  --abyss-pearl-shadow: rgba(244, 237, 227, 0.1);
  --abyss-warm-glow: rgba(214, 188, 154, 0.12);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.15rem rgba(108, 168, 255, 0.22), 0 0 0 0.35rem rgba(159, 208, 255, 0.14);
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--abyss-text);
  background-color: var(--abyss-bg);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(88, 132, 255, 0.16), transparent 0 22%),
    radial-gradient(circle at 85% 18%, rgba(120, 196, 255, 0.12), transparent 0 18%),
    radial-gradient(circle at 50% 75%, rgba(72, 98, 180, 0.12), transparent 0 24%),
    linear-gradient(180deg, #02050b 0%, #050b14 35%, #07101d 100%);
  padding-top: 92px;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.intro-active {
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background-image:
    radial-gradient(2px 2px at 12% 18%, rgba(255,255,255,0.9), transparent 60%),
    radial-gradient(1.5px 1.5px at 24% 72%, rgba(255,255,255,0.75), transparent 60%),
    radial-gradient(2px 2px at 38% 28%, rgba(173,216,255,0.85), transparent 60%),
    radial-gradient(1.5px 1.5px at 52% 64%, rgba(255,255,255,0.7), transparent 60%),
    radial-gradient(2px 2px at 68% 22%, rgba(255,255,255,0.85), transparent 60%),
    radial-gradient(1.5px 1.5px at 78% 58%, rgba(173,216,255,0.75), transparent 60%),
    radial-gradient(2px 2px at 88% 34%, rgba(255,255,255,0.8), transparent 60%),
    radial-gradient(1.5px 1.5px at 92% 78%, rgba(255,255,255,0.7), transparent 60%);
  opacity: 0.55;
}

body::after {
  background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.18) 58%, rgba(0, 0, 0, 0.42) 100%);
  z-index: -1;
}

a {
  color: var(--abyss-accent-soft);
  text-decoration: none;
}

a:hover {
  color: #ffffff;
}

.abyss-navbar {
  background: rgba(3, 8, 18, 0.62);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: 14px;
  filter: drop-shadow(0 0 18px rgba(108, 168, 255, 0.18));
}

.abyss-navbar .nav-link {
  color: var(--abyss-text) !important;
  padding: 0.8rem 1rem !important;
  border-radius: 999px;
  transition: all 0.25s ease;
}

.abyss-navbar .nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.abyss-toggler {
  border-radius: 16px;
  border-color: rgba(255,255,255,0.18);
}

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #02050b;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transition: opacity 1s ease, visibility 1s ease;
}

.intro-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.intro-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.04) brightness(0.88) blur(0.35px);
  transform: scale(1.02);
}

.intro-overlay-layer {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, rgba(108, 168, 255, 0.08), transparent 35%),
    linear-gradient(180deg, rgba(2, 5, 11, 0.14) 0%, rgba(2, 5, 11, 0.24) 45%, rgba(2, 5, 11, 0.76) 100%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 3px);
}

.skip-intro-button {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  z-index: 3;
  padding: 0.8rem 1.15rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(5, 10, 18, 0.42);
  color: var(--abyss-text);
  backdrop-filter: blur(10px);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.skip-intro-button:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(159, 208, 255, 0.22);
  transform: translateY(-1px);
}

.intro-brand-mark {
  position: absolute;
  inset: auto 0 8%;
  display: flex;
  justify-content: center;
}

.intro-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  opacity: 0.38;
  filter: blur(0.6px) drop-shadow(0 0 18px rgba(159, 208, 255, 0.16));
  mix-blend-mode: screen;
}

.page-reveal-section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s ease, transform 1s ease;
}

body.page-ready .page-reveal-section {
  opacity: 1;
  transform: translateY(0);
}

.hero-section,
.content-section,
.hero-intro-section {
  position: relative;
}

.hero-intro-section,
.content-section {
  padding: 5rem 0;
}

.hero-intro-section {
  overflow: clip;
}

.hero-fixed-logo-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('/Imagenes_Abyss/abyss_logo.png');
  background-repeat: no-repeat;
  background-position: center 46%;
  background-size: 112vw auto;
  opacity: 0.38;
  filter: brightness(2.7) contrast(1.1) saturate(0.32) drop-shadow(0 0 130px rgba(126, 182, 255, 0.28));
  transform: translateZ(0);
}

@media (min-width: 1400px) {
  .hero-fixed-logo-background {
    background-size: 108vw auto;
    background-position: center 44%;
  }
}

@media (max-width: 767.98px) {
  .hero-fixed-logo-background {
    background-size: 175vw auto;
    background-position: center 42%;
    opacity: 0.3;
  }
}

.hero-background-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at center, rgba(3, 7, 18, 0.04) 0%, rgba(3, 7, 18, 0.18) 48%, rgba(3, 7, 18, 0.42) 100%),
    linear-gradient(180deg, rgba(2, 5, 11, 0.12) 0%, rgba(2, 5, 11, 0.28) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-space-layer,
.hero-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-top-brand {
  max-width: 980px;
  margin: 0 auto;
}

.hero-logo-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 660px;
  padding: 0;
}

.hero-top-logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  filter: drop-shadow(0 0 24px rgba(159, 208, 255, 0.28));
}

.hero-top-logo-background {
  display: none;
}

.hero-copy-layer {
  position: relative;
  z-index: 1;
  max-width: 860px;
  display: block;
}

.hero-glass-card,
.editorial-item-glass,
.section-heading .hero-glass-card {
  position: relative;
  padding: 1.75rem 1.9rem;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow:
    0 24px 60px rgba(0,0,0,0.34),
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -10px 24px rgba(0,0,0,0.12);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  transform: perspective(1200px) translateZ(0) rotateX(1.2deg);
}

.hero-glass-card::before,
.editorial-item-glass::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.16), transparent 38%, transparent 62%, rgba(159, 208, 255, 0.08));
  opacity: 0.9;
}

.hero-glass-card-brand {
  padding-top: 2.2rem;
  padding-bottom: 2.2rem;
}

.hero-glass-card-copy {
  max-width: 860px;
  margin: 1.5rem auto 0;
}

.hero-glass-card-actions {
  width: fit-content;
  margin: 0 auto;
}

.section-heading {
  max-width: 920px;
  margin: 0 auto 2rem;
}

.editorial-grid {
  display: grid;
  gap: 2rem;
}

.editorial-item {
  padding: 0 0 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.editorial-item-glass {
  padding: 1.75rem;
  border-bottom: 0;
  min-height: 100%;
}

.editorial-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.editorial-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.editorial-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-title {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--abyss-pearl);
  text-shadow: -1px 0 0 rgba(255,248,240,0.12), 0 1px 0 rgba(255,248,240,0.18), 0 8px 18px rgba(0,0,0,0.18);
}

.footer-links {
  align-items: flex-start;
}

.footer-links-column {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  color: var(--abyss-pearl-soft);
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-values {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--abyss-pearl-soft);
}

.footer-values li,
.footer-privacy-text {
  margin-bottom: 0.55rem;
  color: var(--abyss-pearl-soft);
  text-shadow: -1px 0 0 rgba(255,248,240,0.06), 0 1px 0 rgba(255,248,240,0.08), 6px 0 14px rgba(214, 188, 154, 0.06), 0 8px 18px rgba(0,0,0,0.22);
}

.footer-bottom {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
}

.footer-bottom-links a {
  color: var(--abyss-pearl-soft);
  font-weight: 600;
}

.footer-bottom-links a:hover {
  color: #fff;
}

.btn-abyss-primary,
.btn-abyss-secondary {
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease;
  text-shadow: 0 1px 0 rgba(255,255,255,0.18), 0 8px 18px rgba(0,0,0,0.18);
}

.btn-abyss-primary {
  background: linear-gradient(180deg, #8bc2ff, #4f8ef0);
  color: #04101d;
  box-shadow: 0 12px 30px rgba(79, 142, 240, 0.28);
}

.btn-abyss-primary:hover {
  color: #04101d;
  transform: translateY(-2px);
}

.btn-abyss-secondary {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  color: var(--abyss-text);
}

.btn-abyss-secondary:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

.contact-panel {
  max-width: 900px;
  margin: 0 auto;
  padding: 2.5rem;
  background: linear-gradient(180deg, rgba(12, 20, 36, 0.52), rgba(8, 14, 26, 0.38));
  border: 1px solid var(--abyss-border-soft);
  border-radius: 28px;
  box-shadow: var(--abyss-shadow);
  backdrop-filter: blur(14px);
}

.consultation-panel {
  max-width: 980px;
}

.consultation-form .form-label {
  color: var(--abyss-pearl);
  font-weight: 600;
  margin-bottom: 0.55rem;
  text-shadow: -1px 0 0 rgba(255,248,240,0.12), 0 1px 0 rgba(255,248,240,0.18), 0 8px 18px rgba(0,0,0,0.18);
}

.abyss-input {
  background: rgba(8, 14, 26, 0.72);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  color: var(--abyss-pearl-soft);
  padding: 0.95rem 1rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 10px 24px rgba(0,0,0,0.18);
}

.abyss-input::placeholder {
  color: rgba(221, 210, 195, 0.58);
}

.abyss-input:focus {
  background: rgba(10, 18, 34, 0.82);
  border-color: rgba(159, 208, 255, 0.24);
  color: var(--abyss-pearl);
}

.abyss-textarea {
  min-height: 180px;
  resize: vertical;
}

.consultation-alert {
  border-radius: 18px;
  border: 1px solid rgba(92, 184, 92, 0.22);
  background: rgba(28, 58, 34, 0.42);
  color: #dff3df;
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.text-danger {
  color: #ffb8b8 !important;
}

.whatsapp-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1200;
  width: 64px;
  height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #1f6b45, #12452d);
  color: #f4ede3;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 10px 22px rgba(0,0,0,0.34),
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -6px 12px rgba(0,0,0,0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.whatsapp-float:hover {
  color: #fff;
  transform: translateY(-4px) scale(1.04);
  background: linear-gradient(180deg, #278a58, #165236);
  box-shadow:
    0 16px 30px rgba(0,0,0,0.4),
    0 0 24px rgba(39, 138, 88, 0.28),
    inset 0 1px 0 rgba(255,255,255,0.22),
    inset 0 -8px 14px rgba(0,0,0,0.2);
}

.whatsapp-icon {
  width: 30px;
  height: 30px;
}

.abyss-footer {
  padding: 2.5rem 0 1.25rem;
  color: var(--abyss-muted);
  border-top: 1px solid rgba(255,255,255,0.06);
  background:
    linear-gradient(180deg, rgba(4, 9, 18, 0.96), rgba(2, 6, 12, 0.98)),
    rgba(2, 6, 12, 0.92);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr 0.95fr 0.95fr;
  gap: 1.25rem;
  align-items: stretch;
  padding-bottom: 1.5rem;
}

.footer-card {
  height: 100%;
  padding: 1.4rem 1.35rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  box-shadow: 0 14px 34px rgba(0,0,0,0.18);
  backdrop-filter: blur(10px);
}

.footer-brand-card {
  padding-right: 1.75rem;
}

.footer-brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.75rem;
  text-align: left;
}

.footer-company-name {
  display: block;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  opacity: 1;
  visibility: visible;
}

.footer-brand-text,
.footer-brand-block > div:last-child {
  margin: 0;
  color: #d8d4cd;
  font-size: 0.98rem;
  line-height: 1.8;
}

.footer-title {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--abyss-pearl);
  text-shadow: -1px 0 0 rgba(255,248,240,0.12), 0 1px 0 rgba(255,248,240,0.18), 0 8px 18px rgba(0,0,0,0.18);
}

.footer-links {
  align-items: flex-start;
}

.footer-links-column {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-links a {
  color: var(--abyss-pearl-soft);
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
  transform: translateX(3px);
}

.footer-values {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--abyss-pearl-soft);
}

.footer-values li,
.footer-privacy-text {
  margin-bottom: 0.55rem;
  color: var(--abyss-pearl-soft);
  text-shadow: -1px 0 0 rgba(255,248,240,0.06), 0 1px 0 rgba(255,248,240,0.08), 6px 0 14px rgba(214, 188, 154, 0.06), 0 8px 18px rgba(0,0,0,0.22);
}

.footer-bottom {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  white-space: nowrap;
}

.footer-bottom-links a {
  color: var(--abyss-pearl-soft);
  font-weight: 600;
}

.footer-bottom-links a:hover {
  color: #fff;
}

@media (max-width: 991.98px) {
  body {
    padding-top: 84px;
  }

  .editorial-grid-four,
  .editorial-grid-three,
  .editorial-grid-two,
  .editorial-feature,
  .editorial-split {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-brand-block {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 767.98px) {
  .hero-intro-section,
  .content-section {
    padding: 3.5rem 0;
  }

  .hero-top-logo,
  .intro-logo {
    width: 72px;
    height: 72px;
  }

  .hero-logo-stage {
    min-height: 520px;
    padding: 0;
  }

  .hero-fixed-logo-background {
    background-size: 175vw auto;
    background-position: center 42%;
    opacity: 0.3;
  }

  .hero-glass-card,
  .editorial-item-glass,
  .section-heading .hero-glass-card {
    padding: 1.25rem;
    border-radius: 22px;
  }

  .hero-top-logo-background {
    width: min(560px, 96vw);
    opacity: 0.22;
  }

  .contact-panel {
    padding: 1.5rem;
    border-radius: 24px;
  }

  .editorial-point {
    padding-left: 1rem;
  }

  .skip-intro-button {
    right: 1rem;
    bottom: 1rem;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-card {
    padding: 1.2rem;
  }

  .footer-company-name {
    font-size: 1.5rem;
    letter-spacing: 0.1em;
  }

  .hero-company-name {
    font-size: 2.3rem;
    letter-spacing: 0.16em;
  }

  .footer-bottom,
  .footer-bottom-links {
    align-items: flex-start;
    flex-direction: column;
  }

  .whatsapp-float {
    right: 1rem;
    bottom: 1rem;
    width: 58px;
    height: 58px;
  }

  .whatsapp-icon {
    width: 27px;
    height: 27px;
  }
}