/* ==========================================================
   SECCIÓN NOSOTROS — Simple, Dharma & Zen
========================================================== */
.resaltado {
  font-weight: bold;
  font-style: italic;
  background-color: cyan;
}

.nosotros {
  background: transparent;
  color: var(--text-color);
  text-align: center;
  padding: 2rem 2rem;
  /* margin-bottom: 80px; */
}

/* Contenedor de las cards */
.nosotros-cards {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Cada card */
.nosotros-card {
  flex: 1 1 300px;
  max-width: 320px;
  background: var(--color-principal);
  border-radius: 14px;
  padding: 2rem 1.5rem;
  /* 🔹 antes 2.5rem → menos alto */
  min-height: 300px;
  position: relative;
  /* 🔹 altura base más uniforme */
  display: flex;
  /* 🔹 centrado vertical/horizontal */
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

/* Banda negra abajo, ocupa todo el ancho, altura fija */
.nosotros-card-footer {
  width: 100%;
  background: linear-gradient(to top, var(--text-color-rgb) 90%, rgba(0, 0, 0, 0.16) 100%);
  min-height: 72px;
  /* o usa height: si quieres fijo fijo */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 0 14px 14px;
  /* mismo radio que la card */
  padding: 0;
  position: relative;
  z-index: 2;
  /* asegura que esté encima del fondo */
}


.nosotros-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 25px var(--color-principal-hover);
}

.nosotros-card-1 {
  background: url('../img/nosotros/nosotros-1.webp') no-repeat center top;
  padding: 0;
}

.nosotros-card-2 {
  background: url('../img/nosotros/nosotros-2.webp') no-repeat center top;
  padding: 0;
}

.nosotros-card-3 {
  background: url('../img/nosotros/nosotros-3.webp') no-repeat center top;
  padding: 0;
}

/* Ícono */
.nosotros-card i {
  font-size: 2.2rem;
  color: var(--color-principal);
  margin-bottom: 1rem;
}

/* Título centrado */
.nosotros-card-footer h3 {
  font-size: 1.4rem;
  font-weight: 300;
  letter-spacing: 2px;
  color: #fff;
  font-family: var(--fuente-inter);
  margin: 0;
  padding: 0 1.5rem;
  width: 100%;
  text-align: center;
  text-shadow: 0 2px 12px #0008, 0 1px 1px #0005;
  letter-spacing: 0.02em;
  /* Opcional: si quieres efecto glass
  backdrop-filter: blur(3px);
  */
}

.nosotros-card p {
  font-size: 1rem;
  color: var(--text-color);
  line-height: 1.6;
}

/* ----------------------------------------------------------
   MODAL (Adaptado para Texto)
---------------------------------------------------------- */
.info-modal {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  /* Fondo un poco más claro que para video */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s cubic-bezier(.5, 1.4, .6, 1);
  backdrop-filter: blur(4px);
}

.info-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.info-modal-content {
  background: #fff;
  /* Fondo blanco para lectura */
  border-radius: 16px;
  box-shadow: var(--shadow-soft, 0 6px 32px rgba(0, 0, 0, 0.2));
  padding: 1.5rem;
  max-width: 768px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease-out;
  max-height: 85vh;
  /* Altura máxima fija */
  overflow: hidden;
  /* Contener el scroll interno */
}

.info-modal.open .info-modal-content {
  transform: translateY(0);
}

.info-modal-body {
  font-family: var(--fuente-inter, sans-serif);
  color: #333;
  line-height: 1.7;
  font-size: 1.1rem;
  text-align: justify;
  letter-spacing: 1.8px;
  overflow-y: auto;
  margin: 25px;
  /* Scroll vertical */
  padding-right: 30px;
  /* Espacio para scrollbar */
  scrollbar-width: thin;
  /* Firefox */
  scrollbar-color: var(--color-principal) #f0f0f0;
  /* Firefox */
}

/* Webkit Scrollbar styling */
.info-modal-body::-webkit-scrollbar {
  width: 8px;
}

.info-modal-body::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 4px;
}

.info-modal-body::-webkit-scrollbar-thumb {
  background-color: var(--color-principal);
  border-radius: 4px;
  border: 2px solid #f0f0f0;
}

.info-modal-body h2 {
  margin-top: 0;
  color: var(--color-principal);
  margin-bottom: 1rem;
  font-size: 1.8rem;
  text-align: center;
}

.info-modal-body p {
  margin-bottom: 1rem;
}

.close-modal {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--color-principal);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  font-weight: bold;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover,
.close-modal:focus {
  background: var(--color-principal-hover);
  transform: scale(1.1);
  outline: none;
}


@media (max-width: 900px) {
  .info-modal-content {
    max-width: 90vw;
  }
}

@media (max-width: 600px) {
  .info-modal-content {
    padding: 1.5rem;
    border-radius: 12px;
  }

  .close-modal {
    width: 28px;
    height: 28px;
    font-size: 1rem;
    top: 10px;
    right: 10px;
  }

  .info-modal-body {
    font-size: 1rem;
  }
}


/* Responsive: altura menor en móvil */
@media (max-width: 600px) {
  .nosotros-card-footer {
    min-height: 48px;
  }

  .nosotros-card-footer h3 {
    font-size: 1.1rem;
    padding: 0 0.6rem;
  }
}

/* ------------------------------
   Responsivo Cards
------------------------------ */

@media (max-width: 1027px) {
  .nosotros-card {
    flex: 1 1 180px;
    /* 🔹 Base mucho más pequeña */
    max-width: 240px;
    /* 🔹 Máximo muy reducido */
    min-height: 200px;
    /* 🔹 Altura mínima reducida */
    padding: 1rem 0.8rem;
    /* 🔹 Padding muy compacto */
  }

  .nosotros-card-footer {
    min-height: 50px;
    /* 🔹 Footer mucho más pequeño */
    font-size: 0.9rem;
    /* 🔹 Texto más pequeño si es necesario */
  }

  /* Opcional: reducir el gap entre cards */
  .nosotros-cards {
    gap: 1rem;
  }

  .nosotros-card-1 {
    background: url('../img/nosotros/nosotros-1.webp') no-repeat center center;
    padding: 0;
  }

  .nosotros-card-2 {
    background: url('../img/nosotros/nosotros-2.webp') no-repeat center center;
    padding: 0;
  }

  .nosotros-card-3 {
    background: url('../img/nosotros/nosotros-3.webp') no-repeat center center;
    padding: 0;
  }

  .nosotros-card-footer h3 {
    font-size: 1.1rem;
  }
}

@media (max-width: 469px) {
  .info-modal-content {
    width: 100vw;
    max-width: 95vw;
    min-height: 85vh;
    padding-top: 50px;
    ;
  }

  .info-modal-body {
    margin: 5px;
    margin-right: 5px;
  }
}