:root {
  --primary: #f87171;
  --primary-dark: #ef4444;
  --secondary: #0f172a;
  --accent: #fbbf24;
  --bg-light: #fdfcfb;
  --bg-dark: #0f172a;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --white: #ffffff;
  --glass: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.125);
  --font-serif: "Playfair Display", serif;
  --font-sans: "Outfit", "Inter", system-ui, -apple-system, sans-serif;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.serif {
  font-family: var(--font-serif);
  font-weight: 400;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.glass {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}

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

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

.reveal {
  opacity: 0;
  will-change: transform, opacity;
}

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

section {
  padding: 80px 0;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-smooth);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(248, 113, 113, 0.4);
}

.btn-outline {
  border: 1px solid var(--primary);
  color: var(--primary);
  background: transparent;
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(248, 113, 113, 0.2);
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-smooth);
}

header.scrolled {
  padding: 10px 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}

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

.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: url('/assets/hero.png') no-repeat center center/cover;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.2));
  z-index: 1;
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.method-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #f1f5f9;
  opacity: 0;
}

.method-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.method-card h3 {
  margin-bottom: 15px;
  color: var(--primary);
}

.method-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 20px;
}

.about-flex {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
}

.about-text {
  flex: 1;
  min-width: 280px;
}

.about-img {
  flex: 1;
  min-width: 280px;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background-color: var(--secondary);
  transition: var(--transition-smooth);
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  }

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

  .nav-links li {
    margin: 15px 0;
  }
}

.books-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.books-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 30px;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
  flex: 1;
}

.books-container::-webkit-scrollbar {
  display: none;
}

.books-nav {
  background: var(--white);
  border: 2px solid #e2e8f0;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  color: var(--secondary);
  flex-shrink: 0;
  z-index: 2;
}

.books-nav:hover {
  background: var(--secondary);
  color: var(--white);
  border-color: var(--secondary);
}

.book-item {
  min-width: 250px;
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.book-item img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.loading-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 40px;
  font-style: italic;
}

.error-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #ef4444;
  color: white;
  text-align: center;
  padding: 12px 20px;
  font-weight: 600;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
}

.error-banner.visible {
  transform: translateY(0);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-muted);
  padding: 40px;
  font-style: italic;
}

.page-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
  text-align: center;
}

.page-hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 15px;
}

.page-hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary);
  opacity: 0.3;
}

.timeline-item {
  position: relative;
  margin-bottom: 50px;
  opacity: 0;
}

.timeline-item.active {
  opacity: 1;
}

.timeline-dot {
  position: absolute;
  left: -34px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid white;
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-content {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
}

.timeline-content h3 {
  margin-bottom: 5px;
  color: var(--primary);
}

.timeline-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.interview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.interview-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
}

.interview-card.active {
  opacity: 1;
}

.interview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.interview-embed {
  position: relative;
}

.interview-embed iframe {
  display: block;
}

.embed-placeholder {
  height: 215px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px 12px 0 0;
  gap: 10px;
}

.embed-placeholder .embed-icon {
  font-size: 3rem;
}

