/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  /* Color Palette (Official Brand Identity: Deep Navy/Teal & Elegant Gold) */
  --color-bg-dark: hsl(206, 55%, 11%);        /* #0d202e - Deep Corporate Navy/Teal */
  --color-bg-light: hsl(206, 30%, 98%);
  --color-bg-card: hsl(206, 50%, 15%);
  --color-primary: hsl(206, 55%, 11%);
  --color-primary-light: hsl(206, 40%, 18%);
  --color-accent: hsl(37, 45%, 61%);          /* Elegant Brand Gold #c5a572 */
  --color-accent-light: hsl(37, 55%, 72%);    /* Light Gold */
  --color-accent-hover: hsl(37, 48%, 50%);
  
  --color-text-light: hsl(40, 30%, 96%);
  --color-text-dark: hsl(206, 55%, 11%);
  --color-text-muted: hsl(206, 15%, 65%);
  --color-border: rgba(197, 165, 114, 0.15);  /* Subtle gold borders */
  --color-border-light: hsl(206, 15%, 85%);

  /* Typography */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Spacing & Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --transition-fast: all 0.2s ease;
  --border-radius-sm: 4px;
  --border-radius-md: 12px;
  --border-radius-lg: 24px;
  --max-width: 1280px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
/* Preloader Screen Styling */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--color-bg-dark);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s;
  opacity: 1;
  visibility: visible;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.preloader-logo {
  height: 60px;
  width: auto;
  animation: logoPulse 2s infinite ease-in-out;
}

.preloader-bar-container {
  width: 120px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.preloader-bar {
  width: 100%;
  height: 100%;
  background-color: var(--color-accent);
  position: absolute;
  left: -100%;
  animation: loadProgress 1.8s cubic-bezier(0.86, 0, 0.07, 1) forwards;
}

@keyframes logoPulse {
  0%, 100% {
    transform: scale(0.97);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.03);
    opacity: 1;
  }
}

@keyframes loadProgress {
  0% { left: -100%; }
  50% { left: -30%; }
  100% { left: 0; }
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button, input, textarea {
  font-family: inherit;
}

/* ==========================================================================
   REUSABLE UTILITIES
   ========================================================================== */
.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8rem 2rem;
}

.section-subtitle {
  font-family: var(--font-title);
  color: var(--color-accent-light);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  display: block;
  margin-bottom: 1rem;
  font-weight: 500;
}

.section-title {
  font-family: var(--font-title);
  font-size: 2.8rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.section-title span {
  color: var(--color-accent);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.2rem;
  font-family: var(--font-title);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--color-accent);
  color: var(--color-bg-dark);
}

.btn-primary:hover {
  background-color: var(--color-accent-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(212, 163, 89, 0.2);
}

/* ==========================================================================
   HEADER / NAVIGATION
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(13, 32, 46, 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}

.header-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-svg, .logo-img {
  height: 45px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  gap: 3rem;
}

.nav-link {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--color-text-muted);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--color-accent);
  transition: var(--transition-smooth);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-text-light);
}

.nav-link.active::after, .nav-link:hover::after {
  width: 100%;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav-toggle .bar {
  width: 25px;
  height: 2px;
  background-color: var(--color-text-light);
  transition: var(--transition-fast);
}

/* ==========================================================================
   HERO VIDEO BACKGROUND & CAROUSEL
   ========================================================================== */
.hero-section {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  filter: brightness(0.8);
  transform: scale(1.05); /* Slight scale to prevent edge artifacting */
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(13, 32, 46, 0.4) 0%, rgba(13, 32, 46, 0.85) 100%);
  z-index: 1;
}

.carousel-container {
  height: 100%;
  width: 100%;
  position: relative;
  z-index: 2; /* Sits on top of the video container */
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: transparent; /* Transparent so video shows through */
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), visibility 1s;
  display: flex;
  align-items: center;
  padding: 0 2rem;
  z-index: 1;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1) 0.3s, opacity 1s cubic-bezier(0.25, 1, 0.5, 1) 0.3s;
}

