/* css styles */

/* =========================
   0) Base / Layout Quarto
========================= */
main.content {
  padding-top: 1.2rem;
}

/* =========================
   1) HERO GRID RESPONSIVE */
.hero {
  width: min(1320px, 96vw);
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.4rem;
  align-items: center;
  min-height: 70vh;
}

@media (max-width: 992px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .hero-left {
    order: 2;
  }

  .hero-right {
    order: 1;
  }
}

/* =========================
   2) IZQUIERDA: GIF completo, centrado y sin espacios */
.hero-left {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

.media-card {
  position: relative;
  width: 100%;
  max-width: 820px;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);

  /* FIX PRINCIPAL: elimina cualquier espacio blanco */
  display: block;
  line-height: 0;
  font-size: 0;
}

.hero-figure {
  margin: 0;
  padding: 0;
  line-height: 0;
  font-size: 0;
  display: block;
}

.hero-media {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;

  /* FIX ADICIONAL: evita espacios heredados */
  margin: 0;
  padding: 0;
  line-height: 0;
  border: 0;
}

/* Caption del GIF */
.media-caption {
  position: absolute;
  left: 16px;
  bottom: 12px;
  color: #fff;
  font-size: clamp(1.2rem, 2.2vw, 2rem);
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

/* Línea azul inferior eliminada */
/* .media-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: #1f4aff;
} */

/* =========================
   3) DERECHA: Marca + Textos */
.hero-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .hero-right {
    align-items: center;
    text-align: center;
  }
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

@media (max-width: 992px) {
  .brand {
    align-items: center;
  }
}

.brand-logo {
  width: clamp(110px, 10vw, 150px);
  height: auto;
}

.brand-title {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: #2c3e50;
}

.brand-tagline {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: #3498db;
  margin-top: 0.2rem;
  font-weight: 500;
}

/* =========================
   4) TARJETA PRINCIPIOS */
.card-soft {
  width: 100%;
  padding: 1.5rem;
  text-align: left;
  background: #eef2ff;
  color: #111;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.card-soft h2 {
  margin: 0 0 0.65rem 0;
  font-size: 1.55rem;
  font-weight: 800;
  color: #000;
}

.card-soft ul {
  margin: 0;
  padding-left: 1.1rem;
}

.card-soft li {
  margin: 0.55rem 0;
  line-height: 1.35;
  color: #333;
}

/* =========================
   5) MODO OSCURO (Darkly) */
html[data-bs-theme="dark"] .card-soft,
body[data-bs-theme="dark"] .card-soft,
.quarto-dark .card-soft {
  background: #1a2f1a !important; /* Fondo verde oscuro */
  color: #d4f1d4 !important;
  border: 1px solid #2d4a2d !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

html[data-bs-theme="dark"] .card-soft h2,
body[data-bs-theme="dark"] .card-soft h2,
.quarto-dark .card-soft h2 {
  color: #68d391 !important; /* Verde claro para el título */
}

html[data-bs-theme="dark"] .card-soft li,
body[data-bs-theme="dark"] .card-soft li,
.quarto-dark .card-soft li {
  color: #d4f1d4 !important; /* Texto verde muy claro */
}

html[data-bs-theme="dark"] .brand-title,
body[data-bs-theme="dark"] .brand-title,
.quarto-dark .brand-title {
  color: #68d391 !important; /* Verde claro para "Integrandes" */
}

html[data-bs-theme="dark"] .brand-tagline,
body[data-bs-theme="dark"] .brand-tagline,
.quarto-dark .brand-tagline {
  color: #9ae6b4 !important; /* Verde más claro para el tagline */
}

/* Asegura que ninguna etiqueta figure deje espacio */
figure {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 0 !important;
  border: 0 !important;
}

/* ------ ✅ E Q U I P O ------*/

/* =========================
   EQUIPO (LIGHT/DARK + 3 columnas anchas)
   ========================= */

/* Fondo solo en página equipo */
.page-equipo{
  background: #E8F3FF;
}

}

/* ===== Tipografía uniforme como NAVBAR (Bootstrap) =====
   En Windows normalmente se renderiza como "Segoe UI"
*/
.team-title,
.team-name,
.team-card,
.team-card h3,
.team-card h4,
.team-card h5,
.team-card p,
.team-card li,
.team-card ul,
.team-card strong,
.team-button{
   font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-weight: normal; /* ✔️ no fuerza delgado, deja que strong y clases funcionen */
}

/* Título Equipo: visible en Minty (light) */
.team-title{
  text-align: center;
  font-size: 3.2rem;
  font-weight: 300;
  margin: 2.2rem 0 1.3rem;
  color: #0A1F2C; /* oscuro: se ve en fondo claro */
}

/* SOLO cuando el sitio está en tema oscuro (Darkly/Quarto dark) */
html[data-bs-theme="dark"] .team-title,
body[data-bs-theme="dark"] .team-title,
.quarto-dark .team-title{
  color: #F2FAFF !important; /* blanco: se ve en fondo oscuro */
}

/* Grilla 3 columnas anchas en desktop */
.team-grid{
  max-width: 1350px; /* sección más ancha */
  margin: 0 auto;
  padding: 0 1rem 2.8rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(330px, 1fr));
  gap: 1.8rem;
  justify-content: center;
}
@media (max-width: 1050px){
  .team-grid{ grid-template-columns: repeat(2, minmax(300px, 1fr)); }
}
@media (max-width: 650px){
  .team-grid{ grid-template-columns: 1fr; }
}

