/*
  cards.css - Sistema completo de tarjetas (solar, glass, premium, equip, notification)
  Prioridad: BELOW THE FOLD
  Tamaño: ~8.5KB
*/

/* ============================================
   SOLAR CARD COMPONENT
   Representa un panel fotovoltaico con superficie de vidrio
   ============================================ */
.home-landing .solar-card {
  position: relative;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.02),
    0 2px 4px -1px rgba(0, 0, 0, 0.02),
    inset 0 0 20px rgba(255, 255, 255, 0.5);
  transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
  overflow: hidden;
}

/* Solar cell grid texture overlay */
.home-landing .solar-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.3;
  pointer-events: none;
  z-index: 0;
}

/* Top gloss reflection */
.home-landing .solar-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  opacity: 0.6;
  z-index: 2;
}

.home-landing .solar-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.05),
    0 10px 10px -5px rgba(0, 0, 0, 0.02),
    inset 0 0 30px rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.9);
}

.home-landing .solar-card.solar-card-dark {
  background: rgba(245, 245, 245, 0.8);
}

/* ============================================
   GLASS CARD - Sistema general de vidrio
   ============================================ */
.home-landing .glass-card {
  position: relative;
  background: rgba(255, 255, 255, 0.42);
  -webkit-backdrop-filter: blur(10px) saturate(1.08);
  backdrop-filter: blur(6px) saturate(1.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 6px 18px rgba(16, 24, 40, 0.055),
    0 14px 36px rgba(16, 24, 40, 0.07);
  overflow: visible;
  isolation: isolate;
}

.home-landing .glass-card::before {
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  top: -8px;
  height: 48%;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03)),
    radial-gradient(60% 40% at 50% 0%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 45%);
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  mix-blend-mode: overlay;
  filter: blur(2px);
  z-index: 3;
  opacity: 0.3;
  transition: opacity 300ms cubic-bezier(.22, 1, .36, 1), transform 300ms cubic-bezier(.22, 1, .36, 1), filter 300ms ease;
}

.home-landing .glass-card::after {
  content: "";
  position: absolute;
  left: -6px;
  right: -6px;
  bottom: -6px;
  height: 34%;
  pointer-events: none;
  background: linear-gradient(0deg, rgba(10, 15, 25, 0.06), rgba(255, 255, 255, 0));
  border-bottom-left-radius: inherit;
  border-bottom-right-radius: inherit;
  mix-blend-mode: multiply;
  filter: blur(6px);
  z-index: 1;
  opacity: 0.9;
  transition: opacity 320ms cubic-bezier(.22, 1, .36, 1), transform 320ms cubic-bezier(.22, 1, .36, 1), filter 320ms ease;
}

.home-landing .glass-card:hover::before {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03));
}

.home-landing .glass-card {
  transition: transform 360ms cubic-bezier(.22, 1, .36, 1), box-shadow 360ms cubic-bezier(.22, 1, .36, 1), filter 360ms cubic-bezier(.22, 1, .36, 1);
}

.home-landing .glass-card:hover,
.home-landing .glass-card:focus-within {
  transform: translateY(-7px) translateZ(0) scale(1.0025);
  box-shadow:
    0 14px 36px rgba(16, 24, 40, 0.11),
    0 28px 64px rgba(16, 24, 40, 0.07);
  filter: saturate(1.02) drop-shadow(0 6px 16px rgba(16, 24, 40, 0.055));
  --_glass-warm-alpha: 0.065;
}

.home-landing .glass-card:hover::before,
.home-landing .glass-card:focus-within::before {
  opacity: 1;
  transform: translateY(-2px) scale(1.002);
  filter: blur(2.6px);
}

.home-landing .glass-card:hover::after,
.home-landing .glass-card:focus-within::after {
  opacity: 1;
  transform: translateY(2px) scale(1.002);
  filter: blur(7px);
}

