/* =========================================
   1. VARIABLES GLOBALES Y BASE
   ========================================= */
:root {
  --dencanto-yellow: #f3b607;
  --dencanto-orange: #e2542a;
  --darian-pink: #C54F72;
  --yellow-soft: #fef9e7;
  --yellow-mid: #fce8a0;
  --orange-soft: #fdf0ec;
  --orange-mid: #f5b8a8;
  --bg-base: #fcfbf9;
  --text-main: #2d2d2d;
  --text-muted: #6b6b6b;
  --border-color: #ebebeb;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-image:
    linear-gradient(to bottom, rgba(252, 251, 249, 0.25), rgba(252, 251, 249, 0.7)),
    url('/static/img/bg_course.webp'),
    radial-gradient(circle at top left, var(--yellow-soft) 0%, var(--bg-base) 50%, var(--orange-soft) 100%);
  background-position: bottom center, bottom center, top left;
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-size: 100% auto, 100% auto, cover;
  background-attachment: fixed, fixed, fixed;
  color: var(--text-main);
  padding-bottom: 4rem;
}

/* Breadcrumb (Común) */
.breadcrumb-wrapper {
  padding-top: 1.5rem;
  font-size: 0.85rem;
}
.breadcrumb-wrapper .breadcrumb {
  background: transparent;
  padding: 0;
  margin-bottom: 1rem;
}
.breadcrumb-wrapper a {
  color: var(--text-muted);
  text-decoration: none;
}
.breadcrumb-wrapper a:hover {
  color: var(--dencanto-orange);
}
.breadcrumb-wrapper .active {
  color: var(--text-main);
  font-weight: 500;
}

/* H1 (Común) */
.page-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}
.page-subtitle {
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 4rem;
  font-size: 20px;
}

/* ===== BUSCADOR ===== */
.search-container {
  width: 100%;
  margin: 0 auto 3rem auto;
}
.search-wrapper {
  width: 100%;
  display: flex;
  background: #ffffff;
  border-radius: 50px;
  border: 1.5px solid #e5e5e5;
  overflow: hidden;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.search-wrapper:focus-within {
  border-color: var(--dencanto-yellow);
  box-shadow: 0 0 0 4px rgba(243, 182, 7, 0.15);
}
.search-input {
  border: none;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  background: transparent;
  width: 100%;
  outline: none;
}

/* ===== BLOQUE DE FAQs CON IMAGEN ===== */
.faq-content-wrapper {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  margin-bottom: 3rem;
}
.faq-header-image {
  position: relative;
  height: 180px;
  background-size: cover;
  background-position: center;
  transition: background-image 0.5s ease-in-out;
}
.faq-header-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(255,255,255,1) 100%);
}
.faq-content-inner {
  position: relative;
  z-index: 2;
  padding: 30px 1.5rem 1.5rem;
  margin-top: -40px;
}

/* Pills */
.category-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.category-pill {
  border: 1.5px solid #c6c6c6;
  background: rgb(255 252 243);
  backdrop-filter: blur(4px);
  color: #000000;
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.category-pill:hover {
  border-color: var(--dencanto-yellow);
  color: var(--text-main);
  background: var(--yellow-soft);
}
.category-pill.active {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
  font-weight: 600;
}
.faq-source-badge{
      border: solid 1px #6b6b6b;
    padding: 3px 13px;
    border-radius: 30px;
    color: #6b6b6b;
}

/* Acordeón */
.faq-accordion .accordion-item {
  border: none;
  background: transparent;
  margin-bottom: 0.5rem;
}
.faq-accordion .accordion-button {
  background: #ffffff;
  border-radius: 12px !important;
  border: 1.5px solid var(--border-color);
  padding: 1.1rem 1.25rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-main);
  box-shadow: none;
  transition: all 0.2s;
  gap: 21px;
}
.faq-accordion .accordion-button:not(.collapsed) {
  background: var(--yellow-soft);
  border-color: var(--dencanto-yellow);
  color: var(--text-main);
}
.faq-accordion .accordion-button:focus {
  box-shadow: 0 0 0 4px rgba(243, 182, 7, 0.1);
  border-color: var(--dencanto-yellow);
}
.faq-accordion .accordion-body {
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  border-radius: 0 0 12px 12px;
  border: 1.5px solid var(--border-color);
  border-top: none;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #444;
}

