@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Fjalla+One:wght@400;500;700;800&display=swap');

:root {
  --primary: #0D9488;
  /* Elegant Deep Teal */
  --primary-dark: #0F766E;
  --secondary: #7a8aa0;
  /* Slate Silver */
  --accent: #111827;
  /* Rich Slate / Black */

  --bg-dark: #FFFFFF;
  --bg-darker: #eaeaeadb;
  /* Softer, more premium silver-gate */
  --panel-bg: rgba(255, 255, 255, 0.422);
  /* Midnight Dark Glass */
  --panel-border: rgba(255, 255, 255, 0.1);
  --glass-effect: blur(15px) saturate(180%);

  --text-main: #1E293B;
  /* Slate 800 */
  --text-muted: #64748B;

  --font-primary: 'Poppins', sans-serif;
  --font-heading: 'Fjalla One', sans-serif;

  --transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  --shadow-clean: 0 10px 40px rgba(0, 0, 0, 0.03);
}

::selection {
  color: var(--accent);
  background: var(--primary);
}

/* Diagonal Layout Utilities */
.hero-video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: blur(25px);
  /* Stronger initial blur for mystery */
  opacity: 0.3;
  /* Subtle discovery mode */
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.diagonal-section {
  position: relative;
  padding: 10vw 0 15vw 0;
  /* Balanced space for diagonal flow */
  z-index: 1;
}

/* First diagonal section needs to hide the leak from hero/trust-bar */
section:not(.diagonal-section)+.diagonal-section {
  margin-top: 0vw;
  padding-bottom: 25vh !important;
  /* Adjusted for larger padding */
  z-index: 2;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

/* Zig-zag angles - Updated to use VW for pixel-perfect matching */
.clip-down {
  clip-path: polygon(0 5vw, 100% 0, 100% calc(100% - 5vw), 0 100%);
}

.clip-up {
  clip-path: polygon(0 0, 100% 5vw, 100% 100%, 0 calc(100% - 5vw));
}

.diagonal-section+.diagonal-section {
  margin-top: -10vw;
  padding-top: 15vw;
}

/* Specific z-index layers to ensure overlap direction */
#beneficios {
  z-index: 2;
}

#que-incluye {
  z-index: 3;
}

#plantillas {
  z-index: 4;
  clip-path: none !important;
}

.diagonal-section.clip-up:last-of-type {
  z-index: 5;
}

#contacto {
  z-index: 6;
  position: relative;
  margin-top: 0 !important;
}

.trust-bar {
  position: relative;
  z-index: 20;
  /* High z-index to avoid diagonal overlap cuts */
  background-color: #f8fafc !important;
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
  padding: x8rem 0 !important;
  /* Huge padding to create safe breathing room */
  margin-top: -10vw;
  /* Natural seal with the previous section */
}

@keyframes holographic {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes floatGlow {

  0%,
  100% {
    text-shadow: 0 0 10px rgba(13, 148, 136, 0.1);
  }

  50% {
    text-shadow: 0 0 25px rgba(13, 148, 136, 0.3);
  }
}

.glow-text {
  animation: floatGlow 4s ease-in-out infinite;
}

body.loading {
  overflow: hidden;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1), visibility 0.8s;
}

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

.preloader-content {
  text-align: center;
}

.preloader-logo {
  animation: pulse-logo 2s ease-in-out infinite;
}

