/* custom overrides (test) */

/* ===== Alianzas section ===== */
.alianzas-block {
  background-image: url('../img/big-15.jpg');
  background-position: center center;
}

/* Override default dark overlay for parallax blocks */
.alianzas-block:before {
  background: rgba(255, 255, 255, 0.80);
}

.alianzas-block .heading h2,
.alianzas-block .heading h2 span {
  color: #3e1873;
}

.partner-card {
  padding: 1rem 0.75rem;
}

.partner-logo-frame {
  border-radius: 22px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.55);
  border: 8px solid rgba(255, 255, 255, 0.90);
  max-width: 520px;
  margin: 0 auto 1rem;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-logo-frame img {
  max-width: 100%;
  max-height: 110px;
  width: auto;
  height: auto;
  display: block;
}
.partner-headline {
  color: #3e1873;
  text-align: center;
  font-weight: 600;
  margin: 0 0 1.25rem;
}

.partner-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 520px;
}

.partner-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0.65rem 0;
  /* Match site typography (main.css body) */
  color: #55565b;
  font-size: 0.85rem;
  line-height: 1.8;
}

.partner-ico {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  object-fit: contain;
}

.partner-list .u-underline {
  text-decoration: underline;
}

@media (max-width: 575px) {
  .partner-logo-frame {
    height: 140px;
    padding: 14px;
  }
  .partner-logo-frame img {
    max-height: 92px;
  }
  .partner-list li {
    font-size: 0.80rem;
    gap: 12px;
  }
  .partner-ico {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
}


/* ===== Clientes section ===== */
.logo-slide .slide-item{ text-align:center; padding: 10px 12px; }
.logo-slide .slide-item img{ display:block; margin: 0 auto 6px; max-height: 115px; width:auto; }
.logo-slide .client-name{ margin:0; font-size: 0.80rem; line-height: 1.2; color:#777; font-weight:400; }
@media (max-width: 575px){
  .logo-slide .client-name{ font-size: 0.75rem; }
  .logo-slide .slide-item img{ max-height: 92px; }
}

/* ===== Servicios (Organigrama / tarjetas acordeón en grid) ===== */
.services-org-section{
  background: #f7f5f2;
}

/* subtitle under "Nuestros Servicios" */
.services-org-sub{
  margin: 10px 0 0;
  color: #6f6f6f;
  font-size: 1.05rem;
}

/* Center the grid and keep it visually like a “organigrama” */
.services-org-grid{
  max-width: 1100px;
  margin: 0 auto;
}

.services-card-grid{
  display:grid;
  align-items: start;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}

/* Desktop: 3 arriba / 2 centradas abajo */
@media (min-width: 992px){
  .services-card-grid{
    grid-template-columns: repeat(6, 1fr);
    gap: 22px;
  }
  .services-card-grid .card-1{ grid-column: 1 / span 2; }
  .services-card-grid .card-2{ grid-column: 3 / span 2; }
  .services-card-grid .card-3{ grid-column: 5 / span 2; }
  .services-card-grid .card-4{ grid-column: 2 / span 2; }
  .services-card-grid .card-5{ grid-column: 4 / span 2; }
}

@media (max-width: 575px){
  .services-card-grid{ grid-template-columns: 1fr; }
}

.service-card{
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 18px;
  overflow:hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}

/* Avoid equal-height stretch that creates empty cards in the same row */
.service-card{ align-self: start; }

.service-card:hover{
  border-color: rgba(62, 24, 115, 0.28);
  box-shadow: 0 14px 30px rgba(62, 24, 115, 0.14);
  transform: translateY(-1px);
}

.service-card-toggle{
  width:100%;
  display:flex;
  align-items:center;
  gap: 14px;
  padding: 22px 22px;
  background: transparent;
  border: 0;
  text-align:left;
  cursor:pointer;
}

.service-card-toggle:focus{
  outline: 2px solid rgba(62, 24, 115, 0.35);
  outline-offset: 2px;
  border-radius: 14px;
}

.service-card-title{
  font-weight: 800;
  font-size: 0.90rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #232323;
  line-height: 1.25;
}

.service-card-chevron{
  margin-left:auto;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(62, 24, 115, 0.08);
  color: #3e1873;
  transition: transform .25s ease, background .25s ease;
}

.service-card.is-open .service-card-chevron{
  transform: rotate(180deg);
  background: rgba(62, 24, 115, 0.12);
}

/* Panel con transición max-height (sin “desacomodar” el texto) */
.service-card-panel{
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.service-card-panel-inner{
  padding: 14px 22px 22px;
}

.service-card-list{
  margin: 0;
  padding-left: 20px;
  color: #3b3b3b;
  font-size: 0.98rem;
  line-height: 1.55;
}

.service-card-list li + li{
  margin-top: 8px;
}

@media (max-width: 575px){
  .services-org-sub{ font-size: 0.98rem; }
  .service-card-toggle{ padding: 18px; }
  .service-card-panel-inner{ padding: 12px 18px 18px; }
}

/* Hide empty client names */
.client-name:empty{display:none;}
