:root {
  --color-green: #63d7a8;
  --color-green-dark: #1b7754;
  --color-pink: #ff66c4;
  --color-purple: #613276;
  --color-purple-dark: #431f54;
  --bg-body: #f8fafc;
  --bg-white: #ffffff;
  --text-main: #2d3748;
  --text-muted: #718096;
  --border-color: #edf2f7;
  --shadow-sm: 0 4px 12px rgba(97, 50, 118, 0.06);
  --shadow-md: 0 10px 25px rgba(97, 50, 118, 0.1);
  --font-main: 'Montserrat', sans-serif;
  --font-script: 'Pacifico', cursive;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
}

/* NAVBAR */
.navbar {
  background-color: var(--bg-white);
  border-bottom: 2px solid var(--border-color);
  padding: 16px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-icon {
  font-size: 1.8rem;
  color: var(--color-purple);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--color-purple);
  letter-spacing: 1px;
}

.brand-accent {
  color: var(--color-green);
}

.nav-links {
  display: flex;
  gap: 10px;
}

.nav-btn {
  background: transparent;
  border: 2px solid transparent;
  padding: 8px 18px;
  border-radius: 50px;
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-purple);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.nav-btn:hover {
  background-color: #f3e8f8;
}

.nav-btn.active {
  background-color: var(--color-purple);
  color: var(--bg-white);
}

/* CONTENEDOR PRINCIPAL */
.container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
  min-height: calc(100vh - 220px);
}

.tab-section {
  display: none;
}

.tab-section.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* HERO HEADERS */
.section-hero {
  text-align: center;
  margin-bottom: 40px;
}

.badge-pill {
  display: inline-block;
  background-color: var(--color-green);
  color: var(--color-green-dark);
  font-size: 0.85rem;
  font-weight: 800;
  padding: 6px 18px;
  border-radius: 50px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.pill-pink {
  background-color: var(--color-pink);
  color: #ffffff;
}

.section-hero h1 {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-purple);
  margin-bottom: 8px;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 650px;
  margin: 0 auto;
}

/* SECCIÓN INICIO - GRID DE NOTICIAS */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.news-card {
  background-color: var(--bg-white);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card-tag {
  display: inline-block;
  background-color: var(--color-green);
  color: var(--color-green-dark);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 50px;
  width: fit-content;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.tag-pink {
  background-color: var(--color-pink);
  color: #ffffff;
}

.tag-purple {
  background-color: var(--color-purple);
  color: #ffffff;
}

.news-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-purple);
  margin-bottom: 12px;
}

.news-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 14px;
}

