/* ============================================
   SAPIRIO — Sistema de diseño "Modern Architecture"
   Adaptación Premium a Vanilla CSS
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

/* ---- Variables de marca (M3 Palette) ---- */
:root {
  --c-primary:    #004690;   
  --c-primary-container: #005dbb;
  --c-on-primary: #ffffff;
  
  --c-bg:         #f7fafc;   
  --c-surface:    #f7fafc;
  --c-surface-low: #f1f4f6;
  --c-surface-container: #ebeef0;
  --c-surface-high: #e5e9eb;

  --c-text-main:  #181c1e;   /* on-surface */
  --c-text-sec:   #48626e;   /* secondary */
  --c-text-muted: #727783;   /* outline */
  
  --c-border:     #e0e3e5;
  --c-border-subtle: #f1f4f6;

  /* Tipografía */
  --font-header: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Inter', sans-serif;

  /* Radios */
  --r-sm: 4px;
  --r-md: 8px;    
  --r-lg: 12px;   
  --r-xl: 24px;   

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  --max-w: 1440px;
  --nav-h: 72px;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-header); border: none; background: none; }

/* ---- Tipografía ---- */
h1, h2, h3, h4 {
  font-family: var(--font-header);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1.5rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
p  { font-size: 1.125rem; margin-bottom: 1.25rem; line-height: 1.7; }
p:last-child { margin-bottom: 0; }

/* ---- Utilitarios de Espaciado ---- */
.mt-8  { margin-top: 8px !important; }
.mt-16 { margin-top: 16px !important; }
.mt-24 { margin-top: 24px !important; }
.mt-32 { margin-top: 32px !important; }
.mt-48 { margin-top: 48px !important; }
.mt-64 { margin-top: 64px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-24 { margin-bottom: 24px !important; }
.mb-32 { margin-bottom: 32px !important; }

/* ---- Iconos ---- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}

/* ---- Layout ---- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 32px; }
.section    { padding: 96px 0; }
.section--surface { background: var(--c-surface-low); }

/* ---- Navbar Modern Architecture ---- */
.navbar {
  position: fixed; top: 0; width: 100%; z-index: 100;
  height: var(--nav-h);
  background: rgba(247, 250, 252, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border-subtle);
  display: flex; align-items: center;
}
.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 32px;
}
.navbar__logo {
  display: flex; align-items: center;
}
.navbar__logo img {
  height: 64px;
  width: auto;
  display: block;
}
@media (max-width: 768px) {
  .navbar__logo img {
    height: 50px;
  }
}

.navbar__nav { 
  display: flex; align-items: center; gap: 24px; 
  font-family: var(--font-header); height: 100%;
}
.navbar__link {
  font-weight: 700; font-size: 0.95rem; color: var(--c-text-sec);
  transition: all .2s; display: flex; align-items: center; gap: 4px;
}
.navbar__link:hover { color: var(--c-primary); }

/* ---- Dropdowns (Escritorio) ---- */
.has-dropdown { position: relative; height: 100%; display: flex; align-items: center; }
.navbar__dropdown {
  position: absolute; top: calc(var(--nav-h) - 10px); left: 0;
  background: #fff; min-width: 200px; border-radius: var(--r-md);
  box-shadow: var(--shadow-md); opacity: 0; visibility: hidden;
  transform: translateY(10px); transition: .3s;
  padding: 16px 0; z-index: 110;
}
.navbar__dropdown li a {
  display: block; padding: 12px 24px; font-weight: 700; font-size: 0.9rem;
  color: var(--c-text-main); transition: background .2s;
}
.navbar__dropdown li a:hover { background: var(--c-surface-low); color: var(--c-primary); }
.has-dropdown:hover .navbar__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-arrow { font-size: 1.25rem !important; opacity: 0.5; }

/* ---- Menú Móvil y Hamburguesa ---- */
.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 100;
}
.navbar__burger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--c-primary);
  border-radius: 99px;
  transition: transform 0.3s, opacity 0.3s;
}

.navbar__mobile {
  display: none; /* Oculto por defecto */
  overflow-y: auto;
}

.mobile-group { border-top: 1px solid var(--c-border-subtle); padding-top: 16px; margin-top: 16px; }
.mobile-group__title {
  display: block; font-weight: 800; font-size: 0.75rem; color: var(--c-primary);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px;
}