@keyframes pulse-logo {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.preloader-progress {
  width: 150px;
  height: 2px;
  background: rgba(13, 148, 136, 0.1);
  margin: 0 auto;
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background: var(--primary);
  animation: load-progress 2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes load-progress {
  0% {
    width: 0%;
  }

  100% {
    width: 100%;
  }
}

.pulse-text {
  animation: text-blink 1.5s ease-in-out infinite;
}

@keyframes text-blink {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

body {
  font-family: var(--font-primary);
  color: var(--text-main);
  background-color: var(--bg-dark);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Force Contrast Overrides for Light Mode */
.text-muted {
  color: var(--text-muted) !important;
}

.text-primary {
  color: var(--primary) !important;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.text-gray-300 {
  color: #64748B !important;
}

.text-gray-400 {
  color: #475569 !important;
}

.text-gray-500 {
  color: #334155 !important;
}

.text-dark {
  color: #0F172A !important;
}

.text-white {
  color: var(--text-main) !important;
  /* Invert white text logic to dark */
}

/* Background & Border utility maps for Light Mode */

.bg-black {
  background-color: rgba(41, 41, 41, 0.664) !important;
}

.bg-dark {
  background-color: var(--bg-dark) !important;
}

.bg-darker {
  background-color: var(--bg-darker) !important;
}

.bg-light-zebra {
  background-color: #f8fafc !important;
}


.border-gray-800 {
  border-color: rgba(0, 0, 0, 0.08) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

/* Gradients */
.text-gradient {
  background: linear-gradient(135deg, var(--primary), #0D9488, #334155);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: holographic 6s ease infinite;
}

.bg-gradient-premium {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--bg-darker) 100%);
}

.hero-video-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(255 255 255 / 60%);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 0;
}

/* Custom Cursor Styles */
.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out;
  box-shadow: 0 0 10px var(--primary);
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 1px solid var(--primary);
  opacity: 0.5;
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
}

/* Scroll Indicator Animation */
.scroll-mouse {
  width: 25px;
  height: 40px;
  border: 2px solid var(--primary);
  border-radius: 20px;
  position: relative;
  margin: 0 auto;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--primary);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: wheelScroll 2s infinite;
}

@keyframes wheelScroll {
  0% {
    top: 8px;
    opacity: 1;
  }

  100% {
    top: 25px;
    opacity: 0;
  }
}

/* Subtle Motion Blur on Scroll Utility */
.motion-blur {
  transition: filter 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.scrolling .motion-blur {
  filter: blur(4px);
}

/* Enhanced Hero Text Contrast */
.glow-text {
  animation: floatGlow 4s ease-in-out infinite;
  text-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

body:hover .cursor-dot {
  opacity: 1;
}

/* Glass Panels */
.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border);
  border-radius: 1.5rem;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.04) !important;
  transition: var(--transition);
  position: relative;
}

/* Holographic animated border trick */
.glass-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border-radius: 1.5rem;
  padding: 1px;
  background: linear-gradient(135deg, var(--primary), transparent 40%, transparent 60%, var(--secondary));
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: -1;
  animation: holographic 4s ease infinite;
}

.glass-panel:hover::before {
  opacity: 1;
}

.glass-panel:hover {
  border-color: transparent;
  box-shadow: var(--shadow-glow);
  transform: translateY(-5px);
}


/* Buttons */
.btn-premium {
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  color: white;
  border: none;
  border-radius: 50px;
  padding: 1rem 2.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.9rem;
  box-shadow: 0 10px 20px rgba(13, 148, 136, 0.3);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  opacity: 0;
  z-index: -1;
  transition: var(--transition);
}

.btn-premium:hover::before {
  opacity: 1;
}

.btn-premium:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 30px rgba(13, 148, 136, 0.4);
  color: white;
}

.btn-outline-premium {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 50px;
  padding: 0.9rem 2.5rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-outline-premium:hover {
  background: var(--primary);
  color: var(--bg-dark);
  box-shadow: var(--shadow-glow);
}

/* General Layout */
.section-padding {
  padding: 6rem 0;
}

.navbar {
  padding: 1.5rem 0;
  transition: var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--panel-border);
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  /* Added slight shadow for depth on white */
}

.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary) !important;
}

/* Template Cards & Horizontal Slider (GSAP) */
.gallery-wrapper {
  position: relative;
  width: 100%;
}

.horizontal-track {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  width: max-content;
  padding: 2rem 5rem 5rem 5rem;
}

.isometric-card {
  flex: 0 0 auto;
  width: 80vw;
  max-width: 450px;
  border-radius: 2rem;
  overflow: hidden;
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.isometric-stack-container {
  position: relative;
  width: 400px;
  height: 500px;
  perspective: 2000px;
  transform-style: preserve-3d;
  margin: 0 auto;
}

.stack-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--panel-bg);
  backdrop-filter: var(--glass-effect);
  -webkit-backdrop-filter: var(--glass-effect);
  border: 1px solid var(--panel-border);
  border-radius: 2rem;
  overflow: hidden;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  transform:
    translateZ(calc(var(--index) * -40px)) translateY(calc(var(--index) * 10px)) rotateX(15deg) rotateY(-15deg);
  z-index: calc(10 - var(--index));
  cursor: pointer;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.stack-card h3 {
  color: var(--text-main) !important;
}