/* Card: título centrado (delgado) */
.team-card h3,
.team-card h4,
.team-card h5{
  text-align: center;
  font-size: 1.15rem;   /* reduce */
  font-weight: 300;     /* antes 900 */
  margin: .4rem 0 .6rem;
}

/* Subtítulos centrados (delgado) */
/* ✔️ NUEVO: el rol sí puede verse en negrita */
.team-card .team-role{
  display: block;
  text-align: center;
  font-size: 1rem;
  font-weight: 600 !important; /* ✔️ bold elegante */
  margin-bottom: .6rem;
  font-style: normal;
}


/* Texto del contenido justificado y más pequeño */
.team-card p,
.team-card li{
  font-size: .95rem;    /* reduce */
  line-height: 1.35;
  font-weight: 300;     /* asegura delgado */
}

/* Lista: justificada */
.team-card ul{
  margin: .8rem 0 0;
  padding-left: 1.15rem;
  text-align: justify;
  text-justify: inter-word;
}

/* Card LIGHT (celeste intenso, ancho, texto negro) */
.team-card{
  background: #AEE6FF; /* celeste intenso armonioso */
  border-radius: 22px;
  padding: 1.6rem;
  border: 0;
  box-shadow: 0 8px 28px rgba(0,0,0,0.12);
  transition: transform .25s ease, box-shadow .25s ease;
  color: #0A1F2C;
  overflow: hidden;
}

/* Hover flotante */
.team-card:hover{
  transform: translateY(-8px);
  box-shadow: 0 16px 44px rgba(0,162,255,0.32);
}

/* Foto proporcional sin distorsión */
.team-photo{
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  margin-bottom: 1rem;
  background: rgba(255,255,255,0.5);
}

