/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #DEDAD2; /* Isha Warm Beige */
  --bg-alt:    #E5E1D8;
  --surface:   #FFFFFF;
  --border:    rgba(51, 51, 51, 0.08);
  --accent:    #D1512D; /* Isha Terracotta */
  --accent-muted: rgba(209, 81, 45, 0.1);
  --text:      #333333; /* Charcoal */
  --text-muted:#666666;
  --text-dim:  #999999;
  --radius:    8px;
  --radius-lg: 12px;
  --font-serif:'Lora', Georgia, serif;
  --font-sans: 'Inter', sans-serif;
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.8;
  overflow-x: hidden;
}

/* ===== LINKS ===== */
a {
  color: var(--accent);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #b04123;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

/* ===== NAV ===== */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 2rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(222, 218, 210, 0.85);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.1em;
}

.logo-container {
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: 50%; /* Optional: keeps it in a circle */
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
}

.logo-img-crop {
  height: 100%;
  width: auto;
  min-width: 300%; /* Shows 1/3 of the width of the 3-logo image */
  object-fit: cover;
  object-position: center; /* Focuses on the middle logo */
  filter: multiply(1.1); /* Subtle adjustment to match background */
}

.nav-logo:hover .logo-img-crop {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
  margin-left: auto;
  margin-right: 2.5rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  font-weight: 400;
  transition: var(--transition);
}

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

.nav-cta {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
}

.nav-cta:hover {
  background: #b04123;
  box-shadow: 0 4px 15px rgba(209, 81, 45, 0.2);
}

/* ===== HERO ===== */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 8rem 2rem 5rem;
  background-image: linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.6)), url('Imagenes arboles/banner pricipal.jpg');
  background-size: cover;
  background-position: center;
}

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

.hero-overline {
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: #E5E1D8; /* Cream color for contrast on dark overlay */
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 400;
  line-height: 1.2;
  color: #FFFFFF;
  margin-bottom: 2rem;
}

.hero-title em {
  font-style: italic;
  color: var(--accent);
  font-weight: 500;
}

.hero-sub {
  font-size: 1.2rem;
  color: #E5E1D8;
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: var(--transition);
  text-decoration: none;
  font-weight: 500;
}

.btn-primary:hover {
  background: #b04123;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 1rem 2.5rem;
  border-radius: 4px;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: var(--transition);
}

.btn-ghost:hover {
  background: var(--accent-muted);
}

/* ===== QUOTE ===== */
.quote-section {
  padding: 8rem 2rem;
  display: flex;
  justify-content: center;
  background: var(--bg-alt);
}

blockquote {
  max-width: 850px;
  text-align: center;
}

blockquote p {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 2rem;
}

blockquote cite {
  color: var(--accent);
  font-style: normal;
  font-size: 1rem;
  letter-spacing: 0.1em;
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-weight: 500;
}

/* ===== SECTIONS ===== */
.section {
  padding: 8rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-weight: 600;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 400;
  color: var(--text);
  margin-bottom: 4rem;
}

/* ===== EPISODES ===== */
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2.5rem;
}

/* ===== ICONS ===== */
.icon-hand {
  width: 1.4em;
  height: 1.4em;
  vertical-align: -0.35em;
  stroke: var(--accent);
  fill: none;
  margin-right: 0.5rem;
}

.icon-hand path {
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-separator {
  width: 3.5rem;
  height: 3.5rem;
  stroke: var(--accent);
  fill: none;
  margin: 0 auto;
  display: block;
  opacity: 0.6;
}

.section-divider {
  display: flex;
  justify-content: center;
  padding: 2rem 0;
}

/* Card Image Implementation (Cedar Style) */
.card-img-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--bg-alt); /* Placeholder while loading */
}

.card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.episode-card:hover .card-img-container img,
.blog-card:hover .card-img-container img {
  transform: scale(1.05); /* Subtle hover interaction */
}

.episode-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  padding: 0; /* Removed padding to allow edge-to-edge image */
  overflow: hidden;
}

.episode-card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.episode-card:hover {
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
  border-color: var(--accent-muted);
}

.episode-card.featured {
  grid-column: 1 / -1;
  flex-direction: row;
  gap: 0; /* Gap handled by internal padding now */
}

.episode-card.featured .card-img-container {
  width: 45%;
  height: 100%;
  aspect-ratio: unset;
  border-radius: var(--radius) 0 0 var(--radius);
}

.episode-card.featured .episode-card-body {
  width: 55%;
  padding: 3.5rem;
}

.ep-number {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.ep-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-muted);
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-weight: 600;
}

.ep-content h3 {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--text);
}

.ep-content p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.ep-player {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-top: auto;
}

.play-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-btn:hover {
  background: var(--accent);
  color: #fff;
}

.player-bar {
  flex: 1;
  height: 3px;
  background: #eee;
  border-radius: 10px;
}

.player-progress {
  height: 100%;
  background: var(--accent);
}

/* ===== VIDEOS ===== */
.videos-section { background: #F8F6F2; }

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(450px, 1fr));
  gap: 2rem;
}

.video-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.video-thumb {
  aspect-ratio: 16/9;
  background: #eee;
  position: relative;
}

.video-info { padding: 2rem; }

/* ===== BLOG ===== */
.blog-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
}

.blog-card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.blog-card-body {
  padding: 3rem;
}

.read-more {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

/* ===== ABOUT ===== */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-circle-inner {
  width: 320px;
  height: 400px;
  border-radius: 160px 160px 0 0;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  background: var(--bg-alt);
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--text);
  color: var(--bg);
  padding: 5rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer .logo-container {
  width: 80px;
  height: 80px;
}

.footer .nav-logo {
  font-size: 1.8rem;
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  color: var(--text-dim);
}

.footer-logo { font-size: 1.5rem; color: #fff; text-decoration: none; font-weight: 500; }

@media (max-width: 900px) {
  .hero-title { font-size: 3rem; }
  .about-inner, .blog-grid, .episode-card.featured { flex-direction: column; grid-template-columns: 1fr; }
  .episode-card.featured { padding: 2rem; }
}
