/* ============================================================
   STAT COUNTER – numbers & suffix on same row
   ============================================================ */
.stat-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  line-height: 1;
}

/* ============================================================
   3D GALLERY CAROUSEL – LEGIBILITY EDITION (16:9)
   ============================================================ */
.gallery-3d-wrapper {
  position: relative;
  width: 100%;
  max-width: 1400px;
  margin: 40px auto;
  perspective: 2000px; 
  overflow: visible;
  padding: 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Stage Floor Effect */
.gallery-3d-wrapper::after {
  content: '';
  position: absolute;
  bottom: 0px; 
  left: 50%;
  transform: translateX(-50%);
  width: 85%;
  height: 40px;
  background: radial-gradient(ellipse at center, rgba(0, 229, 160, 0.12) 0%, transparent 70%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}

.gallery-3d-container {
  position: relative;
  width: 100%;
  height: 560px; /* Increased to accommodate 16:9 items */
  transform-style: preserve-3d;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

/* 16:9 Items – NO CROPPING */
.gallery-3d-item {
  position: absolute;
  width: 860px;  /* Standard proportional width */
  height: 484px; /* Exact 16:9 aspect ratio */
  transition: all 0.8s cubic-bezier(0.25, 1, 0.35, 1);
  cursor: pointer;
  user-select: none;
  z-index: 1;
  opacity: 0;
  transform: translate3d(0, 0, -500px);
  pointer-events: none;
}

/* Interactive States */
.gallery-3d-item.active {
  z-index: 100;
  opacity: 1;
  transform: translate3d(0, 0, 150px);
  filter: none;
  pointer-events: auto;
}

.gallery-3d-item.prev {
  z-index: 50;
  opacity: 0.5;
  transform: translate3d(-420px, 0, -150px) rotateY(35deg);
  filter: brightness(0.5) blur(2px);
}

.gallery-3d-item.next {
  z-index: 50;
  opacity: 0.5;
  transform: translate3d(420px, 0, -150px) rotateY(-35deg);
  filter: brightness(0.5) blur(2px);
}

.gallery-3d-item.far-prev {
  z-index: 10;
  opacity: 0.15;
  transform: translate3d(-700px, 0, -400px) rotateY(45deg);
}

.gallery-3d-item.far-next {
  z-index: 10;
  opacity: 0.15;
  transform: translate3d(700px, 0, -400px) rotateY(-45deg);
}

/* Card Style */
.item-card {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.5);
  background: var(--navy-mid, #07101f); /* Base theme color */
}

/* Blurred background layer */
.card-bg-blur {
  position: absolute;
  inset: -30px;
  background-size: cover;
  background-position: center;
  filter: blur(45px) brightness(0.6);
  opacity: 0.7;
  z-index: 1;
  pointer-events: none;
  transition: background-image 0.5s ease;
}

.item-card img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain; /* Full screenshots, no cropping */
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Zoom Indicator on Hover */
.zoom-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: rgba(0, 229, 160, 0.9);
  color: #07101f;
  padding: 12px 24px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.9rem;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0, 229, 160, 0.4);
}

.gallery-3d-item.active:hover .zoom-indicator {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Minimalist Info Panel Below Header */
.gallery-info-panel {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px;
  padding: 0;
  background: transparent;
  border: none;
  backdrop-filter: none;
}

.gallery-info-panel h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--green, #00e5a0);
  letter-spacing: -0.02em;
}

.gallery-info-panel p {
  font-size: 1.1rem;
  color: var(--text-2, #8fa5c0);
  line-height: 1.6;
  opacity: 0.9;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(7, 16, 31, 0.85); /* Use navy theme with opacity */
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox-modal[aria-hidden="false"] {
  display: flex;
}

/* Dynamic blurred background for lightbox */
.lightbox-bg-blur {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(80px) brightness(0.4);
  opacity: 0.6;
  z-index: -1;
}

.lightbox-content {
  position: relative;
  max-width: 92%;
  max-height: 82%;
  border-radius: 14px;
  box-shadow: 0 0 60px rgba(0, 229, 160, 0.25);
  z-index: 2001;
  border: 1px solid rgba(255, 255, 255, 0.08); /* Minimalist subtle border */
}

.close-lightbox {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 50px;
  font-weight: 300;
  cursor: pointer;
  transition: 0.3s;
}

.close-lightbox:hover {
  color: var(--green, #00e5a0);
  transform: scale(1.1);
}

.lightbox-caption {
  margin-top: 20px;
  color: #fff;
  font-size: 1.5rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
}

/* Minimalist Controls */
.gallery-3d-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 50px;
}

.ctrl-btn {
  background: rgba(0, 229, 160, 0.05);
  border: 1px solid rgba(0, 229, 160, 0.1);
  color: var(--green, #00e5a0);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ctrl-btn:hover {
  background: var(--green, #00e5a0);
  color: #000;
  transform: scale(1.1);
}

.gallery-3d-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-3d-dots .dot.active {
  background: var(--green, #00e5a0);
  width: 35px;
  border-radius: 10px;
}

/* Responsive */
@media (max-width: 1200px) {
  .gallery-3d-item {
    width: 700px;
    height: 394px;
  }
  .gallery-3d-item.prev { transform: translate3d(-300px, 0, -150px) rotateY(35deg); }
  .gallery-3d-item.next { transform: translate3d(300px, 0, -150px) rotateY(-35deg); }
}

@media (max-width: 768px) {
  .gallery-3d-container { height: 320px; }
  .gallery-3d-item { 
    width: 88vw; 
    height: auto; 
    aspect-ratio: 16/9; 
    transition-duration: 0.5s; /* Snappier on mobile */
  }
  .gallery-3d-item.active { transform: translate3d(0, 0, 40px); }
  .gallery-3d-item.prev { transform: translate3d(-18%, 0, -80px) rotateY(20deg); }
  .gallery-3d-item.next { transform: translate3d(18%, 0, -80px) rotateY(-20deg); }
  .gallery-3d-item.far-prev, .gallery-3d-item.far-next { display: none; }
  .gallery-info-panel h3 { font-size: 1.4rem; padding: 0 20px; }
  .gallery-info-panel p { font-size: 0.85rem; padding: 0 30px; }
  
  .zoom-indicator { display: none; } /* No hover on touch */
}

@media (max-width: 480px) {
  .gallery-3d-container { height: 240px; }
  .gallery-3d-wrapper { padding: 10px 0; }
  .gallery-3d-controls { gap: 12px; }
  .ctrl-btn { width: 40px; height: 40px; }
  .gallery-info-panel h3 { font-size: 1.15rem; margin-top: 10px; }
  .gallery-info-panel p { font-size: 0.8rem; padding: 0 16px; line-height: 1.3; }
}

@media (max-width: 340px) {
  .gallery-3d-container { height: 200px; }
  .gallery-3d-item { width: 85vw; }
}


/* ============================================================
   PREMIUM CONTACT / BOOKING SECTION
   ============================================================ */
.contact-premium {
  position: relative;
  background: var(--navy);
  overflow: hidden;
  padding: 120px 0;
}

.contact-glow-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, var(--green-glow) 0%, transparent 50%),
              radial-gradient(circle at 20% 80%, rgba(0, 229, 160, 0.05) 0%, transparent 40%);
  pointer-events: none;
  z-index: 1;
}

.contact-split-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Content Side */
.title-accent {
  color: var(--green);
  position: relative;
  display: inline-block;
}

.title-accent::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 0;
  width: 100%;
  height: 8px;
  background: var(--green-glow);
  z-index: -1;
}

.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
}

.benefit-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  align-items: flex-start;
}

.benefit-icon {
  width: 24px;
  height: 24px;
  background: var(--green);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 900;
  flex-shrink: 0;
  box-shadow: 0 4px 12px var(--green-glow);
}

.benefit-text {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.5;
}

.benefit-text strong {
  color: var(--text-1);
  display: block;
  margin-bottom: 2px;
}

.live-demo-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 229, 160, 0.08);
  border: 1px solid rgba(0, 229, 160, 0.2);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  background: var(--green);
  border-radius: 50%;
  opacity: 0.4;
  animation: pulseTag 2s infinite;
}