/* Nombre/rol (delgado) */
.team-name{
  font-size: 1.45rem;
  font-weight: 300;   /* antes 900 */
  margin: 0.2rem 0 0.5rem;
  color: #062233;
}
@media (prefers-color-scheme: dark){
  .team-name{ color: #FFFFFF; }
}

/* Texto fuerte dentro de card (pero delgado) */
.team-card strong{
  color: #062233;
}
@media (prefers-color-scheme: dark){
  .team-card strong{ color: #D7E6F0; }
}

/* Botón (mantiene estilo, pero sin negrita) */
.team-button{
  display: inline-block;
  margin-top: 1.2rem;
  padding: .65rem 1.4rem;
  border-radius: 14px;
  font-weight: 300; /* antes 900 */
  background: #00C896; /* verde intenso para diferenciar */
  color: #0A1F2C;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(0,200,150,0.28);
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.team-button:hover{
  background: #0077FF; /* azul intenso alterno */
  color: #ffffff;
  transform: scale(1.04);
}

/* ===== DARK MODE CARDS ===== */
@media (prefers-color-scheme: dark){

  /* Card dark gris intenso + texto blanco */
  .team-card{
    background: #2B2F33; /* gris oscuro intenso */
    box-shadow: 0 14px 34px rgba(0,0,0,0.55);
    color: #FFFFFF;
  }

  .team-card:hover{
    box-shadow: 0 18px 48px rgba(0,212,255,0.28);
  }

  .team-photo{
    background: rgba(255,255,255,0.06);
  }

  .team-button{
    background: #00D4FF; /* cyan brillante */
    color: #0A0F14;
    box-shadow: 0 10px 22px rgba(0,212,255,0.18);
    font-weight: 300; /* asegura delgado */
  }

  .team-button:hover{
    background: #FF2BE2; /* magenta vibrante */
    color: #ffffff;
  }
}



/* ------ EQUIPO FLOTANTE ----- */

/* ===== Tipografía uniforme como NAVBAR ===== */
#teamModal,
#teamModal *{
  font-family: var(--bs-font-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif) !important;
  font-weight: 300; /* delgado por defecto */
}

/* ===== Ocultar detalles (pero que existan para copiar al modal) ===== */
.team-details-hidden{
  display: none;
}

/* ===== Modal general ===== */
.team-modal{
  border-radius: 18px;
  overflow: hidden;
  border: 0;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
}

/* ===== Modal MÁS ANCHO en desktop ===== */
@media (min-width: 992px){
  #teamModal .modal-lg{
    max-width: 1100px; /* ajusta 1050-1200 si quieres */
  }
}

/* Barra superior celeste */
.team-modal-header{
  background: #10c9e8;
  border-bottom: 0;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Wrapper título/rol */
.team-modal-titlewrap{
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

/* Título del modal (nombre) — delgado */
.team-modal-title{
  font-weight: 300 !important; /* antes 900 */
  font-size: 1.15rem;
  line-height: 1.15;
  color: #071318;
  letter-spacing: .2px;
}

/* Rol del modal — delgado */
.team-modal-role{
  font-weight: 300 !important; /* antes 800 */
  font-size: 0.95rem;
  opacity: .9;
  color: #071318;
}

/* Botón X */
.team-modal-close{
  width: 0.3rem;
  height: 0.3rem;
  opacity: .7;
}

/* Cuerpo */
.team-modal-body{
  padding: 1.2rem 1.25rem 1.35rem 1.25rem;
}

/* Layout interno: foto + contenido */
.team-modal-grid{
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 1.2rem;
  align-items: start;
}

/* Foto */
.team-modal-photo{
  width: 100%;
  height: 300px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
}

/* ===== Contenido (perfil): letra más pequeña + justificado ===== */
.team-modal-content{
  font-size: 0.98rem;
  line-height: 1.55;
  font-weight: 300;
}

/* Justificación */
.team-modal-content p,
.team-modal-content li{
  text-align: justify;
  text-justify: inter-word;
}

/* Títulos internos del contenido (Perfil / Especialidades / etc.) — delgado */
.team-modal-content h3{
  margin: .25rem 0 .55rem 0;
  font-weight: 300 !important; /* antes 900 */
  font-size: 1.05rem;
  letter-spacing: .15px;
}

/* Si Quarto te mete h4/h5 dentro del detalle */
.team-modal-content h4,
.team-modal-content h5{
  font-weight: 300 !important;
}

/* Listas */
.team-modal-content ul{
  margin-bottom: .9rem;
  padding-left: 1.15rem;
}

/* Links dentro del modal: elegantes */
.team-modal-content a{
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.25);
}
@media (prefers-color-scheme: dark){
  .team-modal-content a{
    border-bottom-color: rgba(255,255,255,.28);
  }
}

/* ===== Scroll interno: evita que el modal se alargue demasiado ===== */
.team-modal-right{
  max-height: 70vh;
  overflow: auto;
  padding-right: .25rem;
}

/* ===== DARK MODE: asegura contraste en header ===== */
@media (prefers-color-scheme: dark){
  .team-modal-title,
  .team-modal-role{
    color: #071318; /* sobre celeste sigue bien */
  }
}

/* Responsive */
@media (max-width: 768px){
  .team-modal-grid{
    grid-template-columns: 1fr;
  }
  .team-modal-photo{
    height: 220px;
  }
  .team-modal-right{
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

/* Botón de tus tarjetas (solo si quieres que acá también sea delgado) */
.team-button{
  display: inline-block;
  border: 0;
  padding: .7rem 1.25rem;
  border-radius: 12px;
  font-weight: 300; /* antes 900 */
  cursor: pointer;
}

/* --- E Q U I P O --- EXCEPCIONES */

/* ===== 1) Base del modal delgada (SI quieres mantenerla) ===== */
#teamModal,
#teamModal *{
  font-family: var(--bs-font-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif) !important;
  font-weight: 300 !important;  /* esto domina todo */
}

/* ===== 2) EXCEPCIONES en NEGRITA (lo que tú necesitas) ===== */

/* Nombre (si lo tienes con .team-name dentro del contenido copiado) */
#teamModal .team-name{
  font-weight: 600 !important;
}

/* Rol (Consultor/Consultora/Colaborador) */
#teamModal .team-modal-role{
  font-weight: 600 !important;
}

/* Títulos internos: Perfil, Áreas de trabajo, Formación, etc. (h3 del detalle) */
#teamModal .team-modal-content h3,
#teamModal .team-detail h3{
  font-weight: 600 !important;
}