/* ===== SECCIÓN DARIAN ===== */
.darian-section-wrapper {
  margin-bottom: 3rem;
}

/* ===== RECURSOS GRATUITOS ===== */
.resources-section {
  margin: 3rem auto 3rem auto;
}
.resources-title {
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
  text-align: center;
}
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.resource-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem 1.5rem;
  text-align: center;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.resource-card:hover {
  border-color: var(--dencanto-yellow);
  box-shadow: 0 8px 24px rgba(243, 182, 7, 0.15);
  transform: translateY(-3px);
  color: var(--text-main);
}
.resource-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--yellow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.resource-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--dencanto-orange);
}
.resource-card h3 {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.resource-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

/* =========================================
   3. ESTILOS ESPECÍFICOS DE COMUNIDAD
   ========================================= */
/* Bento Grid */
.community-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(140px, auto);
  gap: 16px;
  margin-bottom: 3rem;
}
.community-bento-tile {
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  position: relative;
}
.community-bento-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.community-tile-platforms {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  justify-content: center;
}
.community-tile-platforms .platform-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
}
.community-tile-platforms .platform-icons svg {
  width: 24px;
  height: 24px;
  fill: var(--dencanto-orange);
}
.community-tile-platforms .platform-label {
  font-size: 1.2rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 500;
}

/* Tile: Welcome */
.community-tile-welcome {
  grid-column: span 2;
  grid-row: span 2;
  background: linear-gradient(135deg, var(--yellow-soft) 0%, #fff 100%);
  border: 1.5px solid var(--yellow-mid);
}
.community-tile-welcome .tile-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--dencanto-orange);
  margin-bottom: 0.5rem;
}
.community-tile-welcome h2 {
  font-weight: 700;
  font-size: 2.8rem;
  line-height: 1.25;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.community-tile-welcome p {
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Tile: Stats */
.community-tile-stats {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  align-items: center;
  justify-content: center;
  text-align: center;
}
.community-tile-stats .stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--dencanto-orange);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.community-tile-stats .stat-label {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Tile: Photo */
.community-tile-photo {
  background-size: cover;
  background-position: center;
  position: relative;
  border: none;
  min-height: 180px;
}
.community-tile-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(0 0 0 / 78%) 0%, transparent 60%);
  border-radius: 20px;
}
.community-tile-photo .photo-caption {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 500;
  margin-top: auto;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* Tile: Quote */
.community-tile-quote {
  background: var(--orange-soft);
  border: 1.5px solid var(--orange-mid);
  justify-content: center;
}
.community-tile-quote blockquote {
  font-size: 1.2rem;
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}
.community-tile-quote cite {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-style: normal;
  font-weight: 500;
}

/* Tile: CTA small */
.community-tile-cta {
  background: var(--dencanto-yellow);
  border: none;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  color: #1a1a1a;
}
.community-tile-cta:hover {
  color: #1a1a1a;
  opacity: 0.9;
}
.community-tile-cta .cta-icon {
  margin-bottom: 0.5rem;
}
.community-tile-cta .cta-icon svg {
  width: 35px;
  height: 35px;
  fill: #1a1a1a;
}
.community-tile-cta .cta-text {
  font-weight: 600;
  font-size: 1.2rem;
}

/* Grid de Eventos */
.community-events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 3rem;
}

.community-event-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.community-event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  border-color: var(--yellow-mid);
}

.community-event-card .event-image {
  height: 160px;
  background-size: cover;
  background-position: center;
}

.community-event-card .event-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.community-event-card .event-date {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dencanto-orange);
  margin-bottom: 0.5rem;
}

.community-event-card h3 {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.community-event-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.community-event-card .event-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--dencanto-orange);
  text-decoration: none;
  transition: gap 0.2s;
  margin-top: auto;
}

.community-event-card .event-link:hover {
  text-decoration: underline;
}