.carousel-slide.active .hero-content {
  transform: translateY(0);
  opacity: 1;
}

.hero-subtitle {
  font-family: var(--font-title);
  color: var(--color-accent);
  letter-spacing: 6px;
  text-transform: uppercase;
  font-size: 0.95rem;
  display: block;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero-title {
  font-family: var(--font-title);
  font-size: 4.5rem;
  line-height: 1.1;
  font-weight: 600;
  margin-bottom: 2rem;
  max-width: 850px;
}

.hero-title span {
  display: block;
  background: linear-gradient(135deg, var(--color-text-light) 0%, var(--color-accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* Controls */
.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(13, 32, 46, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: var(--color-text-light);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-fast);
}

.carousel-prev:hover, .carousel-next:hover {
  background: var(--color-accent);
  color: var(--color-bg-dark);
  border-color: var(--color-accent);
}

.carousel-prev { left: 3rem; }
.carousel-next { right: 3rem; }

.carousel-indicators {
  position: absolute;
  bottom: 3rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.indicator {
  width: 32px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition-fast);
}

.indicator.active {
  background-color: var(--color-accent);
  width: 48px;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 6rem;
  align-items: center;
}

.about-lead {
  font-size: 1.25rem;
  color: var(--color-text-light);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.about-info p {
  color: var(--color-text-muted);
  margin-bottom: 3rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat-item {
  border-left: 2px solid var(--color-accent);
  padding-left: 1.5rem;
}

.stat-number {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-accent-light);
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about-visual {
  position: relative;
}

.visual-card {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.about-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.visual-card:hover .about-img {
  transform: scale(1.05);
}

.visual-badge {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background-color: rgba(13, 32, 46, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem 2rem;
  border-radius: var(--border-radius-sm);
  max-width: calc(100% - 4rem);
}

.badge-title {
  font-family: var(--font-title);
  color: var(--color-accent-light);
  font-size: 1.1rem;
  font-weight: 600;
  display: block;
}

.badge-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ==========================================================================
   SERVICES / PORTFOLIO SECTION
   ========================================================================== */
.services-section {
  background-color: hsl(206, 55%, 9%);
}

.portfolio-filters {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-family: var(--font-title);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  padding: 0.6rem 1.2rem;
  transition: var(--transition-fast);
  border-bottom: 2px solid transparent;
}

.filter-btn:hover, .filter-btn.active {
  color: var(--color-accent-light);
  border-color: var(--color-accent);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2.5rem;
}

.portfolio-item {
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  position: relative;
  background-color: transparent;
  transition: var(--transition-smooth);
}

.portfolio-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--border-radius-sm);
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Remove portfolio-overlay and related hover effects for the new gglass style */
.portfolio-overlay {
  display: none;
}

.portfolio-cat {
  display: none;
}

.portfolio-item-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--color-accent);
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: 1px;
}

.btn-view-project {
  display: none;
}

/* End of portfolio gglass style */


.portfolio-item:hover .portfolio-cat,
.portfolio-item:hover .portfolio-item-title,
.portfolio-item:hover .btn-view-project {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: flex-start;
}

.contact-text p {
  color: var(--color-text-muted);
  margin-bottom: 4rem;
  font-size: 1.1rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-info-item {
  display: flex;
  gap: 1.5rem;
}

.info-icon {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-accent-light);
  width: 52px;
  height: 52px;
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item h4 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.contact-info-item p {
  color: var(--color-text-muted);
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Form Styles */
.contact-form-container {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 4rem;
  border-radius: var(--border-radius-md);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.form-group {
  position: relative;
  margin-bottom: 2.5rem;
}

.form-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--color-border);
  padding: 0.8rem 0;
  color: var(--color-text-light);
  font-size: 1rem;
  outline: none;
  transition: var(--transition-fast);
}

textarea.form-input {
  resize: none;
}

.form-label {
  position: absolute;
  left: 0;
  top: 0.8rem;
  color: var(--color-text-muted);
  pointer-events: none;
  transition: var(--transition-fast);
  font-size: 1rem;
}

.form-input:focus, .form-input:not(:placeholder-shown) {
  border-bottom-color: var(--color-accent-light);
}

/* Floating Label Logic */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -1.2rem;
  font-size: 0.8rem;
  color: var(--color-accent-light);
}

.btn-submit {
  width: 100%;
}

.form-message {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  text-align: center;
  font-weight: 500;
}

.form-message.success {
  color: #a3e635;
}

.form-message.error {
  color: #f87171;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.main-footer {
  background-color: hsl(206, 55%, 7%);
  border-top: 1px solid var(--color-border);
  padding: 6rem 0 3rem;
}

.footer-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 6rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  color: var(--color-text-muted);
  margin-top: 1.5rem;
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-links h4, .footer-social h4 {
  font-family: var(--font-title);
  color: var(--color-text-light);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.8rem;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--color-accent-light);
  padding-left: 5px;
}

.social-icons {
  display: flex;
  gap: 1.2rem;
}

.social-icons a {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.social-icons a:hover {
  background-color: var(--color-accent);
  color: var(--color-bg-dark);
  border-color: var(--color-accent);
  transform: translateY(-3px);
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* ==========================================================================
   LIGHTBOX OVERLAY
   ========================================================================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(8, 20, 29, 0.98);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition-smooth);
}

.lightbox[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 3rem;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-size: 3.5rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lightbox-close:hover {
  color: var(--color-accent-light);
}

.lightbox-content {
  max-width: 80%;
  max-height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  transform: scale(0.95);
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.lightbox[aria-hidden="false"] #lightbox-img {
  transform: scale(1);
}

.lightbox-details {
  margin-top: 1.5rem;
  text-align: center;
}

.lightbox-category {
  font-family: var(--font-title);
  color: var(--color-accent-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
  display: block;
  margin-bottom: 0.5rem;
}

.lightbox-title {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 500;
}

/* ==========================================================================
   SCROLL REVEAL & RESPONSIVE BREAKPOINTS
   ========================================================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(45px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

/* Directional reveal variants */
.scroll-reveal.reveal-left  { transform: translateX(-55px); }
.scroll-reveal.reveal-right { transform: translateX(55px); }
.scroll-reveal.reveal-scale { transform: scale(0.9); }
.scroll-reveal.reveal-blur  { filter: blur(8px); }

.scroll-reveal.visible {
  opacity: 1;
  transform: translate(0, 0) scale(1);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  /* Disable transitions and animations globally without breaking layout states */
  *, *::before, *::after {
    animation-delay: -1ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    background-attachment: initial !important;
    scroll-behavior: auto !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }

  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* RESPONSIVE DESIGN */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3.5rem;
  }
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 4rem;
  }
  .about-img {
    height: 400px;
  }
  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  .section-container {
    padding: 5rem 1.5rem;
  }
  .section-title {
    font-size: 2.2rem;
  }
  
  /* Header & Menu mobile */
  .mobile-nav-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background-color: var(--color-bg-dark);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: var(--transition-smooth);
    z-index: 999;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }
  
  .nav-menu.open {
    right: 0;
  }

  /* Hamburger icon transformation */
  .mobile-nav-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
  }
  .mobile-nav-toggle.open .bar:nth-child(2) {
    opacity: 0;
  }
  .mobile-nav-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .carousel-prev, .carousel-next {
    display: none;
  }
  .hero-title {
    font-size: 2.8rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .contact-form-container {
    padding: 2.5rem 1.5rem;
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ==========================================================================
   CLIENTS SECTION
   ========================================================================== */
.clients-section {
  background-color: hsl(206, 55%, 9%);
  border-top: 1px solid var(--color-border);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
}

.client-badge {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  cursor: default;
}

.client-badge:hover {
  border-color: var(--color-accent);
  transform: translateY(-6px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
}

.client-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.client-badge:hover .client-logo {
  transform: scale(1.06);
}

@media (max-width: 992px) {
  .clients-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 576px) {
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
  }
}

/* ==========================================================================
   CONTACT PAGE GRID (contacto.php)
   ========================================================================== */
.contact-detail-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: start;
}

@media (max-width: 992px) {
  .contact-detail-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ==========================================================================
   FAQ ACCORDION (contacto.php)
   ========================================================================== */
.faq-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.faq-item {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(197, 165, 114, 0.4);
}

.faq-item.open {
  border-color: var(--color-accent);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.6rem 2rem;
  cursor: pointer;
  user-select: none;
}

.faq-question span:first-child {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text-light);
}

.faq-icon {
  flex-shrink: 0;
  font-size: 1.6rem;
  font-weight: 300;
  line-height: 1;
  color: var(--color-accent);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.faq-answer p {
  padding: 0 2rem 1.8rem;
  color: var(--color-text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
  text-align: justify;
}

@media (max-width: 768px) {
  .faq-question {
    padding: 1.3rem 1.4rem;
  }
  .faq-question span:first-child {
    font-size: 1rem;
  }
  .faq-answer p {
    padding: 0 1.4rem 1.4rem;
  }
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1500;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
  animation: whatsappPulse 2.6s infinite;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
  color: #fff;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

@keyframes whatsappPulse {
  0% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45), 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 54px;
    height: 54px;
    bottom: 1.2rem;
    right: 1.2rem;
  }
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    animation: none;
  }
}

/* ==========================================================================
   ANIMATION ENHANCEMENTS — HERO KEN BURNS, BUTTON SHINE, PORTFOLIO HOVER
   ========================================================================== */

/* Subtle Ken Burns / pan on the active hero slide */
.carousel-slide.active {
  animation: heroPan 12s ease-in-out infinite alternate;
}

@keyframes heroPan {
  from { background-position: center 42%; }
  to   { background-position: center 58%; }
}

/* Animated gradient sweep over the hero title accent */
.hero-title span {
  background-size: 200% auto;
  animation: shimmer 6s linear infinite;
}

@keyframes shimmer {
  to { background-position: 200% center; }
}

/* Shine sweep on primary buttons */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.btn-primary:hover::after {
  left: 130%;
}

/* Richer portfolio card hover */
.portfolio-item {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover {
  transform: translateY(-8px);
}

.portfolio-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 32, 46, 0.85) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.portfolio-item:hover .portfolio-image-wrapper::after {
  opacity: 1;
}

.portfolio-img {
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.09);
}

/* "Ver solución" badge that slides up on hover */
.portfolio-image-wrapper .portfolio-cta {
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  z-index: 2;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-accent-light);
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.portfolio-item:hover .portfolio-cta {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-cta .arrow {
  transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-cta .arrow {
  transform: translateX(5px);
}

.portfolio-item-title {
  transition: color 0.3s ease;
}

.portfolio-item:hover .portfolio-item-title {
  color: var(--color-accent-light);
}

/* ==========================================================================
   "WHY CHOOSE US" — VALUE PROPOSITIONS
   ========================================================================== */
.why-section {
  background-color: var(--color-bg-dark);
  border-top: 1px solid var(--color-border);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.why-card {
  background: linear-gradient(160deg, var(--color-bg-card) 0%, hsl(206, 50%, 12%) 100%);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 2.5rem 2rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.why-card:hover {
  transform: translateY(-10px);
  border-color: rgba(197, 165, 114, 0.4);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
}

.why-card:hover::before {
  transform: scaleX(1);
}

.why-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--border-radius-md);
  background-color: rgba(197, 165, 114, 0.1);
  border: 1px solid var(--color-border);
  color: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.8rem;
  transition: var(--transition-smooth);
}

.why-card:hover .why-icon {
  background-color: var(--color-accent);
  color: var(--color-bg-dark);
  transform: rotate(-6deg) scale(1.05);
}

.why-card h3 {
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: var(--color-text-light);
}

.why-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Animated stats band */
.impact-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.impact-stat .impact-number {
  font-family: var(--font-title);
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 0.6rem;
}

.impact-stat .impact-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

@media (max-width: 992px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .impact-stats { grid-template-columns: repeat(2, 1fr); gap: 3rem 2rem; }
}

@media (max-width: 576px) {
  .why-grid { grid-template-columns: 1fr; }
  .impact-stats { grid-template-columns: 1fr 1fr; }
  .impact-stat .impact-number { font-size: 2.4rem; }
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials-section {
  background-color: hsl(206, 55%, 9%);
  border-top: 1px solid var(--color-border);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.testimonial-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 2.5rem;
  position: relative;
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-8px);
  border-color: rgba(197, 165, 114, 0.4);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3);
}

.testimonial-quote-mark {
  font-family: var(--font-title);
  font-size: 5rem;
  line-height: 0.8;
  color: var(--color-accent);
  opacity: 0.25;
  margin-bottom: 0.5rem;
}

.testimonial-stars {
  color: var(--color-accent);
  letter-spacing: 3px;
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
}

.testimonial-text {
  color: var(--color-text-light);
  font-size: 1rem;
  line-height: 1.7;
  font-weight: 300;
  margin-bottom: 1.8rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
  color: var(--color-bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.testimonial-author .name {
  font-family: var(--font-title);
  font-weight: 600;
  color: var(--color-text-light);
  display: block;
}

.testimonial-author .role {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

@media (max-width: 992px) {
  .testimonials-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

/* ==========================================================================
   CTA BAND (PRE-FOOTER)
   ========================================================================== */
.cta-band {
  position: relative;
  background-image: linear-gradient(rgba(13, 32, 46, 0.92), rgba(8, 20, 29, 0.96)), url('assets/general/hero.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  text-align: center;
  overflow: hidden;
}

.cta-band .section-container {
  position: relative;
  z-index: 2;
}

.cta-band h2 {
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band h2 span { color: var(--color-accent); }

.cta-band p {
  color: var(--color-text-muted);
  font-size: 1.15rem;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline {
  background: transparent;
  color: var(--color-text-light);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--color-accent);
  color: var(--color-accent-light);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .cta-band { background-attachment: scroll; }
  .cta-band h2 { font-size: 2rem; }
}

/* ==========================================================================
   SOLUTION FEATURE ROWS (soluciones.php) — gglass-style alternating layout
   ========================================================================== */
.category-block {
  padding: 6rem 0;
}
.category-block:nth-of-type(even) {
  background-color: hsl(206, 55%, 9%);
}

.category-intro {
  text-align: center;
  margin-bottom: 5rem;
}
.category-intro .section-title {
  font-size: 2.4rem;
}

.solution-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
  margin-bottom: 6rem;
}
.solution-row:last-child {
  margin-bottom: 0;
}
.solution-row.reverse .solution-media {
  order: 2;
}

/* Media */
.solution-media {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}
.solution-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  pointer-events: none;
}
.solution-media img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.solution-media:hover img {
  transform: scale(1.06);
}
.solution-index {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 2;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--color-bg-dark);
  background-color: var(--color-accent);
  padding: 0.4rem 0.9rem;
  border-radius: var(--border-radius-sm);
}

/* Content */
.solution-content .solution-cat {
  font-family: var(--font-title);
  color: var(--color-accent-light);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  display: block;
  margin-bottom: 0.8rem;
}
.solution-content h3 {
  font-family: var(--font-title);
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  color: var(--color-text-light);
}
.solution-content p {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.8rem;
}

/* Specs list with check icons */
.solution-specs {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.5rem;
  margin-bottom: 2rem;
}
.solution-specs li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: var(--color-text-light);
  font-size: 0.92rem;
  line-height: 1.4;
}
.solution-specs li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  background-color: rgba(197, 165, 114, 0.12);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d8c08f'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 13px;
}

.solution-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-accent);
}
.solution-link .arrow {
  transition: transform 0.4s ease;
}
.solution-link:hover {
  color: var(--color-accent-light);
}
.solution-link:hover .arrow {
  transform: translateX(6px);
}

@media (max-width: 900px) {
  .solution-row {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4.5rem;
  }
  .solution-row.reverse .solution-media {
    order: 0;
  }
  .solution-media img {
    height: 320px;
  }
  .solution-specs {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   SOLUTION CARDS GRID (soluciones.php)
   ========================================================================== */
.solutions-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.solution-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease, border-color 0.3s ease;
}

.solution-card:hover {
  transform: translateY(-10px);
  border-color: rgba(197, 165, 114, 0.45);
  box-shadow: 0 28px 55px rgba(0, 0, 0, 0.4);
}

.solution-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.solution-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.solution-card:hover .solution-card-media img {
  transform: scale(1.08);
}

.solution-card-badge {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  background-color: var(--color-accent);
  color: var(--color-bg-dark);
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.solution-card:hover .solution-card-badge {
  opacity: 1;
  transform: translateY(0);
}

.solution-card-badge .arrow { transition: transform 0.3s ease; }
.solution-card:hover .solution-card-badge .arrow { transform: translateX(4px); }

.solution-card-body {
  padding: 1.6rem 1.8rem 2rem;
}

.solution-card-body h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: 0.6rem;
  transition: color 0.3s ease;
}

.solution-card:hover .solution-card-body h3 {
  color: var(--color-accent-light);
}

.solution-card-body p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

@media (max-width: 992px) {
  .solutions-cards { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}
@media (max-width: 600px) {
  .solutions-cards { grid-template-columns: 1fr; }
}

/* ==========================================================================
   PRODUCT PAGE (producto.php)
   ========================================================================== */
.product-hero {
  background-color: var(--color-bg-dark);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 3rem;
}
.breadcrumb a { color: var(--color-text-muted); transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--color-accent-light); }
.breadcrumb strong { color: var(--color-accent-light); font-weight: 500; }
.breadcrumb span { opacity: 0.4; }

.product-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}

.product-media {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  cursor: zoom-in;
}
.product-media img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.product-media:hover img { transform: scale(1.05); }

.product-title {
  font-family: var(--font-title);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1.15;
  margin: 0.6rem 0 1.4rem;
}
.product-desc {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2.2rem;
}
.specs-heading {
  font-family: var(--font-title);
  font-size: 1.1rem;
  color: var(--color-accent-light);
  margin-bottom: 1.3rem;
  font-weight: 600;
}
.product-info .solution-specs { margin-bottom: 2.5rem; }

.product-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .product-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .product-media img { height: 300px; }
  .product-title { font-size: 2rem; }
}

/* Gallery */
.product-gallery-section { background-color: hsl(206, 55%, 9%); }
.product-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.gallery-thumb {
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-thumb::after {
  content: '+';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 300;
  color: #fff;
  background-color: rgba(13, 32, 46, 0.55);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.gallery-thumb:hover img { transform: scale(1.1); }
.gallery-thumb:hover::after { opacity: 1; }

@media (max-width: 768px) {
  .product-gallery { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

/* Prev / Next navigation */
.product-nav-section { background-color: var(--color-bg-dark); border-top: 1px solid var(--color-border); }
.product-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.product-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  padding: 1.4rem 1.8rem;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  transition: var(--transition-smooth);
}
.product-nav-link.next { text-align: right; align-items: flex-end; }
.product-nav-link:hover {
  border-color: var(--color-accent);
  transform: translateY(-4px);
}
.product-nav-link .nav-dir {
  font-family: var(--font-title);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
}
.product-nav-link .nav-name {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-light);
}
.product-nav-link .arrow { transition: transform 0.3s ease; display: inline-block; }
.product-nav-link.prev:hover .arrow { transform: translateX(-5px); }
.product-nav-link.next:hover .arrow { transform: translateX(5px); }
.product-nav-all {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-accent-light);
  transition: var(--transition-smooth);
}
.product-nav-all:hover {
  background-color: var(--color-accent);
  color: var(--color-bg-dark);
  transform: translateY(-4px);
}

@media (max-width: 600px) {
  .product-nav { gap: 0.8rem; }
  .product-nav-link { padding: 1rem; }
  .product-nav-link .nav-name { font-size: 0.9rem; }
  .product-nav-all { display: none; }
}

/* Gallery Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2500;
  background-color: rgba(8, 20, 29, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.gallery-lightbox[aria-hidden="false"] { opacity: 1; pointer-events: auto; }
#gl-img {
  max-width: 82vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
  transform: scale(0.96);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.gallery-lightbox[aria-hidden="false"] #gl-img { transform: scale(1); }
.gl-close, .gl-prev, .gl-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}
.gl-close {
  top: 1.5rem; right: 1.5rem;
  width: 50px; height: 50px; border-radius: 50%;
  font-size: 2rem;
}
.gl-prev, .gl-next {
  top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px; border-radius: 50%;
  font-size: 2.2rem;
}
.gl-prev { left: 2rem; }
.gl-next { right: 2rem; }
.gl-close:hover, .gl-prev:hover, .gl-next:hover {
  background: var(--color-accent); color: var(--color-bg-dark); border-color: var(--color-accent);
}
.gl-counter {
  position: absolute;
  bottom: 2rem; left: 50%; transform: translateX(-50%);
  color: var(--color-text-muted);
  font-family: var(--font-title);
  letter-spacing: 2px;
  font-size: 0.9rem;
}
@media (max-width: 768px) {
  .gl-prev { left: 0.8rem; } .gl-next { right: 0.8rem; }
  .gl-prev, .gl-next { width: 46px; height: 46px; font-size: 1.8rem; }
}

/* ==========================================================================
   PRODUCT PAGE — TAGS, FICHA TÉCNICA, RELACIONADOS
   ========================================================================== */
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}
.product-tag {
  font-family: var(--font-title);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--color-accent-light);
  background-color: rgba(197, 165, 114, 0.1);
  border: 1px solid var(--color-border);
  padding: 0.4rem 0.95rem;
  border-radius: 50px;
}