/* Si dentro del detalle usas **negrita** en texto (strong/b) */
#teamModal .team-modal-content strong,
#teamModal .team-modal-content b{
  font-weight: 600 !important;
}


/* ----- ✅ P  O  R  T  A  F  O  L  I  O --------*/

:root {
  --font-navbar: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.portfolio-section{
  width: 100%;
  padding: 2rem 0 3rem;
  font-family: var(--font-navbar);
}

.portfolio-heading{
  text-align: center;
  font-size: 2.6rem;
  font-weight: 400;
  margin-bottom: 2rem;
  font-family: var(--font-navbar);
  color: #0A1A23;
}

.portfolio-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  font-family: var(--font-navbar);
}

@media (max-width: 900px){
  .portfolio-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .portfolio-grid{ grid-template-columns: 1fr; }
}

.portfolio-card{
  display: block;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 8px 22px rgba(0,0,0,0.07);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  font-family: var(--font-navbar);
  color: #0A1A23;
}

.portfolio-card:hover{
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.11);
}

.portfolio-thumb{
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.portfolio-body{
  padding: 0.9rem 1rem 1rem;
  font-family: var(--font-navbar);
}

.portfolio-title{
  font-size: 1.05rem;
  line-height: 1.2;
  margin-bottom: 0.4rem;
  font-weight: 400;
  font-family: var(--font-navbar);
  color: #0A1A23;
}

.portfolio-desc{
  font-size: 0.93rem;
  line-height: 1.3;
  margin-bottom: 0.75rem;
  font-family: var(--font-navbar);
  font-weight: 400;
  opacity: 0.85;
  color: #0A1A23;
}

.portfolio-badge{
  display: inline-block;
  font-size: 0.78rem;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(15,120,160,0.13);
  font-family: var(--font-navbar);
  font-weight: 400;
  color: #0A1A23;
}

/* ===== SERVICIOS (Callout colapsable) ===== */


/* ------- D E N S I D A D ------ */


---

## 2) `styles.css` (pega este bloque)

```css
/* =========================================
   Página Densidades: ancho normal (no full)
   y estilo acorde a Minty/Darkly
   ========================================= */

/* Breadcrumbs sencillos como en tu captura */
.breadcrumbs{
  font-size: 0.9rem;
  opacity: .8;
  margin: 0.5rem 0 1rem;
}
.breadcrumbs .sep{ margin: 0 0.4rem; }

/* =========================================
   Accordion + Grid (Imagen | Video)
   ========================================= */

.densidad-acc{
  max-width: 100%;
}

/* Compacto: sin “espacio molesto” */
.densidad-acc .accordion-header{ margin-bottom: 0 !important; }

.densidad-acc .accordion-button{
  font-weight: 400;
  padding-top: .85rem;
  padding-bottom: .85rem;
  margin: 0 !important;
  border-bottom: 0 !important;
}

/* Color que combina con Minty/Darkly */
.densidad-acc .accordion-button:not(.collapsed){
  background-color: rgba(20, 184, 166, 0.12);
  color: inherit;
}

/* Cuerpo sin padding para que los gráficos “peguen” */
.densidad-body{
  padding: 0 !important;
}
.densidad-acc .accordion-body > *:first-child{
  margin-top: 0 !important;
}

/* Grid: 1 columna móvil, 2 columnas desktop */
.densidad-grid{
  display: grid;
  grid-template-columns: 1fr;
}
@media (min-width: 992px){
  .densidad-grid{ grid-template-columns: 1fr 1fr; }
}

/* Panel común */
.densidad-panel{
  width: 100%;
  overflow: hidden;
  background: #111;
}

/* Misma altura en desktop */
@media (min-width: 992px){
  .densidad-panel{ height: 520px; }
}

/* Imagen */
.densidad-img{
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* Video */
.densidad-video{ width: 100%; height: 100%; }
.densidad-video iframe{
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Móvil: video 16:9 */
@media (max-width: 991.98px){
  .densidad-panel{ height: auto; }
  .densidad-video{ aspect-ratio: 16 / 9; }
  .densidad-video iframe{ height: 100%; }
}
