/* =========================================================
   📦 InSOFT Proyectos Stylesheet (Frosted Light Glass Theme)
   ========================================================= */

/* ===== Encabezado (mascota + texto) ===== */
.proy-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  padding: 20px 0;
}

.proy-mascota {
  width: 140px;
  height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(6, 182, 212, 0.25));
  animation: floatMascot 4s ease-in-out infinite;
}

@keyframes floatMascot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.proy-descripcion {
  max-width: 680px;
  text-align: left;
}

.proy-descripcion h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #FFF 30%, #a4afdb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.proy-descripcion .lead {
  color: #b0bcd6;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

.proy-descripcion .lead strong {
  color: #fff;
}

.proy-title {
  text-align: center;
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin: 40px 0 25px;
  position: relative;
}

.proy-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #FCA503, #D27F03);
  margin: 12px auto 0;
  border-radius: 2px;
}

@media (max-width: 768px) {
  .proy-head { flex-direction: column; gap: 20px; text-align: center; }
  .proy-descripcion { text-align: center; padding: 0 16px; }
  .proy-descripcion h1 { font-size: 2.2rem; }
  .proy-mascota { width: 120px; height: 120px; }
  .proy-descripcion .lead { font-size: 1rem; }
}

/* =========================================================
   💼 Tarjeta del Proyecto (proyecto-row - Frosted Light Glass)
   ========================================================= */
.proyecto-row {
  --size: 180px;
  --gap: 16px;
  --card-r: 16px;
  
  /* Fondo blanco brillante semi-translúcido */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: #1e293b;
  
  border-radius: 24px;
  padding: 26px;
  margin-bottom: 40px;
  display: grid;
  gap: 24px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.proyecto-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.35), 0 0 20px rgba(6, 182, 212, 0.15);
  border-color: rgba(6, 182, 212, 0.4);
}

.proy-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 18px;
  margin-bottom: 8px;
}

.proy-resumen {
  margin: 0;
  color: #334155;
  font-size: 1.12rem;
  line-height: 1.65;
  text-align: center;
}

.proy-resumen strong {
  color: #0f172a;
  font-weight: 800;
  background: linear-gradient(120deg, rgba(252, 165, 3, 0.25) 0%, rgba(252, 165, 3, 0.1) 100%);
  padding: 2px 6px;
  border-radius: 4px;
}

.proy-resumen em {
  color: #0284c7;
  font-style: normal;
  font-weight: 700;
}

.proy-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 24px;
  align-items: start;
}

/* =========================================================
   Columna 1: Logo del Proyecto
   ========================================================= */
.proy-col-logo .proy-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  padding: 20px;
  width: 100%;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.proy-col-logo .proy-logo-wrap:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.proy-logo {
  width: 100%;
  max-width: 160px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  display: block;
}

.proy-nombre {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  color: #0f172a;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  text-align: center;
}

/* =========================================================
   Columna 2: Testimonios
   ========================================================= */
.proy-col-testimonios {
  --gap: 16px;
  --card-r: 16px;
  --size: clamp(140px, 14vw, 200px);
  width: 100%;
  overflow: hidden;
}

.carousel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.carousel-title {
  margin: 0;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.carousel-counter {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 600;
}

.proy-col-testimonios .carousel {
  display: flex;
  gap: var(--gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.02);
  padding-bottom: 8px;
  align-items: stretch;
  width: calc(var(--size) * 2 + var(--gap));
  max-width: 100%;
  margin-inline: auto;
}

.proy-col-testimonios .carousel::-webkit-scrollbar {
  height: 6px;
}
.proy-col-testimonios .carousel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.02);
  border-radius: 10px;
}
.proy-col-testimonios .carousel::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}
.proy-col-testimonios .carousel::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

.proy-col-testimonios .carousel .card.mini {
  flex: 0 0 var(--size);
  scroll-snap-align: start;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--card-r);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.proy-col-testimonios .carousel .card.mini:hover {
  transform: scale(1.01);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
}

.testi-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.foto-circular {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.testi-name {
  font-size: 0.8rem;
  color: #0f172a;
  font-weight: 600;
  line-height: 1.2;
}

.testi-city {
  font-size: 0.85rem;
  color: #d97706;
  font-weight: 700;
  margin-bottom: 6px;
  text-align: left;
}

.card.mini blockquote {
  margin: 0;
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.45;
  text-align: left;
  font-style: italic;
}

/* =========================================================
   Columna 3: Video
   ========================================================= */
.proy-col-video .card.video {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--card-r);
  padding: 12px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.03);
  max-width: calc(var(--size) * 2.4);
  margin-inline: auto;
  transition: all 0.3s ease;
}

.proy-col-video .card.video:hover {
  transform: scale(1.01);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.card.video .thumb {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #000;
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin: 0 auto;
}

.card.video .thumb iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.card.video .video-caption {
  font-size: 0.85rem;
  margin-top: 10px;
  text-align: center;
}

.card.video .video-caption a {
  color: #0284c7;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card.video .video-caption a:hover {
  color: #d97706;
  text-decoration: underline;
}

/* =========================================================
   Botones de Acción (proy-actions)
   ========================================================= */
.proy-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 8px;
}

.proy-actions .btn {
  font-family: 'Outfit', sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 12px 28px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.proy-actions .btn-info {
  background: #1e293b;
  color: #ffffff;
  border: 1px solid #1e293b;
  box-shadow: 0 4px 15px rgba(30, 41, 59, 0.2);
}

.proy-actions .btn-info:hover {
  background: #0f172a;
  border-color: #0f172a;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.3);
}

.proy-actions .btn-primary {
  background: linear-gradient(180deg, #FCA503, #D27F03);
  color: #0d1632;
  border: none;
  box-shadow: 0 6px 18px rgba(252, 165, 3, 0.35);
}

.proy-actions .btn-primary:hover {
  background: linear-gradient(180deg, #ffb424, #e08c07);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(252, 165, 3, 0.5);
}

/* =========================================================
   Ajustes Responsivos y Media Queries
   ========================================================= */
@media (max-width: 1200px) {
  .proyecto-row { --size: 160px; }
  .proy-grid {
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 16px;
  }
  .proy-col-testimonios .carousel {
    width: calc(var(--size) * 2 + var(--gap));
  }
  .proy-col-video .card.video {
    max-width: calc(var(--size) * 2.2);
  }
}

@media (max-width: 992px) {
  .proyecto-row { --size: 150px; }
  .proy-grid {
    grid-template-columns: minmax(200px, calc(var(--size) + 50px)) 1fr;
  }
  .proy-col-video {
    grid-column: 1 / -1;
  }
  .proy-col-video .card.video {
    max-width: 560px;
  }
}

@media (max-width: 768px) {
  .proyecto-row { --size: 140px; padding: 20px; }
  .proy-resumen { font-size: 1rem; }
  .proy-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .proy-col-logo .proy-logo-wrap {
    max-width: 320px;
    padding: 16px;
  }
  .proy-col-testimonios .carousel {
    width: var(--size);
  }
  .proy-col-video .card.video {
    max-width: 100%;
  }
  .testi-head {
    justify-content: center;
  }
  .testi-city {
    text-align: center;
  }
  .card.mini blockquote {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .proyecto-row { --size: 120px; padding: 16px; }
  .proy-actions .btn {
    width: 100%;
    text-align: center;
  }
}
