/* style.css - CSS Variables and Styles */
:root {
    --color-1: #c26e01; /* Amarillo */
  --color-primary: #3B82F6; /* Azul principal */
  --color-success: #A7F3D0; /* Verde suave */
  --color-accent:  #C084FC; /* Púrpura */
  --color-warning: #FACC15; /* Amarillo */
}

body {
  padding-top: 4rem; /* Altura del navbar */
}

/* Botón primario reutilizable utilizando variable */
.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  transition: background-color .3s;
}
.btn-primary:hover {
  background-color: #2563EB; /* Azul más oscuro */
}

/* Shapes decorativas con variables */
.shape-1 {
  background-color: var(--color-success);
}
.shape-2 {
  background-color: var(--color-accent);
}
.shape-3 {
  background-color: var(--color-warning);
}
/* Animaciones generales */
.animate-float {
    animation: float 6s ease-in-out infinite;
}
.animate-rotate {
    animation: rotate 10s linear infinite;
}
.animate-bounce-slow {
    animation: bounce-slow 5s ease-in-out infinite;
}

@keyframes float {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}
@keyframes rotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes bounce-slow {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-10px); }
}

/* Movimiento lento 3D */
@keyframes slowMovement {
    0%   { transform: translate(0,0) rotate(0deg); }
    50%  { transform: translate(10px,10px) rotate(10deg); }
    100% { transform: translate(0,0) rotate(0deg); }
}
.animate-slow-move {
    animation: slowMovement 10s ease-in-out infinite;
}

/* Estilos 3D para sección custom-mueble */
#custom-mueble {
    perspective: 1000px;
    background: linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(230,230,230,1) 100%);
}
#custom-mueble h2, #custom-mueble p {
    text-shadow: 2px 4px 10px rgba(0,0,0,0.3);
}
#custom-mueble select,
#custom-mueble button {
    box-shadow: 0 6px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#custom-mueble button:hover,
#custom-mueble select:focus {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.3);
}
#mueble-preview {
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
#mueble-preview:hover {
    transform: rotateX(10deg) rotateY(10deg);
    box-shadow: 0 12px 20px rgba(0,0,0,0.4);
}

/* Ocultar botones Flickity */
.flickity-prev-next-button {
    display: none !important;
}

/* Carrusel de imágenes */
.carousel-cell {
    width: 100%;
    height: auto;
    margin: 0 10px;
    transition: transform 0.4s ease-in-out;
}
.carousel-cell img {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.carousel-cell .description {
    transform: translateY(50%);
    transition: transform 0.5s ease;
}
.carousel-cell:hover .description {
    transform: translateY(0);
}

/* Fade-in de títulos */
h2 {
    animation: fadeInUp 1s ease-out;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Fade-in Up */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fadeInUp {
  animation: fadeInUp 1s ease-out forwards;
}
.animate-delay-200 {
  animation-delay: 0.2s;
}

/* Botón primario reutilizable */
.btn-primary {
  @apply bg-blue-500 hover:bg-blue-600 text-white font-medium py-2 px-4 rounded-lg;
  transition: background-color .3s;
}

/* Overlay del carousel */
.overlay {
  @apply absolute inset-0 bg-black bg-opacity-25;
  transition: background-opacity .3s;
}

/* Shapes decorativas: posición, tamaño y color */
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: .7;
}
.shape-1 {
  top: -2rem; left: 4rem;
  width: 12rem; height: 12rem;
  background-color: #A7F3D0;
}
.shape-2 {
  bottom: -8rem; right: 6rem;
  width: 14rem; height: 14rem;
  background-color: #C084FC;
}
.shape-3 {
  top: 5rem; right: 2.5rem;
  width: 8rem; height: 8rem;
  background-color: var(--color-warning);
}

/* Slow 3D movement (ya tenías) */
@keyframes slowMovement {
  0%   { transform: translate(0,0) rotate(0deg); }
  50%  { transform: translate(10px,10px) rotate(10deg); }
  100% { transform: translate(0,0) rotate(0deg); }
}
.animate-slow-move {
  animation: slowMovement 10s ease-in-out infinite;
}
.animation-delay-2000 { animation-delay: 2s; }
.animation-delay-4000 { animation-delay: 4s; }

