/* Novela Landing Page Styles */
/* Used by codigo-del-destino landing pages (en/de/es) */

/* Character headshot grid */
.character-headshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.character-headshot img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 15px rgba(13, 115, 119, 0.2);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 3px solid #14919b;
}

.character-headshot img:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 25px rgba(232, 90, 90, 0.4);
  border-color: #e85a5a;
}

.character-headshot h4 {
  margin: 0.75rem 0 0.25rem 0;
  font-size: 1rem;
  color: #333;
}

.character-headshot p {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
}

/* Lightbox styles */
.promo-lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.promo-lightbox.active {
  display: flex;
}

.promo-lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.promo-lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.promo-lightbox-close:hover {
  color: #e74c3c;
}

/* Lightbox navigation arrows */
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: none;
  font-size: 3rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
  border-radius: 8px;
  z-index: 10001;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav:disabled {
  opacity: 0.2;
  cursor: default;
}

.lightbox-nav.prev {
  left: 20px;
}

.lightbox-nav.next {
  right: 20px;
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  font-size: 0.9rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

@media (max-width: 768px) {
  .character-headshots {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .character-headshot img {
    width: 100px;
    height: 100px;
  }
  
  .lightbox-nav {
    font-size: 2rem;
    padding: 0.75rem 1rem;
  }
  
  .lightbox-nav.prev {
    left: 10px;
  }
  
  .lightbox-nav.next {
    right: 10px;
  }
}

/* Telenovela info box */
.telenovela-info-box {
  display: block;
  background: linear-gradient(135deg, #f5f0e6 0%, #ebe4d5 100%);
  border-left: 4px solid #8b6914;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  text-align: center;
  text-decoration: none;
  color: #5d4e37;
  transition: all 0.2s ease;
}

.telenovela-info-box:hover {
  background: linear-gradient(135deg, #ebe4d5 0%, #e0d5c5 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 105, 20, 0.2);
}

.telenovela-info-box p {
  margin: 0;
  font-size: 0.95rem;
  color: inherit;
}

/* Lesson cards */
.lessons-intro {
  text-align: center;
  font-family: Georgia, serif;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #3d2914;
  margin-bottom: 2rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.lessons-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.lesson-card {
  background: linear-gradient(135deg, #fff 0%, #faf8f5 100%);
  border-radius: 12px;
  padding: 1.5rem;
  flex: 1 1 300px;
  max-width: 400px;
  box-shadow: 0 4px 15px rgba(139, 69, 19, 0.1);
  border-left: 4px solid #cd853f;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lesson-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(139, 69, 19, 0.15);
}

.lesson-card h4 {
  color: #8b4513;
  margin: 0 0 0.75rem 0;
  font-size: 1.1rem;
}

.lesson-card p {
  color: #5a4a3a;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.lessons-message {
  background: linear-gradient(135deg, #f5e6d3 0%, #efe0cf 100%);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  max-width: 900px;
  margin: 2rem auto 0;
}

.lessons-message p {
  font-family: Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #3d2914;
  margin: 0;
}

.lessons-message strong {
  color: #8b4513;
}

@media (max-width: 768px) {
  .lesson-card {
    flex: 1 1 100%;
    max-width: none;
  }
}

/* Episode cards section */
.episodes-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.episode-card {
  flex: 1 1 320px;
  background: linear-gradient(145deg, #f8f0fc 0%, #f0e4f6 100%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(107, 61, 122, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.episode-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px rgba(107, 61, 122, 0.25);
}

.episode-card-thumbnail {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}

.episode-card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.episode-card-content {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.episode-card-number {
  font-family: Georgia, serif;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9e5ca3;
  margin-bottom: 0.25rem;
}

.episode-card-title {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  line-height: 1.3;
}

.episode-card-title a {
  color: #6b3d7a;
  text-decoration: none;
  transition: color 0.2s ease;
}

.episode-card-title a:hover {
  color: #8b2f8f;
}

.episode-card-date {
  font-size: 0.8rem;
  color: #8b7355;
  font-style: italic;
  margin-bottom: 0.75rem;
}

.episode-card-synopsis {
  font-size: 0.9rem;
  color: #5d4e37;
  line-height: 1.5;
  flex: 1;
}

.episodes-coming {
  text-align: center;
  font-style: italic;
  color: #8b7355;
  padding: 2rem;
}

@media (max-width: 768px) {
  .episode-card {
    flex: 1 1 100%;
  }
  
  .episode-card-thumbnail {
    height: 200px;
  }
}

/* Fan gallery section */
.fan-gallery-section {
  background: linear-gradient(135deg, #fdf6e3 0%, #f5e6d3 100%);
  padding: 2.5rem;
  border-radius: 16px;
  margin: 2rem 0;
}

.fan-gallery-section h2 {
  text-align: center;
  color: #8b4513;
  margin-bottom: 0.5rem;
}

.fan-gallery-intro {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
  font-style: italic;
}

.fan-gallery-category {
  margin-bottom: 2rem;
}

.fan-gallery-category h3 {
  color: #8b4513;
  border-bottom: 2px solid #cd853f;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.fan-gallery-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
}

.fan-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1 1 180px;
  max-width: 280px;
}

.fan-gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.fan-gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.fan-gallery-item .item-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 2rem 0.75rem 0.75rem;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .fan-gallery-item {
    flex: 1 1 140px;
    max-width: 200px;
  }
  
  .fan-gallery-item img {
    height: 140px;
  }
}

/* Intro with landscape image */
.intro-with-image {
  display: flex;
  gap: 2rem;
  align-items: stretch;
  margin: 1.5rem 0 2rem;
}

.intro-with-image .intro-text {
  flex: 1;
  font-family: Georgia, serif !important;
  font-size: 1.25rem;
  line-height: 1.8;
  color: #3d2914;
}

.intro-with-image .intro-text p {
  margin: 0 0 1rem 0;
  font-family: Georgia, serif !important;
}

.intro-with-image .intro-text p:last-child {
  margin-bottom: 0;
}

.intro-with-image .intro-image {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.intro-with-image .intro-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.intro-with-image .intro-image:hover img {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .intro-with-image {
    flex-direction: column;
  }
  
  .intro-with-image .intro-image {
    order: -1;
  }
}

/* Share buttons */
.share-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.5rem;
}

.share-label {
  font-size: 0.85rem;
  color: #7d4487;
  font-weight: 600;
  margin-right: 0.25rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.share-btn.twitter {
  background: #1da1f2;
  color: white;
}

.share-btn.linkedin {
  background: #0077b5;
  color: white;
}

.share-btn.whatsapp {
  background: #25d366;
  color: white;
}

/* Recognition hook section */
.recognition-hook {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: #e8e8e8;
  padding: 2rem;
  border-radius: 16px;
  margin: 2rem 0;
  text-align: center;
}

.recognition-hook h2 {
  color: #9e5ca3;
  font-size: 1.8rem;
  margin: 0 0 1.5rem 0;
  font-weight: 700;
}

.dysfunction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dysfunction-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  text-align: left;
  transition: background 0.2s ease, transform 0.2s ease;
}

.dysfunction-item:hover {
  background: rgba(158, 92, 163, 0.15);
  transform: translateX(4px);
}

.dysfunction-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.dysfunction-text {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #d0d0d0;
}

.hook-cta {
  font-size: 1.15rem;
  color: #b57bb8;
  margin: 1.5rem 0 0 0;
  font-style: italic;
}

/* Lesson links for deep dives */
.lesson-links {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(107, 61, 122, 0.2);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.lesson-links .links-label {
  font-size: 0.8rem;
  color: #6b3d7a;
  font-weight: 600;
  margin-right: 0.25rem;
}

.lesson-links a {
  font-size: 0.8rem;
  color: #5a4a3a;
  text-decoration: none;
  background: rgba(107, 61, 122, 0.1);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.lesson-links a:hover {
  background: #6b3d7a;
  color: #fff;
}

/* Lessons + Newsletter side-by-side layout */
.lessons-newsletter-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.lessons-grid {
  display: contents; /* Let children participate in parent grid */
}

.newsletter-sidebar {
  grid-row: span 2;
  border-radius: 12px;
  color: #fffef8;
  position: relative;
  overflow: hidden;
  min-height: 680px;
}

.newsletter-sidebar-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
  z-index: 0;
}

.newsletter-sidebar-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  padding: 0.75rem 1.25rem 1.25rem;
  background: linear-gradient(to top, rgba(45, 31, 61, 0.98) 0%, rgba(45, 31, 61, 0.8) 85%, transparent 100%);
}

.newsletter-sidebar h3 {
  color: #fff;
  font-size: 1.2rem;
  margin: 0 0 0.75rem 0;
}

.newsletter-sidebar p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0 0 1rem 0;
  color: #e8dced;
}

.newsletter-sidebar .newsletter-form input[type="email"] {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.newsletter-sidebar .newsletter-form button {
  width: 100%;
  padding: 0.75rem;
  background: #9e5ca3;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.newsletter-sidebar .newsletter-form button:hover {
  background: #b57bb8;
}

.newsletter-sidebar .newsletter-box {
  background: transparent;
  border: none;
  border-left: none;
  padding: 0;
  margin: 0;
}

.newsletter-sidebar .newsletter-box h2 {
  display: none;
}

.newsletter-sidebar .newsletter-box > p {
  display: none;
}

.newsletter-sidebar .newsletter-box .newsletter-privacy {
  font-size: 0.75rem;
  color: #ccc;
  margin-top: 0.75rem;
}

.newsletter-sidebar .newsletter-box .newsletter-privacy a {
  color: #b57bb8;
}

@media (max-width: 1100px) {
  .lessons-newsletter-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .lessons-newsletter-wrapper {
    grid-template-columns: 1fr;
  }
  
  .newsletter-sidebar {
    grid-row: auto;
  }
  
  .share-buttons {
    justify-content: center;
  }
}