@media (max-width: 1024px) {
  .navbar__nav, .navbar__actions { display: none; }
  .navbar__burger { display: flex; }
  
  .navbar__mobile {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--nav-h));
    background: #fff;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99;
    box-shadow: var(--shadow-xl);
  }
  
  .navbar__mobile .navbar__link {
    font-size: 1.25rem;
    color: var(--c-text-main);
  }
  
  .navbar__mobile.open {
    display: flex;
    transform: translateX(0);
  }
}


/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 1rem;
  padding: 16px 32px; border-radius: var(--r-md);
  transition: all .2s;
}
.btn--primary {
  background: linear-gradient(135deg, var(--c-primary), var(--c-primary-container));
  color: #fff;
}
.btn--primary:hover { transform: scale(1.02); box-shadow: var(--shadow-md); }
.btn--primary:active { transform: scale(0.98); }
.btn--secondary:active { transform: scale(0.98); }
.btn--secondary { background: var(--c-surface-high); color: var(--c-primary); }
.btn--outline {
  border: 2px solid var(--c-primary);
  color: var(--c-primary);
  background: transparent;
}
.btn--outline:hover {
  background: var(--c-primary);
  color: #fff !important;
}
.btn--lg { padding: 20px 48px; font-size: 1.15rem; border-radius: var(--r-lg); }

.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .btn-group {
    flex-direction: column;
    width: 100%;
  }
  .btn-group .btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---- Hero Section ---- */
.hero { padding: 160px 0 100px; background: var(--c-surface); }
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: center; }
.hero__badge {
  display: inline-block; padding: 6px 14px; background: #cbe7f5; color: #021f29;
  font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.15em;
  border-radius: 99px; margin-bottom: 24px;
}
.hero__title { margin-bottom: 32px; }
.hero__text { margin-bottom: 48px; max-width: 540px; }
.hero__image-container { position: relative; overflow: visible; }
.hero__image-bg {
  position: absolute; inset: 0; background: var(--c-surface-low);
  border-radius: var(--r-xl); transform: rotate(-2deg) scale(1.05);
  z-index: -1;
}
.trustindex-widget-container {
  overflow: hidden;
  width: 100%;
}
.hero__image {
  position: relative; width: 100%; height: 600px;
  object-fit: cover; border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
}
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 60px; }
  .hero__image { height: 400px; }
}

/* ---- Stats Bar ---- */
.stats-bar { padding: 48px 0; background: var(--c-surface-low); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat-item { border-left: 1px solid rgba(0,0,0,0.05); padding-left: 32px; }
.stat-item:first-child { border-left: none; padding-left: 0; }
.stat-item__num { font-size: 2.25rem; font-weight: 900; color: var(--c-primary); margin-bottom: 4px; display: block; }
.stat-item__label { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; color: var(--c-text-sec); letter-spacing: 0.1em; }
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .stat-item { border-left: none; padding-left: 0; text-align: center; }
}

/* ---- Product Cards ---- */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.product-card { 
  cursor: pointer; 
  text-decoration: none; 
  color: inherit; 
  display: block;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover { transform: translateY(-8px); }
.product-card__img-box { aspect-ratio: 4/5; overflow: hidden; background: var(--c-surface-container); border-radius: var(--r-lg); margin-bottom: 24px; box-shadow: var(--shadow-sm); transition: box-shadow 0.3s; }
.product-card:hover .product-card__img-box { box-shadow: var(--shadow-xl); }
.product-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s; }
.product-card:hover .product-card__img { transform: scale(1.05); }
.product-card h3 { margin-bottom: 12px; transition: color 0.3s; }
.product-card:hover h3 { color: var(--c-primary); }
.product-card__link { color: var(--c-primary); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; transition: gap .2s; }
.product-card:hover .product-card__link { gap: 12px; }
@media (max-width: 900px) { .product-grid { grid-template-columns: 1fr; } }

/* ---- Bento Grid professionals ---- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.bento__item { 
  background: #fff; 
  padding: 40px; 
  border-radius: var(--r-xl); 
  box-shadow: var(--shadow-sm); 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
  text-decoration: none; 
  color: inherit; 
  display: block;
}
.bento__item:hover { 
  box-shadow: var(--shadow-xl); 
  transform: translateY(-8px); 
}
.bento__item h3 { transition: color 0.3s; }
.bento__item:hover h3 { color: var(--c-primary); }
.bento__icon { width: 48px; height: 48px; color: var(--c-primary); background: rgba(0,70,144,0.08); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; }
@media (max-width: 1024px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; } }

/* ---- Differentiators ---- */
.diff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.diff-list { display: flex; flex-direction: column; gap: 48px; }
.diff-item { display: flex; gap: 24px; }
.diff-item__num { font-size: 2.5rem; font-weight: 900; color: rgba(114, 119, 131, 0.25); line-height: 1; }
@media (max-width: 1024px) { .diff-grid { grid-template-columns: 1fr; } }