/* Glass Card Variants */
.home-landing .glass-card-variant-1 {
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.home-landing .glass-card-variant-2 {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px) saturate(1.12);
  -webkit-backdrop-filter: blur(14px) saturate(1.12);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.home-landing .glass-card-variant-3 {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 250, 240, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.home-landing .glass-card-variant-3::before {
  background:
    linear-gradient(180deg, rgba(255, 245, 230, 0.14), rgba(255, 255, 255, 0.02)),
    radial-gradient(60% 40% at 50% 0%, rgba(255, 200, 100, 0.08), rgba(255, 255, 255, 0) 55%);
}

.home-landing .glass-card.glass-card-hover-glow:hover,
.home-landing .glass-card.glass-card-hover-glow:focus-within {
  box-shadow:
    0 14px 36px rgba(16, 24, 40, 0.11),
    0 28px 64px rgba(16, 24, 40, 0.07),
    0 0 40px rgba(255, 122, 0, 0.08),
    inset 0 0 30px rgba(255, 200, 100, 0.06);
}

/* ============================================
   PREMIUM METALLIC GLASS CARD
   Para socios estratégicos (Huawei)
   ============================================ */
.home-landing .glass-card-premium {
  position: relative;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(20px) saturate(1.1);
  -webkit-backdrop-filter: blur(20px) saturate(1.1);
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.04),
    0 4px 12px rgba(255, 180, 0, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.8),
    inset 0 0 20px rgba(255, 220, 100, 0.05);
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease, border-color 0.4s ease;
}

.home-landing .glass-card-premium .glass-liquid-overlay {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 223, 0, 0.08) 25%,
      rgba(255, 255, 255, 0) 50%,
      rgba(255, 215, 0, 0.06) 75%,
      rgba(255, 255, 255, 0) 100%);
  background-size: 200% 200%;
  animation: liquidFlow 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
}

.home-landing .glass-card-premium>* {
  position: relative;
  z-index: 2;
}

.home-landing .glass-card-premium::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(110deg,
      transparent 20%,
      rgba(255, 255, 255, 0.4) 40%,
      rgba(255, 230, 100, 0.6) 50%,
      rgba(255, 255, 255, 0.4) 60%,
      transparent 80%);
  transform: translateX(-100%) translateY(-100%) rotate(30deg);
  pointer-events: none;
  z-index: 3;
  mix-blend-mode: overlay;
  animation: shimmerSweep 6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
  animation-delay: 2s;
}

.home-landing .glass-card-premium:hover {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(255, 200, 0, 0.5);
  transform: translateY(-4px) scale(1.005);
  box-shadow:
    0 14px 40px rgba(255, 180, 0, 0.12),
    0 6px 12px rgba(0, 0, 0, 0.03),
    inset 0 0 30px rgba(255, 215, 0, 0.1);
}

/* ============================================
   EQUIP CARDS
   Tarjetas de equipos con blur background + PNG foreground
   ============================================ */
.home-landing .equip-card { 
  position: relative;
  background: #f8fafc;
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
}

.home-landing .equip-card:hover {
  overflow: visible;
  z-index: 20;
  transform: translateY(-3px);
}

.home-landing .equip-visual { 
  position: relative; 
  overflow: visible; 
}

.home-landing .equip-visual .equip-image-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(6px) saturate(.9);
  transform: scale(1.08);
  opacity: .16;
  transition: transform .7s cubic-bezier(.2,.9,.2,1), opacity .3s ease;
}

.home-landing .equip-visual .equip-image {
  position: relative;
  max-width: 75%;
  transition: transform .7s cubic-bezier(.2,.9,.2,1), filter .3s ease, box-shadow .25s ease;
  will-change: transform;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,0.12));
  z-index: 30;
  pointer-events: none;
}

.home-landing .equip-card:hover .equip-image-bg { 
  transform: scale(1.12); 
  opacity: .22; 
}

.home-landing .equip-card:hover .equip-image { 
  transform: translateY(-18px) rotate(-1.5deg) scale(1.12); 
  z-index: 60; 
}

/* ============================================
   NOTIFICATION CARD (macOS style)
   Tarjetas estilo notificación de macOS
   ============================================ */
.home-landing .glass-card-notification {
  width: 100%;
  max-width: 420px;
  border-radius: 18px;
  background: rgba(177, 177, 177, 0.6);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.2),
    0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 12px;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 0.3s ease,
    background 0.3s ease;
}

.home-landing .glass-card-notification:hover {
  transform: translateY(-4px) scale(1.02);
  background: rgba(236, 236, 236, 0.55);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.25),
    0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   PROJECT CARDS (Nosotros section)
   ============================================ */
.home-landing .nosotros-project-card {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.1),
    0 2px 4px rgba(0, 0, 0, 0.06);
}

.home-landing .nosotros-project-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.2),
    0 8px 16px rgba(0, 0, 0, 0.12);
}

.home-landing .nosotros-project-card:hover .bg-gradient-to-t {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.45), transparent);
}

/* ============================================
   CARD IMAGE EFFECTS
   ============================================ */
.home-landing .card-image-wrapper {
  position: relative;
  overflow: hidden;
}

