/* 
Theme Name: Recintos
Theme URL: http://www.memoriaudiovisual.cl
Description: Mini Sitio Memoria Audiovisual
Author: EQUIPO TI MUSEO DE LA MEMORIA
Author URI: http://www.museodelamemoria.cl
Version: 2.0
*/

body {
  margin: 0;
  padding: 0;
  background: #e0e0e0;
}

.recinto-contenedor {
  padding: 2em;
  background: linear-gradient(to bottom right, #f5f5f5, #eaeaea);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.recinto-contenedor h2 {
  text-align: center;
  font-size: 2.8em;
  color: #002642;
  margin-bottom: 1em;
}

.recinto-principal {
  display: flex;
  gap: 2em;
  flex-wrap: wrap;
}

.recinto-descripcion {
  flex: 1;
  min-width: 300px;
  padding: 1em;
  border-radius: 6px;
  color: #002642;
}

.recinto-imagenes {
  flex: 1;
  min-width: 300px;
  max-height: 100%;
  overflow-y: auto;
}

.carousel ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.carousel li img {
  max-width: 100%;
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.recinto-mapa {
  margin-top: 3em;
  background: #eef;
  padding: 1em;
  border-radius: 8px;
}

.mapa-embed iframe {
  width: 100%;
  height: 400px;
  border: none;
}

.video-embed {
  margin-top: 2em;
}

/* ===== SECCIÓN COMPARTIR CON ANIMACIONES ===== */
.compartir-section {
  text-align: center;
  margin: 40px 0;
}

.btn-compartir {
  background: linear-gradient(135deg, #0066cc 0%, #004c99 100%);
  color: white;
  border: none;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-compartir::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-compartir:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

.btn-compartir:hover::before {
  width: 300px;
  height: 300px;
}

.btn-compartir:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 102, 204, 0.3);
}

.modal-compartir {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.75);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-compartir-contenido {
  background-color: white;
  padding: 30px;
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-compartir-cerrar {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 28px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-compartir-cerrar:hover {
  color: #333;
  background-color: #f0f0f0;
  transform: rotate(90deg);
}

.modal-compartir-contenido h3 {
  margin-top: 0;
  margin-bottom: 20px;
  text-align: center;
  color: #333;
  font-size: 1.5em;
}

.opciones-compartir {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.opcion-btn {
  background-color: #f8f9fa;
  border: 2px solid #e0e0e0;
  padding: 16px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.opcion-btn::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, rgba(0, 102, 204, 0.1), transparent);
  transition: width 0.4s ease;
}

.opcion-btn:hover {
  background-color: #ffffff;
  border-color: #0066cc;
  transform: translateX(5px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.15);
}

.opcion-btn:hover::before {
  width: 100%;
}

.opcion-btn:active {
  transform: translateX(5px) scale(0.98);
}

.opcion-btn span {
  font-size: 20px;
  transition: transform 0.3s ease;
}

.opcion-btn:hover span {
  transform: scale(1.2);
}

#qr-code {
  display: inline-block;
  padding: 15px;
  background: white;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: zoomIn 0.4s ease;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

#mensaje-copiado {
  background: linear-gradient(135deg, #28a74587 0%, #20c997b0 100%);
  color: white;
  padding: 15px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
  animation: slideInUp 0.4s ease;
}

@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.btn-compartir span {
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}
