
body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background: url('fondoapp.webp') no-repeat center center fixed;
  background-size: cover;
  color: #fff;
  height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5em;
  box-sizing: border-box;
  text-align: center;
  backdrop-filter: blur(6px);
  overflow: hidden;
}

/* Splash optimizado */
#splash-screen {
  position: fixed;
  z-index: 99999;
  inset: 0;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: zoomIn 0.6s ease;
}
#splash-screen img {
  width: 210px;
  height: 110px;
  opacity: 0.99;
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.4));
  animation: float 1.5s ease-in-out infinite;
}
#splash-screen.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}
@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
@keyframes float {
  0%   { transform: translateY(0px); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

/* Galería centrada y deslizable */
.gallery-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto 20px auto;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.gallery-scroll {
  display: flex;
  gap: 1em;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0 1em;
}
.gallery-scroll img {
  flex: 0 0 auto;
  width: auto;
  height: auto;
  max-height: 80vh;
  max-width: 80vw;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  scroll-snap-align: center;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.gallery-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}
.gallery-nav span {
  pointer-events: all;
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.2);
  color: white;
  padding: 8px 12px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
  transition: background 0.3s ease;
}
.gallery-nav span:hover {
  background: rgba(0, 0, 0, 0.4);
}

/* Burbujas sociales */
.bubbles.horizontal {
  display: flex;
  justify-content: center;
  gap: 0.8em;
  margin-bottom: 1em;
  flex-direction: row;
  flex-wrap: nowrap;
}
.bubbles.horizontal a:nth-child(2) { order: 2; }
.bubbles.horizontal a:nth-child(3) { order: 1; }
.bubbles.horizontal a:nth-child(1) { order: 3; }

.bubble {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid #fff;
  padding: 0.7em 1.4em;
  border-radius: 999px;
  text-decoration: none;
  color: #0f0d0d;
  font-weight: bold;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
  font-size: 1em; /* aumentado de 0.9em */
}
.bubble.small {
  font-size: 1em;
  padding: 0.6em 1.2em;
}
.bubble:hover {
  background: #fff;
  color: #faac03;
}
.instagram { border-color: #ff0000; }
.facebook  { border-color: #1101f4; }
.tiktok    { border-color: #000; }
.web       { border-color: #000000; }
.vcard     { border-color: #000000; }

/* Botón instalar App */
#install-btn {
  display: none;
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #f7db06;
  color: #000;
  padding: 0.8em 1.4em;
  border: none;
  border-radius: 999px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Acciones extra */
.extra-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.bubble.web,
.bubble.vcard {
  font-size: 0.9rem;
  padding: 6px 14px;
}

/* Formulario */
.contact-form {
  background-color: rgba(1, 3, 11, 0.968);
  padding: 1em;
  border-radius: 12px;
  max-width: 400px;
  margin: auto;
}
.contact-form h2 {
  margin-bottom: 0.7em;
  font-size: 1.4em;
  line-height: 1.4em;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8em;
  margin: 0.5em 0;
  border: none;
  border-radius: 10px;
  font-size: 1em;
}
.contact-form button {
  background: #25D366;
  border: none;
  padding: 0.8em 1.2em;
  font-size: 1em;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  transition: 0.3s;
}
.contact-form button:hover {
  background: #128C7E;
}

/* Responsivo */
@media (max-height: 700px), (max-width: 400px) {
  .container {
    padding: 1em;
  }

  .gallery-scroll img {
    width: 180px;
  }

  .bubbles.horizontal {
    gap: 6px;
    overflow-x: visible;
  }

  .bubble {
    padding: 0.4em 0.8em;
    font-size: 0.85em;
  }

  .contact-form h2 {
    font-size: 1.1em;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 0.9em;
    padding: 0.6em;
  }

  .contact-form button {
    font-size: 0.9em;
    padding: 0.6em 1em;
  }
}
