/*
Theme Name: Philippe Theme
Theme URI: https://www.philippeschwiderski.com/
Author: Bruno
Description: Minimalist theme adapted for Philippe Schwiderski's custom design.
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Colors - Light Premium Healing Theme */
  --bg-dark: #fafafa;
  --bg-color: #fafafa;
  --bg-dark-secondary: #ffffff;

  --bg-glass: rgba(255, 255, 255, 0.85);
  --bg-glass-hover: rgba(255, 255, 255, 0.95);

  --text-primary: #1a1a1a;
  --text-color: #1a1a1a;
  --text-secondary: #4a4a4a;
  --text-light: #525252;
  --text-muted: #737373;

  --accent-gold: #cfa163;
  --primary-color: #cfa163;
  --accent-gold-glow: rgba(207, 161, 99, 0.15);
  --gradient-gold: linear-gradient(135deg, #e6c594 0%, #cfa163 100%);

  --accent-cyan: #00b4d8;
  --secondary-color: #00b4d8;
  --accent-cyan-glow: rgba(0, 180, 216, 0.15);

  /* Typography */
  --font-serif: 'Playfair Display', serif;
  --font-sans: 'Inter', sans-serif;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;

  /* Values */
  --container-width: 1200px;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);

  --spacing-sm: 0.5rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
  --spacing-xxl: 8rem;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-color);
  color: var(--text-primary);
  scroll-behavior: smooth;
  overflow-x: clip;
  color-scheme: light;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* WP Admin Bar Fix */
body.admin-bar .glass-header {
  top: 32px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .glass-header {
    top: 46px;
  }
}

/* =============================================
   UTILITY CLASSES
   ============================================= */
.mt-3 {
  margin-top: 1rem;
}

.mt-4 {
  margin-top: 1.5rem;
}

.mb-3 {
  margin-bottom: 1rem;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

.my-4 {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.pt-2 {
  padding-top: 0.5rem;
}

.pb-2 {
  padding-bottom: 0.5rem;
}

.pb-5 {
  padding-bottom: 3rem;
}

.separator {
  width: 100px;
  height: 2px;
  background: var(--gradient-gold);
  margin: 2rem auto;
  border: none;
  border-radius: 2px;
}

.separator-left {
  margin-left: 0;
}

/* =============================================
   TYPOGRAPHY
   ============================================= */
h1,
h2,
h3,
h4,
h5,
h6,
.heading-1,
.heading-2,
.heading-3,
.heading-4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  text-wrap: balance;
  color: var(--text-primary);
}

.text-gold {
  color: var(--accent-gold);
}

.text-cyan {
  color: var(--accent-cyan);
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #333 50%, var(--accent-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #cfa163 0%, #8a662e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.text-secondary {
  color: var(--text-secondary);
}

.text-muted {
  color: var(--text-muted);
}

.text-light {
  color: var(--text-light);
}

.text-lg {
  font-size: 1.125rem;
}

.text-xl {
  font-size: 1.5rem;
}

.text-sm {
  font-size: 0.875rem;
}

/* =============================================
   LAYOUT
   ============================================= */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.reversed {
  order: -1;
}

/* =============================================
   COMPONENTS
   ============================================= */
.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
  padding: 2.5rem;
}

/* =============================================
   HEADER & NAVIGATION
   ============================================= */