.card-footer .date {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.btn-read {
  background-color: var(--color-green);
  color: var(--color-green-dark);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.btn-read:hover {
  transform: scale(1.1);
}

/* SECCIÓN PREGUNTAS Y PROPUESTAS (LAYOUT DOS COLUMNAS) */
.faq-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 30px;
  align-items: start;
}

/* PANEL IZQUIERDO */
.faq-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-nav-item {
  background-color: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  width: 100%;
}

.faq-nav-item:hover {
  border-color: var(--color-pink);
  transform: translateX(4px);
}

.faq-nav-item.active {
  border-color: var(--color-purple);
  background-color: #faf5fc;
  box-shadow: var(--shadow-sm);
}

.faq-nav-icon {
  background-color: #f1f5f9;
  color: var(--color-purple);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.faq-nav-item.active .faq-nav-icon {
  background-color: var(--color-purple);
  color: var(--bg-white);
}

.faq-nav-text {
  flex-grow: 1;
}

.faq-nav-text h4 {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--color-purple);
  line-height: 1.3;
}

.faq-nav-text small {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.chevron {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.faq-nav-item.active .chevron {
  color: var(--color-pink);
  transform: translateX(3px);
}

/* PANEL DERECHO: VISOR */
.faq-content-viewer {
  background-color: var(--bg-white);
  border-radius: 24px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
  padding: 35px;
  min-height: 380px;
}

.faq-answer-card {
  display: none;
}

.faq-answer-card.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

.badge-tag {
  display: inline-block;
  background-color: var(--color-green);
  color: var(--color-green-dark);
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}

.faq-answer-card h2 {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-purple);
  margin-bottom: 20px;
  line-height: 1.3;
}

.answer-body p {
  color: var(--text-main);
  font-size: 1rem;
  margin-bottom: 16px;
}

.highlight-box {
  background-color: #edfbf6;
  border-left: 4px solid var(--color-green);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 20px 0;
  color: #165b40;
  font-size: 0.95rem;
}

.box-purple {
  background-color: #faf4fc;
  border-left-color: var(--color-purple);
  color: var(--color-purple-dark);
}

.highlight-box i {
  font-size: 1.4rem;
  margin-top: 2px;
}

.highlight-box ul, .answer-body ul {
  padding-left: 20px;
  margin-top: 8px;
}

.highlight-box li, .answer-body li {
  margin-bottom: 6px;
}

.schedule-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
}

.schedule-item {
  background-color: #faf5fc;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid #f0def7;
  font-size: 0.95rem;
}

/* FOOTER */
.footer {
  background-color: var(--bg-white);
  border-top: 2px solid var(--border-color);
  padding: 25px 20px;
  margin-top: 50px;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-round {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--color-purple);
  color: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  text-align: center;
  line-height: 1.1;
}

.brand-bold {
  font-weight: 900;
  font-size: 0.95rem;
  color: var(--color-purple);
}

.brand-sub {
  font-family: var(--font-script);
  color: var(--color-pink);
  font-size: 1rem;
}

.footer-btn {
  background-color: var(--color-green);
  color: var(--color-green-dark);
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s ease;
}

.footer-btn:hover {
  transform: translateY(-2px);
}

/* RESPONSIVE */
@media (max-width: 820px) {
  .faq-layout {
    grid-template-columns: 1fr;
  }
  .navbar {
    flex-direction: column;
    gap: 15px;
  }
}

/* Contenedor de imágenes explicativas en FAQ */
.faq-image-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 20px 0;
  background-color: #f8fafc;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border-color);
}

.faq-guide-img {
  width: 100%;
  max-width: 360px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.img-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 10px;
}
/* GRID DE CURSOS (2 COLUMNAS) */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.course-card {
  background-color: var(--bg-white);
  border-radius: 20px;
  padding: 28px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.course-card:hover {
  box-shadow: var(--shadow-md);
}

.course-short-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

/* BOTÓN DE DESPLIEGUE (FLECHITA) */
.btn-toggle-course {
  background-color: var(--color-green);
  color: var(--color-green-dark);
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.95rem;
  transition: transform 0.3s ease, background-color 0.2s ease;
}

.btn-toggle-course:hover {
  filter: brightness(1.05);
}

.course-card.expanded .btn-toggle-course {
  transform: rotate(180deg);
  background-color: var(--color-pink);
  color: #ffffff;
}

/* PANEL DESPLEGABLE CON ANIMACIÓN */
.course-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
}

.course-card.expanded .course-details {
  max-height: 1030px;
}

.details-inner {
  padding: 16px 0 10px 0;
  border-top: 1px dashed var(--border-color);
  margin-top: 10px;
  text-align: left;
}

.details-inner p {
  color: var(--color-purple);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.details-inner ul {
  padding-left: 20px;
  font-size: 0.85rem;
  color: var(--text-main);
  margin-bottom: 14px;
}

.details-inner li {
  margin-bottom: 5px;
}

.course-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.btn-register {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-purple);
  color: var(--bg-white);
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.btn-register:hover {
  transform: translateY(-2px);
  background-color: var(--color-purple-dark);
}

/* Responsive para celulares: 1 columna en pantallas chicas */
@media (max-width: 768px) {
  .courses-grid {
    grid-template-columns: 1fr;
  }
}
.tag-cyan {
  background-color: #63d7a8;
  color: #ffffff;
}
/* TARJETAS CON IMAGEN (ESTILO VISITAS TÉCNICAS) */
.visits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.visit-card {
  background-color: var(--bg-white);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.visit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.visit-image-wrapper {
  position: relative;
  width: 100%;
  height: 170px;
  overflow: hidden;
}

.visit-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.visit-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--color-purple);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.visit-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.visit-category {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-pink);
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.visit-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-purple);
  line-height: 1.3;
  margin-bottom: 16px;
}

