/* --- CSS RESET & NORMALIZE --- */

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
html {
  line-height: 1.15;
  scroll-behavior: smooth;
}
body {
  background: #FBFCFF;
  color: #234361;
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  font-size: 16px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  height: auto;
}
ul, ol {
  list-style: none;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  border: none;
  outline: none;
  background: none;
}

/* --- SOFT PASTEL VARIABLES --- */
:root {
  --primary: #234361;
  --secondary: #F5F5F4;
  --accent: #FFA726;
  --bg-main: #FBFCFF;
  --pastel-blue: #A8D5F4;
  --pastel-pink: #FFE2E9;
  --pastel-mint: #CCF2DD;
  --pastel-cream: #FDF6EC;
  --pastel-violet: #ECDDF7;
  --shadow: 0 4px 20px rgba(97, 89, 161, 0.09);
  --radius-md: 18px;
  --radius-lg: 30px;
  --radius-sm: 10px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
  --font-display: 'Merriweather', Georgia, 'Times New Roman', Times, serif;
  --font-body: 'Lato', Arial, Helvetica, sans-serif;
  --focus-ring: 0 0 0 3px rgba(168,213,244,0.6);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.18;
}
h1 { font-size: 2.4rem; margin-bottom: 18px; }
h2 { font-size: 2rem; margin-bottom: 16px; }
h3 { font-size: 1.4rem; margin-bottom: 10px; }
h4 { font-size: 1.15rem; margin-bottom: 6px; }
p, ul, ol, li, span, label {
  font-family: var(--font-body);
  color: var(--primary);
  line-height: 1.7;
  font-size: 1rem;
}
strong, b { font-weight: 700; }
em, i { font-style: italic; }
small { font-size: 0.95rem; }
blockquote {
  background: var(--pastel-violet);
  border-left: 6px solid var(--accent);
  margin: 24px 0 24px 0;
  padding: 20px 20px 20px 36px;
  font-family: var(--font-display);
  color: var(--primary);
  font-size: 1.1rem;
  border-radius: var(--radius-md);
}