.glass-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.2rem 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.glass-header.scrolled {
  padding: 0.8rem 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.glass-header.header-hidden {
  transform: translateY(-101%);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 2005;
}

.menu-toggle span {
  width: 30px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(10px);
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.nav-brand img,
.nav-brand-text img,
.glass-header img {
  height: 30px !important;
  width: auto !important;
  max-height: 30px !important;
}

.nav-brand-text {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
}

.nav-brand-name {
  display: flex;
  flex-direction: column;
}

.nav-brand-text span {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color var(--transition-normal);
  position: relative;
  border-radius: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-gold);
  transition: width var(--transition-normal);
}

.nav-links a:hover,
.nav-links a:active {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links .nav-comunidad-mobile-only {
  display: none;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.5rem;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 50px;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal), color var(--transition-normal);
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.btn-primary {
  background: var(--gradient-gold);
  color: #fff !important;
  border: none;
  box-shadow: 0 8px 20px var(--accent-gold-glow);
}

.btn-primary:hover,
.btn-primary:active {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(207, 161, 99, 0.3);
  filter: brightness(1.05);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-outline:hover,
.btn-outline:active {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(207, 161, 100, 0.05);
}

/* =============================================
   HERO SECTIONS
   ============================================= */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 140px;
  overflow: hidden;
  background: var(--bg-dark-secondary);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 110%;
  background-image: url('/assets/img/hero-spiral-fibo-energy.png');
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to bottom, transparent 0%, var(--bg-color) 100%);
  z-index: 1;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  margin-bottom: 1.5rem;
  letter-spacing: -1px;
  color: var(--text-primary);
}

.hero p {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Hero Overrides for Subpages */
.hero-sobre-mi,
.hero-ciencia,
.hero-formacion,
.hero-comunidad {
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 140px;
  padding-bottom: 60px;
  overflow: hidden;
  background-color: var(--bg-dark-secondary);
}

.hero-ciencia-bg,
.hero-sobre-mi-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: 0;
}

.hero-ciencia-bg {
  background-image: url('/assets/img/hero-spiral-fibo-energy.png');
}

.hero-sobre-mi-bg {
  background-image: url('/assets/img/hero-spiral-fibo-energy-2.png');
}

.hero-ciencia-overlay,
.hero-sobre-mi-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(to bottom, transparent 0%, var(--bg-color) 100%);
  z-index: 1;
}

/* =============================================
   SCROLL REVEAL
   ============================================= */
/* Desktop: scroll-based reveal */
.scroll-reveal-container {
  height: 150vh;
  position: relative;
  margin-top: 0;
  margin-bottom: -24rem;
  z-index: 5;
}

.scroll-reveal-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.scroll-reveal-text {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 700;
  white-space: normal;
  text-align: center;
  max-width: 100vw;
  line-height: 1.1;
  color: rgba(0, 0, 0, 0.03);
  background: linear-gradient(to right, var(--text-primary), var(--accent-gold));
  -webkit-background-clip: text;
  background-clip: text;
  background-size: 0% 100%;
  background-repeat: no-repeat;
  transition: background-size 0.1s linear;
  padding: 0 1rem;
}

.scroll-reveal-image {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  max-width: 90vw;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
}

.scroll-reveal-image.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Golden circular frame for Philippe's image */
.scroll-reveal-image.image-round-frame {
  border-radius: 50%;
  border: 4px solid var(--accent-gold);
  box-shadow: 0 0 40px var(--accent-gold-glow), 0 20px 40px rgba(0, 0, 0, 0.1);
  max-width: 420px;
  max-height: 420px;
  width: 420px;
  height: 420px;
  object-fit: cover;
  object-position: top center;
  bottom: 50%;
  transform: translateX(-50%) translateY(calc(50% + 100px));
}

.scroll-reveal-image.image-round-frame.visible {
  transform: translateX(-50%) translateY(50%);
}

/* Mobile static version (hidden on desktop) */
.scroll-reveal-mobile {
  display: none;
}

/* Reduce spacing after scroll reveal section */
.scroll-reveal-mobile+.section {
  padding-top: 0;
}

/* =============================================
   IMAGE & MEDIA
   ============================================= */
.image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* =============================================
   GLOW EFFECTS
   ============================================= */
.glow,
.glow-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}

.glow-gold {
  background: rgba(207, 161, 99, 0.3);
  width: 400px;
  height: 400px;
}

.glow-cyan {
  background: rgba(0, 180, 216, 0.2);
  width: 300px;
  height: 300px;
}

/* =============================================
   QUOTE SECTION
   ============================================= */
.quote-section {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.quote-section p {
  font-size: clamp(1.3rem, 3vw, 2.5rem);
  font-family: var(--font-serif);
  line-height: 1.5;
  color: var(--text-primary);
  font-style: italic;
}

/* =============================================
   FEATURES LIST
   ============================================= */
.features-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.features-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  font-family: var(--font-sans);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}

.features-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cfa163' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center/contain;
  flex-shrink: 0;
}

/* =============================================
   STATS
   ============================================= */
