/* 
  Styles: Creciendo en Grande | Constelaciones Familiares
  Design Theme: Cosmic Wellness
  Architecture: Cascade Layers (@layer reset, base, components, utility)
*/

@layer reset, base, components, utility;

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

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Offset for sticky header */
  }

  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
  }

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

  button, input, select, textarea {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
  }

  button {
    cursor: pointer;
  }

  ul, ol {
    list-style: none;
  }

  a {
    text-decoration: none;
    color: inherit;
  }
}

@layer base {
  :root {
    /* Design Tokens - Colors */
    --bg-light: #FDFBF7;
    --bg-dark: #120C18;
    --text-dark: #1C1625;
    --text-light: #F3EFF7;
    --gold-color: #D4AF37;
    --gold-hover: #F3CD5F;
    --purple-glow: #8A2BE2;
    --purple-light: #7E57C2;
    --gray-muted: #8E8A94;
    --border-glass: rgba(212, 175, 55, 0.15);
    
    /* Typography */
    --font-heading: 'Cinzel', serif;
    --font-body: 'Inter', sans-serif;
    
    /* Layout Constants */
    --container-width: 1200px;
    --header-height: 90px;
    --header-height-shrink: 70px;
    --logo-height: 76px;
    --logo-height-shrink: 56px;
    --transition-smooth: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: all 0.2s ease;
    
    /* Shadows */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --shadow-glow: 0 0 25px rgba(212, 175, 55, 0.25);
  }

  body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    background-color: var(--bg-light);
    color: var(--text-dark);
    transition: background-color 0.5s ease, color 0.5s ease;
  }

  /* Headings */
  h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-dark);
  }

  .container {
    width: 100%;
    max-width: var(--container-width);
    margin-inline: auto;
    padding-inline: 24px;
  }
  
  /* Selection styling */
  ::selection {
    background-color: var(--gold-color);
    color: var(--bg-dark);
  }
}

