.hero {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  max-height: none;
  width: 100%;
  aspect-ratio: 2 / 1;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block; 
}

/* LOGO */
.header-detalle {
  text-align: center;
  margin-top: -50px; /* 👈 clave */
  padding: 0 20px;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.no-header {
  margin-top: 20px;
  width: 100%;
}

.logo {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid white;
  box-shadow: var(--card-shadow);
  background: white;
}

.logo.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background: var(--accent-light);
  color: var(--accent-color);

  font-weight: bold;
  font-size: 24px;
  padding: 20px;
}

.header-detalle h1 {
  margin-top: 12px;
  font-size: 26px;
}

.desc-larga p {
  color: var(--primary-text-color);
  margin-top: 8px;
  font-size: 17px;
  justify-content: center;
  white-space: pre-line;
}

.desc-corta {
  color: var(--primary-text-color);
  margin-top: 8px;
  font-size: 15px;
}

.chips {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.galeria {
  margin: 30px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  padding: 10px;
}

.galeria img {
  width: 100%;
  border-radius: 10px;
  object-fit: contain;
}

.contacto-grid {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.contacto-grid div {
  font-size: 14px;
}
.detalle {
  animation: fadeIn 0.3s ease;
}

.icon-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-color);
  transition: 0.2s;
}

.icon-link svg {
  width: 20px;
  height: 20px;
  fill:"white";  
}

.icon-link:hover {
  transform: scale(1.1);
}

.contacto h3{
  color: var(--primary-text-color);
}
.contacto ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.contacto ul li{
  margin-bottom: 12px;  
  display: flex;
  align-items: center;
  gap: 20px;
  text-decoration: none;
}

.contacto ul li a{
  text-decoration: none;
  color: var(--primary-text-color);
}

.contacto ul li:hover {
  color: var(--primary-text-hover-color);
  font-weight: bolder;
  cursor: pointer;
  transform: scale(1.01);
}

.contacto ul li svg{
  background: none;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.map-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 10px 30px rgba(0,0,0,0.15);
}

.map-container iframe {
  width: 100%;
  border: 0;
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px);}
  to { opacity: 1; transform: translateY(0);}
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .contacto-grid {
    grid-template-columns: 1fr;
  }

  .map-container{
    margin-top: 50px;
  }

 .hero {
        aspect-ratio: auto;
    }

    .hero img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

}