.visit-info-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-main);
}

.visit-info-list li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.visit-info-list i {
  color: var(--color-purple);
  font-size: 0.9rem;
  width: 16px;
  text-align: center;
}

.btn-visit-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  background-color: var(--color-green);
  color: var(--color-green-dark);
  transition: filter 0.2s ease, transform 0.1s ease;
}

.btn-visit-action:hover {
  filter: brightness(0.95);
}

.btn-visit-action.disabled {
  background-color: #e2e8f0;
  color: #64748b;
  pointer-events: none;
  cursor: not-allowed;
}
/* CONTENEDOR FLOTANTE FIJO */
.floating-social-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

/* ESTILO BASE DE LOS BOTONES */
.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.6rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.2s ease;
}

.floating-btn:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  filter: brightness(1.05);
}

/* BOTÓN DE WHATSAPP */
.btn-wa {
  background-color: #25d366;
}

/* BOTÓN DE INSTAGRAM (DEGRADÉ OFICIAL) */
.btn-ig {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

/* AJUSTE PARA PANTALLAS PEQUEÑAS / MÓVILES */
@media (max-width: 480px) {
  .floating-social-container {
    bottom: 16px;
    right: 16px;
    gap: 10px;
  }
  
  .floating-btn {
    width: 46px;
    height: 46px;
    font-size: 1.4rem;
  }
}
/* SECCIÓN NOSOTROS */
.about-hero-banner {
  position: relative;
  width: 100%;
  height: 320px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow-md);
}

.about-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 10, 35, 0.2) 0%, rgba(20, 10, 35, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  padding: 32px;
  color: #ffffff;
}

.about-banner-overlay h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 10px 0 6px 0;
  color: #ffffff;
}

.about-banner-overlay p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.about-card {
  background-color: var(--bg-white);
  border-radius: 16px;
  padding: 28px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-card-full {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
}

.about-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--badge-bg);
  color: var(--color-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.about-card-icon.icon-pink {
  background-color: #fce7f3;
  color: var(--color-pink);
}

.about-card-icon.icon-green {
  background-color: #e6f9f0;
  color: var(--color-green-dark);
}

.about-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-purple);
  margin: 0;
}

.about-card p {
  color: var(--text-main);
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

.about-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background-color: var(--bg-gray);
  padding: 14px;
  border-radius: 10px;
}

.feature-item i {
  color: var(--color-purple);
  font-size: 1.1rem;
  margin-top: 2px;
}

.feature-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.feature-item small {
  font-size: 0.8rem;
  color: var(--text-light);
  line-height: 1.3;
}

/* Responsividad para móviles */
@media (max-width: 768px) {
  .about-hero-banner {
    height: 240px;
  }
  
  .about-banner-overlay {
    padding: 20px;
  }
  
  .about-banner-overlay h1 {
    font-size: 1.6rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-card-full {
    flex-direction: column;
  }
}
/* CARRUSEL DE INICIO */
.carousel-container {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: var(--shadow-md);
}

.carousel-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-caption {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 7, 25, 0.1) 0%, rgba(15, 7, 25, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  color: #ffffff;
}

.carousel-caption h3 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: #ffffff;
}

.carousel-caption p {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
}

/* BOTONES DE CONTROL */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
  border: none;
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background-color 0.2s ease, transform 0.2s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background-color: rgba(255, 255, 255, 0.85);
  color: var(--color-purple);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: 16px;
}

.next-btn {
  right: 16px;
}

/* PUNTOS INDICADORES */
.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
  background-color: #ffffff;
  transform: scale(1.25);
}