/* Redes Sociales */
.community-section-title {
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}
.community-social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 3rem;
}
.community-social-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.2s;
}
.community-social-card:hover {
  border-color: var(--dencanto-yellow);
  background: var(--yellow-soft);
  color: var(--text-main);
}
.community-social-card .social-icon {
  width: 50px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.community-social-card .social-icon svg {
  width: 35px;
  height: 35px;
  fill: var(--dencanto-orange);
}
.community-social-card .social-name {
  font-weight: 700;
  font-size: 1.1rem;
}
.community-social-card .social-handle {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

/* Embajadores */
.community-ambassadors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Fuerza 4 columnas */
  gap: 16px;
  margin-bottom: 3rem;
}
.community-ambassador-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 18px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: all 0.2s;
}
.community-ambassador-card:hover {
  border-color: var(--yellow-mid);
  box-shadow: 0 6px 20px rgba(243, 182, 7, 0.12);
}
.community-ambassador-card.featured {
  border-color: var(--dencanto-yellow);
  background: var(--yellow-soft);
}
.community-ambassador-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow-mid), var(--orange-mid));
  margin: 0 auto 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
}
.community-ambassador-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.community-ambassador-name {
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 0.15rem;
}
.community-ambassador-country {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.community-ambassador-country .flag {
  width: 18px;
  height: 13px;
  border-radius: 2px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
  display: inline-flex;
}
.community-ambassador-country .flag svg {
  width: 100%;
  height: 100%;
  display: block;
}
.community-ambassador-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  background: var(--orange-soft);
  color: var(--dencanto-orange);
}
.community-ambassador-card.featured .community-ambassador-tag {
  background: var(--dencanto-orange);
  color: #fff;
}

/* =========================================
   5. ESTILOS ESPECÍFICOS DE CERTIFICADOS
   ========================================= */

/* Tarjeta destacada: Sello Dencanto */
.cert-seal-card {
  background: linear-gradient(135deg, var(--yellow-soft) 0%, #ffffff 100%);
  border: 1.5px solid var(--yellow-mid);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}
/* Barra lateral amarilla */
.cert-seal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: var(--dencanto-yellow);
}
.cert-seal-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--dencanto-yellow);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(243, 182, 7, 0.2);
}
.cert-seal-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--dencanto-orange);
}
.cert-seal-content h2 {
  font-weight: 700;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}
.cert-seal-content p {
  color: #444;
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Grid de Acreditaciones */
.cert-accreditations-section {
  margin-bottom: 3rem;
}
.cert-section-label {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.cert-accreditations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.cert-accreditation-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all 0.2s ease;
  min-height: 160px;
}
.cert-accreditation-card:hover {
  border-color: var(--yellow-mid);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  transform: translateY(-2px);
}
.cert-partner-logo {
  max-width: 100%;
  height: 110px;
  object-fit: contain;
  margin-bottom: 1rem;
}
.cert-accreditation-card h3 {
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
  color: var(--text-main);
  line-height: 1.3;
}
.cert-accreditation-type {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Banner CTA Final */
.cert-cta-wrapper, .cta-dudas-wrapper {
  margin-top: 2rem;
  padding: 2.5rem 2rem;
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid var(--border-color);
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.cert-cta-wrapper h3, .cta-dudas-wrapper h3 {
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  letter-spacing: -0.01em;
}
.cert-cta-wrapper p, .cta-dudas-wrapper p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cert-cta-wrapper .btn-dencanto, .cta-dudas-wrapper .btn-dencanto {
  display: inline-block;
  width: auto;
  padding: 0.75rem 2rem;
}
.btn-dencanto {
  background: var(--dencanto-orange);
  color: #ffffff!important;
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  width: 100%;
  transition: opacity 0.2s;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1.25rem;
}
.btn-dencanto:hover {
  opacity: 0.85;
  color: #ffffff;
}

/* =========================================
   6. ESTILOS ESPECÍFICOS DE PARTNERS
   ========================================= */

/* Filtros */
.partner-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}
.partner-filter-btn {
  border: 1.5px solid transparent;
  background: #ffffff;
  color: var(--text-muted);
  border-radius: 50px;
  padding: 0.5rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.partner-filter-btn:hover {
  border-color: var(--yellow-mid);
  color: var(--text-main);
  background: var(--yellow-soft);
}
.partner-filter-btn.active {
  background: var(--dencanto-yellow);
  border-color: var(--dencanto-yellow);
  color: #1a1a1a;
  font-weight: 600;
}

/* Grid de Partners */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 3rem;
  align-items: start;
}

/* Tarjeta Base */
.partner-card {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  border-radius: 20px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
  position: relative;
}
.partner-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border-radius: inherit;
  transition: height 0.3s ease, box-shadow 0.3s ease;
}
.partner-card-inner.is-expanded {
  height: auto;
  z-index: 10;
}

.partner-history-wrapper {
  border-top: 1px solid var(--border-color);
  margin-top: auto;
}
.partner-card:hover {
  border-color: var(--yellow-mid);
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

/* Cabecera de la tarjeta */
.partner-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}
.partner-logo-wrapper {
  width: 65px;
  height: 65px;
  border-radius: 14px;
  background: var(--yellow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.partner-logo-wrapper img {
  width: 60px;
  height: 60px;
}
.partner-city-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  background: var(--orange-soft);
  color: var(--dencanto-orange);
  white-space: nowrap;
}

/* Cuerpo de la tarjeta */
.partner-card-body h3 {
  font-weight: 700;
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}
.partner-card-body .partner-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}
.partner-card-body .partner-description {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 1rem;
}

/* Acordeón de Historia */
.partner-history-wrapper {
  border-top: 1px solid var(--border-color);
  margin-top: auto; /* Empuja el acordeón al fondo */
}
.partner-history-toggle {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1rem 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dencanto-orange);
  cursor: pointer;
  transition: color 0.2s;
}
.partner-history-toggle:hover {
  color: #c94822;
}
.partner-history-toggle .chevron-icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: transform 0.3s ease;
}
.partner-history-toggle.open .chevron-icon {
  transform: rotate(180deg);
}
.partner-history-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.partner-history-content p {
  padding-top: 1rem;
  margin-bottom: 0;
}

