@font-face {
    font-family: 'Curvert';
    src: url('../fonts/Curvert.otf');
}

:root {
    --color_button_nav: #FF8301;
    --color_text_white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(-45deg, #ff8b07, #f38a11, #ff6904d2, #fa7c15);
    /* background: linear-gradient(-45deg, #ff8c00, #ff6600, #ffb84d, #ee9518); */
    background-size: 400% 400%;
    animation: moverFondo 3s ease infinite;
    font-family: 'Curvert', sans-serif;
    color: var(--color_text_white);
     position: relative;
}

@keyframes moverFondo {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
     100% { background-position: 0% 50%; }
}

.wrapper {
    display: flex;
     justify-content: center;
    align-items: center;
    height: 100%;
     position: relative;
    z-index: 1;
}

.mobiliario-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.mobiliario-container::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    top: -60px;
    left: 50%;
     transform: translateX(-50%);
    animation: pulsarBrillo 3s ease-in-out infinite;
    opacity: 0;
    animation-delay: 0.8s;
}

@keyframes pulsarBrillo {
    0%, 100% { opacity: 0; transform: translateX(-50%) scale(0.8); }
    50% { opacity: 1; transform: translateX(-50%) scale(1.2); }
}

.img_isoTipo {
    width: 280px;
    opacity: 0;
    transform: translateY(40px);
    animation: aparecer-logo 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    filter: drop-shadow(0 10px 30px rgba(255, 131, 1, 0.3));
    transition: filter 0.3s ease;
}

@keyframes aparecer-logo {
    0% { 
        opacity: 0; 
        transform: translateY(40px) scale(0.5) rotate(-5deg);
    }
    60% { 
        opacity: 1; 
        transform: translateY(-15px) scale(1.1) rotate(2deg);
    }
    80% {
        transform: translateY(5px) scale(0.95) rotate(-1deg);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

.titulo {
    font-size: 9rem;
    font-weight: 700;
    display: inline-flex;
    margin: 10px 0;
    position: relative;
}

.titulo::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: lineaExpansion 1.5s ease-out forwards;
    animation-delay: 2.5s;
     box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

@keyframes lineaExpansion {
     to { width: 100%; }
}

.titulo span {
    display: inline-block;
    opacity: 0;
    transform: translateY(80px) rotateX(-90deg);
    animation: aparecer-letras 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    text-shadow: 
        0 5px 15px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(255, 131, 1, 0.4);
    transition: all 0.3s ease;
}

.titulo span:hover {
    transform: translateY(-5px) scale(1.1);
    text-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(255, 131, 1, 0.6);
}

@keyframes aparecer-letras {
    0% { 
        opacity: 0; 
        transform: translateY(100px) rotateX(-90deg) scale(0.5);
        filter: blur(10px);
    }
    60% { 
        opacity: 1; 
        transform: translateY(-15px) rotateX(10deg) scale(1.15);
        filter: blur(0px);
    }
    80% {
        transform: translateY(5px) rotateX(-5deg) scale(0.95);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) rotateX(0deg) scale(1);
        filter: blur(0px);
    }
}

.subtitulo {
    font-family: 'Candara', sans-serif;
     font-size: 2.2rem;
    font-weight: 400;
    color: var(--color_text_white);
    opacity: 0;
    transform: translateY(20px);
    animation: aparecer-subtitulo 1.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    animation-delay: 2.2s;
    letter-spacing: 3px;
    margin-top: 10px;
    text-shadow: 
        0 3px 10px rgba(0, 0, 0, 0.3),
        0 0 20px rgba(255, 255, 255, 0.2);
    position: relative;
}

.subtitulo::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
         rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    top: 0;
    left: -100%;
    animation: shimmer 3s ease-in-out infinite;
    animation-delay: 3s;
}

@keyframes shimmer {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

@keyframes aparecer-subtitulo {
    0% { 
        opacity: 0; 
        transform: translateY(30px) scale(0.8);
        filter: blur(5px);
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

@keyframes encoger {
    0% {
        transform: scale(1);
        opacity: 1;
        filter: blur(0px);
    }
    100% {
        transform: scale(0);
        opacity: 0;
        filter: blur(6px);
    }
}

.encoger {
    animation: encoger 0.3s ease-in forwards;
}

body.fade-out {
    animation: fadeOutBackground 0.3s ease-out forwards;
}

@keyframes fadeOutBackground {
    to {
        opacity: 0;
        transform: scale(1.1);
    }
}

@media (min-width: 1600px) {
  .titulo {
    font-size: 12rem;
  }

  .subtitulo {
    font-size: 3rem;
  }

  .img_isoTipo {
    width: 340px;
  }

  .mobiliario-container::before {
    width: 550px;
    height: 550px;
  }
}

@media (max-width: 1599px) and (min-width: 1200px) {
  .titulo {
    font-size: 9rem;
  }

  .subtitulo {
    font-size: 2.2rem;
  }

  .img_isoTipo {
    width: 280px;
  }
}


@media (max-width: 1199px) and (min-width: 769px) {
  .titulo {
    font-size: 7rem;
  }

  .subtitulo {
    font-size: 1.8rem;
  }

  .img_isoTipo {
    width: 220px;
  }

  .mobiliario-container::before {
    width: 350px;
    height: 350px;
  }
}

@media (max-width: 768px) {
  .titulo {
    font-size: 4.5rem;
    letter-spacing: 2px;
  }

  .subtitulo {
    font-size: 1.4rem;
    letter-spacing: 2px;
  }

  .img_isoTipo {
    width: 180px;
  }

  .mobiliario-container::before {
    width: 250px;
    height: 250px;
    top: -30px;
  }

  body {
    background-size: 500% 500%;
  }
}

@media (max-width: 480px) {
  .titulo {
    font-size: 3rem;
    margin: 5px 0;
  }

  .subtitulo {
    font-size: 1.1rem;
    margin-top: 5px;
    letter-spacing: 1.5px;
  }

  .img_isoTipo {
    width: 140px;
  }

  .mobiliario-container::before {
    width: 200px;
    height: 200px;
    top: -20px;
  }

  body {
    background-size: 600% 600%;
  }
}

@media (max-width: 360px) {
  .titulo {
    font-size: 2.5rem;
  }

  .subtitulo {
    font-size: 1rem;
  }

  .img_isoTipo {
    width: 120px;
  }
}