/* --- CONTAINER SYSTEM --- */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}
.content-wrapper {
  background: var(--pastel-cream);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 40px 24px;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- GENERAL SECTION STYLES --- */
section {
  padding: 0;
}
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

/* --- NAVIGATION (DESKTOP) --- */
header {
  background: linear-gradient(90deg, #F5F5F4 70%, var(--pastel-blue) 100%);
  box-shadow: 0 5px 30px 0 rgba(34,67,97,0.05);
}
header .container {
  padding-top: 15px;
  padding-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
header nav {
  display: flex;
  gap: 24px;
}
header nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  transition: background var(--transition), color var(--transition);
}
header nav a:hover, header nav a:focus {
  background: var(--pastel-blue);
  color: #2A3693;
  outline: none;
}
header img[alt="Lectura Inspirada"] {
  height: 38px;
}
.mobile-menu-toggle {
  display: none;
}

/* --- MOBILE NAVIGATION (BURGER) --- */
.mobile-menu-toggle {
  display: none;
  background: var(--pastel-blue);
  font-size: 2rem;
  color: var(--primary);
  border-radius: var(--radius-lg);
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.mobile-menu {
  position: fixed;
  z-index: 3000;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(252,254,255,0.96);
  box-shadow: 0 2px 24px 0 rgba(34,67,97,0.13);
  backdrop-filter: blur(6px);
  transform: translateX(-100%);
  transition: transform 0.33s cubic-bezier(.69,-0.01,.32,1.11);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
}
.mobile-menu.open {
  transform: translateX(0%);
}
.mobile-menu-close {
  align-self: flex-end;
  background: var(--pastel-pink);
  font-size: 2.2rem;
  color: var(--primary);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  margin: 28px 24px 16px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background 0.25s;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--pastel-blue);
  outline: none;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  align-items: center;
}
.mobile-nav a {
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  background: var(--pastel-mint);
  padding: 14px 36px;
  border-radius: var(--radius-md);
  width: 86%;
  text-align: center;
  transition: background 0.23s, color 0.21s;
  margin-bottom: 4px;
}
.mobile-nav a:last-child {
  margin-bottom: 24px;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 1050px) {
  header nav {
    gap: 14px;
  }
}
@media (max-width: 950px) {
  header .container {
    flex-wrap: wrap;
  }
  .content-wrapper {
    padding: 32px 10px;
  }
}
@media (max-width: 780px) {
  header nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .container {
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    padding-top: 6px;
    padding-bottom: 6px;
  }
  .content-wrapper {
    padding: 24px 5px;
    margin-bottom: 24px;
  }
  section.section {
    margin-bottom: 36px;
    padding: 20px 6px;
  }
}

/* --- BUTTONS --- */
.cta-primary,
.cta-secondary,
button, .button {
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  outline: none;
  padding: 14px 32px;
  box-shadow: var(--shadow);
  transition: background var(--transition), color var(--transition), box-shadow 0.18s;
  display: inline-block;
  margin-top: 14px;
  cursor: pointer;
  letter-spacing: 0.05em;
  text-align: center;
}
.cta-primary {
  background: var(--pastel-blue);
  color: var(--primary);
}
.cta-primary:hover, .cta-primary:focus {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px 0 rgba(255,167,38,0.12);
}
.cta-secondary {
  background: var(--pastel-pink);
  color: var(--primary);
}
.cta-secondary:hover, .cta-secondary:focus {
  background: var(--pastel-mint);
  color: var(--primary);
}
.button {
  background: var(--pastel-pink);
  color: var(--primary);
}
button:focus, .cta-primary:focus, .cta-secondary:focus {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* --- FLEX PATTERNS: MAIN --- */
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow 0.22s, transform 0.15s;
  min-width: 260px;
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card:hover, .card:focus-within {
  box-shadow: 0 8px 34px 0 rgba(168,213,244,0.11);
  transform: translateY(-4px) scale(1.02);
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.testimonial-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--pastel-mint);
  color: var(--primary);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  flex: 1 1 300px;
  min-width: 220px;
  flex-direction: column;
  transition: box-shadow 0.2s, background 0.2s;
  font-size: 1.08rem;
}
.testimonial-card:hover, .testimonial-card:focus-within {
  background: var(--pastel-blue);
  box-shadow: 0 8px 25px 0 rgba(168,213,244,0.15);
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* --- FEATURE GRID --- */
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}
.feature-grid li {
  background: var(--pastel-mint);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: 1 1 230px;
  min-width: 200px;
  max-width: 320px;
  margin-bottom: 20px;
  transition: box-shadow 0.18s, background 0.18s;
}
.feature-grid li:hover, .feature-grid li:focus-within {
  background: var(--pastel-cream);
  box-shadow: 0 8px 32px 0 rgba(204,242,221,0.13);
}
.feature-grid img {
  height: 44px;
  width: 44px;
}

/* --- POST, NEWS, LISTS --- */
.post-list, .favorites-list, .thematic-collections, .tips-list, .values-list, .alphabetical-author-list, .events-list, .news-list, .team-bios {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 12px 0 8px 0;
}
.post-list li, .favorites-list li, .thematic-collections li, .tips-list li, .values-list li, .alphabetical-author-list li, .events-list li, .news-list li, .team-bios li {
  background: var(--pastel-pink);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 20px 18px;
  font-size: 1.025rem;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}
.post-list li:hover, .favorites-list li:hover, .thematic-collections li:hover, .tips-list li:hover, .values-list li:hover {
  background: var(--pastel-mint);
}
.tips-list img, .values-list img {
  width: 32px;
  height: 32px;
  margin-right: 10px;
}
.alphabetical-author-list li {
  background: var(--pastel-cream);
  font-weight: 600;
}
/* Events/news lists inherit */

/* --- REVIEW CARDS --- */
.review-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
}
.review-card {
  background: var(--pastel-violet);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 24px 16px;
  min-width: 220px;
  max-width: 360px;
  flex: 1 1 290px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  transition: box-shadow 0.19s, background 0.16s;
}
.review-card:hover, .review-card:focus-within {
  background: var(--pastel-pink);
  box-shadow: 0 10px 30px 0 rgba(236,221,247,0.10);
}
.review-card .rating {
  color: #FFBB42;
  font-size: 1.3rem;
  margin-top: 4px;
  font-family: var(--font-display);
}

/* --- AUTHOR SPOTLIGHTS --- */
.author-spotlights {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 12px 0 16px 0;
}
.author-spotlights > div {
  background: var(--pastel-mint);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 20px 18px;
  min-width: 220px;
  flex: 1 1 280px;
  transition: box-shadow 0.18s;
}
.author-spotlights > div:hover {
  box-shadow: 0 8px 32px 0 rgba(204,242,221,0.09);
}
.interview-snippets {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- COMMUNITY STATS --- */
.community-stats {
  background: var(--pastel-blue);
  border-radius: var(--radius-lg);
  color: var(--primary);
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.16rem;
  padding: 18px 0;
  margin: 10px 0 0 0;
  box-shadow: var(--shadow);
}

/* --- TESTIMONIAL LIST --- */
.testimonial-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 14px;
}
.testimonial-card p {
  font-size: 1.11rem;
  color: var(--primary);
  font-family: var(--font-body);
}
.testimonial-card span {
  color: var(--primary);
  font-size: 1rem;
  margin-top: 4px;
}

/* --- CONTACT BLOCK --- */
.contact-block, .contact-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 14px;
}
.contact-block span, .contact-info span {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: var(--primary);
  gap: 10px;
}
.contact-info img, .contact-block img {
  width: 24px;
  height: 24px;
}
.contact-block br {
  display: none;
}