.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: var(--glass-effect);
  -webkit-backdrop-filter: var(--glass-effect);
  border: 1px solid var(--panel-border);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.78);
}

.glass-panel h2,
.glass-panel h3,
.glass-panel h4,
.glass-panel h5,
.glass-panel p,
.glass-panel span,
.glass-panel i:not(.text-primary):not(.text-secondary) {
  color: var(--text-main) !important;
}

.glass-panel .text-primary {
  color: var(--primary) !important;
}

.glass-panel .text-muted {
  color: var(--text-muted) !important;
}

.stack-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #f8fafc;
  padding: 1.5rem;
  transition: transform 0.5s ease;
}

.stack-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(13, 148, 136, 0.9);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 2rem;
  text-align: center;
}

/* Fan-out on hover */
.isometric-stack-container:hover .stack-card {
  transform:
    translateZ(0) translateX(calc((var(--index) - 2) * 220px)) rotateY(0) rotateX(0) scale(0.9);
  z-index: 20;
}

/* Mouse Skew Integration */
.stack-card:hover {
  transform:
    translateZ(100px) translateX(calc((var(--index) - 2) * 220px)) scale(1.1) !important;
  z-index: 50 !important;
}

.stack-card:hover .stack-overlay {
  opacity: 1;
}

/* Individual Skew based on Mouse position variables from JS */
.stack-card {
  --skewX: calc(var(--mouseX) * 15deg);
  --skewY: calc(var(--mouseY) * -15deg);
}

.isometric-stack-container:not(:hover) .stack-card {
  /* Apply subtle idle skew when not hovering container */
  transform:
    translateZ(calc(var(--index) * -40px)) translateY(calc(var(--index) * 10px)) rotateX(calc(15deg + var(--skewY))) rotateY(calc(-15deg + var(--skewX)));
}

/* Scrolling Motion Blur Effect */
.scrolling .diagonal-section,
.scrolling .glass-panel {
  filter: blur(2px);
  transition: filter 0.2s ease;
}

/* Trust Bar consolidated at line 95 */

/* Feature Icons */
.feature-icon-box {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(101, 31, 255, 0.1));
  border: 1px solid rgba(0, 229, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
  box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.05);
}

/* Forms & Input */
.form-control {
  background-color: rgba(255, 255, 255, 0.7) !important;
  border: 1px solid var(--panel-border) !important;
  color: var(--text-main) !important;
  transition: var(--transition) !important;
}

.form-control::placeholder {
  color: #94A3B8 !important;
}

.form-control:focus {
  background-color: rgba(255, 255, 255, 0.95) !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 15px rgba(0, 184, 212, 0.2) !important;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #25D366 !important;
  /* Force solid green */
  background-image: none !important;
  color: white !important;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.6);
  color: white;
}

.icon-box-circle {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  min-height: 54px !important;
  flex: 0 0 54px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 50% !important;
  overflow: hidden;
  aspect-ratio: 1 / 1 !important;
  transition: var(--transition);
}

.icon-box-circle i {
  font-size: 1.2rem !important;
  margin: 0 !important;
}

/* ─────────────────────────────────────────
   GALERÍA DE DISEÑOS — TCD Gallery Grid
───────────────────────────────────────── */

/* Sección transparente — deja pasar el video */
.tcd-gallery-section {
  position: relative;
  z-index: 4;
  padding: 5rem 0 6rem;
  background: transparent;
}

/* Header glass — texto legible sobre video */
.tcd-gallery-header {
  padding: 2rem 2.5rem !important;
  background: rgba(15, 23, 42, 0.55) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 1.5rem !important;
  display: inline-block;
  width: 100%;
}

/* ═══════════════════════════════════════════
   GALERÍA ISOMÉTRICA — Scroll to Front
═══════════════════════════════════════════ */

/* Sección sin fondo — deja pasar el video */
.tcd-gallery-section {
  position: relative;
  z-index: 4;
  padding: 5rem 0 7rem;
  background: transparent;
}

/* Header glass */
.tcd-gallery-header {
  padding: 2rem 2.5rem !important;
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 1.5rem !important;
  width: 100%;
}