@layer components {
  /* Dynamic Background Starry Sky Overlay */
  .stars-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.12;
    background-image: 
      radial-gradient(1px 1px at 20px 30px, white, rgba(0,0,0,0)),
      radial-gradient(1.5px 1.5px at 40px 70px, var(--gold-color), rgba(0,0,0,0)),
      radial-gradient(2px 2px at 90px 150px, white, rgba(0,0,0,0)),
      radial-gradient(1px 1px at 150px 240px, var(--purple-glow), rgba(0,0,0,0)),
      radial-gradient(2px 2px at 250px 50px, white, rgba(0,0,0,0)),
      radial-gradient(1.5px 1.5px at 320px 180px, var(--gold-color), rgba(0,0,0,0));
    background-repeat: repeat;
    background-size: 550px 550px;
    transition: opacity 0.5s ease;
  }

  /* Glassmorphism Panel styles */
  .glass-panel {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: var(--shadow-soft);
    border-radius: 16px;
    padding: 32px;
    transition: var(--transition-smooth);
  }

  /* Buttons */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
    letter-spacing: 0.05em;
    text-transform: uppercase;
  }

  .btn-primary {
    background-color: var(--text-dark);
    color: var(--bg-light);
    border: 1px solid var(--text-dark);
  }

  .btn-primary:hover {
    background-color: var(--gold-color);
    color: var(--bg-dark);
    border-color: var(--gold-color);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
  }

  .btn-outline {
    border: 1px solid var(--text-dark);
    color: var(--text-dark);
  }

  .btn-outline:hover {
    background-color: var(--text-dark);
    color: var(--bg-light);
    transform: translateY(-2px);
  }

  .btn-gold {
    background-color: var(--gold-color);
    color: var(--bg-dark);
    border: 1px solid var(--gold-color);
  }

  .btn-gold:hover {
    background-color: var(--gold-hover);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
  }
  
  .btn-block {
    display: flex;
    width: 100%;
  }

  /* ------------------- HEADER STYLING ------------------- */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 100;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
  }

  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }

  /* Logo */
  .logo {
    display: flex;
    align-items: center;
  }

  .logo-img {
    height: var(--logo-height);
    width: auto;
    display: block;
    object-fit: contain;
    transition: var(--transition-smooth);
    filter: drop-shadow(0 2px 4px rgba(28,22,37,0.06));
  }

  .logo:hover .logo-img {
    transform: scale(1.03);
  }

  /* Fallback header shrink for Firefox/Safari */
  .site-header.shrunk .logo-img {
    height: var(--logo-height-shrink);
  }

  /* Navigation menu desktop */
  .desktop-nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
  }

  .nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-dark);
    opacity: 0.85;
    position: relative;
    padding-block: 6px;
    text-transform: uppercase;
    transition: var(--transition-fast);
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    background-color: var(--gold-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease-out;
  }

  .nav-link:hover, .nav-link.active {
    opacity: 1;
    color: var(--gold-color);
  }

  .nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .btn-header-contact {
    background-color: var(--text-dark);
    color: var(--bg-light) !important;
    padding: 8px 20px !important;
    border-radius: 30px;
    opacity: 1 !important;
  }

  .btn-header-contact:hover {
    background-color: var(--gold-color);
    color: var(--bg-dark) !important;
  }

  .btn-header-contact::after {
    display: none;
  }

  /* Hamburger Menu Button */
  .mobile-nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 30px;
    height: 30px;
    justify-content: center;
    align-items: center;
    z-index: 110;
  }

  .hamburger-bar {
    width: 24px;
    height: 2px;
    background-color: var(--text-dark);
    transition: var(--transition-smooth);
    transform-origin: center;
  }

  /* Sticky shrink header effect */
  .site-header.shrunk {
    height: var(--header-height-shrink);
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(28, 22, 37, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  }

  /* ------------------- MOBILE NAVIGATION ------------------- */
  .mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(253, 251, 247, 0.98);
    backdrop-filter: blur(20px);
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
  }

  .mobile-nav.open {
    transform: translateX(0);
  }

  .mobile-nav-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    text-align: center;
  }

  .mobile-nav ul {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .mobile-link {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-dark);
    text-transform: uppercase;
    transition: var(--transition-fast);
  }

  .mobile-link:hover {
    color: var(--gold-color);
  }

  .btn-mobile-contact {
    color: var(--gold-color) !important;
  }

  .mobile-nav-footer {
    margin-top: 40px;
    opacity: 0.6;
    font-size: 0.85rem;
  }
  
  .location-badge {
    display: block;
    margin-top: 6px;
    color: var(--gold-color);
    font-weight: 500;
  }

  /* ------------------- HERO SECTION ------------------- */
  .hero-section {
    position: relative;
    padding-top: var(--header-height);
    min-height: 98vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
  }

  .hero-parallax-bg {
    position: absolute;
    inset: 0;
    background-image: url('img/banner.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: -2;
    transform: scale(1.05);
  }

  .hero-mask-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(18, 12, 24, 0.4) 0%, rgba(18, 12, 24, 0.72) 100%);
    z-index: -1;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    text-align: center;
    width: 100%;
    z-index: 5;
  }

  /* Brand Logo & Heartbeat/Glow Animations in Hero */
  .hero-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
  }

  .hero-logo-wrapper {
    position: relative;
    padding: 16px 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(253, 251, 247, 0.86); /* Premium light pearl-grey/cream glass capsule for maximum contrast */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: var(--transition-smooth);
  }

  .hero-logo-wrapper:hover {
    transform: scale(1.02);
    background: rgba(253, 251, 247, 0.95);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.22), 0 0 15px rgba(212, 175, 55, 0.1);
  }

  .hero-logo-wrapper .hero-logo-img {
    height: clamp(100px, 12vw, 150px);
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.45));
    animation: floatLogo 6s ease-in-out infinite;
  }

  /* Dual glow aura overlay mapping perfectly behind Logo.png */
  .logo-glow-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, rgba(229, 57, 53, 0.1) 60%, transparent 100%);
    z-index: 1;
    pointer-events: none;
    animation: logoGlowPulse 4s ease-in-out infinite alternate;
  }

  /* Heartbeat Red Frame animation mapped perfectly to the user's "cuadro rojo" */
  .logo-glow-ring::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 86px;
    height: 86px;
    border-radius: 6px;
    border: 2px solid rgba(229, 57, 53, 0.45);
    box-shadow: inset 0 0 12px rgba(229, 57, 53, 0.25), 0 0 20px rgba(229, 57, 53, 0.35);
    animation: heartBoxPulse 2s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
  }

  @keyframes floatLogo {
    0%, 100% {
      transform: translateY(0) scale(1);
      filter: drop-shadow(0 6px 15px rgba(0, 0, 0, 0.45));
    }
    50% {
      transform: translateY(-8px) scale(1.03);
      filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.55));
    }
  }

  @keyframes logoGlowPulse {
    0% {
      transform: translate(-50%, -50%) scale(0.9);
      box-shadow: 0 0 15px rgba(229, 57, 53, 0.15), 0 0 30px rgba(212, 175, 55, 0.1);
      opacity: 0.65;
    }
    100% {
      transform: translate(-50%, -50%) scale(1.15);
      box-shadow: 0 0 35px rgba(212, 175, 55, 0.45), 0 0 55px rgba(229, 57, 53, 0.2);
      opacity: 1;
    }
  }

  @keyframes heartBoxPulse {
    0%, 100% {
      transform: translate(-50%, -50%) scale(0.96);
      opacity: 0.5;
    }
    30% {
      transform: translate(-50%, -50%) scale(1.08);
      border-color: rgba(229, 57, 53, 0.95);
      box-shadow: inset 0 0 15px rgba(229, 57, 53, 0.55), 0 0 28px rgba(229, 57, 53, 0.75), 0 0 12px rgba(212, 175, 55, 0.4);
      opacity: 1;
    }
    45% {
      transform: translate(-50%, -50%) scale(1.02);
      border-color: rgba(229, 57, 53, 0.75);
      box-shadow: inset 0 0 12px rgba(229, 57, 53, 0.4), 0 0 22px rgba(229, 57, 53, 0.55);
      opacity: 0.8;
    }
    60% {
      transform: translate(-50%, -50%) scale(1.06);
      border-color: rgba(229, 57, 53, 0.85);
      box-shadow: inset 0 0 15px rgba(229, 57, 53, 0.5), 0 0 26px rgba(229, 57, 53, 0.65);
      opacity: 0.9;
    }
  }

  .hero-text-block {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.4rem, 5.5vw + 1rem, 5.6rem);
    font-weight: 800;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.1;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.45), 0 0 40px rgba(212, 175, 55, 0.2);
    background: linear-gradient(135deg, #ffffff 40%, var(--gold-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textGlowFade 4s ease-in-out infinite alternate;
  }

  .hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 1.4vw + 0.4rem, 1.5rem);
    font-weight: 300;
    color: var(--gray-muted);
    letter-spacing: 0.25em;
    text-transform: uppercase;
    line-height: 1.5;
    max-width: 720px;
    margin: 0 auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }

  @keyframes textGlowFade {
    0% {
      filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.1));
    }
    100% {
      filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.45));
    }
  }

  .hero-center-graphic {
    max-width: 580px;
    width: 100%;
    margin: 0 auto;
  }

  .hero-heart-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero-heart-image {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 25px rgba(212, 175, 55, 0.35));
    animation: pulseSlow 4s ease-in-out infinite;
    z-index: 2;
  }

  @keyframes pulseSlow {
    0%, 100% {
      filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
      transform: scale(1);
    }
    50% {
      filter: drop-shadow(0 0 35px rgba(212, 175, 55, 0.5));
      transform: scale(1.02);
    }
  }

  /* Dynamic Cosmic Orbiting Ring (Factor WOW) */
  .orbiting-ring {
    position: absolute;
    top: 42%; /* perfectly aligns with the mathematical center of the geometric heart */
    left: 50%;
    width: 79%; /* expands just beyond the heart boundaries for standard spacing */
    height: 79%;
    transform: translate(-50%, -50%);
    animation: orbitRotate 45s linear infinite;
    pointer-events: none;
    z-index: 1;
  }

  @keyframes orbitRotate {
    from {
      transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
      transform: translate(-50%, -50%) rotate(360deg);
    }
  }

  .orbit-arm {
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 100%;
    transform: translate(-50%, 0) rotate(var(--angle));
    transform-origin: 50% 50%;
  }

  .orbit-dot {
    position: absolute;
    top: 0; /* positions the dot at the exact radius of the circle */
    left: 50%;
    width: 8px;
    height: 8px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px #ffffff, 0 0 16px var(--gold-color);
    transform: translate(-50%, -50%);
    animation: dotPulse 3s ease-in-out infinite;
    animation-delay: calc(var(--angle) * -0.05s); /* beautiful ripple-pulse cascade around the circle */
  }

  @keyframes dotPulse {
    0%, 100% {
      transform: translate(-50%, -50%) scale(1);
      box-shadow: 0 0 8px #ffffff, 0 0 16px var(--gold-color);
      opacity: 0.8;
    }
    50% {
      transform: translate(-50%, -50%) scale(1.3);
      box-shadow: 0 0 12px #ffffff, 0 0 22px var(--gold-color);
      opacity: 1;
    }
  }

  .hero-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    width: 100%;
    max-width: 620px;
  }

  .hero-btn-row {
    display: flex;
    gap: 16px;
    width: 100%;
  }

  .hero-btn-row .btn {
    flex: 1;
    padding: 14px 28px;
    font-size: 0.88rem;
    text-align: center;
    white-space: nowrap;
  }

  .btn-wide {
    width: 100%;
    padding: 14px 28px;
    background-color: rgba(253, 251, 247, 0.85) !important;
    color: var(--text-dark) !important;
    border: 1px solid rgba(253, 251, 247, 0.85) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-align: center;
  }

  .btn-wide:hover {
    background-color: var(--gold-color) !important;
    color: var(--bg-dark) !important;
    border-color: var(--gold-color) !important;
    box-shadow: var(--shadow-glow);
  }  /* ------------------- ABOUT SECTION ------------------- */
  .about-section {
    padding-block: 100px;
    position: relative;
    background-color: var(--bg-light);
  }

  .section-header {
    margin-bottom: 60px;
  }

  .section-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--gold-color);
    letter-spacing: 0.3em;
    margin-bottom: 8px;
  }

  .section-title {
    font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
  }

  .accent-line {
    width: 60px;
    height: 2px;
    background-color: var(--gold-color);
    margin: 0 auto 24px auto;
  }

  .about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
  }

  .about-lead {
    font-size: 1.35rem;
    line-height: 1.4;
    margin-bottom: 24px;
    color: var(--text-dark);
    font-weight: 500;
    font-family: var(--font-heading);
  }

  .about-para {
    margin-bottom: 16px;
    opacity: 0.85;
  }

  .concept-explanation-card {
    border: 1px dashed var(--gold-color);
    position: relative;
  }

  .concept-tag {
    display: inline-block;
    background-color: rgba(212, 175, 55, 0.12);
    color: var(--gold-color);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
  }

  .concept-explanation-card h3 {
    margin-bottom: 16px;
    font-size: 1.45rem;
  }

  .concept-explanation-card p {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-bottom: 16px;
  }

  .concept-cta {
    margin-top: 24px;
  }

  /* ------------------- INTERACTIVE WIDGET ------------------- */
  .constellation-widget-container {
    margin-top: 80px;
    border: 1px solid var(--border-glass);
    padding: 40px !important;
  }

  .widget-header {
    text-align: center;
    margin-bottom: 40px;
    max-width: 600px;
    margin-inline: auto;
  }

  .widget-header h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
  }

  .widget-header p {
    font-size: 0.95rem;
    opacity: 0.8;
  }

  .widget-sandbox-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
  }

  .widget-visual-area {
    background: radial-gradient(circle at center, #231B2D 0%, #100A16 100%);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
    position: relative;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.6);
    overflow: hidden;
  }

  .constellation-interactive-svg {
    width: 100%;
    height: 100%;
    min-height: 380px;
  }

  /* Interactive Nodes */
  .node-item {
    cursor: pointer;
  }

  .node-bg {
    fill: rgba(255, 255, 255, 0.03);
    stroke: rgba(212, 175, 55, 0.25);
    stroke-width: 1;
    transition: var(--transition-smooth);
  }

  .node-core {
    transition: var(--transition-smooth);
    filter: url(#glow);
  }

  .node-label {
    fill: #FFFFFF;
    font-family: var(--font-body);
    font-size: 0.72rem;
    font-weight: 500;
    text-anchor: middle;
    pointer-events: none;
    letter-spacing: 0.05em;
    opacity: 0.9;
  }

  .node-label.sm {
    font-size: 0.6rem;
  }

  /* Node Hover/Active classes */
  .node-item:hover .node-bg, .node-item.active .node-bg {
    fill: rgba(212, 175, 55, 0.12);
    stroke: var(--gold-color);
    stroke-width: 1.5;
    r: 29px;
  }

  .node-item:hover .node-core, .node-item.active .node-core {
    fill: var(--gold-hover);
    r: 18px;
    filter: url(#gold-glow);
  }
  
  .node-item[data-node="ancestros"]:hover .node-bg,
  .node-item[data-node="ancestros"].active .node-bg,
  .node-item[data-node="orden"]:hover .node-bg,
  .node-item[data-node="orden"].active .node-bg,
  .node-item[data-node="equilibrio"]:hover .node-bg,
  .node-item[data-node="equilibrio"].active .node-bg {
    r: 24px;
  }
  
  .node-item[data-node="ancestros"]:hover .node-core,
  .node-item[data-node="ancestros"].active .node-core,
  .node-item[data-node="orden"]:hover .node-core,
  .node-item[data-node="orden"].active .node-core,
  .node-item[data-node="equilibrio"]:hover .node-core,
  .node-item[data-node="equilibrio"].active .node-core {
    r: 13px;
  }

  /* Glowing Link Lines */
  .constellation-link {
    stroke: var(--gold-color);
    stroke-width: 1.5;
    stroke-dasharray: 4 2;
    animation: dash 15s linear infinite;
    opacity: 0.45;
  }

  @keyframes dash {
    to {
      stroke-dashoffset: -100;
    }
  }

  /* Description Box Panel */
  .widget-details-area {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px dashed rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    transition: var(--transition-smooth);
  }

  .detail-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    color: var(--text-dark);
    opacity: 0.75;
  }

  .detail-placeholder h4 {
    font-size: 1.2rem;
  }

  .detail-placeholder p {
    font-size: 0.88rem;
    max-width: 250px;
  }

  .detail-content {
    animation: fadeIn 0.4s ease forwards;
    width: 100%;
  }

  .detail-category-badge {
    display: inline-block;
    color: var(--gold-color);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 8px;
  }

  #node-title {
    font-size: 1.45rem;
    margin-bottom: 12px;
    color: var(--text-dark);
  }

  #node-text {
    font-size: 0.92rem;
    line-height: 1.5;
    opacity: 0.85;
    margin-bottom: 20px;
  }

  .node-quote-box {
    position: relative;
    padding-left: 28px;
    border-left: 2px solid var(--gold-color);
    margin-top: 16px;
  }

  .quote-symbol {
    position: absolute;
    left: 8px;
    top: -10px;
    font-size: 2.5rem;
    font-family: var(--font-heading);
    color: var(--gold-color);
    opacity: 0.3;
    line-height: 1;
  }

  .quote-text {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-dark);
    opacity: 0.9;
  }

  /* ------------------- CONSTELADORES (TEAM) ------------------- */
  .team-section {
    padding-block: 100px;
    background: radial-gradient(circle at 10% 80%, #F5EFFE 0%, var(--bg-light) 50%);
  }

  .section-subtitle {
    max-width: 600px;
    margin-inline: auto;
    opacity: 0.8;
    font-size: 1.05rem;
  }

  .team-group-title {
    font-size: 1.6rem;
    text-align: center;
    margin-top: 40px;
    margin-bottom: 32px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dark);
  }

  .team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
  }

  .team-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-glass);
    transition: var(--transition-smooth);
  }

  .team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(28,22,37,0.06);
    border-color: rgba(212,175,55,0.4);
  }

  .team-img-wrapper {
    height: 280px;
    position: relative;
    background-color: var(--bg-dark);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .avatar-aura-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s ease;
  }

  .team-card:hover .avatar-aura-bg {
    transform: scale(1.1);
  }

  .team-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }

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

  .team-info {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }

  .team-role {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-color);
    font-weight: 600;
    margin-bottom: 6px;
  }

  .team-name {
    font-size: 1.35rem;
    margin-bottom: 12px;
  }

  .team-bio {
    font-size: 0.9rem;
    opacity: 0.85;
    line-height: 1.5;
  }



  /* ------------------- SERVICES SECTION ------------------- */
  .services-section {
    padding-block: 100px;
    background-color: var(--bg-light);
    position: relative;
    overflow: hidden;
  }

  /* Featured Service Layout (Constelaciones Familiares) */
  .featured-service-block {
    background: rgba(18, 12, 24, 0.65) !important;
    border: 1px solid var(--border-glass) !important;
    border-radius: 24px;
    padding: 48px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), inset 0 0 40px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    overflow: hidden;
    margin-top: 50px;
    position: relative;
    z-index: 5;
  }

  .featured-service-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 48px;
    align-items: center;
  }

  .service-visual-col {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .cosmic-visual-container {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 1;
    background: radial-gradient(circle at center, #241A30 0%, #0d0815 100%);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.8), 0 15px 35px rgba(0, 0, 0, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 24px;
  }

  .cosmic-visual-container .hero-heart-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .cosmic-visual-container .hero-heart-image {
    width: 80%;
    height: auto;
    z-index: 2;
  }

  .cosmic-visual-container .orbiting-ring {
    width: 64%;
    height: 64%;
    top: 40%;
    z-index: 1;
  }

  .service-info-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .service-info-col h3 {
    font-size: clamp(1.8rem, 2vw + 0.8rem, 2.2rem);
    font-family: var(--font-heading);
    color: var(--text-light);
    margin-bottom: 20px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }

  .service-info-col .service-desc {
    color: var(--text-light);
    opacity: 0.85;
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 28px;
  }

  .service-info-col .service-meta {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    padding-top: 16px;
    margin-bottom: 28px;
  }

  .service-info-col .service-duration,
  .service-info-col .service-modality {
    color: var(--text-light);
    opacity: 0.9;
  }

  /* Relocated constellation widget spacing */
  .featured-service-block .constellation-widget-container {
    margin-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 40px !important;
  }

  .featured-service-block .constellation-widget-container .widget-header h3 {
    color: var(--text-light);
  }

  .featured-service-block .constellation-widget-container .widget-header p {
    color: var(--text-light);
    opacity: 0.8;
  }

  /* Grid of Secondary Services */
  .secondary-services-title {
    font-family: var(--font-heading);
    font-size: clamp(1.4rem, 1.5vw + 0.5rem, 1.8rem);
    color: var(--text-dark);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1.5px solid var(--border-glass);
    padding-bottom: 12px;
    max-width: 650px;
    margin-inline: auto;
    text-align: center;
    margin-top: 64px;
    margin-bottom: 32px;
  }

  .services-grid-secondary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    position: relative;
    z-index: 5;
  }

  /* Standard service grid fallback/reset */
  .services-grid {
    display: none !important;
  }

  .service-card {
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid rgba(28,22,37,0.06);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
  }

  .service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(28,22,37,0.06);
    border-color: rgba(212,175,55,0.3);
  }

  .service-img-wrapper {
    height: 260px;
    position: relative;
    overflow: hidden;
    width: 100%;
  }

  .service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
  }

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

  .service-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(28,22,37,0.85);
    color: var(--gold-color);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(212,175,55,0.25);
  }

  .service-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
  }

  .service-content h3 {
    font-size: 1.45rem;
    margin-bottom: 16px;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-dark);
  }

  .service-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.85;
    margin-bottom: 24px;
    color: var(--text-dark);
    flex-grow: 1;
  }

  .service-meta {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
    border-top: 1px solid rgba(28,22,37,0.06);
    padding-top: 16px;
  }

  .service-duration, .service-modality {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-dark);
    opacity: 0.9;
  }

  .service-duration svg, .service-modality svg {
    flex-shrink: 0;
  }



  /* ------------------- FORMACION SECTION ------------------- */
  .formacion-section {
    padding-block: 100px;
    background-color: var(--bg-dark);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
  }

  .formacion-section h2, .formacion-section h3, .formacion-section h4 {
    color: var(--text-light);
  }

  .formacion-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr 0.85fr;
    gap: 40px;
    align-items: stretch;
    position: relative;
    z-index: 5;
  }

  .formacion-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
    min-height: 380px;
    border: 1px solid var(--border-glass);
    box-shadow: 0 20px 40px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .formacion-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
  }

  .formacion-image-container:hover .formacion-img {
    transform: scale(1.05);
  }

  .formacion-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(18, 12, 24, 0.7) 0%, rgba(18, 12, 24, 0) 100%);
    pointer-events: none;
  }

  .sub-badge {
    display: inline-block;
    color: var(--gold-color);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 8px;
  }

  .formacion-title {
    font-size: clamp(2rem, 1rem + 3vw, 2.8rem);
    margin-bottom: 20px;
  }

  .accent-line.white {
    background-color: var(--text-light);
    opacity: 0.25;
    margin-inline: 0;
  }

  .lead-p {
    font-size: 1.25rem;
    line-height: 1.45;
    margin-bottom: 20px;
    font-family: var(--font-heading);
    color: var(--text-light);
    opacity: 0.95;
  }

  .desc-p {
    font-size: 0.95rem;
    opacity: 0.75;
    margin-bottom: 32px;
  }

  .formacion-bullets {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .formacion-bullets li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
  }

  .bullet-icon {
    width: 24px;
    height: 24px;
    background-color: rgba(212,175,55,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
  }

  .formacion-bullets span {
    font-size: 0.95rem;
    opacity: 0.9;
  }

  /* Interactive Brochure Card */
  .formacion-interactive-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-light);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .brochure-preview-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .brochure-icon {
    animation: hoverSlow 4s ease-in-out infinite;
  }

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

  .brochure-preview-area h4 {
    font-size: 1.3rem;
  }

  .text-muted {
    font-size: 0.88rem;
    opacity: 0.6;
  }

  .brochure-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .secure-badge {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gold-color);
    opacity: 0.8;
  }

  .glow-orb-3 {
    right: -200px;
    bottom: -200px;
    width: 600px;
    height: 600px;
    background-color: rgba(212,175,55,0.1);
  }

  /* ------------------- EVENTS (TALLERES) ------------------- */
  .events-section {
    padding-block: 100px;
    background-color: var(--bg-light);
  }

  .events-timeline {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 1000px;
    margin-inline: auto;
  }

  .event-card-horizontal {
    display: flex;
    gap: 32px;
    align-items: center;
    padding: 24px 32px;
    border: 1px solid rgba(28,22,37,0.06);
    transition: var(--transition-smooth);
  }

  .event-card-horizontal:hover {
    border-color: var(--border-glass);
    box-shadow: 0 16px 30px rgba(0,0,0,0.04);
    transform: translateX(4px);
  }

  .event-date-badge {
    width: 90px;
    height: 90px;
    border-radius: 12px;
    background-color: var(--text-dark);
    color: var(--bg-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: var(--font-heading);
    box-shadow: var(--shadow-soft);
  }

  .event-date-badge.accent {
    background-color: var(--gold-color);
    color: var(--bg-dark);
  }

  .event-date-badge .month {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    opacity: 0.8;
  }

  .event-date-badge .day {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
    margin-block: 2px;
  }

  .event-date-badge .year {
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    opacity: 0.8;
  }

  .event-details-content {
    flex-grow: 1;
  }

  .event-type-pill {
    display: inline-block;
    background-color: rgba(28,22,37,0.05);
    color: var(--text-dark);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
  }

  .event-details-content h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    font-family: var(--font-body);
    font-weight: 600;
  }

  .event-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 12px;
    max-width: 600px;
  }

  .event-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }

  .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    opacity: 0.75;
  }

  .more-info-month {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-color, #D4AF37);
    opacity: 0.8;
  }
  .btn-more-info {
    cursor: pointer;
  }

  .event-cta-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .spots-badge {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gold-color);
  }

  /* Event image thumbnail */
  .event-img-thumb-wrapper {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 2px solid rgba(212,175,55,0.3);
    transition: var(--transition-smooth);
  }

  .event-img-thumb-wrapper:hover {
    border-color: var(--gold-color);
    transform: scale(1.04);
  }

  .event-img-thumb-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
  }

  .event-img-thumb-wrapper .thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  .event-img-thumb-wrapper:hover .thumb-overlay {
    opacity: 1;
  }

  .thumb-overlay svg {
    color: #fff;
  }


  /* ------------------- CONTACT SECTION ------------------- */
  .contact-section {
    padding-block: 100px;
    background: radial-gradient(circle at 80% 80%, #F5EFFE 0%, var(--bg-light) 60%);
    position: relative;
    border-top: 1px solid rgba(28,22,37,0.04);
  }

  .contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 60px;
    align-items: start;
  }

  .contact-title {
    font-size: clamp(2rem, 1rem + 3vw, 2.6rem);
    margin-bottom: 20px;
  }

  .contact-intro {
    opacity: 0.85;
    margin-bottom: 32px;
  }

  .contact-locations {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
  }

  .location-item {
    display: flex;
    gap: 20px;
    padding: 24px !important;
    align-items: flex-start;
  }

  .location-icon {
    width: 44px;
    height: 44px;
    background-color: rgba(212,175,55,0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .location-item h4 {
    font-size: 1.1rem;
    margin-bottom: 6px;
    font-family: var(--font-body);
    font-weight: 600;
  }

  .location-item p {
    font-size: 0.88rem;
    opacity: 0.8;
  }

  .social-networks {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .social-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
  }

  .social-links {
    display: flex;
    gap: 16px;
  }

  .social-icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: rgba(28,22,37,0.05);
    color: var(--text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
  }

  .social-icon-btn:hover {
    background-color: var(--gold-color);
    color: var(--bg-dark);
    transform: translateY(-4px);
    box-shadow: 0 10px 15px rgba(212,175,55,0.15);
  }

  /* Form Styling */
  .contact-form-panel {
    border: 1px solid var(--border-glass);
    background: #FFFFFF !important;
  }

  .contact-form-panel h3 {
    font-size: 1.45rem;
    margin-bottom: 8px;
  }

  .form-sub {
    font-size: 0.9rem;
    opacity: 0.8;
  }

  .form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    opacity: 0.9;
  }

  .form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 14px 20px;
    border-radius: 10px;
    border: 1px solid rgba(28,22,37,0.1);
    background-color: #FDFBF7;
    transition: var(--transition-fast);
    outline: none;
  }

  .form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--gold-color);
    box-shadow: 0 0 0 3px rgba(212,175,55,0.12);
    background-color: #FFFFFF;
  }

  .form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%231C1625' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
  }

  .form-success-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background-color: rgba(46, 125, 50, 0.1);
    border: 1px solid rgba(46, 125, 50, 0.2);
    border-radius: 10px;
    color: #2e7d32;
    font-size: 0.88rem;
    font-weight: 500;
    margin-top: 16px;
    animation: fadeIn 0.4s ease forwards;
  }

  /* ------------------- WHATSAPP FLOATING BUTTON ------------------- */
  .whatsapp-floating-btn {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 66px;
    height: 66px;
    background-color: #25D366;
    color: #FFFFFF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 24px rgba(37, 211, 102, 0.3);
    z-index: 90;
    transition: var(--transition-smooth);
  }

  .whatsapp-floating-btn svg {
    width: 36px;
    height: 36px;
    display: block;
    transition: var(--transition-smooth);
  }

  .whatsapp-floating-btn:hover {
    transform: scale(1.1) translateY(-4px);
    box-shadow: 0 16px 32px rgba(37, 211, 102, 0.4);
  }

  .whatsapp-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #25D366;
    border-radius: 50%;
    top: 0;
    left: 0;
    z-index: -1;
    animation: pulse 2.2s infinite;
  }

  @keyframes pulse {
    0% { transform: scale(1); opacity: 0.75; }
    100% { transform: scale(1.6); opacity: 0; }
  }

  /* ------------------- FOOTER STYLING ------------------- */
  .site-footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
    padding-top: 80px;
    padding-bottom: 40px;
    border-top: 1px solid rgba(255,255,255,0.06);
    position: relative;
    z-index: 10;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 0.9fr;
    gap: 60px;
    margin-bottom: 60px;
  }

  .footer-logo-text {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-light);
    text-transform: uppercase;
    display: block;
    margin-bottom: 16px;
    letter-spacing: 0.05em;
  }

  .footer-desc {
    opacity: 0.65;
    font-size: 0.9rem;
    max-width: 320px;
    line-height: 1.5;
  }

  .footer-grid h4 {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold-color);
    margin-bottom: 24px;
    font-family: var(--font-body);
  }

  .footer-nav-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .footer-nav-col a {
    font-size: 0.88rem;
    opacity: 0.7;
    transition: var(--transition-fast);
  }

  .footer-nav-col a:hover {
    color: var(--gold-color);
    opacity: 1;
    padding-left: 4px;
  }

  .footer-contact-col p {
    font-size: 0.88rem;
    opacity: 0.7;
    margin-bottom: 12px;
  }

  .footer-contact-col .schedule {
    font-size: 0.82rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 12px;
    margin-top: 16px;
    font-style: italic;
    opacity: 0.55;
  }

  .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06);
    padding-top: 40px;
    font-size: 0.8rem;
    opacity: 0.45;
  }
}

