/* Main Web Styles for Inculca Platform */
:root {
  --primary: #1a237e;
  /* Deep Blue */
  --secondary: #e53935;
  /* Accent Red/Orange */
  --text: #333;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --font-serif: 'Merriweather', serif;
  --font-sans: 'Roboto', sans-serif;
}

/* --- Shared Layout (Podcast/Blog) --- */
.main-layout {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 2.5rem;
  padding: 3rem 5%;
  max-width: 1400px;
  margin: auto;
}

@media (max-width: 992px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
}

.sidebar {
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  padding: 1.8rem;
  height: fit-content;
  position: sticky;
  top: 100px;
}

.sidebar h3 {
  font-family: var(--font-serif);
  border-bottom: 3px solid var(--primary);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  color: #222;
}

.sidebar ul {
  list-style: none;
  padding-left: 0;
}

.sidebar li {
  margin-bottom: 1.2rem;
}

.sidebar a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

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

.paginacion {
  text-align: center;
  margin: 2rem 0;
}

.paginacion a {
  margin: 0 0.3rem;
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  border-radius: 30px;
  color: var(--primary);
  border: 1px solid var(--primary);
  transition: all 0.3s;
}

.paginacion a:hover {
  background: var(--primary);
  color: var(--white);
}

/* Share Buttons */
.share-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 1.5rem 1.5rem;
}

.share-buttons button {
  background: var(--primary);
  border: none;
  color: white;
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.3s;
}

.share-buttons button:hover {
  background: #303f9f;
}

body {
  font-family: var(--font-sans);
  color: var(--text);
  overflow-x: hidden;
  padding-top: 70px;
  /* Navbar space */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
}

/* Navbar */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  padding: 15px 0;
}

.navbar-brand span {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.5rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text) !important;
  margin: 0 10px;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary) !important;
}

.btn-primary-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 50px;
  padding: 8px 25px;
  font-weight: 600;
  transition: all 0.3s;
}

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

/* Hero Section */
.hero-section {
  position: relative;
  height: 85vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(26, 35, 126, 0.9), rgba(26, 35, 126, 0.4));
}

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

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 30px;
  opacity: 0.9;
}

/* Mission / Services */
.mission-section {
  padding: 80px 0;
  background: var(--white);
}

.service-card {
  text-align: center;
  padding: 40px 20px;
  border-radius: 12px;
  background: var(--bg-light);
  transition: transform 0.3s;
  height: 100%;
}

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

.icon-wrapper {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 20px;
}

/* Podcast Placeholder */
.podcast-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(135deg, var(--primary) 0%, #303f9f 100%);
  /* Dark Blue Brand */
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.2);
  /* Subtle watermark effect */
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.podcast-placeholder i {
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

/* Podcast Section */
.podcast-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.entry-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s;
  height: 100%;
}

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

.entry-img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.entry-body {
  padding: 20px;
}

.entry-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary);
}

/* Editorial Preview */
.editorial-section {
  padding: 80px 0;
  background: var(--white);
  border-top: 1px solid #eee;
}

.editorial-preview {
  display: flex;
  align-items: center;
}

.editorial-text h2 {
  font-size: 2.5rem;
  color: #333;
}