/* =========================================
   7. ESTILOS ESPECÍFICOS DE HISTORIA DENCANTO
   ========================================= */

/* Hero Narrativo */
.story-hero {
  position: relative;
  background-color: #2d2d2d;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 3rem;
  min-height: 400px;
  display: flex;
  align-items: flex-end;
}
.story-hero-bg {
  position: absolute;
  inset: 0;
  /* Imagen de fondo (puedes cambiarla por una foto real de la oficina o Granada) */
  background-image: url('/static/img/bg_historia.webp');
  background-size: cover;
  background-position: center -30px;
  opacity: 0.45;
}
.story-hero-content {
  position: relative;
  z-index: 1;
  padding: 3rem;
  color: #ffffff;
  max-width: 700px;
}
.story-hero-content .hero-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--dencanto-yellow);
  margin-bottom: 0.75rem;
}
.story-hero-content h1 {
  font-weight: 700;
  font-size: 2.4rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: #fff!important;
}
.story-hero-content p {
  font-size: 1.2rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 0;
  color: #fff!important;
}

/* Timeline */
.timeline-section {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 4rem;
}
/* Línea vertical */
.timeline-section::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--yellow-mid), var(--orange-mid), transparent);
}

.timeline-item {
  position: relative;
  padding-bottom: 3rem;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}
.timeline-item:last-child {
  padding-bottom: 0;
}

/* Punto en la línea */
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.35rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-base);
  border: 3px solid var(--dencanto-yellow);
  z-index: 1;
}
.timeline-item:nth-child(even)::before {
  border-color: var(--dencanto-orange);
}

.timeline-year {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--dencanto-orange);
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}
.timeline-item h2 {
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
  color: var(--text-main);
}
.timeline-item p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 1rem;
}
.timeline-image {
  width: 100%;
  max-width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 16px;
  margin-top: 1rem;
  border: 1.5px solid var(--border-color);
}

/* Cita de Fundadores */
.founder-quote {
  background: #ffffff;
  border: 1.5px solid var(--yellow-mid);
  border-radius: 20px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.founder-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yellow-mid), var(--orange-mid));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  color: #ffffff;
  flex-shrink: 0;
}
.founder-quote blockquote {
  font-size: 1.15rem;
  line-height: 1.6;
  font-style: italic;
  color: var(--text-main);
  margin-bottom: 1rem;
}
.founder-quote cite {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: normal;
  font-weight: 500;
}