@layer utility {
  .text-center { text-align: center; }
  .text-right { text-align: right; }
  .mt-5 { margin-top: 48px; }
  .mt-4 { margin-top: 32px; }
  .mb-4 { margin-bottom: 32px; }
  .hidden { display: none !important; }
  .mr-2 { margin-right: 8px; }
  
  .gradient-text {
    background: linear-gradient(135deg, var(--text-dark) 40%, var(--gold-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .hero-section .gradient-text {
    background: linear-gradient(135deg, var(--text-dark) 45%, var(--gold-color) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  /* Fade-In reveal styles for JavaScript fallback */
  .reveal-hidden {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  }

  .reveal-visible {
    opacity: 1;
    transform: translateY(0);
  }

  /* Simple animations */
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

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

  .animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  }

  .delay-200 {
    animation-delay: 0.2s;
  }

  /* ------------------- SCROLL DRIVEN ANIMATIONS (NATIVE BROWSER SUPPORT) ------------------- */
  @media (prefers-reduced-motion: no-preference) {
    @supports ((animation-timeline: scroll()) and (animation-range: 0px 100px)) {
      /* Native Sticky Shrinking Header on Scroll */
      @keyframes shrinkHeader {
        to {
          height: var(--header-height-shrink);
          background: rgba(253, 251, 247, 0.9);
          backdrop-filter: blur(20px);
          -webkit-backdrop-filter: blur(20px);
          border-bottom: 1px solid rgba(28, 22, 37, 0.06);
          box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
        }
      }

      @keyframes shrinkLogo {
        to {
          height: var(--logo-height-shrink);
        }
      }

      .site-header {
        animation: shrinkHeader auto linear both;
        animation-timeline: scroll(block root);
        animation-range: 0px 120px;
      }

      .logo-img {
        animation: shrinkLogo auto linear both;
        animation-timeline: scroll(block root);
        animation-range: 0px 120px;
      }

      /* Native Parallax Background Scroll Animation */
      @keyframes parallaxScroll {
        to {
          transform: translateY(20%) scale(1.12);
        }
      }

      .hero-parallax-bg {
        animation: parallaxScroll auto linear both;
        animation-timeline: scroll(block root);
        animation-range: 0vh 100vh;
      }
    }

    @supports ((animation-timeline: view()) and (animation-range: entry)) {
      /* Native Scroll Entrance Reveal animations */
      @keyframes scrollReveal {
        from {
          opacity: 0;
          transform: translateY(40px) scale(0.96);
        }
        to {
          opacity: 1;
          transform: translateY(0) scale(1);
        }
      }

      .scroll-trigger {
        animation: scrollReveal auto cubic-bezier(0.25, 1, 0.5, 1) both;
        animation-timeline: view();
        animation-range: entry 10% entry 40%;
      }
    }
  }
}

  /* ------------------- APP SECTION ------------------- */
  .app-section {
    padding-block: var(--section-padding, 100px);
    position: relative;
    background: radial-gradient(circle at 10% 10%, rgba(212, 175, 55, 0.02) 0%, transparent 50%),
                radial-gradient(circle at 90% 90%, rgba(138, 43, 226, 0.02) 0%, transparent 50%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.05);
    overflow: hidden;
  }

  .app-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
  }

  /* Phone Mockup Styling */
  .app-mockup-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
  }

  .phone-frame {
    width: 320px;
    height: 640px;
    border-radius: 40px;
    padding: 12px;
    background: rgba(28, 22, 37, 0.45);
    border: 2px solid rgba(212, 175, 55, 0.25);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25),
                0 0 30px rgba(212, 175, 55, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
  }

  .phone-frame:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.35),
                0 0 40px rgba(212, 175, 55, 0.2);
  }

  .phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    background-color: var(--bg-dark);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }

  .phone-header {
    height: 38px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-inline: 20px;
    color: var(--text-light);
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.7;
    position: relative;
    z-index: 10;
  }

  .phone-camera {
    width: 60px;
    height: 16px;
    background: #000000;
    border-radius: 20px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
  }

  .phone-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    align-items: center;
    gap: 20px;
    background: radial-gradient(circle at 50% 0%, rgba(138, 43, 226, 0.12) 0%, transparent 70%);
  }

  .phone-brand-logo {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 10px;
  }

  .phone-logo-img {
    height: 52px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
  }

  .phone-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 18px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    width: 100%;
    margin-top: 10px;
  }

  .phone-card-badge {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gold-color);
    background: rgba(212, 175, 55, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
  }

  .phone-card-quote {
    color: var(--text-light);
    font-family: var(--font-body);
    font-size: 0.82rem;
    line-height: 1.5;
    font-style: italic;
    opacity: 0.95;
    margin-bottom: 8px;
  }

  .phone-card-author {
    color: var(--gray-muted);
    font-size: 0.72rem;
    font-weight: 500;
  }

  .phone-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    width: 100%;
    margin-top: auto;
  }

  .phone-menu-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
  }

  .phone-menu-item:hover {
    background: rgba(212, 175, 55, 0.05);
    border-color: rgba(212, 175, 55, 0.15);
  }

  .phone-menu-item .menu-icon {
    font-size: 1.2rem;
  }

  .phone-menu-item .menu-label {
    font-size: 0.65rem;
    color: var(--text-light);
    font-weight: 500;
    opacity: 0.8;
  }

  .app-glow-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    filter: blur(40px);
  }

  /* App Content Panel */
  .app-content-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .app-title {
    font-size: 2.2rem;
    margin-top: 12px;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
  }

  .app-description {
    font-size: 1.05rem;
    color: var(--gray-muted);
    line-height: 1.7;
    margin-bottom: 32px;
  }

  .app-features-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    width: 100%;
  }

  .app-features-list li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .app-features-list .feature-icon {
    font-size: 1.3rem;
    background: rgba(212, 175, 55, 0.08);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
  }

  .app-features-list li strong {
    color: var(--text-dark);
    display: block;
    margin-bottom: 2px;
  }

  .app-features-list li div {
    color: var(--gray-muted);
  }

  /* Download Badges */
  .app-download-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }

  .download-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #0D0814;
    color: #ffffff;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 12px;
    padding: 10px 18px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }

  .download-badge:hover {
    background: #1C1625;
    border-color: var(--gold-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow), 0 8px 25px rgba(212, 175, 55, 0.15);
  }

  .download-badge .badge-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }

  .download-badge .badge-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .download-badge .badge-sub {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
    line-height: 1;
    margin-bottom: 2px;
  }

  .download-badge .badge-main {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.1;
  }

