@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

/* Animaciones */
@keyframes floatLogo {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* Reset y fondo general */
html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
  background: none;
  overflow-x: hidden;
}

/* Fondo dinámico */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  z-index: -1;
  transition: background-image 1.5s ease-in-out;
}

/* Overlay transparente */
.overlay {
  background: transparent;
  pointer-events: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

/* Contenedores */
header, section {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
}

footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  margin-top: auto;
}

/* Header */
header {
  background: #f9cce8;
  color: #222;
  text-align: center;
  padding: 2.5em 1em;
  font-family: 'Poppins', sans-serif;
  border-bottom: 2px solid #e3a4c3;
}

.logo-contenedor {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
}

.kuromi-logo {
  width: 140px;
  height: auto;
  animation: floatLogo 3s ease-in-out infinite;
}

.fade-in-title {
  margin: 0;
  font-size: 2.2em;
  letter-spacing: 0.5px;
  font-family: 'Pacifico', cursive;
  animation: fadeIn 1.5s ease-out;
}

.subtitulo {
  margin-top: 0.3em;
  font-size: 1.1em;
  color: #555;
  font-family: 'Pacifico', cursive;
}

/* Secciones */
.catalogo, .servicios {
  padding: 2em;
  display: flex;
  flex-direction: column;
  align-items: center;
}

h2 {
  color: #fff;
  background: linear-gradient(135deg, #ff99cc, #ff66b2);
  padding: 0.5em 1em;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
  text-align: center;
  display: block;
  margin: 0 auto 1em;
  max-width: fit-content;
}

/* Galería */
.galeria {
  display: flex;
  gap: 1.5em;
  flex-wrap: wrap;
  justify-content: center;
}

.card {
  border: 1px solid #d63384;
  padding: 1.2em;
  background: rgba(255, 250, 252, 0.8);
  border-radius: 12px;
  text-align: center;
  width: 250px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
  position: relative;
  overflow: hidden;
}

.card p {
  font-size: 1.1em;
  color: #d63384;
  font-weight: bold;
  margin: 0;
}

/* Modal imagen con carrusel */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(20, 0, 20, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
  animation: fadeInModal 0.3s ease-in-out;
  padding: 1em;
  box-sizing: border-box;
}

.modal.visible {
  display: flex !important;
}

.modal-contenido {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1em;
  max-width: 90vw;
  max-height: 90vh;
  overflow: hidden;
}

.imagen-wrapper {
  background-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
}

#imagenModal {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 0;
  box-shadow: none;
}

.carrusel {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  max-width: 100%;
  padding: 0.5em 0;
  -webkit-overflow-scrolling: touch;
}

.miniatura {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 6px;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.3s, border-color 0.3s;
}

.miniatura:hover {
  transform: scale(1.05);
}

.miniatura.activa {
  border-color: #ff99cc;
}

.cerrar {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.8em;
  color: #fff;
  cursor: pointer;
  z-index: 1000;
  user-select: none;
  padding: 10px;
  background: transparent;
  border: none;
}

/* Footer */
.footer {
  background: #f9cce8;
  color: #222;
  text-align: center;
  padding: 1.5em 1em;
  font-family: 'Poppins', sans-serif;
  border-top: 2px solid #e3a4c3;
  box-shadow: inset 0 3px 6px rgba(255, 255, 255, 0.5);
  font-weight: 600;
  font-size: 1em;
  margin-top: auto;
}

.footer p {
  margin: 0;
  letter-spacing: 0.5px;
}

/* Botones sociales */
.social-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2;
}

.social-buttons a {
  width: 50px;
  height: 50px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.social-buttons img {
  width: 50px;
  height: 50px;
}

.social-buttons a:hover {
  transform: scale(1.1);
}

/* Responsive móvil */
@media (max-width: 600px) {
  .card {
    width: 100%;
  }

  .social-buttons a,
  .social-buttons img {
    width: 50px;
    height: 50px;
  }
}

/* Carrusel Desktop */
@media (min-width: 601px) {
  .modal-contenido {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .imagen-wrapper {
    max-height: 60vh;
    width: auto;
  }

  #imagenModal {
    max-height: 100%;
    width: 50;
  }

  .carrusel {
    max-width: 90%;
    display: flex;
    gap: 10px;
    overflow-x: auto;
  }

  .miniatura {
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
  }
}
.mensaje-ig {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  background: linear-gradient(90deg, #ff69b4, #ff85c1);
  color: white;
  padding: 18px 32px;
  font-size: 1.05rem;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  border-radius: 20px;
  width: calc(100% - 80px); /* margen lateral de 0px a cada lado */
  max-width: 900px; /* límite para pantallas grandes */
}

.mensaje-ig.visible {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  animation: slideDown 0.6s ease;
}

@keyframes slideDown {
  0% {
    transform: translateX(-50%) scale(0.8) translateY(-20px);
    opacity: 0;
  }
  100% {
    transform: translateX(-50%) scale(1) translateY(0);
    opacity: 1;
  }
}

.cerrar-ig {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 1.3rem;
  color: white;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.cerrar-ig:hover {
  transform: scale(1.2);
}
.mensaje-ig {
  pointer-events: auto;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.mensaje-ig.visible {
  opacity: 1;
  pointer-events: auto;
}

.mensaje-ig:not(.visible) {
  opacity: 0;
  pointer-events: none;
}
