/* =========================
   NOSOTROS.css
   ========================= */

/* ===== Tokens locales (por si faltan) ===== */
:root{
  --ink-blue:#0D1B2A;       /* primario */
  --gold:#F4D35E;           /* acento dorado */
  --bg:#FFFFFF;
  --surface:#FFFDF5;
  --text:#1C1C1C;
  --muted:#6B7280;
  --outline:#E6E6E6;

  --radius:16px;
  --radius-lg:20px;
  --page-pad:min(5vw, 28px);

  --elev:12px;
}

/* ===== Base mínima de página ===== */
*{ box-sizing:border-box }
html,body{ margin:0; padding:0; background:#fff; color:var(--text); }
.container{ width:min(1180px, 100%); margin-inline:auto; padding-inline:var(--page-pad); }
.sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

.page-head h1{
  margin:18px 0 12px;
  font:800 clamp(24px,5vw,34px)/1.1 ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial;
  color:var(--text);
}

.divider{ border:none; border-top:1px solid var(--outline); margin:24px 0 16px; }

/* =========================
   About Card / Carousel
   ========================= */
.about-card{
  position:relative;
  display:grid;
  gap:18px;
  grid-template-columns: 1fr;
  background:var(--surface);
  border:1px solid var(--outline);
  border-radius:var(--radius-lg);
  padding:16px;
}

@media (min-width:980px){
  .about-card{
    /* por defecto 1:2; luego abajo fijamos la foto a 360px */
    grid-template-columns: 1fr 2fr;
    padding:20px;
    box-shadow:0 8px var(--elev) rgba(0,0,0,.04);
  }
}

/* Foto: contenedor y ajustes generales */
.about-media .photo-wrap{
  aspect-ratio: 3 / 4;
  overflow:hidden;
  border-radius:var(--radius);
  background:#eee;
}

/* --- LÍMITES DE ALTURA Y OVERRIDES CONTRA height:auto GLOBAL --- */
/* Móvil: alto controlado */
.about-media .photo-wrap{
  height: clamp(240px, 52vh, 360px);
  max-height: 360px;
}
.about-media .photo-wrap > img#about-img{
  /* neutraliza img{height:auto} de otras hojas */
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

/* Desktop: fija ancho de columna izquierda y limita alto */
@media (min-width:980px){
  .about-card{
    /* foto ~360px de ancho; texto flexible */
    grid-template-columns: 360px 1fr;
  }
  .about-media .photo-wrap{
    height: clamp(300px, 48vh, 420px);
    max-height: 420px;
  }
}

/* Por si algún estilo global intenta estirar la imagen */
.about-card img#about-img{
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contenido */
.about-content .chips{
  display:flex; gap:8px; overflow:auto; padding-bottom:4px;
}
.chips .chip{
  border:1px solid var(--outline);
  padding:.45rem .8rem;
  border-radius:999px;
  background:#fff;
  font:600 14px/1 ui-sans-serif,system-ui;
  white-space:nowrap;
  cursor:pointer;
}
.chips .chip[aria-selected="true"]{
  background:var(--ink-blue); color:#fff; border-color:var(--ink-blue);
}

.about-title{
  margin:10px 0 6px;
  font:700 clamp(18px,2.4vw,22px)/1.2 ui-sans-serif,system-ui;
  color:var(--ink-blue);
}
.about-text{
  margin:0;
  font:400 16px/1.6 system-ui,-apple-system,"Segoe UI",Roboto,Arial;
  text-align:justify;
}

/* Flechas flotantes (desktop) */
.nav-arrow{ display:none; }
@media (min-width:980px){
  .nav-arrow{
    display:grid; place-items:center;
    position:absolute; top:50%; transform:translateY(-50%);
    width:40px; height:40px; border:none; cursor:pointer;
    border-radius:999px;
    background:rgba(255,255,255,.9);
    box-shadow:0 2px 8px rgba(0,0,0,.1);
    color:#111; font-size:28px; line-height:1;
  }
  .nav-arrow.left{ left:6px; }
  .nav-arrow.right{ right:6px; }
}

/* Móvil: botones inferiores */
.about-mobile-actions{
  display:flex; gap:12px; justify-content:center; margin-top:12px;
}
.btn{
  border:1px solid var(--outline);
  background:#fff; color:#111;
  border-radius:10px;
  padding:.6rem 1rem; cursor:pointer;
}
.btn.primary{ background:var(--ink-blue); color:#fff; border-color:var(--ink-blue); }

/* =========================
   Nuestro equipo
   ========================= */
.section-title{
  margin:0 0 12px;
  font:700 clamp(18px,2.2vw,22px)/1.2 ui-sans-serif,system-ui;
  color:var(--ink-blue);
}

.team-grid{
  display:grid; gap:12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width:600px){ .team-grid{ grid-template-columns: repeat(3, 1fr); } }
@media (min-width:850px){ .team-grid{ grid-template-columns: repeat(4, 1fr); } }
@media (min-width:1100px){ .team-grid{ grid-template-columns: repeat(5, 1fr); } }

.team-card{
  background:var(--bg);
  border:1px solid var(--outline);
  border-radius:16px;
  padding:16px;
  display:grid; place-items:center; gap:12px;
}
.photo-ring{
  width:110px; height:110px; border-radius:999px;
  display:grid; place-items:center;
  border:4px solid var(--gold);
  overflow:hidden;
}
.team-photo{ width:100%; height:100%; object-fit:cover; }
.name-chip{
  max-width:100%;
  padding:.45rem .8rem;
  background:#FFF4CC;
  color:#4A3A00;
  border-radius:12px;
  font:600 14px/1.2 ui-sans-serif,system-ui;
  text-align:center;
}

/* Skeleton para tarjetas del equipo */
.skeleton{
  position:relative; overflow:hidden; min-height:200px;
  background:linear-gradient(90deg,#eee 25%,#f6f6f6 37%,#eee 63%);
  background-size:400% 100%;
  animation:shimmer 1.2s infinite;
}
@keyframes shimmer{ 0%{background-position:100% 0} 100%{background-position:0 0} }

