/* Estilos para el botón flotante vertical de "Cotizar Ahora" */
.cotizar-flotante {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: translateY(-50%) rotate(180deg);
}

/* Patrón de puntos del fondo oscuro en la sección de inicio */
.bg-pattern {
    background-image: radial-gradient(#ffffff 0.5px, transparent 0.5px);
    background-size: 10px 10px;
}

/* Para quitar el borde por defecto del mapa de Google */
.mapa-iframe {
    border: 0;
}

/* Scrollbar hide for carousel */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

#destinos-carousel {
    scroll-snap-type: x mandatory;
    padding-inline: 1rem;
    scroll-padding-inline: 1rem;
}

#destinos-carousel > * {
    scroll-snap-align: start;
    flex-shrink: 0;
}

#destinos-carousel > div {
    min-width: 280px;
    max-width: 360px;
    flex: 0 0 auto;
}

@media (min-width: 768px) {
    #destinos-carousel > div {
        min-width: 340px;
        max-width: 380px;
    }
}

@media (min-width: 1024px) {
    #destinos-carousel > div {
        min-width: 400px;
        max-width: 420px;
    }
}

#destinos-carousel div[class*="h-[calc(100%-14rem)]"] {
    height: auto;
}

#destinos-carousel p,
#destinos-carousel li {
    font-size: 0.96rem;
}

.mapa-iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
}

/* Custom animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#flipper {
    transition: transform 0.7s ease;
    transform-style: preserve-3d;
}

#flipper.flipped {
    transform: rotateY(180deg);
}

#flipper > div {
    backface-visibility: hidden;
}

@keyframes bounceSubtle {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Animation delays */
.animation-delay-100 {
    animation-delay: 0.1s;
}

.animation-delay-200 {
    animation-delay: 0.2s;
}

.animation-delay-300 {
    animation-delay: 0.3s;
}

.animation-delay-400 {
    animation-delay: 0.4s;
}

.animation-delay-600 {
    animation-delay: 0.6s;
}

/* Gradient borders */
.border-gradient-to-r {
    border-image: linear-gradient(to right, #3b82f6, #8b5cf6) 1;
}

/* Backdrop blur support */
@supports (backdrop-filter: blur(10px)) {
    .backdrop-blur-md {
        backdrop-filter: blur(10px);
    }
}

/* Smooth transitions for all interactive elements */
* {
    transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 300ms;
}

/* Focus styles for accessibility */
button:focus,
a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Loading state for buttons */
button:active {
    transform: scale(0.98);
}