/* ============================================================
   Sección de Proyectos: pestañas (Galería / Lista)
   ============================================================ */
.pym-proyectos{ max-width:1200px; margin:0 auto; padding:0 16px; }

/* ---------- Pestañas ---------- */
.pym-proyectos__tabs{
  display:flex; gap:6px; justify-content:center;
  border-bottom:1px solid #e6e6e6; margin-bottom:30px;
}
.pym-tab{
  background:transparent; border:0; cursor:pointer;
  padding:12px 26px; font-size:.95rem; font-weight:600; color:#888;
  border-bottom:3px solid transparent; margin-bottom:-1px;
  transition:color .2s, border-color .2s; letter-spacing:.02em;
}
.pym-tab:hover{ color:#1a1a1a; }
.pym-tab.is-active{ color:#c81010; border-bottom-color:#c81010; }

/* ---------- Galería (3 columnas, esquinas cuadradas) ---------- */
.pym-grid3{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.pym-pcard{
  display:flex; flex-direction:column; text-decoration:none; color:inherit;
  background:#fff; box-shadow:0 4px 16px rgba(0,0,0,.08);
  transition:transform .25s, box-shadow .25s; /* sin border-radius: esquinas cuadradas */
}
.pym-pcard:hover{ transform:translateY(-4px); box-shadow:0 14px 32px rgba(0,0,0,.16); }
.pym-pcard.is-hidden{ display:none; }
.pym-pcard__img{
  position:relative; aspect-ratio:4/3; background:#e9e9e9 center/cover no-repeat;
}
.pym-pcard__star{
  position:absolute; top:10px; left:10px;
  background:#e0a800; color:#fff; font-size:.7rem; font-weight:700;
  padding:4px 10px; text-transform:uppercase; letter-spacing:.03em;
}
.pym-pcard__body{ padding:16px 18px 20px; display:flex; flex-direction:column; gap:6px; }
.pym-pcard__title{ margin:0; font-size:1.02rem; font-weight:700; color:#1a1a1a; line-height:1.35; }
.pym-pcard__desc{ margin:0; font-size:.86rem; color:#777; line-height:1.5; }

.pym-proyectos__more{ text-align:center; margin-top:32px; }
.pym-morebtn{
  background:#1b1b1b; color:#fff; border:0; cursor:pointer;
  padding:13px 34px; font-size:.85rem; font-weight:700;
  text-transform:uppercase; letter-spacing:.05em; transition:background .2s, transform .2s;
}
.pym-morebtn:hover{ background:#c81010; transform:translateY(-2px); }

/* ---------- Lista ---------- */
.pym-lista__tools{ display:flex; justify-content:flex-end; margin-bottom:18px; }
.pym-lista__search{
  width:100%; max-width:360px; padding:11px 16px;
  border:1px solid #ddd; font-size:.9rem; transition:border-color .2s;
}
.pym-lista__search:focus{ border-color:#c81010; outline:none; }
.pym-lista__wrap{ overflow-x:auto; }
.pym-lista{ width:100%; border-collapse:collapse; font-size:.9rem; }
.pym-lista thead th{
  text-align:left; padding:12px 14px; font-size:.74rem; font-weight:700;
  text-transform:uppercase; letter-spacing:.04em; color:#999;
  border-bottom:2px solid #ededed; white-space:nowrap;
}
.pym-lista tbody td{ padding:13px 14px; border-bottom:1px solid #f0f0f0; color:#444; vertical-align:middle; }
.pym-lista tbody tr:hover{ background:#fafafa; }
.pym-lista__num{ width:54px; font-weight:700; color:#1a1a1a; }
.pym-lista__name{ display:flex; align-items:center; gap:12px; text-decoration:none; color:#1a1a1a; font-weight:600; }
.pym-lista__name:hover{ color:#c81010; }
.pym-lista__thumb{ width:46px; height:46px; flex:0 0 auto; background:#e9e9e9 center/cover no-repeat; }
.pym-lista__star{ color:#e0a800; margin-left:6px; }
.pym-lista__action a{ color:#c81010; text-decoration:none; font-weight:700; white-space:nowrap; }
.pym-lista__action a:hover{ text-decoration:underline; }
.pym-lista__empty{ text-align:center; color:#999; padding:30px 0; font-size:.95rem; }

/* ============================================================
   Carrusel propio "Proyectos Destacados" (home)
   ============================================================ */
/* Full-bleed: rompe el contenedor para ocupar casi todo el ancho de la pantalla. */
.pym-dcarousel{
  position:relative;
  width:94vw;
  margin-left:calc(50% - 47vw);
  margin-right:calc(50% - 47vw);
  padding:0 54px;
  box-sizing:border-box;
}
.pym-dcarousel__viewport{ overflow:hidden; }
.pym-dcarousel__track{ display:flex; transition:transform .55s cubic-bezier(.22,.61,.36,1); }
.pym-dcarousel__slide{ flex:0 0 33.333%; max-width:33.333%; padding:0 14px; box-sizing:border-box; }
.pym-dcarousel__btn{
  position:absolute; top:50%; transform:translateY(-50%); z-index:5;
  width:44px; height:44px; border:0; border-radius:50%; cursor:pointer;
  background:#1b1b1b; color:#fff; font-size:1.5rem; line-height:1;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 4px 14px rgba(0,0,0,.2); transition:background .2s, transform .2s;
}
.pym-dcarousel__btn:hover{ background:#c81010; }
.pym-dcarousel__btn--prev{ left:4px; }
.pym-dcarousel__btn--next{ right:4px; }
.pym-dcarousel__dots{ display:flex; justify-content:center; gap:8px; margin-top:24px; }
.pym-dcarousel__dot{
  width:10px; height:10px; border:0; border-radius:50%; background:#d4d4d4; cursor:pointer;
  padding:0; transition:background .2s, width .2s;
}
.pym-dcarousel__dot.is-active{ background:#c81010; width:26px; border-radius:5px; }

/* ============================================================
   Tarjeta del carrusel "Proyectos Destacados" (home)
   ============================================================ */
.pym-dcard{
  position:relative; display:block; overflow:hidden;
  aspect-ratio:3/4; min-height:380px; text-decoration:none; color:#fff;
  background:#1b1b1b; box-shadow:0 10px 30px rgba(0,0,0,.18);
}
.pym-dcard__img{
  position:absolute; inset:0; background:#2a2a2a center/cover no-repeat;
  transition:transform .8s ease;
}
.pym-dcard:hover .pym-dcard__img{ transform:scale(1.07); }
.pym-dcard__shade{
  position:absolute; inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,0) 75%);
}
.pym-dcard__content{
  position:absolute; left:0; right:0; bottom:0; z-index:2;
  padding:24px 22px; display:flex; flex-direction:column; gap:8px;
}
.pym-dcard__type{
  align-self:flex-start; background:#c81010; color:#fff;
  font-size:.68rem; font-weight:700; letter-spacing:.05em; text-transform:uppercase;
  padding:4px 11px;
}
.pym-dcard__title{
  margin:0; font-size:1.18rem; font-weight:700; line-height:1.3; color:#fff;
}
.pym-dcard__meta{ display:flex; flex-wrap:wrap; gap:14px; font-size:.82rem; color:rgba(255,255,255,.85); }
.pym-dcard__cta{
  margin-top:6px; font-size:.82rem; font-weight:700; color:#fff;
  opacity:0; transform:translateY(8px); transition:opacity .3s, transform .3s;
}
.pym-dcard:hover .pym-dcard__cta{ opacity:1; transform:translateY(0); }

@media (max-width:900px){
  .pym-grid3{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:560px){
  .pym-grid3{ grid-template-columns:1fr; }
  .pym-lista__thumb{ display:none; }
}