@keyframes pulseTag {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* Card Side - Glassmorphism */
.booking-card-premium {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.4);
  transition: transform 0.4s ease, border-color 0.4s ease;
  position: relative;
  z-index: 10;
}

[data-theme="light"] .booking-card-premium {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 30px 60px -12px rgba(15, 23, 42, 0.12);
}

.booking-card-premium:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 229, 160, 0.3);
}

.booking-glass-header {
  padding: 48px 40px 32px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .booking-glass-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.booking-icon-large {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.booking-logo-img {
  width: 120px;
  height: auto;
  /* Multi-layered shadow to create a crisp white outline for dark backgrounds */
  filter: drop-shadow(1px 1px 0px rgba(255, 255, 255, 0.8)) 
          drop-shadow(-1px -1px 0px rgba(255, 255, 255, 0.8))
          drop-shadow(1px -1px 0px rgba(255, 255, 255, 0.8))
          drop-shadow(-1px 1px 0px rgba(255, 255, 255, 0.8))
          drop-shadow(0 10px 20px rgba(0, 229, 160, 0.2));
  transition: transform 0.4s var(--ease);
}

[data-theme="light"] .booking-logo-img {
  /* Cleaner shadow for light mode where white outline isn't needed */
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.booking-card-premium:hover .booking-logo-img {
  transform: scale(1.05);
}

.booking-glass-header h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-1);
  margin-bottom: 8px;
}

.booking-glass-header p {
  font-size: 0.95rem;
  color: var(--text-2);
}

.booking-card-body {
  padding: 40px;
}

.btn-premium-cta {
  height: 64px;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.booking-footer {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 600;
}

.form-disclaimer {
  font-size: 0.75rem;
  color: var(--text-3);
  text-align: center;
  opacity: 0.8;
}

/* Responsive Redesign */
@media (max-width: 1024px) {
  .contact-split-grid {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  
  .contact-content-side {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .contact-content-side .section-label,
  .contact-content-side .section-title,
  .contact-content-side .section-subtitle {
    text-align: center !important;
    justify-content: center !important;
  }
  
  .benefit-list {
    text-align: left;
    max-width: 500px;
  }
}

@media (max-width: 640px) {
  .contact-premium { padding: 80px 0; }
  .booking-card-premium { border-radius: 20px; }
  .booking-glass-header { padding: 40px 24px 24px; }
  .booking-card-body { padding: 32px 20px; }
  .btn-premium-cta { height: 56px; font-size: 1rem; }
}

/* ============================================================
   BRAND LOGO ENHANCEMENTS (Nav & Footer)
   ============================================================ */
.nav-logo-img,
.footer-logo-img {
  height: 32px;
  width: auto;
  transition: filter 0.3s ease, transform 0.3s ease;
  /* Smoother white outline for dark mode */
  filter: drop-shadow(1px 0 0 rgba(255, 255, 255, 0.9)) 
          drop-shadow(-1px 0 0 rgba(255, 255, 255, 0.9))
          drop-shadow(0 1px 0 rgba(255, 255, 255, 0.9))
          drop-shadow(0 -1px 0 rgba(255, 255, 255, 0.9))
          drop-shadow(0.5px 0.5px 0 rgba(255, 255, 255, 0.9))
          drop-shadow(-0.5px -0.5px 0 rgba(255, 255, 255, 0.9));
}

/* Navbar button spacing adjustment since it replaces the 'Contacto' link */
.nav-links .btn-cta-nav {
  margin-left: 20px;
  white-space: nowrap;
}

/* Footer layout adjustment */
.footer-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}


/* Light mode overrides - remove white outline */
[data-theme="light"] .nav-logo-img,
[data-theme="light"] .footer-logo-img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

/* Footer logo slightly larger for branding */
.footer-logo-img {
  height: 36px;
}

/* Hover effect for brand logos */
.nav-logo:hover .nav-logo-img,
.footer-logo-wrapper:hover .footer-logo-img {
  transform: scale(1.1) rotate(-5deg);
}

/* Side-drawer item staggered animation */
.mobile-menu.open .mobile-link {
  animation: slideInMenuItem 0.4s var(--ease) forwards;
  opacity: 0;
  transform: translateX(20px);
}

.mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.1s; }
.mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.15s; }
.mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.2s; }
.mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.25s; }
.mobile-menu.open .mobile-link:nth-child(5) { animation-delay: 0.3s; }

@keyframes slideInMenuItem {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 420px) {
  .hero-title { font-size: 2.1rem !important; }
  .hero-subtitle { font-size: 0.85rem !important; }
  .section-title { font-size: 1.7rem !important; }
  .section-container { padding: 60px 16px; }
}

/* Tablet split layout refinement */
@media (min-width: 769px) and (max-width: 1024px) {
  .contact-split-grid {
    gap: 40px;
  }
}



.footer-contact-info {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green-dim);
  opacity: 0.8;
  margin-top: 8px;
  margin-bottom: 2px;
}