/* ------------------- RESPONSIVE DESIGN (MEDIA QUERIES) ------------------- */
@media (max-width: 992px) {
  :root {
    --header-height: 80px;
    --header-height-shrink: 64px;
    --logo-height: 64px;
    --logo-height-shrink: 50px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }

  .about-grid, .contact-grid, .app-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .app-content-panel {
    align-items: center;
    text-align: center;
  }

  .app-features-list li {
    text-align: left;
  }

  .app-download-badges {
    justify-content: center;
  }
  
  .widget-sandbox-grid {
    grid-template-columns: 1fr;
  }

  .formacion-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .featured-service-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .hero-btn-row {
    flex-direction: column;
    gap: 12px;
  }

  .hero-btn-row .btn {
    width: 100%;
    white-space: normal;
    text-align: center;
  }

  .whatsapp-floating-btn {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
  }

  .whatsapp-floating-btn svg {
    width: 28px;
    height: 28px;
  }

  .featured-service-block {
    padding: 24px !important;
  }

  .service-info-col h3 {
    font-size: 1.4rem !important;
  }

  .constellation-widget-container {
    padding: 20px !important;
  }
}

@media (max-width: 768px) {
  .event-card-horizontal {
    flex-direction: column;
    text-align: center;
    align-items: center;
    padding: 32px 24px;
  }

  .event-meta-info {
    justify-content: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .mobile-link {
    font-size: 1.4rem;
  }

  .constellation-widget-container {
    padding: 20px !important;
  }
}

/* Clamping team-bio text visual length to exactly 5 lines with identical card heights */
.team-bio {
  font-size: 0.9rem;
  opacity: 0.85;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 7.5em; /* ensures all cards align perfectly at the bottom */
  margin-bottom: 20px;
}

.btn-team-more {
  background: none;
  border: none;
  color: var(--gold-color);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 0;
  transition: var(--transition-fast);
  margin-top: auto;
  align-self: flex-start;
}

.btn-team-more:hover {
  color: var(--gold-hover);
  transform: translateX(4px);
}

/* ------------------- SYSTEMIC CV MODAL POPUP ------------------- */
.team-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.team-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.team-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18, 12, 24, 0.72);
  backdrop-filter: blur(8px);
}