/* ---- Zones ---- */
.zone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.zone-card { 
  background: #fff; 
  padding: 40px; 
  border-radius: var(--r-lg); 
  display: block; 
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
}
.zone-card:hover { 
  transform: translateY(-8px); 
  box-shadow: var(--shadow-xl);
}
.zone-card h4 { color: var(--c-primary); margin-bottom: 20px; transition: color 0.3s ease; }
.zone-card:hover h4 { color: var(--c-primary-container); }
@media (max-width: 900px) { .zone-grid { grid-template-columns: 1fr; } }

/* ---- Banner / Final CTA ---- */
.banner {
  background: var(--c-primary-container); border-radius: 40px;
  padding: 80px 40px; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.banner::after {
  content: ''; position: absolute; top: 0; right: 0; width: 400px; height: 400px;
  background: #fff; opacity: 0.1; border-radius: 50%; transform: translate(40%, -40%);
  animation: float-circle 12s ease-in-out infinite alternate;
}
.banner::before {
  content: ''; position: absolute; bottom: 0; left: 0; width: 300px; height: 300px;
  background: #fff; opacity: 0.05; border-radius: 50%; transform: translate(-30%, 30%);
  animation: float-circle-reverse 15s ease-in-out infinite alternate;
}

@keyframes float-circle {
  0% { transform: translate(40%, -40%) scale(1); opacity: 0.1; }
  50% { transform: translate(35%, -25%) scale(1.1); opacity: 0.15; }
  100% { transform: translate(45%, -50%) scale(0.95); opacity: 0.08; }
}

@keyframes float-circle-reverse {
  0% { transform: translate(-30%, 30%) scale(1); opacity: 0.05; }
  50% { transform: translate(-20%, 20%) scale(1.15); opacity: 0.08; }
  100% { transform: translate(-40%, 40%) scale(0.9); opacity: 0.03; }
}
.banner h2 { color: #fff; max-width: 800px; margin: 0 auto 32px; }
.banner p { color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto 48px; }
.banner .btn { background: #fff; color: var(--c-primary); }

/* ---- Footer ---- */
.footer { background: #f1f4f6; padding: 80px 0 40px; font-family: var(--font-header); font-size: 0.875rem; }
.footer__grid { 
  display: grid; 
  grid-template-columns: 30% 16% 16% 16% 16%; 
  gap: 20px; 
  padding-bottom: 60px; 
  border-bottom: 1px solid var(--c-border); 
}
.footer__brand { font-size: 1.5rem; font-weight: 900; color: #0c1a3d; margin-bottom: 24px; }
.footer__tagline { color: var(--c-text-sec); max-width: 280px; }
.footer__col h5 { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; color: var(--c-primary); letter-spacing: 0.15em; margin-bottom: 24px; }
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col a { color: var(--c-text-sec); transition: color .2s; }
.footer__col a:hover { color: var(--c-primary); text-decoration: underline; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 40px; color: var(--c-text-muted); }
.footer__legal { display: flex; gap: 24px; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { 
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; gap: 24px; }
}

/* ---- WhatsApp Float ---- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #1ebea5;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}
.whatsapp-float__tooltip {
  position: absolute;
  right: 80px;
  background: #333;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  pointer-events: none;
}
.whatsapp-float:hover .whatsapp-float__tooltip {
  opacity: 1;
  visibility: visible;
  right: 74px;
}

@keyframes pulse-whatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
  .whatsapp-float { bottom: 20px; right: 20px; width: 56px; height: 56px; }
  .whatsapp-float__tooltip { display: none; }
}

/* ---- Cookie Banner ---- */

.cookie-banner {
  position: fixed; bottom: 24px; left: 24px; right: 24px;
  background: #fff; padding: 24px 32px; border-radius: var(--r-lg);
  box-shadow: var(--shadow-xl); border: 1px solid var(--c-border);
  z-index: 9999; display: none; align-items: center; justify-content: space-between; gap: 32px;
  max-width: 900px; margin: 0 auto;
}
.cookie-banner__text { font-size: 0.9rem; color: var(--c-text-sec); line-height: 1.5; }
.cookie-banner__text a { color: var(--c-primary); font-weight: 700; text-decoration: underline; }
.cookie-banner__btns { display: flex; gap: 16px; flex-shrink: 0; }

@media (max-width: 768px) {
  .cookie-banner { flex-direction: column; bottom: 0; left: 0; right: 0; border-radius: 0; padding: 24px; text-align: center; }
}

/* ---- Utilities & Animations (Section 10) ---- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; gap: 32px; } }

.anim-fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fade-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Listas de características con iconos */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.feature-item p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
}

/* ---- Image Grid & Lightbox Premium ---- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  grid-auto-flow: dense;
}
.gallery-item {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--c-surface-container);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 70, 144, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.gallery-item:hover .gallery-overlay {
  opacity: 1;
}
.gallery-overlay span {
  color: #fff;
  font-size: 3rem;
  transform: scale(0.5);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.gallery-item:hover .gallery-overlay span {
  transform: scale(1);
}

/* Lightbox Modal */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
}
.lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(8px);
}
.lightbox-content {
  position: relative;
  z-index: 10000;
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-img {
  max-width: 100%;
  max-height: calc(85vh - 40px);
  border-radius: var(--r-md);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}
.lightbox-counter {
  color: rgba(255, 255, 255, 0.6);
  margin-top: 16px;
  font-family: var(--font-header);
  font-weight: 600;
  letter-spacing: 0.1em;
}
.lightbox-close {
  position: absolute;
  top: 32px;
  right: 32px;
  color: #fff;
  z-index: 10001;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  z-index: 10001;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}
.lightbox-btn:hover { background: rgba(255,255,255,0.2); transform: translateY(-50%) scale(1.1); }
.lightbox-btn span { font-size: 2.5rem; }
.lightbox-btn--prev { left: 32px; }
.lightbox-btn--next { right: 32px; }

@media (max-width: 768px) {
  .lightbox-btn { display: none; } /* Swipe is preferred on mobile */
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .lightbox-close { top: 16px; right: 16px; width: 40px; height: 40px; }
}

/* ---- Video Modal Premium ---- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.video-modal.open {
  opacity: 1;
  visibility: visible;
}
.video-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
}
.video-modal__content {
  position: relative;
  z-index: 10001;
  width: 90%;
  max-width: 1000px;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.video-modal.open .video-modal__content {
  transform: scale(1);
}
.video-modal__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.video-modal__video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.video-modal__close {
  position: absolute;
  top: -48px;
  right: 0;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-header);
  font-weight: 600;
}
.video-modal__close span { font-size: 2rem; }
.video-modal__close:hover { color: var(--c-primary); }

#open-video-btn {
  transition: all 0.3s ease;
}
#open-video-btn:hover {
  background: var(--c-primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ---- Projects Page Specific Styles ---- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 1024px) { .projects-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .projects-grid { grid-template-columns: 1fr; } }

.project-card {
  background: #fff;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.project-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
}

.project-card__img-container {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  cursor: pointer;
}
.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.project-card:hover .project-card__img {
  transform: scale(1.08);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 70, 144, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.project-card:hover .project-card__overlay {
  opacity: 1;
}
.project-card__overlay span {
  color: #fff;
  font-size: 2.5rem;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.project-card:hover .project-card__overlay span {
  transform: translateY(0);
}

.project-card__body {
  padding: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.project-card__type {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--c-primary);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.project-card__title {
  font-size: 1.25rem;
  margin-bottom: 20px;
  line-height: 1.3;
}
.project-card__meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--c-text-sec);
  border-top: 1px solid var(--c-border-subtle);
  padding-top: 20px;
}
.project-card__meta span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.coming-soon {
  background: var(--c-surface-low);
  border: 2px dashed var(--c-border);
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  text-align: center;
  min-height: 400px;
}
.coming-soon__icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.3;
}
.coming-soon__label {
  font-weight: 700;
  color: var(--c-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
}

/* Section Metal / Dark Variation */
.section--metal {
  background: #181c1e;
  color: #fff;
}
.section--metal h2 { color: #fff; }
.section--metal .label { color: var(--c-primary-container); }
.section--metal .diff-item__num { color: rgba(255,255,255,0.1); }
.section--metal p { color: rgba(255,255,255,0.7); }