/* Sección de Visión */
.vision-section {
  background: linear-gradient(135deg, var(--yellow-soft) 0%, #ffffff 100%);
  border: 1.5px solid var(--yellow-mid);
  border-radius: 20px;
  padding: 3rem;
  margin-bottom: 2rem;
}
.vision-section h2 {
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  color: var(--text-main);
}
.vision-section p {
  font-size: 1.2rem;
  line-height: 1.7;
  color: #444;
  margin-bottom: 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    min-height: 300px;
}
.calendar-day-header {
    text-align: center;
    padding: 10px 4px;
    font-weight: 600;
    color: #666;
    font-size: 0.85rem;
    text-transform: uppercase;
    background: #f8f9fa;
    border-radius: 4px;
    height: 42px;
}
.calendar-day {
    aspect-ratio: 1.2;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    background: #fff;
    font-size: 0.9rem;
    min-height: 40px;
    max-height: 50px;
}
.calendar-day.empty {
    visibility: hidden;
}
.calendar-day.today {
    background: #fff5da;
    font-weight: 600;
}
.calendar-day.selected {
    background: #f3b607;
    color: #fff;
    border-color: #f3b607;
    font-weight: 600;
    transform: scale(1.05);
}
.btn-next {
    background: #f3b607;
    color: #000;
    border: 1px solid #f3b607;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-radius: 6px;
}
.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 1rem;
}
.time-slot {
    padding: 8px 6px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    color: #000;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    text-align: center;
    min-height: 38px;
}
.time-slot.disabled {
    background: #f8f9fa;
    color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}
.time-slot.selected {
    background: #f3b607;
    color: #fff;
    border-color: #f3b607;
    font-weight: 600;
}
.time-slot:hover:not(.disabled) {
    border-color: #f3b607;
    background: #fff5da;
    transform: translateY(-1px);
}

/* =========================================
   4. RESPONSIVE
   ========================================= */
@media (max-width: 991px) {
  /* FAQs */
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Comunidad */
  .community-events-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .community-social-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .community-bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .community-tile-welcome {
    grid-column: span 2;
    grid-row: span 1;
  }
  .community-tile-welcome h2 {
    font-size: 1.3rem;
  }
  .community-tile-photo {
    min-height: 150px;
  }
  /* Embajadores: 2 columnas (ej. 2x4) */
  .community-ambassadors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Acreditaciones */
  .cert-accreditations-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cert-seal-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }
  .cert-seal-card::before {
    width: 100%;
    height: 6px;
  }
  .cert-seal-content h2 {
    font-size: 1.2rem;
  }
  .partners-grid {
    grid-template-columns: 1fr;
  }
  .story-hero-content h1 {
    font-size: 1.8rem;
  }
  .story-hero-content {
    padding: 2rem;
  }
  .founder-quote {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
  }
  .vision-section {
    padding: 2rem;
  }
  .vision-section h2 {
    font-size: 1.4rem;
  }
}

@media (max-width: 576px) {
  body {
    background-position: center;
    background-size: 130% auto, 194% auto, cover;
  }
  /* FAQs */
  .page-title { font-size: 1.75rem; }
  .faq-header-image { height: 140px; }
  .faq-content-inner { padding: 0 1rem 1rem; }
  .resources-grid {
    grid-template-columns: 1fr;
  }

  /* Comunidad */
  .community-events-grid {
    grid-template-columns: 1fr;
  }
  .community-social-grid {
    grid-template-columns: 1fr;
  }
  .community-bento-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .community-tile-welcome {
    grid-column: span 1;
    grid-row: span 1;
  }
  .community-tile-welcome h2 {
    font-size: 1.5rem;
  }
  .community-tile-photo {
    min-height: 160px;
  }
  .community-ambassadors-grid {
    grid-template-columns: 1fr;
  }
  .community-ambassador-card {
    padding: 1.25rem 1rem;
  }
  .community-social-grid {
    grid-template-columns: 1fr 1fr;
    gap: 5px;
  }
  .community-social-card {
    gap: 0.1rem;
    padding: 0.8rem 0.5rem;
  }
  .community-social-card .social-icon svg {
    width: 20px;
    height: 20px;
  }
  .community-social-card .social-icon {
    width: 32px;
    height: 24px;
  }

  /* Acreditaciones */
  .cert-accreditations-grid {
    grid-template-columns: 1fr;
  }
  .cert-accreditation-card {
    min-height: auto;
    padding: 1.25rem;
  }

  .story-hero-bg {
    background-position: center 0px;
  }
  .story-hero {
    min-height: 320px;
  }
  .story-hero-content {
    padding: 1.5rem;
  }
  .story-hero-content h1 {
    font-size: 1.5rem;
  }
  .timeline-section {
    padding-left: 1.5rem;
  }
  .timeline-item::before {
    left: -1.5rem;
    width: 12px;
    height: 12px;
  }
  .timeline-image {
    height: 200px;
  }
}