/* Wrapper con perspectiva 3D */
.tcd-iso-stage {
  perspective: 2500px;
  perspective-origin: 50% 30%;
  padding: 0;
  /* Eliminado el padding para control total por GSAP */
  position: relative;
  min-height: 80vh;
  width: 100%;
}

@media (max-width: 768px) {
  .tcd-iso-stage {
    min-height: 60vh;
    perspective: 1500px;
  }
}

/* Cada card es un elemento 3D */
.tcd-card {
  display: block;
  text-decoration: none !important;
  border-radius: 1.25rem;
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
  /* Ligeramente más angosto para el fan effect */
  background: transparent;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  will-change: transform, opacity, filter, box-shadow;
  transition: box-shadow 0.4s ease;
}

/* Hover sutil cuando ya está al frente */
.tcd-card.is-front:hover {
  box-shadow: 0 35px 90px rgba(13, 148, 136, 0.35), 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Image wrapper */
.tcd-card__img-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #ffffffb5;
  aspect-ratio: 16 / 9;
  border-radius: 1.25rem 1.25rem 0 0;
}

.tcd-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
  display: block;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.tcd-card.is-front:hover .tcd-card__img-wrap img {
  transform: scale(1.04);
}

/* Teal glow overlay */
.tcd-card__glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      transparent 40%,
      rgba(13, 148, 136, 0.18) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.tcd-card.is-front:hover .tcd-card__glow {
  opacity: 1;
}

/* Barra de info — glass oscuro */
.tcd-card__info {
  padding: 1rem 1.25rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(10, 15, 30, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 0 0 1.25rem 1.25rem;
}

/* Número grande */
.tcd-card__num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.15);
  line-height: 1;
  flex-shrink: 0;
  min-width: 2.6ch;
  transition: color 0.35s ease;
}

.tcd-card.is-front:hover .tcd-card__num {
  color: var(--primary);
}

/* Nombre del diseño */
.tcd-card__name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.2rem 0;
  line-height: 1.2;
}

/* CTA */
.tcd-card__cta {
  font-family: var(--font-primary);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  display: block;
}

.tcd-card.is-front:hover .tcd-card__cta {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive */
@media (max-width: 767px) {
  .tcd-iso-stage {
    perspective: 900px;
  }
}

.text-primary {
  color: #0D9488 !important;
}

.bg-primary {
  background-color: #0D9488 !important;
}

/* Feature Grid Styles */
.feature-hover-card {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease !important;
  border: 1px solid rgba(0, 0, 0, 0.03) !important;
}

.feature-hover-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(13, 148, 136, 0.1) !important;
  border-color: rgba(13, 148, 136, 0.2) !important;
}

.xsmall {
  font-size: 0.75rem;
  line-height: 1.4;
}

/* Bento Grid System */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(220px, auto);
  gap: 1.5rem;
  margin-top: 3rem;
}

.bento-card {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 2rem;
  padding: 2.5rem;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  cursor: default;
}

.bento-card:hover {
  border-color: var(--primary);
  transform: translateY(-5px);
  background: rgba(13, 148, 136, 0.05);
}

/* Bento Spans */
.bento-2x2 {
  grid-column: span 2;
  grid-row: span 2;
}

.bento-2x1 {
  grid-column: span 2;
  grid-row: span 1;
}

.bento-1x2 {
  grid-column: span 1;
  grid-row: span 2;
}

.bento-1x1 {
  grid-column: span 1;
  grid-row: span 1;
}

.bento-icon {
  width: 56px;
  height: 56px;
  background: rgba(13, 148, 136, 0.1);
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: auto;
  border: 1px solid rgba(13, 148, 136, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 1.4rem;
  color: var(--primary);
}

.bento-card:hover .bento-icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 0 25px rgba(13, 148, 136, 0.4);
}

.bento-card h4 {
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #fff;
  font-size: 1.25rem;
}

.bento-card p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
  margin-bottom: 0;
  line-height: 1.6;
}

/* Hover Glow Effect */
.bento-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  top: var(--y, 50%);
  left: var(--x, 50%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.bento-card:hover .bento-glow {
  opacity: 1;
}

.bento-content {
  position: relative;
  z-index: 1;
}

@media (max-width: 1200px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 250px;
  }
}

@media (max-width: 768px) {
  .bento-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .bento-card {
    min-height: 220px;
    padding: 2rem;
  }
}