.team-modal-container {
  position: relative;
  width: 100%;
  max-width: 900px;
  background: rgba(253, 251, 247, 0.95) !important;
  border: 1px solid rgba(212, 175, 55, 0.3) !important;
  border-radius: 24px;
  padding: 48px !important;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1010;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.team-modal.open .team-modal-container {
  transform: scale(1);
}

.team-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(28, 22, 37, 0.05);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  border: 1px solid rgba(28, 22, 37, 0.05);
  cursor: pointer;
}

.team-modal-close:hover {
  background: var(--text-dark);
  color: var(--bg-light);
  transform: rotate(90deg);
}

.team-modal-close svg {
  display: block;
}

/* CV Layout Structure inside Modal */
.cv-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: start;
}

.cv-left-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.cv-img-container {
  width: 100%;
  max-width: 250px;
  aspect-ratio: 1;
  border-radius: 20px;
  overflow: hidden;
  border: 2px solid var(--gold-color);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.2);
  background-color: var(--bg-dark);
}

.cv-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cv-role {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-color);
}

.cv-name {
  font-size: 1.8rem;
  color: var(--text-dark);
  font-family: var(--font-heading);
  margin-top: -8px;
}

.cv-right-col {
  display: flex;
  flex-direction: column;
  gap: 28px;
  text-align: left;
}