.stats-container {
  padding: 3rem;
  margin-top: -4rem;
  position: relative;
  z-index: 10;
  background: #ffffff;
}

.stat-item {
  text-align: center;
  padding: 2rem;
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--bg-dark-secondary);
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer h4 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition-normal);
  padding: 2px 0;
}

.footer-links a:hover,
.footer-links a:active {
  color: var(--accent-gold);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* =============================================
   FORMACION & COMUNIDAD PAGES
   ============================================= */
.hero-formacion-content,
.hero-comunidad-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-top: 2rem;
}

.hero-formacion-text,
.hero-comunidad-text {
  flex: 1;
}

.hero-formacion-image,
.hero-comunidad-image {
  flex: 1;
  max-width: 550px;
}

.formacion-image-card,
.comunidad-image-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.formacion-image-card img,
.comunidad-image-card img {
  width: 100%;
  height: auto;
  display: block;
}

.results-content {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.results-text {
  flex: 1.2;
}

.accent-text {
  color: var(--accent-gold);
  font-weight: 600;
}

.lnt-logo-container {
  margin-top: 3rem;
  max-width: 200px;
  opacity: 0.8;
}

.lnt-logo-container img {
  width: 100%;
  height: auto;
}

.action-card {
  flex: 0.8;
  background: #fff;
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.video-section {
  padding: 0 2rem;
  margin: 4rem auto;
  max-width: 1200px;
}

.results-section,
.note-section,
.form-section {
  padding: 6rem 0;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  background: #000;
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* =============================================
   NOTE CARD (Comunidad)
   ============================================= */
.note-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
  padding: 3rem 2.5rem;
  max-width: 700px;
  margin: 0 auto;
  border-top: 3px solid var(--accent-gold);
}

/* =============================================
   SCIENCE & HEALING PAGE
   ============================================= */
.science-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.science-list {
  list-style: none;
  padding: 0;
}

.science-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.science-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-gold);
  font-weight: bold;
}

.science-list.cyan li::before {
  color: var(--accent-cyan);
}

.warning-text {
  border-left: 4px solid var(--accent-gold);
  background: rgba(207, 161, 99, 0.03);
  padding: 2rem;
}

.cta-section {
  padding: 8rem 0;
  text-align: center;
  position: relative;
}

/* =============================================
   PROFESSIONAL RECORD (CV)
   ============================================= */
.ps-cv {
  position: relative;
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 1rem;
}

.ps-cv .rail {
  position: relative;
  padding-left: 3rem;
}

.ps-cv .line {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(0, 0, 0, 0.05);
}

.ps-cv .fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  background: var(--gradient-gold);
  height: 0;
  transition: height 0.1s linear;
  box-shadow: 0 0 15px var(--accent-gold-glow);
}

