/*! ------------------------------------------------
 * Project Name: Agent NYRA - AI-Powered Solutions
 * Project Description: Soluciones empresariales con inteligencia artificial para impulsar la evolución de tu empresa.
 * Version: 2.0.0
 * Build Date: January 2026
 * ------------------------------------------------ */

@import url("./plugins.min.css");
@import url("./main.min.css");

/* ================================================
   NYRA BRAND TOKENS
   ================================================ */
:root {
  /* Primary accent - lime/verde NYRA */
  --nyra-accent: #cdfe29;
  --nyra-accent-hover: #b8e524;
  --nyra-accent-subtle: rgba(205, 254, 41, 0.15);

  /* Keep monochrome base */
  --nyra-black: #000000;
  --nyra-white: #ffffff;
  --nyra-gray-100: #f5f5f5;
  --nyra-gray-500: #737373;
  --nyra-gray-900: #171717;
}

/* Accent on buttons */
.btn-default:hover,
.btn-outline:hover {
  background-color: var(--nyra-accent) !important;
  border-color: var(--nyra-accent) !important;
  color: var(--nyra-black) !important;
}

/* Primary CTA button style */
.btn-nyra-primary {
  background-color: var(--nyra-accent);
  color: var(--nyra-black);
  border: none;
}

.btn-nyra-primary:hover {
  background-color: var(--nyra-accent-hover);
}

/* Accent highlights */
.nyra-highlight {
  color: var(--nyra-accent);
}

.nyra-underline {
  text-decoration-color: var(--nyra-accent);
}

html {
  scroll-behavior: smooth;
}
.mxd-nav__wrap {
  display: block;
  pointer-events: none;
}
.mxd-nav__wrap.active_menu {
  pointer-events: all;
}
.mxd-menu__wrapper {
  display: none;
  pointer-events: none;
}
.mxd-menu__wrapper.active_menu {
  display: block;
  pointer-events: all;
}

.mxd-menu__wrapper .fade-in-elm {
  transition: all 0.6s ease;
  visibility: hidden;
  opacity: 0;
}
.mxd-menu__wrapper.active_menu .fade-in-elm {
  visibility: visible;
  opacity: 1;
}
.mxd-menu__wrapper .fade-in-up-elm {
  transition: all 0.6s ease;
  visibility: hidden;
  opacity: 0;
  transform: translateY(25px);
}
.mxd-menu__wrapper.active_menu .fade-in-up-elm {
  visibility: visible;
  opacity: 1;
  transform: translateY(0px);
}
.submenu {
  display: block;
  height: 0px;
  overflow: hidden;
  padding-top: 0px;
}

/* Locks page scroll while modal is open */
.videoModal__bodyOpen {
  overflow: hidden;
}

/* Fullscreen overlay, centered content, no overlay scrolling */
.videoModal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: grid;
  place-items: center;
  overflow: hidden; /* prevent overlay scrollbar */
  z-index: 111;
}

/* Transparent content, no internal scroll */
.videoModal__content {
  background: transparent;
  border: none;
  outline: none;
  overflow: hidden; /* prevent content scrollbar */
}

/* Responsive 16:9 player that never exceeds viewport */
.videoModal__playerWrap {
  max-width: 1200px;
  width: min(90vw, 1600px);
  aspect-ratio: 16 / 9; /* modern browsers */
  position: relative;
}
.swiper-navigation-icon {
  display: none;
}
.hamburger__line {
  transition: all 0.3s ease;
}
.nav-open .hamburger__line:first-child {
  translate: none;
  rotate: none;
  scale: none;
  transform: translate(0px, 5px) rotate(45deg);
}
.nav-open .hamburger__line:last-child {
  translate: none;
  rotate: none;
  scale: none;
  transform: translate(0px, -5px) rotate(-45deg);
}
.loading__item,
.loading__fade {
  opacity: 0;
}

/* ================================================
   CAPABILITIES SECTION ENHANCEMENT
   ================================================ */
.mxd-cpb-list__title-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.mxd-cpb-list__description {
  margin: 0;
  max-width: 600px;
  line-height: 1.4;
  opacity: 0.8;
}

.nyra-capabilities-after-video {
  padding-top: clamp(7rem, 10vw, 10rem) !important;
}

