/* 
  ═══════════════════════════════════════════════════════════════════════════
  ARCHETYPE 08: LIQUID WAVE BACKGROUNDS — PREMIUM 2026-GRADE
  ═══════════════════════════════════════════════════════════════════════════
  
  ✅ Paleta: Azul océano + Teal + Mint + Dorado + Arena suave
  ✅ Ondas SVG animadas, blobs fluidos, efectos scroll premium
  ✅ 2026-grade visual quality · WOW Factor · Responsive
  
  ═══════════════════════════════════════════════════════════════════════════
*/

:root {
  /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
     PALETA PREMIUM ARCHETYPE 08
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
  
  /* Océano Profundo */
  --ocean-deep:      #0B3D56;   /* Azul océano profundo */
  --ocean-mid:       #0D5C7A;   /* Azul océano medio */
  --ocean-light:     #1B7F99;   /* Azul océano claro */
  
  /* Teal Premium */
  --teal-vibrant:    #00A89D;   /* Teal vibrante puro */
  --teal-soft:       #22C7C9;   /* Teal suave luminoso */
  --teal-pale:       #4FE3DC;   /* Teal pálido */
  
  /* Mint Fresco */
  --mint-bright:     #A7F3F0;   /* Mint brillante */
  --mint-soft:       #B8FAF7;   /* Mint suave */
  --mint-pale:       #CCFDFA;   /* Mint pálido */
  
  /* Dorado Elegante */
  --gold-premium:    #D4A574;   /* Dorado premium */
  --gold-accent:     #E8C547;   /* Dorado accent brillante */
  --gold-soft:       #F0D9A8;   /* Dorado suave */
  
  /* Arena Suave */
  --sand-light:      #F5EFE7;   /* Arena luz */
  --sand-warm:       #F9F5F0;   /* Arena cálida */
  --sand-pale:       #FEFDF8;   /* Arena pálida perla */
  
  /* Base Neutrales */
  --dark-deep:       #0A0E27;   /* Oscuro profundo */
  --dark-navy:       #1B2847;   /* Navy oscuro */
  --white-pure:      #FFFFFF;   /* Blanco puro */
  --white-soft:      #FAFAF7;   /* Blanco suave */
  
  /* Grises Premium */
  --gray-dark:       #2D3E5F;   /* Gris oscuro */
  --gray-mid:        #5F7B9C;   /* Gris medio */
  --gray-light:      #E5EBF0;   /* Gris claro */
  
  /* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
     ALIAS SEMÁNTICOS (compatibilidad con CSS antiguo)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
  
  --bg:              var(--sand-warm);
  --bg-light:        var(--sand-light);
  --bg-deep:         var(--dark-navy);
  --bg-accent:       var(--ocean-mid);
  
  --ink:             var(--dark-deep);
  --ink-soft:        var(--ocean-mid);
  --ink-mute:        var(--teal-soft);
  
  --accent:          var(--teal-vibrant);
  --accent-2:        var(--gold-premium);
  --accent-3:        var(--mint-bright);
  
  --line:            rgba(11, 92, 122, 0.12);
  --white:           var(--white-soft);
  --shadow:          rgba(10, 14, 39, 0.12);
  --shadow-hover:    rgba(13, 92, 122, 0.25);
  --shadow-deep:     rgba(10, 14, 39, 0.30);
  
  /* Tipografía */
  --font-sans:       -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Söhne, sans-serif;
  --font-serif:      "Georgia", serif;
  --font-hand:       "Caveat", cursive;
  
  /* Espaciado */
  --spacing-xs:      0.5rem;
  --spacing-sm:      1rem;
  --spacing-md:      1.5rem;
  --spacing-lg:      2rem;
  --spacing-xl:      3rem;
  --spacing-2xl:     4rem;
  --spacing-3xl:     6rem;
  
  /* Transiciones Premium */
  --trans-fast:      150ms cubic-bezier(0.34, 1.56, 0.64, 1);    /* spring */
  --trans-normal:    300ms cubic-bezier(0.4, 0.0, 0.2, 1);       /* easeInOutQuad */
  --trans-slow:      500ms cubic-bezier(0.25, 0.46, 0.45, 0.94); /* easeInOutQuart */
  --trans-glacial:   1000ms cubic-bezier(0.25, 0.1, 0.25, 1);    /* easeInOutCubic lento */
}

/* ═══════════════════════════════════════════════════════════════════════════
   ANIMACIONES PREMIUM ARCHETYPE 08
   ═══════════════════════════════════════════════════════════════════════════ */

@keyframes liquidWaveFlow {
  0% {
    d: path("M0,300 Q360,250 720,300 T1440,300 L1440,600 L0,600 Z");
    opacity: 0.6;
  }
  25% {
    d: path("M0,320 Q360,270 720,320 T1440,320 L1440,600 L0,600 Z");
    opacity: 0.5;
  }
  50% {
    d: path("M0,280 Q360,230 720,280 T1440,280 L1440,600 L0,600 Z");
    opacity: 0.6;
  }
  75% {
    d: path("M0,310 Q360,260 720,310 T1440,310 L1440,600 L0,600 Z");
    opacity: 0.5;
  }
  100% {
    d: path("M0,300 Q360,250 720,300 T1440,300 L1440,600 L0,600 Z");
    opacity: 0.6;
  }
}