@media (max-width: 768px) {
  .carousel-container {
    height: 250px;
  }
  .carousel-caption h3 {
    font-size: 1.3rem;
  }
  .carousel-caption p {
    font-size: 0.85rem;
  }
}
/* CARRUSEL DE INICIO LIMPIO */
.carousel-container {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 36px;
  box-shadow: var(--shadow-md);
}

.carousel-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease-in-out, visibility 0.6s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* BOTONES DE CONTROL */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  border: none;
  color: var(--color-purple);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s ease, transform 0.2s ease, color 0.2s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background-color: #ffffff;
  color: var(--color-pink);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: 16px;
}

.next-btn {
  right: 16px;
}

/* PUNTOS INDICADORES */
.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  background-color: rgba(0, 0, 0, 0.25);
  padding: 6px 12px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active {
  background-color: #ffffff;
  transform: scale(1.25);
}

@media (max-width: 768px) {
  .carousel-container {
    height: 240px;
  }
}
/* =========================================
   SECCIÓN NOSOTROS - ESTILO COMUNITARIO
   ========================================= */

.about-hero-simple {
  text-align: center;
  max-width: 780px;
  margin: 10px auto 36px auto;
}

.about-hero-simple h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1f2937;
  margin: 12px 0 8px 0;
}

.hero-lead {
  font-size: 1.05rem;
  color: #4b5563;
  line-height: 1.6;
}

/* Tarjeta Intro con Foto Principal */
.about-intro-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 40px;
}

.about-intro-text h2 {
  font-size: 1.5rem;
  color: var(--color-purple);
  margin-bottom: 14px;
}

.about-intro-text p {
  color: #4b5563;
  line-height: 1.65;
  margin-bottom: 12px;
  font-size: 0.96rem;
}

.about-main-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Títulos de sub-bloques */
.about-section-block {
  margin-bottom: 44px;
}

.section-subtitle-center {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 28px auto;
}

.section-subtitle-center h2 {
  font-size: 1.6rem;
  color: #1f2937;
  margin: 10px 0 4px 0;
}

.section-subtitle-center p {
  color: #6b7280;
  font-size: 0.92rem;
}

/* Línea de tiempo de evolución */
.timeline-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  position: relative;
}

.timeline-step {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.timeline-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.timeline-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fdf2f8;
  color: var(--color-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.timeline-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-purple);
  margin-bottom: 6px;
}

.timeline-body h3 {
  font-size: 1.15rem;
  color: #111827;
  margin-bottom: 8px;
}

.timeline-body p {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.55;
  margin: 0;
}

/* Tarjetas de tareas comunitarias */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.community-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--shadow-sm);
}

.community-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #faf5ff;
  color: var(--color-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.community-card h3 {
  font-size: 1.05rem;
  color: #1f2937;
  margin-bottom: 8px;
}

.community-card p {
  font-size: 0.88rem;
  color: #4b5563;
  line-height: 1.55;
  margin: 0;
}

/* Galería de fotos */
.about-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.gallery-card {
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: var(--shadow-sm);
}

.gallery-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-img {
  transform: scale(1.03);
}

.gallery-card .img-caption {
  display: block;
  padding: 10px 14px;
  font-size: 0.82rem;
  color: #4b5563;
  background: #ffffff;
  border-top: 1px solid #f3f4f6;
}

/* Banner de Sumarse */
.join-banner {
  background: #fdf4ff;
  border: 1px dashed var(--color-pink);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.join-content {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 600px;
}

.join-icon {
  font-size: 2.2rem;
  color: var(--color-purple);
  flex-shrink: 0;
}

.join-content h3 {
  font-size: 1.2rem;
  color: #1f2937;
  margin-bottom: 4px;
}

.join-content p {
  font-size: 0.9rem;
  color: #4b5563;
  margin: 0;
  line-height: 1.5;
}

/* Adaptación Mobile */
@media (max-width: 768px) {
  .about-intro-card {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .about-hero-simple h1 {
    font-size: 1.7rem;
  }
  .join-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}