.ps-cv .item {
  position: relative;
  margin-bottom: 4rem;
  opacity: 0.3;
  transform: translateX(-10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.ps-cv .item.active {
  opacity: 1;
  transform: translateX(0);
}

.ps-cv .item::before {
  content: '';
  position: absolute;
  left: -3.35rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #eee;
  border: 2px solid var(--bg-color);
  z-index: 2;
  transition: background 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.ps-cv .item.active::before {
  background: var(--accent-gold);
  transform: scale(1.2);
  box-shadow: 0 0 10px var(--accent-gold-glow);
}

.ps-cv .date,
.ps-cv .year {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.ps-cv h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.ps-cv .content,
.ps-cv .desc {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* =============================================
   SOBRE MI GALLERY
   ============================================= */
.sobre-mi-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
  align-items: center;
}

.gallery-item {
  display: flex;
  justify-content: center;
}

.gallery-frame {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--accent-gold);
  box-shadow: 0 0 40px var(--accent-gold-glow), 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s ease;
}

.gallery-frame:hover {
  transform: scale(1.04);
  box-shadow: 0 0 60px var(--accent-gold-glow), 0 25px 50px rgba(0, 0, 0, 0.12);
}

.gallery-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-frame:hover img {
  transform: scale(1.06);
}

@media (max-width: 768px) {
  .sobre-mi-gallery {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .gallery-frame {
    width: 250px;
    height: 250px;
  }
}

@media (max-width: 400px) {
  .gallery-frame {
    width: 220px;
    height: 220px;
  }
}

/* =============================================
   MULTI-STEP FORM (Typeform style)
   ============================================= */
.funnel-form-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 2rem 4rem;
  position: relative;
}

.funnel-form-container {
  width: 100%;
  max-width: 700px;
  position: relative;
}

.funnel-step {
  display: none;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.funnel-step.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.funnel-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-gold);
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.funnel-step h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.funnel-step .step-subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.funnel-input {
  width: 100%;
  padding: 1.2rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  color: var(--text-primary);
  background: var(--bg-glass);
  border: 2px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 1rem;
}

.funnel-input:focus {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 4px var(--accent-gold-glow);
}

.funnel-input::placeholder {
  color: var(--text-muted);
}

textarea.funnel-input {
  min-height: 120px;
  resize: vertical;
}

.funnel-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='%23737373' 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 1rem center;
  background-size: 1.2rem;
  padding-right: 3rem;
  cursor: pointer;
}

.funnel-radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.funnel-radio-option {
  display: flex;
  align-items: center;
  padding: 1rem 1.5rem;
  background: var(--bg-glass);
  border: 2px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-secondary);
}

.funnel-radio-option:hover {
  border-color: var(--accent-gold);
  background: rgba(207, 161, 99, 0.04);
}

.funnel-radio-option input[type="radio"] {
  display: none;
}

.funnel-radio-option input[type="radio"]:checked + .radio-label {
  color: var(--text-primary);
  font-weight: 500;
}

.funnel-radio-option:has(input:checked) {
  border-color: var(--accent-gold);
  background: rgba(207, 161, 99, 0.06);
  box-shadow: 0 0 0 3px var(--accent-gold-glow);
}

.radio-key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 1rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.funnel-radio-option:has(input:checked) .radio-key {
  background: var(--accent-gold);
  color: #fff;
  border-color: var(--accent-gold);
}

.funnel-nav {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  align-items: center;
}

.funnel-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.funnel-btn-next {
  background: var(--gradient-gold);
  color: #fff;
  box-shadow: 0 8px 20px var(--accent-gold-glow);
}

.funnel-btn-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(207, 161, 99, 0.3);
}

.funnel-btn-back {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.funnel-btn-back:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.funnel-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.funnel-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: var(--gradient-gold);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 1001;
  box-shadow: 0 0 10px var(--accent-gold-glow);
}

.funnel-step-indicator {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.funnel-success {
  text-align: center;
  padding: 3rem 0;
}

.funnel-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(207, 161, 99, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2.5rem;
}

.funnel-error {
  color: #d32f2f;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: none;
}

.funnel-input.error {
  border-color: #d32f2f;
}

@media (max-width: 768px) {
  .funnel-form-wrapper {
    padding: 120px 1.25rem 3rem;
  }

  .funnel-input {
    padding: 1rem 1.25rem;
    font-size: 1rem;
  }

  .funnel-radio-option {
    padding: 0.85rem 1rem;
  }

  .funnel-nav {
    flex-direction: column-reverse;
  }

  .funnel-btn {
    width: 100%;
    justify-content: center;
  }
}

/* =============================================
   PHOTO FRAMES
   ============================================= */
/* Marco rectangular con bordes redondeados */
.photo-frame-rect {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 2px solid var(--accent-gold);
  box-shadow: 0 0 30px var(--accent-gold-glow), 0 15px 35px rgba(0, 0, 0, 0.08);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s ease;
  margin: 0 auto;
}

.photo-frame-rect:hover {
  transform: scale(1.02);
  box-shadow: 0 0 50px var(--accent-gold-glow), 0 20px 45px rgba(0, 0, 0, 0.12);
}

.photo-frame-rect img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.photo-frame-rect:hover img {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .photo-frame-rect {
    max-width: 100%;
    max-height: 360px;
  }
}

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-12px);
  }

  100% {
    transform: translateY(0px);
  }
}

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

/* =============================================
   RESPONSIVE — TABLET (max-width: 992px)
   ============================================= */
