/* Viva Centro — overrides y secciones específicas */

:root {
  --accent-color: #5eaba0;
  --viva-teal: #5eaba0;
  --viva-teal-dark: #3d8f85;
  --viva-lime: #c8e86c;
  --viva-sand: #c9b896;
  --viva-grey: #8a8f94;
  --nav-hover-color: #5eaba0;
}

.header .cta-btn,
.header .cta-btn:focus {
  background: var(--viva-teal);
}

.header .cta-btn:hover,
.header .cta-btn:focus:hover {
  background: var(--viva-teal-dark);
}

.header .logo.viva-logo {
  display: flex !important;
  align-items: center;
  align-self: stretch;
  gap: 0.85rem;
  background: transparent;
  line-height: 1;
}

.header .viva-logo__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff !important;
  padding: 0.55rem 0.75rem 0.7rem;
  margin-top: -20px;
  margin-bottom: -8px;
  border-radius: 0 0 1rem 1rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  position: relative;
  z-index: 5;
}

.header .logo.viva-logo .viva-logo__img,
.header .logo.viva-logo .viva-logo__badge img,
.header .logo.viva-logo img {
  height: 72px !important;
  max-height: none !important;
  width: auto !important;
  margin-right: 0 !important;
  object-fit: contain;
  display: block;
  border-radius: 0.25rem;
}

.header .viva-logo__meta {
  display: none;
  flex-direction: column;
  justify-content: center;
  line-height: 1.2;
}

.header .viva-logo__meta strong {
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.header .viva-logo__meta span {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.72rem;
  font-weight: 500;
}

.scrolled .header .viva-logo__meta strong {
  color: #fff !important;
}

.scrolled .header .viva-logo__meta span {
  color: rgba(255, 255, 255, 0.7) !important;
}

@media (min-width: 992px) {
  .header .viva-logo__meta {
    display: flex;
  }
}

@media (max-width: 575px) {
  .header .viva-logo__badge {
    padding: 0.45rem 0.55rem 0.55rem;
  }

  .header .logo.viva-logo .viva-logo__img,
  .header .logo.viva-logo .viva-logo__badge img,
  .header .logo.viva-logo img {
    height: 56px !important;
  }
}

.footer .viva-logo__img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

/* Hero */
.hero.viva-hero h2 {
  max-width: 18ch;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero.viva-hero .hero-brand {
  margin-bottom: 1.25rem;
}

.hero.viva-hero .hero-brand img {
  height: 72px;
  width: auto;
  position: static;
  object-fit: contain;
  opacity: 1;
}

.hero.viva-hero .hero-location {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--viva-lime);
  margin-bottom: 0.75rem;
}

.hero.viva-hero .btn-get-started {
  background: var(--viva-teal);
}

.hero.viva-hero .btn-get-started:hover {
  background: var(--viva-teal-dark);
}

/* Highlights strip */
.viva-highlights {
  padding: 3rem 0;
}

.viva-highlights .hl-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  height: 100%;
}

.viva-highlights .hl-item i {
  font-size: 1.75rem;
  color: var(--viva-teal);
  line-height: 1;
}

.viva-highlights .hl-item h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
}

.viva-highlights .hl-item p {
  margin: 0;
  font-size: var(--text-sm);
  color: color-mix(in srgb, var(--default-color), transparent 15%);
}

.viva-quote {
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  color: var(--heading-color);
  line-height: 1.35;
  max-width: 28ch;
}

/* Proyecto */
.viva-proyecto .proyecto-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.viva-proyecto .proyecto-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.85rem;
}

.viva-proyecto .proyecto-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--viva-teal);
}

.viva-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 1.75rem;
}

.viva-pillars span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--heading-color);
}

.viva-pillars i {
  color: var(--viva-teal);
}

.viva-proyecto .media-stack {
  display: grid;
  gap: 1rem;
}

.viva-proyecto .media-stack img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  object-fit: cover;
}

.viva-proyecto .media-stack .media-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.viva-proyecto .media-stack .media-pair img {
  aspect-ratio: 4 / 3;
}

/* Stats */
.viva-stats .stats-item i {
  color: var(--viva-teal) !important;
}

/* Ubicación */
.viva-ubicacion .mapa-wrap {
  border-radius: 1rem;
  overflow: hidden;
  background: transparent;
}

.viva-ubicacion .mapa-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.viva-ubicacion .lugar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.viva-ubicacion .lugar-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.85rem;
  aspect-ratio: 1;
}