@media (max-width: 1199px) {
  .mxd-cpb-list__description {
    max-width: 100%;
  }
}

/* ================================================
   SERVICES TAGS OPTIMIZATION
   ================================================ */
.mxd-services-cards-s__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px !important;
}

.mxd-services-cards-s__tags .tag {
  font-size: 14px !important;
  padding: 6px 12px !important;
  letter-spacing: 0;
  white-space: nowrap;
}


/* ================================================
   THEME LOGO SWITCHING
   ================================================ */

/* Default / Light Mode: Show Black Logo (Dark Text), Hide White Logo */
:root, [color-scheme="light"] {
  --logo-white-display: none;
  --logo-black-display: block;
}

/* Dark Mode: Show White Logo, Hide Black Logo */
[color-scheme="dark"] {
  --logo-white-display: block;
  --logo-black-display: none;
}

.logo-white-mode {
  display: var(--logo-white-display) !important;
}

.logo-black-mode {
  display: var(--logo-black-display) !important;
}

/* ================================================
   SERVICE CARDS THEME SWITCHING
   ================================================ */

/* Light Mode: Black background for service cards */
:root, [color-scheme="light"] {
  --service-card-bg: #000000;
}

/* Dark Mode: Corporate lime color for service cards */
[color-scheme="dark"] {
  --service-card-bg: #cdfe29;
}

/* Apply the theme-aware background to service cards with bg-accent class */
.mxd-services-cards-s__inner.bg-accent {
  background-color: var(--service-card-bg) !important;
}

/* ================================================
   HERO 08 - RAYO TEMPLATE ADAPTATION
   ================================================ */

.mxd-rotate-slow { 
  animation: spin 16s linear infinite; 
}

@keyframes spin { 
  100% { transform: rotate(360deg); }
}

.mxd-hero-08 { 
  width: 100%; 
  position: relative; 
  overflow: hidden;
}

.mxd-hero-08__wrap { 
  width: 100%; 
  padding-top: 7.6rem; 
  position: relative; 
}

@media only screen and (min-width: 768px) {
  .mxd-hero-08__wrap { padding-top: 9.6rem; }
}

@media only screen and (min-width: 1200px) {
  .mxd-hero-08__wrap { 
    justify-content: center; 
    align-items: center; 
    height: 100vh; 
    padding-top: 0px; 
    display: flex; 
  }
}

.mxd-hero-08__center { 
  text-align: center; 
  width: 100%; 
  padding: 11.5rem 0px 11.9rem; 
  position: relative; 
}

@media only screen and (min-width: 768px) {
  .mxd-hero-08__center { padding: 13.5rem 0px 14.9rem; }
}

@media only screen and (min-width: 1200px) {
  .mxd-hero-08__center { padding: 0px; }
}

.mxd-hero-08__headline { position: relative; }

.hero-08-headline__image { 
  width: 70vw; 
  position: absolute; 
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  pointer-events: none;
}

@media only screen and (min-width: 768px) {
  .hero-08-headline__image { width: 45vw; }
}

@media only screen and (min-width: 1200px) {
  .hero-08-headline__image { width: 35vw; }
}

@media only screen and (min-width: 1600px) {
  .hero-08-headline__image { width: 28vw; }
}

.hero-08-headline__title { 
  position: relative; 
  z-index: 100 !important;
}

.hero-08-headline__title h1 { 
  font-size: clamp(3rem, 8vw, 10rem);
  line-height: 1.1;
  font-weight: 700;
  margin: 0;
  position: relative;
  z-index: 101 !important;
}

