:root {
  --color-primary: #e63946;   /* Rojo japonés */
  --color-secondary: #fff;    /* Texto claro */
  --color-dark: #000;         /* Fondo negro */
  --color-accent: #222;       /* Gris oscuro */
  --font-main: 'Poppins', sans-serif;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-dark);
  color: var(--color-secondary);
  margin: 0;
  padding: 0;
  text-align: center;
}

/* Header */
.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.logo {
  position: relative; /* antes estaba absolute */
}

.logo img {
  width: 180px;
  height: auto;
  margin-bottom: 10px;
}

.welcome-text h1 {
  color: #f5f5f5;
  font-size: 1.6em;
  font-weight: 300;
  margin: 0;
}

header {
  background-color: var(--color-dark);
  padding: 15px;
  height: auto; /* elimina altura fija */
  margin-bottom: 10px;
}

/* Menú */
.menu-section {
  margin-top: -40px; /* mueve hacia arriba */
  text-align: center;
  padding: 20px 10px;
}
.menu-section h2 {
  color: #d4af37;
}
.menu-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}
.menu-item {
  background-color: #1a1a1a;
  border-radius: 8px;
  width: 280px;
  padding: 15px;
  transition: transform 0.3s ease;
}
.menu-item:hover {
  transform: translateY(-5px);
}
.menu-item img {
  width: 100%;
  border-radius: 8px;
}

/* Botón */
.button {
  display: inline-block;
  background-color: var(--color-primary);
  color: var(--color-secondary);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  margin-top: 1rem;
  transition: background-color 0.3s ease;
}
.button:hover {
  background-color: #d62828;
}

/* Footer */
footer {
  background-color: #1a1a1a;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
  color: #aaa;
}

/* Responsive */
@media (max-width: 768px) 
{
  .logo img {
    width: 120px;
    margin-bottom: 8px;
  }

  .welcome-text h1 {
    font-size: 1em;   /* más pequeño en celular */
    line-height: 1.3;
    padding: 0 8px;
  }

  .menu-items {
    flex-direction: column;
    align-items: center;
  }

  .menu-item {
    width: 90%;
  }

  iframe.map {
    width: 100%;
    height: 250px;
  }

  .button {
    display: block;
    width: 90%;
    margin: 10px auto;
  } 
  .whatsapp-float {
    bottom: 80px; /* súbelo un poco para que no tape el footer ni botones */
    right: 15px;
  }
}

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  border-radius: 50%;
  text-align: center;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
  z-index: 999; /* asegúrate que quede por encima de otros elementos */
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
  margin-top: 12px;
}

/* Girar */
.contenedor {
  perspective: 1000px;
  width: 300px;
  margin: 20px auto;
}

.rotar-3d {
  width: 100%;
  transform-style: preserve-3d;
  animation: girar3D 25s linear infinite;
}

@keyframes girar3D {
  from { transform: rotateY(0deg) rotateX(0deg); }
  to { transform: rotateY(360deg) rotateX(360deg); }
}
.instagram-link {
  margin-left: 10px; /* espacio entre el texto y el ícono */
  vertical-align: middle;
}

.instagram-icon {
  width: 30px;  /* ajusta el tamaño según tu diseño */
  height: 30px;
}