.badge-coming-soon {
  background: var(--secondary);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Footer */
footer {
  background: #111;
  color: #aaa;
  padding: 60px 0 20px;
}

footer h5 {
  color: var(--white);
  margin-bottom: 20px;
}

footer a {
  color: #aaa;
  text-decoration: none;
}

footer a:hover {
  color: var(--white);
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .editorial-preview {
    flex-direction: column;
  }
}

/* Utilities */
.backdrop-blur {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hover-scale {
  transition: transform 0.2s;
}

.hover-scale:hover {
  transform: scale(1.02);
}

.z-2 {
  z-index: 2;
}

.bg-opacity-10 {
  --bs-bg-opacity: 0.1;
}

.bg-opacity-75 {
  --bs-bg-opacity: 0.75;
}

/* --- THEME: Haciendo Hogar (Premium Redesign) --- */
.theme-hogar {
  /* Cleaner, more premium palette */
  --primary: #2c3e50;
  /* Dark Blue-Gray for Headings (Neutral) */
  --secondary: #d81b60;
  /* Pink for Accents only */
  --bg-light: #f8f9fa;
  /* Clean Off-White Background */
  --bs-primary: #d81b60;
  --bs-link-color: #d81b60;
}

.theme-hogar body {
  background-color: var(--bg-light);
  color: #444;
  /* Dark gray body text */
}

/* Specific overrides for Hero/Header in Theme Hogar */
.theme-hogar header,
.theme-hogar .hero-section {
  background: linear-gradient(135deg, #fce4ec 0%, #f06292 100%) !important;
  color: #880e4f !important;
}

.theme-hogar header h1,
.theme-hogar .hero-title {
  color: #880e4f !important;
}

/* Link overrides */
.theme-hogar a {
  text-decoration: none !important;
  color: #d81b60;
  transition: color 0.2s;
}

.theme-hogar a:hover {
  color: #880e4f;
}

/* Card overrides: Premium "Stripe-style" Shadow */
.theme-hogar .entry-card {
  background-color: #ffffff !important;
  border: none;
  /* Remove border for cleaner look */
  border-radius: 16px;
  /* Softer, more modern corners */
  /* Premium Shadow: Visible but soft */
  box-shadow: 0 13px 27px -5px rgba(50, 50, 93, 0.25), 0 8px 16px -8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.theme-hogar .entry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.25), 0 18px 36px -18px rgba(0, 0, 0, 0.3);
}

.theme-hogar .entry-card h2 {
  color: #2c3e50;
  /* Dark neutral heading */
  font-weight: 700;
}

.theme-hogar .entry-card .fecha {
  color: #d81b60;
  /* Accent color for metadata */
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

/* Premium Buttons */
.theme-hogar .btn-primary-outline,
.theme-hogar .btn-outline-primary {
  background-color: transparent;
  color: #d81b60;
  border: 2px solid #d81b60;
  font-weight: 600;
  border-radius: 50px;
  /* Pill shape */
  padding: 8px 24px;
}

.theme-hogar .btn-primary-outline:hover,
.theme-hogar .btn-outline-primary:hover {
  background-color: #d81b60;
  color: white;
  border-color: #d81b60;
  box-shadow: 0 4px 15px rgba(216, 27, 96, 0.3);
}

/* Pagination overrides */
.theme-hogar .paginacion a {
  color: #d81b60;
  border-color: #fce4ec;
  /* Very subtle border */
  background: white;
  margin: 0 5px;
  border-radius: 50%;
  /* Circular pagination */
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-hogar .paginacion a:hover,
.theme-hogar .paginacion .active {
  background-color: #d81b60;
  color: white;
  border-color: #d81b60;
  box-shadow: 0 4px 10px rgba(216, 27, 96, 0.3);
}

/* Sidebar overrides */
.theme-hogar .sidebar h3 {
  border-bottom: 2px solid #f8bbd0;
  color: #2c3e50;
  padding-bottom: 10px;
}

.theme-hogar .sidebar a:hover {
  color: #d81b60;
}

/* --- THEME: Haciendo Hogar (Neutral/Reading Mode) --- */
.theme-hogar-neutral {
  --primary: #333333;
  /* Dark Gray/Black for text/links */
  --secondary: #666666;
  /* Medium Gray */
  --bg-light: #ffffff;
  /* Pure White background */
  --bs-primary: #444444;
  --bs-link-color: #333333;
  --bs-link-hover-color: #000000;
}

.theme-hogar-neutral body {
  background-color: #f9f9f9;
  /* Very subtle gray */
  color: #333;
}

.theme-hogar-neutral h1,
.theme-hogar-neutral h2,
.theme-hogar-neutral h3 {
  color: #222 !important;
  /* Neutral dark headings */
  border-color: #444 !important;
  /* Neutral borders */
}

.theme-hogar-neutral a {
  color: #444;
}

.theme-hogar-neutral a:hover {
  color: #000;
}

.theme-hogar-neutral .btn-primary,
.theme-hogar-neutral .btn-outline-primary {
  background-color: #444;
  border-color: #444;
  color: #fff;
}

.theme-hogar-neutral .btn-primary:hover,
.theme-hogar-neutral .btn-outline-primary:hover {
  background-color: #222;
  border-color: #222;
}