﻿/* Fondo hero con estetica clara similar al diseno de referencia */
.hero-bg {
  background-image: url('../img/black3.png'), url('../img/back2.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Fallback por si cambia la imagen principal */
@supports not (background: paint(something)) {
  .hero-bg {
    background-image: url('../img/black3.png'), url('../img/back2.png');
  }
}

/* Mejora de legibilidad para titulos largos */
.text-balance {
  text-wrap: balance;
}

/* Tarjetas con avatar flip para concejales */
.card-flip {
  position: relative;
  max-width: 310px;
  margin-inline: auto;
  min-height: 0;
  padding-top: 4.1rem;
  padding-inline: 1.05rem;
  padding-bottom: 0.55rem;
  background: #ececef;
  border: 1px solid #dfdfe4;
  border-radius: 8px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.14);
  text-align: center;
}

.profile-flip {
  position: absolute;
  top: -2.45rem;
  left: 50%;
  transform: translateX(-50%);
  perspective: 1000px;
}

.profile-flip-inner {
  position: relative;
  width: 102px;
  height: 102px;
  transform-style: preserve-3d;
  transition: transform 700ms ease;
}

.card-flip:hover .profile-flip-inner:not(.no-flip),
.card-flip:focus-within .profile-flip-inner:not(.no-flip) {
  transform: rotateY(180deg);
}

.profile-face {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  overflow: hidden;
  backface-visibility: hidden;
  border: 0;
  box-shadow: 0 7px 14px rgba(0, 0, 0, 0.2);
  background: #ffffff;
}

.profile-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-face.back {
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.profile-face.back img {
  object-fit: contain;
}

.no-white-ring .profile-face {
  border: 0 !important;
  background: transparent !important;
}

.zarate-photo {
  transform: scale(1.14);
  transform-origin: center;
}

.card-flip h3 {
  margin-top: 0.7rem;
  font-size: 1.12rem;
  line-height: 1.12;
  font-weight: 700;
  color: #5a5b60;
}

.card-flip .role-line {
  margin-top: 0.9rem;
  font-size: 0.98rem;
  line-height: 1.2;
  font-weight: 700;
  color: #5a5b60;
}

.card-flip .role-sub {
  font-size: 0.98rem;
  line-height: 1.2;
  font-weight: 700;
  color: #5a5b60;
}

.card-flip .period-line {
  font-size: 0.98rem;
  line-height: 1.2;
  font-weight: 700;
  color: #5a5b60;
}

.card-flip .social-row {
  margin-top: 0.45rem;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
}

.card-flip .social-row img {
  width: 25px;
  height: 25px;
}
.hero-logo-left{
  height: 220px;
  width: auto;
  max-width: none;
}
.hero-logo-right{
  height: 220px;
  width: auto;
  max-width: none;
}