.cv-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cv-block h4 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dark);
  border-bottom: 1.5px solid var(--border-glass);
  padding-bottom: 6px;
  font-family: var(--font-body);
  font-weight: 600;
}

.cv-mision-box {
  background: rgba(212, 175, 55, 0.08);
  border-left: 3px solid var(--gold-color);
  padding: 16px;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-dark);
}

.cv-text {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
  color: var(--text-dark);
}

.cv-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cv-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-dark);
}

.cv-list-bullet {
  color: var(--gold-color);
  font-weight: bold;
  flex-shrink: 0;
}

.cv-skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cv-tag {
  background: rgba(28, 22, 37, 0.05);
  border: 1px solid rgba(28, 22, 37, 0.08);
  color: var(--text-dark);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 500;
}

.cv-frase-box {
  background: rgba(28, 22, 37, 0.03);
  border: 1px dashed rgba(212, 175, 55, 0.3);
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  position: relative;
}

.cv-frase-box h5 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gold-color);
  margin-bottom: 8px;
}

.cv-frase-box p {
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-dark);
}

/* Responsive styling for modal CV */
@media (max-width: 768px) {
  .cv-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .team-modal-container {
    padding: 32px 20px !important;
  }
}

/* Language Switcher Styling */
.header-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-btn {
  display: block;
  width: 24px;
  height: 15px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
  opacity: 0.55;
  cursor: pointer;
}

.lang-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lang-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px) scale(1.05);
}

.lang-btn.active {
  opacity: 1;
  border: 1.5px solid var(--gold-color);
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

/* Mobile Language Switcher overlay menu */
.mobile-lang-switcher {
  display: flex;
  gap: 16px;
  margin-top: 15px;
  justify-content: center;
}

/* ── Event Lightbox (outside @layer for cascade priority) ── */
.event-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.event-lightbox.open {
  display: flex;
}
.event-lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6);
  animation: lightboxIn 0.25s ease;
}
@keyframes lightboxIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}
.event-lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10000;
}
.event-lightbox-close:hover {
  background: rgba(255,255,255,0.3);
}

.mobile-lang-switcher .lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  height: auto;
  padding: 6px 14px;
  background: rgba(28, 22, 37, 0.04);
  border-radius: 6px;
  border: 1px solid rgba(28, 22, 37, 0.08);
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.6;
}

.mobile-lang-switcher .lang-btn img {
  width: 20px;
  height: 12px;
  border-radius: 2px;
}

.mobile-lang-switcher .lang-btn.active {
  opacity: 1;
  border-color: var(--gold-color);
  background: rgba(212, 175, 55, 0.06);
  color: var(--gold-color);
}