.home-landing .card-image-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 122, 0, 0) 0%, rgba(255, 122, 0, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.home-landing .card-image-wrapper:hover::after {
  opacity: 1;
}

/* ============================================
   REDUCED MOTION SUPPORT
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .home-landing .glass-card,
  .home-landing .solar-card,
  .home-landing .equip-visual .equip-image-bg,
  .home-landing .equip-visual .equip-image,
  .home-landing .nosotros-project-card,
  .home-landing .nosotros-project-card img,
  .home-landing .glass-card-notification {
    transition: none;
    transform: none !important;
  }

  .home-landing .nosotros-project-card:hover,
  .home-landing .nosotros-project-card:hover img,
  .home-landing .glass-card-notification:hover {
    transform: none;
  }
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .home-landing .glass-card-notification {
    max-width: 100%;
    margin-bottom: 10px;
  }
}

/* ============================================
   BEMCO OVERRIDES
   ============================================ */

.home-landing .glass-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 32, 91, 0.10);
  box-shadow:
    0 10px 24px rgba(0, 32, 91, 0.06),
    0 20px 48px rgba(0, 32, 91, 0.08);
}

.home-landing .glass-card::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.04)),
    radial-gradient(60% 40% at 50% 0%, rgba(249, 176, 63, 0.08), rgba(255, 255, 255, 0) 52%);
}

.home-landing .glass-card::after {
  background: linear-gradient(0deg, rgba(0, 32, 91, 0.08), rgba(255, 255, 255, 0));
}

.home-landing .glass-card:hover,
.home-landing .glass-card:focus-within {
  box-shadow:
    0 18px 38px rgba(0, 32, 91, 0.11),
    0 30px 68px rgba(0, 32, 91, 0.08);
  filter: saturate(1.02) drop-shadow(0 8px 18px rgba(0, 32, 91, 0.08));
}

.home-landing .glass-card-variant-1 {
  background: rgba(255, 255, 255, 0.80);
  border: 1px solid rgba(0, 32, 91, 0.10);
}

.home-landing .glass-card-variant-2 {
  background: linear-gradient(145deg, rgba(245, 247, 250, 0.92), rgba(255, 255, 255, 0.78));
  border: 1px solid rgba(0, 32, 91, 0.10);
}

.home-landing .glass-card-variant-3 {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(249, 176, 63, 0.10));
  border: 1px solid rgba(249, 176, 63, 0.18);
}

.home-landing .glass-card.glass-card-hover-glow:hover,
.home-landing .glass-card.glass-card-hover-glow:focus-within {
  box-shadow:
    0 18px 38px rgba(0, 32, 91, 0.11),
    0 30px 68px rgba(0, 32, 91, 0.08),
    0 0 44px rgba(249, 176, 63, 0.12),
    inset 0 0 34px rgba(249, 176, 63, 0.08);
}

.home-landing .glass-card-premium {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 32, 91, 0.18);
  box-shadow:
    0 14px 36px rgba(0, 32, 91, 0.08),
    0 6px 18px rgba(0, 32, 91, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.76),
    inset 0 0 20px rgba(0, 58, 140, 0.04);
}

.home-landing .glass-card-premium .glass-liquid-overlay {
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(0, 32, 91, 0.06) 25%,
      rgba(255, 255, 255, 0) 50%,
      rgba(0, 58, 140, 0.06) 75%,
      rgba(255, 255, 255, 0) 100%);
}

.home-landing .glass-card-premium:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 58, 140, 0.32);
  box-shadow:
    0 18px 44px rgba(0, 32, 91, 0.12),
    0 8px 20px rgba(0, 32, 91, 0.10),
    inset 0 0 34px rgba(0, 58, 140, 0.06);
}

.home-landing .equip-card {
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F7FA 100%);
  border-color: rgba(0, 32, 91, 0.10);
}

.home-landing .equip-card:hover {
  box-shadow: 0 20px 46px rgba(0, 32, 91, 0.10);
}

.home-landing .equip-visual .equip-image-bg {
  opacity: .20;
  filter: blur(7px) saturate(0.85);
}

.home-landing .equip-visual .equip-image {
  filter: drop-shadow(0 12px 28px rgba(0, 32, 91, 0.18));
}

.home-landing .nosotros-project-card {
  box-shadow:
    0 8px 20px rgba(0, 32, 91, 0.10),
    0 4px 10px rgba(0, 32, 91, 0.07);
}

.home-landing .nosotros-project-card:hover {
  box-shadow:
    0 24px 44px rgba(0, 32, 91, 0.20),
    0 10px 20px rgba(0, 32, 91, 0.12);
}

.home-landing .card-image-wrapper::after {
  background: linear-gradient(180deg, rgba(249, 176, 63, 0) 0%, rgba(249, 176, 63, 0.08) 100%);
}