/* --- FOOTER --- */
footer {
  background: linear-gradient(90deg, var(--pastel-blue) 50%, #FDE2EA 100%);
  padding: 44px 0 20px 0;
  margin-top: 36px;
}
footer .container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 10px;
}
.footer-menu a {
  color: var(--primary);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  transition: background 0.18s;
}
.footer-menu a:hover, .footer-menu a:focus {
  background: var(--pastel-mint);
}
.social-links {
  display: flex;
  flex-direction: row;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 4px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pastel-blue);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  transition: background 0.18s;
}
.social-links a:hover {
  background: var(--accent);
}
.social-links img {
  width: 22px;
  height: 22px;
}

/* --- COOKIE CONSENT BANNER --- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 50%;
  z-index: 5000;
  transform: translateX(-50%);
  width: 95%;
  max-width: 440px;
  background: var(--pastel-cream);
  box-shadow: 0 4px 24px 0 rgba(168,213,244,0.27);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: 24px 24px 18px 24px;
  font-size: 1rem;
  font-family: var(--font-body);
  color: var(--primary);
  opacity: 1;
  pointer-events: all;
  transition: transform .33s, opacity .19s;
}
.cookie-banner.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(50px);
}
.cookie-banner b {
  color: var(--primary);
  font-weight: 700;
}
.cookie-banner .cookie-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 10px;
}
.cookie-banner .cookie-btn {
  background: var(--pastel-blue);
  color: var(--primary);
  border-radius: var(--radius-md);
  border: none;
  padding: 11px 22px;
  font-size: 1rem;
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  box-shadow: var(--shadow);
}
.cookie-banner .cookie-btn.accept {
  background: var(--accent);
  color: #fff;
}
.cookie-banner .cookie-btn.reject {
  background: var(--pastel-pink);
  color: var(--primary);
}
.cookie-banner .cookie-btn.settings {
  background: var(--pastel-mint);
  color: var(--primary);
}
.cookie-banner .cookie-btn:hover, .cookie-banner .cookie-btn:focus {
  background: var(--primary);
  color: #fff;
}

/* --- COOKIE MODAL POPUP --- */
.cookie-modal {
  display: none;
  position: fixed;
  z-index: 6000;
  left: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(168,213,244,.18);
  align-items: center;
  justify-content: center;
  overflow: auto;
}
.cookie-modal.open {
  display: flex;
  animation: cookieFadeIn .32s;
}
@keyframes cookieFadeIn { from { opacity: 0; } to { opacity: 1; } }
.cookie-modal-content {
  background: #fff;
  border-radius: var(--radius-lg);
  width: 97%;
  max-width: 380px;
  padding: 30px 22px 22px 22px;
  box-shadow: 0 8px 38px 0 rgba(168,213,244,0.20);
  display: flex;
  flex-direction: column;
  gap: 17px;
  position: relative;
  animation: cookieSlideIn .33s cubic-bezier(0.29,1.28,0.55,1);
}
@keyframes cookieSlideIn { from { transform: translateY(32px); opacity: 0; } to { opacity: 1; transform: none; } }
.cookie-modal-content h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.cookie-modal-content label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.cookie-modal-toggle {
  accent-color: var(--accent);
  width: 24px;
  height: 24px;
  margin-right: 8px;
}
.cookie-modal-category-info {
  font-size: 0.97rem;
  color: #555B6E;
  margin-top: 2px;
}
.cookie-modal-actions {
  display: flex;
  flex-direction: row;
  gap: 14px;
  margin-top: 10px;
}
.cookie-modal-close {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--pastel-pink);
  color: var(--primary);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
}
.cookie-modal-close:hover, .cookie-modal-close:focus {
  background: var(--pastel-blue);
  color: var(--accent);
}

