/* ---------- Extra styles for sobre-nosotros.html & testimonios.html ---------- */

/* Why-choose-us cards (sobre-nosotros) */
.why-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin-top:36px}
.why-card{background:var(--panel);border:1px solid rgba(90,162,226,.16);border-radius:18px;padding:28px 24px;transition:transform .4s,border-color .4s}
.why-card:hover{transform:translateY(-6px);border-color:rgba(90,162,226,.35)}
.why-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:14px;background:linear-gradient(135deg,var(--brand),var(--brand-dark));color:#fff;margin-bottom:18px}
.why-icon svg{width:24px;height:24px}
.why-card h3{font-family:'Sora';font-size:1.02rem;font-weight:700;margin-bottom:10px}
/* Mismo problema que .why-us-dark del Home: tarjetas angostas (4 columnas) +
   text-align:justify heredado del bloque sitewide deja espacios enormes entre
   palabras en lineas cortas -- se pasa a alineado a la izquierda solo aqui. */
.why-card p{color:var(--muted);font-size:.9rem;line-height:1.7;text-align:left;-webkit-hyphens:none;hyphens:none;word-break:normal;overflow-wrap:normal;letter-spacing:.01em;word-spacing:.02em}

/* Founder feature card */
.founder-card{display:flex;align-items:center;gap:36px;background:var(--panel-light);border:1px solid var(--line-light);border-radius:22px;padding:40px;box-shadow:0 4px 20px rgba(10,23,48,.06);margin-top:40px}
.founder-photo{flex:none;width:130px;height:130px;border-radius:50%;object-fit:cover;display:block;border:4px solid #fff;box-shadow:0 10px 28px rgba(28,98,160,.32);background:var(--bg-light)}
.founder-info h3{font-family:'Sora';font-size:1.5rem;font-weight:800;color:var(--text-dark);margin-bottom:12px}
.founder-info p{color:var(--muted-dark);font-size:.98rem;line-height:1.6;max-width:640px}

/* Team photo grid (founder + Milena + asesores) */
.team-photos{display:grid;grid-template-columns:repeat(5,1fr);gap:18px;margin-top:34px}
/* Boton "Ver todo el equipo" del teaser en index.html -- oculto en PC (ahi ya se ven
   los 10), visible solo en movil (ver @media mas abajo), donde el grid se recorta a 4. */
.team-ver-mas-mobile{display:none}
.team-member{background:var(--panel-light);border:1px solid var(--line-light);border-radius:18px;padding:22px 16px;text-align:center;transition:transform .45s cubic-bezier(.2,.7,.3,1),border-color .45s,box-shadow .45s}
.team-member:hover{transform:translateY(-8px);border-color:rgba(90,162,226,.5);box-shadow:0 16px 36px rgba(28,98,160,.18)}
.team-member-photo{width:108px;height:108px;margin:0 auto 16px;border-radius:50%;overflow:hidden;border:3px solid var(--brand);box-shadow:0 8px 22px rgba(28,98,160,.22);background:var(--bg-light)}
.team-member-photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .55s cubic-bezier(.2,.7,.3,1)}
.team-member:hover .team-member-photo img{transform:scale(1.09)}
.team-member h3{font-family:'Sora';font-size:1rem;font-weight:700;color:var(--text-dark);margin:0 0 4px}
.team-member small{display:block;color:var(--muted-dark);font-size:.8rem}
.team-member-wa{display:inline-flex;align-items:center;justify-content:center;gap:7px;margin-top:14px;padding:8px 16px;border-radius:999px;background:var(--brand);color:#fff;font-family:'Sora';font-weight:600;font-size:.78rem;letter-spacing:.2px;text-decoration:none;box-shadow:0 6px 16px rgba(28,98,160,.22);transition:transform .3s cubic-bezier(.2,.7,.3,1),background .3s,box-shadow .3s;animation:waUp .55s ease both;max-width:100%}
.team-member-wa svg{width:16px;height:16px;max-width:16px;max-height:16px;min-width:16px;min-height:16px;flex:none}
.team-member-wa:hover{transform:scale(1.05) translateY(-1px);background:var(--brand-dark);box-shadow:0 10px 22px rgba(28,98,160,.32)}
@keyframes waUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
.team-photos .team-member:nth-child(1){transition-delay:0s}
.team-photos .team-member:nth-child(2){transition-delay:.05s}
.team-photos .team-member:nth-child(3){transition-delay:.1s}
.team-photos .team-member:nth-child(4){transition-delay:.15s}
.team-photos .team-member:nth-child(5){transition-delay:.2s}
.team-photos .team-member:nth-child(6){transition-delay:.25s}
.team-photos .team-member:nth-child(7){transition-delay:.3s}
.team-photos .team-member:nth-child(8){transition-delay:.35s}
.team-photos .team-member:nth-child(9){transition-delay:.4s}
.team-photos .team-member:nth-child(10){transition-delay:.45s}

/* Testimonials static grid */
.testi-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:8px}
.testi-card{background:linear-gradient(160deg,var(--bg-elevated),var(--bg-elevated-2));border:1px solid rgba(90,162,226,.22);border-radius:18px;padding:34px 28px;box-shadow:0 18px 40px rgba(2,6,20,.3);display:flex;flex-direction:column;transition:transform .4s,box-shadow .4s,border-color .4s}
.testi-card:hover{transform:translateY(-8px);box-shadow:0 26px 60px rgba(2,6,20,.45),0 0 24px rgba(90,162,226,.16);border-color:rgba(90,162,226,.4)}
.testi-card blockquote{font-family:'Sora';font-size:1rem;font-weight:500;line-height:1.6;color:var(--text);margin:0 0 22px;flex:1;text-align-last:left;text-justify:inter-word;letter-spacing:.01em}
.testi-card blockquote::before{content:"\201C";display:block;font-size:3rem;line-height:.4;color:var(--brand);margin-bottom:16px;font-family:Georgia,serif}
.testi-author{display:flex;align-items:center;gap:13px}
.testi-avatar{flex:none;width:44px;height:44px;border-radius:50%;background:linear-gradient(135deg,var(--sky),var(--brand-dark));display:grid;place-items:center;font-family:'Sora';font-weight:700;font-size:.8rem;color:#fff}
/* Cuando el testimonio tiene foto real, la imagen reemplaza al circulo de
   iniciales: se recorta al mismo circulo, con el mismo tamano, asi la fila de
   autor no cambia de alto. Si no hay foto, se siguen mostrando las iniciales. */
.testi-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.testi-avatar.has-foto{background:none;padding:0}
.testi-author b{display:block;font-size:.9rem;color:var(--text)}
.testi-author small{color:var(--muted);font-size:.76rem}

@media(max-width:900px){
  .why-grid{grid-template-columns:repeat(2,1fr)}
  .testi-grid{grid-template-columns:repeat(2,1fr)}
  .founder-card{flex-direction:column;text-align:center;gap:22px}
  .founder-info p{max-width:none}
  .team-photos{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:640px){
  .why-grid{grid-template-columns:1fr}
  .testi-grid{grid-template-columns:1fr;gap:14px}
  /* Pedido explicito del cliente: las tarjetas de testimonios (testimonios.html) eran
     muy grandes en movil. Se mantiene 1 columna (2 por fila haria el texto de la cita
     ilegible, son parrafos largos) pero mas compactas: menos padding, comillas y avatar
     mas chicos, cita recortada a 5 lineas si es muy larga. Solo dentro de este
     breakpoint -- PC (.testi-card sin media query) queda intacto. */
  .testi-card{padding:22px 20px}
  .testi-card blockquote{font-size:.88rem;line-height:1.5;margin-bottom:14px;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
  .testi-card blockquote::before{font-size:2rem;margin-bottom:8px}
  .testi-avatar{width:36px;height:36px;font-size:.72rem}
  .testi-author b{font-size:.85rem}
  .testi-author small{font-size:.72rem}
  .team-photos{grid-template-columns:repeat(2,1fr)}
}
/* El teaser de equipo del Home (index.html) muestra a las 10 personas del grid
   (Milena + 9 asesores) igual que sobre-nosotros.html -- en movil eso hace la
   pagina muy larga. Se limita a las primeras 4 SOLO en index.html (body no lleva
   la clase .subpage) para que sobre-nosotros.html, que es la pagina dedicada al
   equipo completo, siga mostrando a los 10 sin cambios. Position 641-760px:
   .team-photos ya viene en 3 columnas por la regla de 900px de arriba -- clavarla
   a 2 columnas aca deja las 4 tarjetas visibles en 2 filas parejas, sin una fila
   final incompleta. */
@media(max-width:760px){
  body:not(.subpage) .team-photos{grid-template-columns:repeat(2,1fr)}
  body:not(.subpage) .team-photos .team-member:nth-child(n+5){display:none}
  .team-ver-mas-mobile{display:block;text-align:center;margin-top:8px}
  .team-ver-mas-mobile .dest-more{justify-content:center}
}