@media (max-width: 992px) {
  .container {
    padding: 0 1.5rem;
  }

  .glass-header .container {
    padding: 0 1.5rem !important;
  }

  .grid-2 {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .reversed {
    order: 0;
  }

  /* Nav: hide desktop links, show hamburger */
  .nav-container>div:not(.nav-brand-text):not(.menu-toggle):not(.nav-links) {
    display: none;
  }

  .menu-toggle {
    display: flex;
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin-left: auto;
    margin-right: 0.75rem;
    flex-shrink: 0;
  }

  .nav-links {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(255, 255, 255, 0.98);
    z-index: 2000;
    transition: left 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 2rem;
    gap: 2.5rem;
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links a {
    font-size: 1.5rem;
  }

  .nav-links .nav-comunidad-mobile-only {
    display: block;
    margin-top: 1rem;
  }

  .nav-links .nav-comunidad-mobile-only a {
    color: var(--accent-gold) !important;
    font-weight: 600;
    border: 1px solid var(--accent-gold);
    padding: 0.8rem 2rem !important;
    border-radius: 50px;
    font-size: 1.1rem !important;
  }

  .nav-links .nav-comunidad-mobile-only a::after {
    display: none;
  }

  /* Hide desktop scroll reveal, show mobile static version */
  .scroll-reveal-container {
    display: none !important;
  }

  .scroll-reveal-mobile {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem 1.5rem;
    gap: 2rem;
    background: var(--bg-dark-secondary);
  }

  .scroll-reveal-mobile .reveal-mobile-text {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 10vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    background: linear-gradient(to right, var(--text-primary), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .scroll-reveal-mobile .reveal-mobile-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 4px solid var(--accent-gold);
    box-shadow: 0 0 30px var(--accent-gold-glow), 0 15px 30px rgba(0, 0, 0, 0.08);
    object-fit: cover;
    object-position: top center;
  }

  /* Formacion & Comunidad hero layouts */
  .hero-formacion-content,
  .hero-comunidad-content,
  .results-content {
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
  }

  .hero-formacion-text,
  .hero-comunidad-text,
  .results-text {
    text-align: center;
  }

  .hero-formacion-image,
  .hero-comunidad-image {
    max-width: 100%;
    order: -1;
  }

  .action-card {
    width: 100%;
    padding: 2rem;
  }

  .video-section {
    padding: 0 1.5rem;
    margin: 3rem auto;
  }

  .lnt-logo-container {
    margin: 2rem auto 0;
  }

  .cta-section {
    padding: 5rem 0;
  }
}

/* =============================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ============================================= */
@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Hero adjustments */
  .hero {
    min-height: 80vh;
    padding-top: 110px;
    padding-bottom: 3rem;
  }

  .hero h1 {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .hero-sobre-mi,
  .hero-ciencia,
  .hero-formacion,
  .hero-comunidad {
    padding-top: 110px;
    padding-bottom: 3rem;
    min-height: auto;
  }

  /* Glass panels: tighter padding on mobile */
  .glass-panel {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-md);
  }

  /* Buttons: prevent overflow */
  .btn {
    padding: 0.85rem 1.5rem;
    font-size: 0.8rem;
    letter-spacing: 1px;
    white-space: normal;
    text-align: center;
    line-height: 1.3;
    max-width: 100%;
    word-break: break-word;
  }

  /* Stats */
  .stats-container {
    margin-top: 1.5rem;
    padding: 1.5rem 1rem;
    border-radius: var(--radius-md);
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .stat-label {
    font-size: 0.8rem;
    letter-spacing: 1px;
  }

  .stat-item {
    padding: 1rem 0.5rem;
  }

  /* Quote section */
  .quote-section p {
    font-size: clamp(1.15rem, 4vw, 1.8rem);
  }

  /* Footer */
  .footer {
    padding: 3rem 0 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
  }

  .footer-bottom {
    font-size: 0.75rem;
    padding-top: 1.5rem;
  }

  /* CV Timeline */
  .ps-cv {
    margin: 2rem auto;
    padding: 0 0.5rem;
  }

  .ps-cv .rail {
    padding-left: 2.5rem;
  }

  .ps-cv .item {
    margin-bottom: 2.5rem;
  }

  .ps-cv .item::before {
    left: -2.85rem;
    width: 10px;
    height: 10px;
  }

  .ps-cv h3 {
    font-size: 1.1rem;
  }

  /* Results & action card */
  .action-card {
    padding: 1.5rem;
  }

  .results-section,
  .note-section,
  .form-section {
    padding: 3.5rem 0;
  }

  /* Note card */
  .note-card {
    padding: 2rem 1.25rem;
  }

  /* CTA section */
  .cta-section {
    padding: 4rem 0;
  }

  .cta-section .btn {
    font-size: 0.75rem;
    padding: 1rem 1.5rem;
  }

  /* Warning text */
  .warning-text {
    padding: 1.5rem 1rem;
  }

  /* Video section */
  .video-section {
    padding: 0 1.25rem;
    margin: 2rem auto;
  }

  .video-container {
    border-radius: var(--radius-md);
  }

  /* Formacion & Comunidad hero */
  .hero-formacion-content,
  .hero-comunidad-content {
    gap: 2rem;
  }

  /* Image wrappers: softer shadows on mobile */
  .image-wrapper {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
  }

  /* Glow effects: reduce on mobile for performance */
  .glow,
  .glow-blob {
    opacity: 0.08;
    filter: blur(60px);
  }

  /* Nav brand text */
  .nav-brand-text {
    font-size: 1rem;
  }

  .nav-brand-text span {
    font-size: 0.5rem;
    letter-spacing: 1.5px;
  }

  /* Science cards equal height fix */
  .science-card {
    height: auto;
  }

  /* Form section specific */
  .form-section .glass-panel {
    padding: 1.5rem 1rem;
  }
}

/* =============================================
   RESPONSIVE — SMALL MOBILE (max-width: 400px)
   ============================================= */
@media (max-width: 400px) {
  .container {
    padding: 0 1rem;
  }

  .hero {
    padding-top: 100px;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-sobre-mi,
  .hero-ciencia,
  .hero-formacion,
  .hero-comunidad {
    padding-top: 100px;
  }

  .glass-panel {
    padding: 1.5rem 1rem;
  }

  .btn {
    padding: 0.75rem 1.25rem;
    font-size: 0.75rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .nav-links a {
    font-size: 1.25rem;
  }

  .nav-links {
    gap: 2rem;
  }
}

/* =============================================
   AOS FALLBACK — ensure visibility
   ============================================= */
.aos-fallback-visible {
  opacity: 1 !important;
  transform: none !important;
}
/* =============================================
   LEGAL DOCS
   ============================================= */
.legal-doc h1 { margin-bottom: 1.5rem; }
.legal-doc h2 { margin: 2.25rem 0 0.75rem; font-size: 1.4rem; }
.legal-doc p, .legal-doc li { line-height: 1.75; }
.legal-doc ul { margin: 0 0 1.25rem 1.25rem; }
.legal-doc li { margin-bottom: 0.4rem; }
.legal-doc a { color: var(--accent-gold); text-decoration: underline; }

/* =============================================
   AUTH FORMS
   ============================================= */
.auth-form { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.auth-form .btn { align-self: flex-start; }

/* =============================================
   ÁREA PRIVADA v2 — layout (sidebar / espiral)
   ============================================= */
.area-body { background: var(--bg-color); }
.area-sidebar {
  position: fixed; top: 0; left: 0; width: 250px; height: 100vh;
  background: var(--bg-dark-secondary); border-right: 1px solid rgba(0,0,0,.07);
  padding: 1.5rem 1rem; display: flex; flex-direction: column; z-index: 1000; overflow-y: auto;
}
.area-logo-side { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text-primary); margin-bottom: 1.75rem; font-family: var(--font-serif); font-weight: 600; letter-spacing: .5px; }
.area-logo-side img { width: 36px; height: 36px; object-fit: contain; }
.area-logo-side span { display: flex; flex-direction: column; line-height: 1.15; }
.area-logo-side small { font-family: var(--font-sans); font-weight: 400; font-size: .65rem; color: var(--text-muted); letter-spacing: .3px; }
.area-nav { display: flex; flex-direction: column; gap: .15rem; }
.area-nav a { display: flex; align-items: center; gap: .7rem; padding: .72rem .9rem; border-radius: 10px; text-decoration: none; color: var(--text-secondary); font-size: .95rem; transition: background .2s, color .2s; }
.area-nav a:hover { background: rgba(207,161,99,.08); color: var(--text-primary); }
.area-nav a.active { background: var(--gradient-gold); color: #fff; }
.area-nav .area-ico { width: 1.5em; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.area-svgico { display: block; }
.area-nav .area-admin-link { margin-top: 1rem; border: 1px solid rgba(0,0,0,.1); }
.area-nav .area-salir { margin-top: .35rem; color: var(--text-muted); }
.area-nav-prox { display: flex; align-items: center; gap: .7rem; padding: .72rem .9rem; color: var(--text-muted); font-size: .95rem; opacity: .6; }
.area-nav-prox small { margin-left: auto; font-size: .58rem; text-transform: uppercase; letter-spacing: .5px; border: 1px solid currentColor; border-radius: 10px; padding: .05rem .45rem; }
.area-main { margin-left: 250px; min-height: 100vh; padding: 1rem 1.5rem 3rem; }
.area-topbar { display: none; }
.area-overlay { display: none; }

.area-spiral { position: relative; width: 36px; height: 36px; background: none; border: none; cursor: pointer; color: var(--accent-gold); padding: 0; line-height: 0; flex-shrink: 0; }
.area-spiral .ico-spiral, .area-spiral .ico-x { position: absolute; top: 50%; left: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; transition: opacity .3s ease, transform .4s cubic-bezier(.22,1,.36,1); transform-origin: center; }
.area-spiral .ico-x { opacity: 0; transform: rotate(-90deg); }
.area-spiral.open .ico-spiral { opacity: 0; transform: rotate(140deg) scale(.4); }
.area-spiral.open .ico-x { opacity: 1; transform: rotate(0); }

@media (max-width: 992px) {
  .area-sidebar { transform: translateX(-100%); transition: transform .3s cubic-bezier(.22,1,.36,1); box-shadow: 0 0 40px rgba(0,0,0,.18); width: 82%; max-width: 320px; }
  .area-sidebar.open { transform: translateX(0); }
  .area-main { margin-left: 0; padding-top: 80px; }
  .area-topbar { display: flex; align-items: center; justify-content: space-between; position: fixed; top: 0; left: 0; right: 0; height: 60px; padding: 0 1.1rem; background: #ffffff; border-bottom: 1px solid rgba(0,0,0,.08); box-shadow: 0 2px 12px rgba(0,0,0,.04); z-index: 1001; }
  .area-logo { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--text-primary); font-family: var(--font-serif); font-weight: 600; letter-spacing: .5px; }
  .area-logo img { width: 30px; height: 30px; object-fit: contain; }
  .area-overlay.open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 999; }
}

/* =============================================
   FORO COMUNIDAD
   ============================================= */
.foro-cats { display: flex; flex-direction: column; gap: .85rem; }
.foro-cat { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem; text-decoration: none; transition: box-shadow .2s; }
.foro-cat-ico { font-size: 1.6rem; }
.foro-cat-body { display: flex; flex-direction: column; flex: 1; gap: .15rem; }
.foro-cat-body strong { color: var(--text-primary); }
.foro-cat-n { font-size: .8rem; white-space: nowrap; }
.foro-cat:hover, .foro-hilo:hover { box-shadow: 0 8px 24px rgba(0,0,0,.07); }
.foro-hilo.es-philippe { border-left: 3px solid var(--accent-gold); }
.foro-badge { font-size: .7rem; padding: .12rem .5rem; border-radius: 20px; font-weight: 600; vertical-align: middle; }
.foro-badge-phi { background: var(--gradient-gold); color: #fff; }
.foro-badge-mod { background: rgba(0,0,0,.06); color: var(--text-muted); }
.foro-msg { padding: 1.25rem 1.5rem; }
.foro-msg.es-philippe { border-left: 3px solid var(--accent-gold); background: rgba(207,161,99,.05); }
.foro-msg-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .4rem; }
.foro-msg-body { color: var(--text-secondary); line-height: 1.7; }
.foro-mod { display: flex; gap: .5rem; align-items: center; margin: 1rem 0; flex-wrap: wrap; }