.embed-placeholder p {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.embed-youtube {
  background: linear-gradient(135deg, #ff0033, #cc0000);
  color: white;
}

.embed-spotify {
  background: linear-gradient(135deg, #1ed760, #169c46);
  color: white;
}

.interview-info {
  padding: 20px;
}

.interview-info h3 {
  margin-bottom: 10px;
}

.interview-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.interview-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.interview-tags span {
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.books-catalogue {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.book-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
}

.book-card.active {
  opacity: 1;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.book-cover {
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.book-emoji {
  font-size: 5rem;
}

.book-info {
  padding: 25px;
}

.book-info h3 {
  margin-bottom: 10px;
}

.book-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.book-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.podcast-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
  margin-bottom: 60px;
}

.category-card {
  background: white;
  padding: 30px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
}

.category-card.active {
  opacity: 1;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.category-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.category-card h3 {
  margin-bottom: 10px;
}

.category-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.episode-list {
  display: grid;
  gap: 15px;
}

.episode-card {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  transition: transform 0.3s ease;
  opacity: 0;
}

.episode-card.active {
  opacity: 1;
}

.episode-card:hover {
  transform: translateX(5px);
}

.episode-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.3;
  min-width: 50px;
  line-height: 1;
}

.episode-info h3 {
  margin-bottom: 8px;
}

.episode-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.episode-date {
  font-size: 0.8rem;
  color: var(--primary);
  font-weight: 600;
}

.workshop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
}

.workshop-card {
  background: white;
  padding: 35px;
  border-radius: 20px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  opacity: 0;
}

.workshop-card.active {
  opacity: 1;
}

.workshop-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.workshop-card.featured {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(251, 191, 36, 0.15);
}

.workshop-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background: var(--accent);
  color: var(--secondary);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.workshop-icon {
  font-size: 3.5rem;
  margin-bottom: 15px;
}

.workshop-card h3 {
  margin-bottom: 12px;
}

.workshop-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 15px;
}

.workshop-meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.brand-section {
  margin-bottom: 60px;
  opacity: 0;
}

.brand-section.active {
  opacity: 1;
}

.brand-header {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 30px;
}

.brand-logo {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  flex-shrink: 0;
}

.brand-header h2 {
  margin-bottom: 5px;
}

.brand-header p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.product-card {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.product-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.product-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.product-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.product-tag {
  display: inline-block;
  background: #f1f5f9;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .page-hero {
    padding: 120px 0 40px;
  }

  .interview-grid {
    grid-template-columns: 1fr;
  }

  .books-catalogue {
    grid-template-columns: 1fr;
  }

  .workshop-grid {
    grid-template-columns: 1fr;
  }

  .podcast-categories {
    grid-template-columns: 1fr;
  }

  .episode-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .book-links {
    justify-content: center;
  }

  .timeline {
    padding-left: 30px;
  }

  .timeline-dot {
    left: -24px;
  }

  .viajes-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }

  .retiro-card {
    padding: 25px;
  }

  .retiro-incluye ul {
    grid-template-columns: 1fr;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  max-width: 800px;
  margin: 0 auto;
}

.stat-card {
  background: white;
  padding: 35px 25px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  transition: transform 0.3s ease;
  opacity: 0;
}

.stat-card.active {
  opacity: 1;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 600;
}

.stat-detail-card {
  background: white;
  padding: 25px;
  border-radius: 15px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
}

.stat-detail-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.retiro-card {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
  border: 1px solid #f1f5f9;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  opacity: 0;
}

.retiro-card.active {
  opacity: 1;
}

.retiro-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.retiro-incluye {
  background: #f8fafc;
  padding: 25px;
  border-radius: 15px;
  margin: 20px 0;
}

.retiro-incluye ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.retiro-incluye li {
  padding: 8px 12px;
  background: white;
  border-radius: 8px;
  font-size: 0.95rem;
  border: 1px solid #f1f5f9;
}

.retiro-contacto {
  background: linear-gradient(135deg, #fdfcfb, #f8fafc);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
}

.retiro-contacto p {
  margin-bottom: 5px;
  font-size: 0.95rem;
}

.viajes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.viaje-card {
  background: white;
  padding: 25px 20px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
}

.viaje-card.active {
  opacity: 1;
}

.viaje-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 20px -5px rgba(0, 0, 0, 0.1);
}

.viaje-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.viaje-card h3 {
  font-size: 1rem;
  margin-bottom: 5px;
}

.viaje-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.diff-outcome {
  opacity: 0;
}

.diff-outcome.active {
  opacity: 1;
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  max-width: 900px;
  margin: 0 auto;
}

.testimonio-card {
  background: white;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f5f9;
  text-align: center;
  opacity: 0;
}

.testimonio-card.active {
  opacity: 1;
}

.testimonio-card p {
  font-style: italic;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 15px;
  color: var(--text-muted);
}