/* --- RESPONSIVE FLEX DIRECTION --- */
@media (max-width: 950px) {
  .content-grid, .card-container, .feature-grid, .testimonial-list, .review-cards, .author-spotlights {
    flex-direction: column;
    align-items: stretch;
  }
  .feature-grid, .post-list, .favorites-list, .tips-list, .values-list, .alphabetical-author-list, .events-list, .news-list {
    gap: 14px;
  }
}
@media (max-width: 768px) {
  .text-image-section {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
  .footer-menu {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .contact-block br {
    display: block;
  }
  .testimonial-list, .author-spotlights, .review-cards {
    gap: 16px;
  }
}
@media (max-width: 520px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.1rem; }
  .container {
    padding-left: 6px;
    padding-right: 6px;
  }
  .cookie-banner {
    padding: 15px 8px 11px 8px;
    font-size: 0.97rem;
  }
}

/* --- ACCESSIBILITY & INTERACTIONS --- */
a:focus, button:focus, .cta-primary:focus, .cta-secondary:focus {
  outline: none;
  box-shadow: var(--focus-ring);
}
::-webkit-scrollbar {
  width: 8px;
  background: #f6f6f6;
}
::-webkit-scrollbar-thumb {
  background: #E6EFF9;
  border-radius: 7px;
}

/* --- ANIMATIONS --- */
.cta-primary, .cta-secondary, .cookie-banner .cookie-btn {
  transition: background 0.19s, color 0.19s, transform 0.15s, box-shadow 0.13s;
}
.cta-primary:active, .cta-secondary:active, .cookie-banner .cookie-btn:active {
  transform: scale(0.97);
}
.card, .testimonial-card, .review-card, .feature-grid li, .author-spotlights > div {
  transition: box-shadow 0.22s, background 0.21s, transform 0.18s;
}

/* --- UTILS: MISC RESETS --- */
hr {
  border: none;
  border-top: 1px solid #e5e9fc;
  margin: 30px 0;
}

/* --- CUSTOM CLASSES BY HTML STRUCTURE --- */
.text-section {
  margin-top: 12px;
  margin-bottom: 12px;
}

.monthly-pick {
  background: var(--pastel-mint);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 24px 18px;
  margin-bottom: 18px;
  font-family: var(--font-body);
  color: var(--primary);
  font-size: 1.07rem;
}

/* --- Z-INDEX ENSURE NO OVERLAPPING --- */
header, .mobile-menu, .cookie-banner, .cookie-modal {
  z-index: 1000;
}

/* --- ENSURE GAP AND NO OVERLAP --- */
.card + .card,
.testimonial-card + .testimonial-card,
.feature-grid li + li,
.review-card + .review-card,
.author-spotlights > div + div,
.tips-list li + li,
.post-list li + li,
.favorites-list li + li,
.events-list li + li,
.values-list li + li {
  margin-top: 20px;
}

/* --- END --- */
