/* ===============================
   MUCILA - Estilos "NOSOTRAS" (Con Header y Atrás Originales)
   =============================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

/* 🎨 1. PALETA DE COLORES */
:root {
  --azul-profundo: #1a2b6d;
  --magenta: #b013a6;
  --rosa-pastel: #f8b4d9;
  --negro: #111;
  --gris-claro: #f6f6f6;
  --blanco: #fff;
}

/* ===============================
   🌙 2. MODO OSCURO
   =============================== */
body.dark-mode {
  background-color: #111;
  color: #f0f0f0;
}
body.dark-mode .topbar {
  background: linear-gradient(90deg, #2a2a2a, #1a1a1a);
}
body.dark-mode .info-card, 
body.dark-mode .gallery-item,
body.dark-mode .image-placeholder {
  background: #222;
  color: #fff;
  border-color: #b013a6;
}
body.dark-mode .breadcrumbs-container {
  background-color: #1a1a1a;
  border-bottom-color: #333;
}
body.dark-mode .main-banner {
  background: linear-gradient(135deg, #000, #2a2a2a);
}
body.dark-mode .section-title-left { color: #f0f0f0; }
body.dark-mode .text-col { color: #ddd; }

/* ===============================
   3. BASE Y HEADER
   =============================== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Poppins", "Segoe UI", sans-serif;
  background-color: var(--gris-claro);
  color: var(--negro);
  line-height: 1.6;
}

/* Header / Topbar */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  background: linear-gradient(90deg, var(--azul-profundo), var(--magenta));
  color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  position: relative;
  z-index: 100;
}

.logo-img { height: 70px; width: auto; display: block; }

/* Navegación */
.mainnav a {
  position: relative;
  color: white;
  text-decoration: none;
  margin: 0 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0;
  transition: color 0.3s ease;
}
.mainnav a:hover {
  color: var(--rosa-pastel);
  transform: translateY(-4px);
}
.mainnav a::before {
  content: ""; position: absolute; width: 0; height: 3px; bottom: 0; left: 50%;
  background: linear-gradient(90deg, var(--magenta), var(--rosa-pastel));
  border-radius: 2px; transition: width 0.4s ease, left 0.4s ease;
}
.mainnav a:hover::before { width: 100%; left: 0; }

/* Botón Únete */
.join-btn {
  background: linear-gradient(135deg, #b52bff, #a139f6);
  color: #fff; font-weight: 700; font-size: 1rem; padding: 0.8em 1.8em;
  border: none; border-radius: 50px; cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 65, 108, 0.4); transition: all 0.3s ease;
}
.join-btn:hover {
  transform: scale(1.05); box-shadow: 0 6px 20px rgba(216, 44, 225, 0.6);
}

/* ===============================
   4. ESTRUCTURA ESPECÍFICA "NOSOTRAS"
   =============================== */

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem; /* Más espacio arriba para que respire */
}

/* --- BANNER PRINCIPAL --- */
.main-banner {
  background: linear-gradient(135deg, var(--azul-profundo), var(--magenta));
  color: white;
  text-align: center;
  padding: 60px 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}
.main-banner::after {
  content: "";
  position: absolute; bottom: -20px; left: 0;
  width: 100%; height: 40px;
  background: var(--gris-claro);
  border-radius: 50% 50% 0 0;
}
.main-banner h1 {
  font-size: 2.5rem; font-weight: 700; text-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
  position: relative; z-index: 2;
}
.main-banner p {
  font-size: 1.1rem; opacity: 0.9; position: relative; z-index: 2;
}

/* --- FILA DE NAVEGACIÓN SUPERIOR (Donde va el Atrás) --- */
.nav-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem; /* Espacio antes de empezar las secciones */
  border-bottom: 1px solid #ddd;
  padding-bottom: 1rem;
}

/* El botón Atrás (Estilo Idéntico a Miembros) */
.arrow {
  display: inline-block;
  text-decoration: none;
  color: var(--magenta);
  font-weight: bold;
  font-size: 1.1rem;
  transition: color 0.3s ease, transform 0.3s ease;
}
.arrow:hover {
  color: var(--azul-profundo);
  transform: translateX(-4px);
}

/* Texto pequeño de la derecha */
.note-text {
  font-size: 0.85rem;
  color: #777;
  font-style: italic;
}

/* --- BLOQUES DE SECCIÓN --- */
.section-block { margin-bottom: 4rem; }
.section-header-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.5rem; border-bottom: 2px solid rgba(0,0,0,0.05); padding-bottom: 0.5rem;
}
.section-title-left {
  font-size: 1.8rem; color: #444; font-weight: 600;
  border-left: 5px solid var(--magenta); padding-left: 15px;
}
.nav-arrows { display: flex; gap: 10px; }
.arrow-btn {
  background: transparent; border: 1px solid #ccc; color: #555;
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; transition: all 0.3s;
}
.arrow-btn:hover {
  background: var(--magenta); color: white; border-color: var(--magenta);
}
.scroll-gallery {
  display: flex; gap: 20px; overflow-x: auto; padding-bottom: 15px; scroll-behavior: smooth;
}
.gallery-item {
  min-width: 250px; height: 150px; background-color: #fff;
  border: 1px solid #ddd; display: flex; align-items: center; justify-content: center;
  border-radius: 8px; overflow: hidden;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.cards-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.info-card {
  flex: 1; min-width: 280px;
  background: linear-gradient(135deg, #fff, #f9f9f9);
  border-top: 4px solid var(--azul-profundo);
  border-radius: 12px; padding: 2rem; text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08); transition: transform 0.4s, box-shadow 0.4s;
}
.info-card:hover {
  background: linear-gradient(135deg, var(--azul-profundo), var(--magenta));
  color: white; transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(176, 19, 166, 0.3); border-top: 4px solid var(--rosa-pastel);
}
.info-card h3 {
  font-size: 1.4rem; margin-bottom: 1rem; text-transform: uppercase;
  letter-spacing: 1px; color: var(--azul-profundo);
}
.info-card:hover h3 { color: white; }
.info-card p { color: #666; font-size: 0.95rem; }
.info-card:hover p { color: #f0f0f0; }
.info-split { display: flex; gap: 3rem; align-items: flex-start; }
.text-col { flex: 2; text-align: justify; color: #333; }
.intro-text { font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.5rem; }
.custom-list { margin-top: 1rem; padding-left: 1.5rem; }
.custom-list li { margin-bottom: 0.5rem; list-style-type: square; color: var(--magenta); }
.custom-list li span { color: var(--negro); }
.image-col { flex: 1; display: flex; justify-content: center; }
.image-placeholder {
  width: 100%;
  height: 300px; /* Mantienes el tamaño que definiste */
  background-color: #f8f8f8;
  border: 2px dashed #ccc;
  border-radius: 12px;
  display: flex; 
  align-items: center; 
  justify-content: center;
  overflow: hidden; /* Esto corta cualquier cosa que intente salirse */
  padding: 20px;    /* Espacio interno para que la imagen no toque los bordes */
}

/* Esta es la regla clave para la imagen */
.image-placeholder img {
  max-width: 100%;  /* No permite que sea más ancha que el cuadro */
  max-height: 100%; /* No permite que sea más alta que el cuadro */
  object-fit: contain; /* Ajusta la imagen completa sin recortarla ni estirarla */
  display: block;
}
@media (max-width: 768px) {
  .info-split { flex-direction: column; }
  .cards-grid { flex-direction: column; }
}