@keyframes blobFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1) rotate(0deg);
  }
  25% {
    transform: translate(15px, -15px) scale(1.05) rotate(90deg);
  }
  50% {
    transform: translate(0, 20px) scale(0.95) rotate(180deg);
  }
  75% {
    transform: translate(-15px, -10px) scale(1.02) rotate(270deg);
  }
}

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

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(34, 199, 201, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(34, 199, 201, 0.6);
  }
}

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

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}

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

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

/* ═══════════════════════════════════════════════════════════════════════════
   ESTILOS BASE MEJORADOS
   ═══════════════════════════════════════════════════════════════════════════ */

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

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--teal-soft) var(--sand-light);
  scrollbar-width: thin;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: linear-gradient(135deg, var(--sand-warm) 0%, var(--sand-light) 100%);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ─ Scrollbar Custom ─ */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--sand-light);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--teal-soft), var(--teal-vibrant));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--teal-vibrant);
}

/* ─ Selección Premium ─ */
::selection {
  background: var(--teal-vibrant);
  color: var(--white-pure);
}

/* ═══════════════════════════════════════════════════════════════════════════
   TIPOGRAFÍA PREMIUM 2026
   ═══════════════════════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 10vw, 4rem);
  background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--teal-vibrant) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: slideInDown 1s ease-out;
}

h1 em {
  color: var(--gold-premium);
  font-style: italic;
  font-weight: 800;
}

h2 {
  font-size: clamp(1.75rem, 6vw, 2.75rem);
  color: var(--ocean-deep);
  position: relative;
  padding-bottom: 1rem;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--teal-vibrant), var(--gold-premium));
  border-radius: 2px;
}

h3 {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  color: var(--ocean-mid);
}

p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray-dark);
}

p strong {
  color: var(--ocean-deep);
  font-weight: 700;
}

a {
  color: var(--teal-vibrant);
  text-decoration: none;
  transition: color var(--trans-normal);
  position: relative;
}

a:hover {
  color: var(--gold-premium);
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMPONENTES PREMIUM
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─ Botones Premium ─ */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: all var(--trans-normal);
  cursor: pointer;
  border: none;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.3), transparent);
  transition: left var(--trans-normal);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal-vibrant) 0%, var(--ocean-mid) 100%);
  color: var(--white-pure);
  box-shadow: 0 10px 30px rgba(34, 199, 201, 0.25);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(34, 199, 201, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--teal-vibrant);
  border: 2px solid var(--teal-vibrant);
}

.btn-secondary:hover {
  background: var(--teal-vibrant);
  color: var(--white-pure);
  transform: translateY(-2px);
}

/* ─ Cards Premium ─ */
.card {
  background: var(--white-pure);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 8px 32px var(--shadow);
  transition: all var(--trans-normal);
  border: 1px solid rgba(34, 199, 201, 0.1);
  backdrop-filter: blur(10px);
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px var(--shadow-deep);
  border-color: rgba(34, 199, 201, 0.3);
}

/* ─ Blobs Fluidos ─ */
.blob {
  position: absolute;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  filter: blur(40px);
  opacity: 0.5;
  animation: blobFloat 8s ease-in-out infinite;
}

.blob-1 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--teal-soft) 0%, var(--mint-bright) 100%);
  top: -100px;
  left: 10%;
  animation-delay: 0s;
}

.blob-2 {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, var(--ocean-light) 0%, var(--teal-vibrant) 100%);
  top: 50%;
  right: 10%;
  animation-delay: 2s;
}

.blob-3 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, var(--gold-soft) 0%, var(--sand-light) 100%);
  bottom: 0;
  left: 50%;
  animation-delay: 4s;
}

/* ═══════════════════════════════════════════════════════════════════════════
   EFECTOS SCROLL PREMIUM 2026
   ═══════════════════════════════════════════════════════════════════════════ */

[data-scroll] {
  opacity: 0;
  transform: translateY(30px);
  animation: slideInUp 0.8s ease-out forwards;
}

[data-scroll-delay-1] { animation-delay: 0.1s; }
[data-scroll-delay-2] { animation-delay: 0.2s; }
[data-scroll-delay-3] { animation-delay: 0.3s; }
[data-scroll-delay-4] { animation-delay: 0.4s; }
[data-scroll-delay-5] { animation-delay: 0.5s; }

/* ─ Parallax Effect ─ */
[data-parallax] {
  position: relative;
  overflow: hidden;
}

/* ─ Glow Effect ─ */
.glow {
  position: relative;
  animation: glowPulse 3s ease-in-out infinite;
}

.glow::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--teal-vibrant), var(--mint-bright));
  opacity: 0.1;
  filter: blur(20px);
}

/* ─ Shimmer Effect ─ */
.shimmer {
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(255,255,255,0.3) 50%, 
    transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* ═══════════════════════════════════════════════════════════════════════════
   UTILIDADES PREMIUM
   ═══════════════════════════════════════════════════════════════════════════ */

.gradient-text {
  background: linear-gradient(135deg, var(--ocean-deep), var(--teal-vibrant));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

.border-gradient {
  position: relative;
  border: 2px solid transparent;
  background-clip: padding-box;
  background: linear-gradient(135deg, var(--teal-vibrant), var(--gold-premium));
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE ENHANCEMENTS
   ═══════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .blob {
    opacity: 0.3;
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(135deg, var(--dark-navy) 0%, var(--dark-deep) 100%);
  }
  
  p {
    color: var(--gray-light);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   FIN ARCHETYPE 08 PREMIUM 2026-GRADE
   ═══════════════════════════════════════════════════════════════════════════ */
