/* ========================================================================
   COMMON STYLES - Shared across all pages
   ======================================================================== */

/* 1. VARIABLES & CORE COLORS */
:root {
  --bg-deep: #080808;
  --bg-card: #0f0f0f;
  --raisin-black: #080808;
  --off-white: #f9f6f1;
  --accent-blue: #9fa8ff;
  --pale-blue: #acc1fc;
  --accent-yellow: #FF6F00;
  --white: #ffffff;
  --dark-navy: #0f1325;
  --grey: #242424;
  --black: #000000;

  --nav-height: 88px;
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-premium: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

/* 2. GLOBAL RESET & BASE */
* {
  box-sizing: border-box;
}

body {
  padding-top: 0 !important;
  font-family: "Matter", "Inter", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  vertical-align: middle;
}

a {
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* 3. TYPOGRAPHY */
.text-size-medium {
  font-size: 1.5rem;
  line-height: 1.5;
  text-wrap: pretty;
}
.text-size-regular {
  font-size: 1.125rem;
  line-height: 1.5;
  text-wrap: pretty;
}
.white {
  color: var(--white);
}
.off-white {
  color: var(--off-white);
}

/* 4. NAVBAR FIXES */
.navbar_logo {
  margin-left: -13px;
}

.navbar_component {
  position: absolute !important;
}

/* 5. BUTTONS & INTERACTIONS (Initial Animation States) */
.btn-icon-hidden {
  -webkit-transform: translate3d(-180%, 0, 0) scale3d(1, 1, 1);
  -moz-transform: translate3d(-180%, 0, 0) scale3d(1, 1, 1);
  -ms-transform: translate3d(-180%, 0, 0) scale3d(1, 1, 1);
  transform: translate3d(-180%, 0, 0) scale3d(1, 1, 1);
}

.btn-icon-visible {
  -webkit-transform: translate3d(0px, 0, 0) scale3d(1, 1, 1);
  -moz-transform: translate3d(0px, 0, 0) scale3d(1, 1, 1);
  -ms-transform: translate3d(0px, 0, 0) scale3d(1, 1, 1);
  transform: translate3d(0px, 0, 0) scale3d(1, 1, 1);
}

.btn-hover-initial {
  -webkit-transform: translate3d(0px, 0, 0) scale3d(1, 1, 1);
  -moz-transform: translate3d(0px, 0, 0) scale3d(1, 1, 1);
  -ms-transform: translate3d(0px, 0, 0) scale3d(1, 1, 1);
  transform: translate3d(0px, 0, 0) scale3d(1, 1, 1);
}

.btn-hover-box-initial {
  height: 0%;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  justify-content: flex-start;
}

/* 6. UTILITIES */
.bottom-margin {
  margin-bottom: 2rem;
}
.no-margin {
  margin: 0;
}
.half-bottom {
  padding-bottom: 3.5rem;
}
.half-margins {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

/* 7. PESQUERA DIEZ (P10) THEME ADDITIONS */

/* Lenis smooth scrolling reset */
html.lenis {
  height: auto;
}
.lenis-smooth {
  scroll-behavior: auto;
}
.lenis-smooth [data-lenis-prevent] {
  overflow: clip;
}
.lenis-target {
  scroll-behavior: auto;
}

/* Global noise overlay */
.p10-noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: url("../images/noise-texture.png");
  background-repeat: repeat;
  pointer-events: none;
  z-index: 99998;
  opacity: 0.035;
}

/* Custom interactive cursor */
@media (hover: hover) {
  html,
  body {
    cursor: none;
  }
  a,
  button,
  .button-block-16,
  [role="button"],
  input,
  textarea,
  select {
    cursor: none !important;
  }
  .p10-cursor {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(159, 168, 255, 0.4);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    transition:
      width 0.3s cubic-bezier(0.1, 0.8, 0.3, 1),
      height 0.3s cubic-bezier(0.1, 0.8, 0.3, 1),
      background-color 0.3s cubic-bezier(0.1, 0.8, 0.3, 1),
      border-color 0.3s cubic-bezier(0.1, 0.8, 0.3, 1);
  }
  .p10-cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-blue);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
  }
  .p10-cursor.hover {
    width: 50px;
    height: 50px;
    background-color: rgba(159, 168, 255, 0.08);
    border-color: var(--accent-blue);
  }
}

/* Cinematic Preloader styling */
.p10-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  overflow: hidden;
  pointer-events: auto;
}
.p10-preloader-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--pale-blue);
  z-index: 1;
}
.p10-preloader-corner {
  position: absolute;
  font-family: "Calsans", "Matter", "Inter", sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #080808;
  opacity: 0;
  z-index: 2;
}
.p10-top-left {
  top: 6vh;
  left: 6vw;
}
.p10-bottom-left {
  bottom: 6vh;
  left: 6vw;
}
.p10-bottom-right {
  bottom: 6vh;
  right: 6vw;
}
.p10-text-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.28em;
  font-family:
    "Calsans", "Matter", "Helvetica Neue", Arial, sans-serif;
  font-size: 5rem;
  font-weight: 900;
  color: #080808;
  text-transform: uppercase;
  z-index: 3;
  white-space: nowrap;
  pointer-events: none;
}
.p10-word {
  display: inline-flex;
  align-items: baseline;
}
.fade-char {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  opacity: 1;
  flex-shrink: 0;
  min-width: 0;
}
.p10-logo-o {
  height: 0.8em;
  width: 0.96em;
  vertical-align: -0.03em;
  display: inline-block;
  margin-left: 0.05em;
  margin-right: -0.16em;
  object-fit: contain;
  flex-shrink: 0;
}

/* Responsive preloader text container scaling to enforce single-line layout on all viewports */
@media (max-width: 1200px) {
  .p10-text-container {
    font-size: 4rem !important;
  }
}
@media (max-width: 768px) {
  .p10-text-container {
    font-size: 2.6rem !important;
  }
}
@media (max-width: 480px) {
  .p10-text-container {
    font-size: 1.8rem !important;
  }
}
.p10-emblem {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 140px;
  height: 140px;
  opacity: 0;
  display: none;
  z-index: 3;
}
.p10-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 140px;
  height: 140px;
  margin-left: -70px;
  margin-top: -70px;
  border: 2px solid var(--accent-blue);
  border-radius: 50%;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}
.p10-reveal-mask {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 0px;
  transform: translateY(-50%);
  background-color: var(--bg-deep);
  z-index: 2;
}

body.loading {
  overflow: hidden !important;
  height: 100vh !important;
}

/* Image reveal animations */
.p10-reveal-img {
  opacity: 0;
  transform: scale(1.05) skewY(2deg);
  transition:
    opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1),
    transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}
.p10-reveal-img.revealed {
  opacity: 1;
  transform: scale(1) skewY(0);
}