/* Dark/Light mode color handling for the title - Using 'difference' for the Home 8 look */
.nyra-hero-title,
.nyra-hero-title * {
  color: #ffffff !important;
  mix-blend-mode: difference !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* No need for specific dark/light colors if we use difference with white text */

.mxd-hero-08__bottom { 
  width: 100%;
  padding: 0 3rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  position: absolute;
  bottom: 4rem;
  left: 0;
  z-index: 2;
}

@media only screen and (max-width: 1199px) {
  .mxd-hero-08__bottom {
    position: relative;
    bottom: 2rem;
    padding: 0 4rem;
  }
}

.mxd-hero-08__video-wrap {
  display: none; /* User requested to hide the video */
}

.mxd-hero-08__data-wrap {
  display: none; /* User requested to remove this content */
}

/* ================================================
   LANDING VIDEO
   ================================================ */
.nyra-landing-video {
  width: 100%;
  padding: 0;
  background: #000000;
}

.nyra-landing-video__inner {
  width: 100%;
  margin: 0;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: #000000;
}

.nyra-landing-video__media {
  display: block;
  width: 100%;
  height: calc(100% + 56px);
  object-fit: cover;
  transform: translateY(-56px);
}

@media only screen and (max-width: 767px) {
  .nyra-landing-video {
    padding: 0;
  }

  .nyra-capabilities-after-video {
    padding-top: 6rem !important;
  }

  .nyra-landing-video__media {
    height: calc(100% + 36px);
    transform: translateY(-36px);
  }

  .nyra-landing-video__inner {
    width: 100%;
    aspect-ratio: 16 / 9;
  }
}

/* ================================================
   PROJECTS STACK COMPONENT
   ================================================ */
.mxd-projects-stack {
  width: 100%;
  position: relative;
  height: 75vh;
  min-height: 600px;
}

@media only screen and (min-width: 992px) {
  .mxd-projects-stack {
    height: 600px;
    min-height: 0;
  }
}

@media only screen and (min-width: 1600px) {
  .mxd-projects-stack {
    height: 760px;
  }
}

.stack-item {
  position: absolute;
  width: 100%;
  height: 100%;
  padding-bottom: 3rem;
}

/* ================================================
   SERVICE TITLES ENHANCEMENT
   ================================================ */
.mxd-services-cards-s__title h3 {
  font-size: clamp(42px, 5.5vw, 68px) !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  margin-bottom: 20px !important;
  letter-spacing: -0.02em !important;
  text-transform: none; /* Keep as Despierta, Acciona, Amplifica */
  color: var(--t-opp-bright) !important;
}

@media (max-width: 767px) {
  .mxd-services-cards-s__title h3 {
    font-size: 44px !important;
    letter-spacing: -0.01em !important;
  }
}

/* ================================================
   FOOTER ALIGNMENT FIX
   ================================================ */
.mxd-footer__footer-blocks {
  display: flex !important;
  align-items: stretch !important; /* Equal height columns */
  height: auto !important;
  gap: 20px !important; /* Smaller gap between columns */
}

.footer-blocks__column {
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  width: 33.33%; /* Ensure equal widths */
}

.footer-blocks__card {
  height: auto !important;
  flex-grow: 1; 
  display: flex !important;
  flex-direction: column !important;
  padding: 40px !important; /* Smaller, more compact padding */
  justify-content: space-between !important; /* Align content top/bottom inside the card */
  margin-bottom: 0 !important;
  border-radius: 24px !important;
}

/* Middle column gap specifically */
.footer-blocks__column:nth-child(2) {
  gap: 20px !important;
}

.footer-blocks__column:nth-child(2) .footer-blocks__card {
  flex-grow: 0 !important;
}

/* Ensure headings and links match the mock's vertical rhythm */
.footer-blocks__nav {
  margin-top: 0 !important;
}

.footer-nav__link {
  padding: 5px 0 !important;
  display: block;
}

.footer-nav__link .btn-caption {
  display: block !important;
  position: relative !important;
  height: 1.1em !important;
  overflow: hidden !important;
}

.footer-nav__link .btn-anim__block {
  display: block !important;
}

/* ================================================
   FOOTER HOVER EFFECTS (CLEAN & MINIMAL)
   ================================================ */
.footer-socials__link,
.footer-blocks__card a[href^="mailto:"],
.footer-blocks__links a {
  transition: opacity 0.3s ease !important;
  text-decoration: none !important;
  color: #000000 !important;
}

.footer-socials__link:hover,
.footer-blocks__card a[href^="mailto:"]:hover,
.footer-blocks__links a:hover {
  opacity: 0.5 !important;
}

/* ================================================
   CTA SECTION CLEANUP
   ================================================ */
.mxd-promo__bg {
  background-image: none !important;
  background-color: var(--nyra-black) !important; /* Solid black background for NYRA */
}