.ficha-tecnica {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 4rem;
  background-color: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}
.ficha-item {
  background-color: var(--color-bg-card);
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ficha-label {
  font-family: var(--font-title);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
}
.ficha-value {
  color: var(--color-text-light);
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .ficha-tecnica { grid-template-columns: 1fr 1fr; margin-top: 2.5rem; }
}

.related-section {
  background-color: var(--color-bg-dark);
}

/* ==========================================================================
   BENEFITS LIST WITH ICONS (producto.php)
   ========================================================================== */
.benefits-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
  margin-bottom: 2.5rem;
}
.benefits-list li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.35;
}
.benefit-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(197, 165, 114, 0.12);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-light);
  transition: var(--transition-fast);
}
.benefit-icon svg {
  width: 20px;
  height: 20px;
}
.benefits-list li:hover .benefit-icon {
  background-color: var(--color-accent);
  color: var(--color-bg-dark);
}

@media (max-width: 768px) {
  .benefits-list { grid-template-columns: 1fr; }
}

/* ==========================================================================
   CATEGORY BAR (soluciones.php) — sticky navigation between categories
   ========================================================================== */
.category-bar {
  position: sticky;
  top: 84px;
  z-index: 900;
  background-color: rgba(13, 32, 46, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.category-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-bar-inner::-webkit-scrollbar { display: none; }
.cat-link {
  white-space: nowrap;
  padding: 1.1rem 1.3rem;
  font-family: var(--font-title);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-bottom: 2px solid transparent;
  transition: var(--transition-fast);
}
.cat-link:hover { color: var(--color-accent-light); }
.cat-link.active {
  color: var(--color-accent-light);
  border-color: var(--color-accent);
}

/* Compensar el header fijo + la barra al saltar a un ancla */
.category-block { scroll-margin-top: 160px; }

@media (max-width: 768px) {
  .category-bar { top: 76px; }
  .cat-link { padding: 0.9rem 1rem; font-size: 0.82rem; }
  .category-block { scroll-margin-top: 140px; }
}

/* ==========================================================================
   PROJECTS PAGE (proyectos.php)
   ========================================================================== */
.project-block {
  padding: 4rem 0;
  border-bottom: 1px solid var(--color-border);
}
.project-block:last-of-type { border-bottom: none; }

.project-head {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: 2.2rem;
}
.project-num {
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--color-accent);
  display: block;
  margin-bottom: 0.4rem;
}
.project-name {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
  line-height: 1.1;
}
.project-loc {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-accent-light);
  font-size: 0.9rem;
}
.project-desc {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.proj-thumb {
  border: none;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
}
.proj-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.proj-thumb::after {
  content: '+';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 2.4rem;
  font-weight: 300;
  color: #fff;
  background-color: rgba(13, 32, 46, 0.45);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.proj-thumb:hover img { transform: scale(1.08); }
.proj-thumb:hover::after { opacity: 1; }

@media (max-width: 768px) {
  .project-head { grid-template-columns: 1fr; gap: 0.8rem; align-items: start; }
  .project-name { font-size: 1.6rem; }
  .project-gallery { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
}

/* ==========================================================================
   PROCESS SECTION (index.php)
   ========================================================================== */
.process-section { background-color: var(--color-bg-dark); border-top: 1px solid var(--color-border); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
}
.process-step {
  position: relative;
  text-align: center;
  padding: 0 0.5rem;
}
/* línea conectora entre pasos (escritorio) */
.process-step:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 38px;
  left: calc(50% + 45px);
  width: calc(100% - 90px);
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
  opacity: 0.5;
}
.process-icon {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  margin: 0 auto 1.4rem;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  transition: var(--transition-smooth);
}
.process-step:hover .process-icon {
  background-color: var(--color-accent);
  color: var(--color-bg-dark);
  transform: translateY(-5px);
}
.process-num {
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
}
.process-step h3 {
  font-family: var(--font-title);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text-light);
  margin-bottom: 0.6rem;
}
.process-step p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .process-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem 1rem; }
  .process-step::before { display: none; }
}
@media (max-width: 460px) {
  .process-grid { grid-template-columns: 1fr; }
}

/* Mapa de ubicación (contacto.php) */
.map-wrap {
  margin-top: 4rem;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  line-height: 0;
}
.map-wrap iframe { display: block; filter: grayscale(0.3) contrast(1.05); }

/* ==========================================================================
   LANGUAGE SWITCHER (ES / EN)
   ========================================================================== */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-title);
  font-size: 0.85rem;
  letter-spacing: 1px;
}
.lang-switch a {
  color: var(--color-text-muted);
  padding: 0.2rem 0.1rem;
  transition: var(--transition-fast);
}
.lang-switch a:hover { color: var(--color-accent-light); }
.lang-switch a.active { color: var(--color-accent); font-weight: 600; }
.lang-sep { color: var(--color-text-muted); opacity: 0.4; }
@media (max-width: 768px) {
  .lang-switch { margin-top: 1.5rem; font-size: 1rem; }
}