.viva-ubicacion .lugar-grid img:first-child {
  grid-row: span 2;
  aspect-ratio: auto;
  min-height: 100%;
}

.cerca-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.55rem;
}

.cerca-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--text-sm);
}

.cerca-list i {
  color: var(--viva-teal);
  flex-shrink: 0;
}

/* Unidades */
.unidad-card {
  background: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 88%);
  border-radius: 1rem;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.unidad-card:hover {
  border-color: color-mix(in srgb, var(--viva-teal), transparent 50%);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--viva-teal), transparent 88%);
}

.unidad-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #111;
}

.unidad-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.unidad-card:hover .unidad-card__media img {
  transform: scale(1.04);
}

.unidad-card__body {
  padding: 1.35rem 1.4rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.unidad-card__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 2rem;
  margin-bottom: 0.75rem;
}

.unidad-card__tag--a {
  background: color-mix(in srgb, var(--viva-sand), transparent 82%);
  color: #8a7348;
}

.unidad-card__tag--b {
  background: color-mix(in srgb, var(--viva-lime), transparent 78%);
  color: #5a7a20;
}

.unidad-card__tag--c {
  background: color-mix(in srgb, var(--viva-grey), transparent 82%);
  color: #555;
}

.unidad-card__tag--d {
  background: color-mix(in srgb, var(--viva-teal), transparent 82%);
  color: var(--viva-teal-dark);
}

.unidad-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.unidad-card p {
  font-size: var(--text-sm);
  margin-bottom: 1rem;
  flex: 1;
}

.unidad-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--heading-color);
  margin-bottom: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.unidad-specs span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.unidad-specs i {
  color: var(--viva-teal);
  font-size: 0.95rem;
}

.unidad-card .btn-plano {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--viva-teal);
}

.unidad-card .btn-plano:hover {
  color: var(--viva-teal-dark);
}

.planos-disclaimer {
  font-size: 0.8rem;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  margin-top: 1.5rem;
  text-align: center;
}

/* Planos PNG transparentes: fondo blanco en lightbox */
.glightbox-container .gslide-media img[src*="plano"] {
  background-color: #fff;
  border-radius: 0.35rem;
  padding: 0.5rem;
  box-sizing: content-box;
}

/* Características */
.viva-features.dark-background {
  background: #0a0a0a;
}

.viva-features .section-title h2,
.viva-features .section-title p {
  color: #fff;
}

.viva-features .section-title h2::after {
  background: var(--viva-sand);
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1.15rem;
  margin-bottom: 1.15rem;
  border-bottom: 1px solid color-mix(in srgb, var(--viva-sand), transparent 70%);
}

.feature-item:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.feature-item i {
  font-size: 1.5rem;
  line-height: 1;
  color: #fff;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
}

.feature-item span {
  color: color-mix(in srgb, #fff, transparent 18%);
  font-size: var(--text-sm);
  line-height: 1.5;
  padding-top: 10px;
}

.palette-dots {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.palette-dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: block;
}

.palette-dots .dot-teal {
  background: var(--viva-teal);
}

.palette-dots .dot-grey {
  background: var(--viva-grey);
}

.palette-dots .dot-lime {
  background: var(--viva-lime);
}

/* Galería */
.viva-gallery .gallery-item {
  display: block;
  border-radius: 0.85rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.viva-gallery .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.viva-gallery .gallery-item:hover img {
  transform: scale(1.05);
}

/* Contact tweaks */
.contact .info-item i {
  background: color-mix(in srgb, var(--viva-teal), transparent 88%);
  color: var(--viva-teal);
}

.contact .php-email-form button[type="submit"] {
  background: var(--viva-teal);
}

.contact .php-email-form button[type="submit"]:hover {
  background: var(--viva-teal-dark);
}

.footer .btn-primary {
  background: var(--viva-teal);
  border-color: var(--viva-teal);
}

.footer .btn-primary:hover {
  background: var(--viva-teal-dark);
  border-color: var(--viva-teal-dark);
}

.desarrollador-note {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 0.75rem;
}

.desarrollador-note a {
  color: var(--viva-teal);
}

@media (max-width: 767px) {
  .viva-proyecto .media-stack .media-pair {
    grid-template-columns: 1fr;
  }

  .viva-ubicacion .lugar-grid {
    grid-template-columns: 1fr;
  }

  .viva-ubicacion .lugar-grid img:first-child {
    grid-row: auto;
    aspect-ratio: 16 / 10;
  }

  .hero.viva-hero .hero-brand img {
    height: 56px;
  }
}
