﻿/* --- Estilos base (móviles primero) --- */
    body {
      margin: 0;
      padding: 0;
      overflow-x: hidden;
    }

    svg {
      position: relative;
      display: block;
    }

    polygon {
      fill: rgb(255 255 255 / 0%);
      stroke-width: 2;
      cursor: pointer;
      transition: fill 0.3s ease, transform 0.3s ease;
      transform-origin: center;
    }

    polygon:hover {
      fill: rgba(0, 0, 0, 0.4);
    }

    /* Tooltip */
    .tooltip {
      position: absolute;
      background: rgba(0, 0, 0, 0.75);
      color: #fff;
      padding: 5px 10px;
      border-radius: 6px;
      font-size: 14px;
      pointer-events: none;
      opacity: 0;
      transition: opacity 0.2s ease;
      white-space: nowrap;
      z-index: 100;
    }

    /* Contenedor de imagen flotante */
    .floating-image-container {
      position: absolute;
      top: 30%;
      left: 50%;
      transform: translate(-50%, -50%);
      z-index: 50;
      pointer-events: none;
      transition: left 2s linear, opacity 0.3s ease;
    }
   .floating-image {
      width: 500px;
      height: 500px;
      object-fit: contain;
      animation: float 3s ease-in-out infinite;
      cursor: pointer;
      pointer-events: auto;
    }
  .floating-image:hover {
      filter: brightness(1.2);
    }

    /* Animación de flotación sutil */
    @keyframes float {
      0%, 100% {
        transform: translateY(0px);
      }
      50% {
        transform: translateY(-10px);
      }
    }

    /* Estados de movimiento */
    .floating-image-container.moving-right {
      left: 130%;
      opacity: 1;
    }

    .floating-image-container.hidden-left {
      left: -10%;
      opacity: 0;
      transition: none;
    }

    .floating-image-container.moving-center {
      left: 50%;
      opacity: 1;
    }

    /* Trail effect */
    .trail {
      position: absolute;
      width: 8px;
      height: 8px;
      background: rgba(135, 206, 250, 0.6);
      border-radius: 50%;
      pointer-events: none;
      animation: trailFade 1s ease-out forwards;
      z-index: 40;
    }

    @keyframes trailFade {
      0% {
        transform: scale(1);
        opacity: 1;
      }
      100% {
        transform: scale(0);
        opacity: 0;
      }
    }

    /* Mensaje de bienvenida */
    .welcome-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.85);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      animation: fadeIn 0.5s ease;
    }

    .welcome-box {
      background: white;
      padding: 40px;
      border-radius: 15px;
      text-align: center;
      max-width: 500px;
      box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
      animation: slideUp 0.6s ease;
    }

    .welcome-box h1 {
      margin: 0 0 20px 0;
      color: #333;
      font-size: 28px;
    }

    .welcome-box p {
      margin: 0 0 30px 0;
      color: #666;
      font-size: 16px;
      line-height: 1.5;
    }

    .welcome-btn {
      background: #007bff;
      color: white;
      border: none;
      padding: 12px 30px;
      border-radius: 8px;
      font-size: 16px;
      cursor: pointer;
      transition: background 0.3s ease;
    }

    .welcome-btn:hover {
      background: #0056b3;
    }

    /* Mensaje de rotación */
    .rotate-message {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.9);
      z-index: 2000;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      color: white;
      text-align: center;
      padding: 20px;
    }

    .rotate-icon {
      font-size: 80px;
      margin-bottom: 20px;
      animation: rotate 2s ease-in-out infinite;
    }

    .rotate-message h2 {
      font-size: 24px;
      margin: 0 0 10px 0;
    }

    .rotate-message p {
      font-size: 16px;
      margin: 0;
    }

    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    @keyframes slideUp {
      from {
        opacity: 0;
        transform: translateY(50px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes rotate {
      0%, 100% { transform: rotate(0deg); }
      50% { transform: rotate(90deg); }
    }
/* --- para cel --- */
@media (max-height: 400px) {

    .floating-image {
      width: 150px;
      height: 150px;
    }
}
