/* === CAROUSEL === */
.carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    margin: 2rem 0;
    padding-bottom: 1rem;
}
.carousel-item {
    flex: 0 0 auto;
    width: 300px;
    height: 300px;
    scroll-snap-align: start;
    margin-right: 1rem;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hovered-element {
    max-height: 300px;
    width: auto;
}
.carousel-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}
.carousel-title {
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: #2d3748;
}
.carousel::-webkit-scrollbar {
    height: 8px;
}
.carousel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}
.carousel::-webkit-scrollbar-thumb {
    background: #38b2ac;
    border-radius: 10px;
}
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
    transition: all 0.3s ease;
    border: none;
}
.carousel-nav:hover {
    background: #38b2ac;
    color: white;
}
.carousel-nav.prev { left: 10px; }
.carousel-nav.next { right: 10px; }

/* === Responsive w-32 custom === */
.w-32 { width: 5rem !important; }
@media (min-width: 640px) { .w-32 { width: 6rem !important; } }
@media (min-width: 768px) { .w-32 { width: 8rem !important; } }
@media (min-width: 1024px) { .w-32 { width: 8rem !important; } }

@media (min-width: 1024px) {
  #annotated {
    width: 39%;
    margin-left: 30%;
  }
}

/* === HERO & FEATURES === */
.hero-gradient {
    background: linear-gradient(135deg, #f0fff4 0%, #e6fffa 100%);
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
                0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.testimonial-card { transition: all 0.3s ease; }
.testimonial-card:hover { transform: scale(1.03); }
.how-it-works-step { position: relative; }

/* === Heat-wave effet === */
.heat-wave { position: relative; overflow: hidden; }
.heat-wave:after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(254,215,170,0.4) 0%, rgba(254,215,170,0) 70%);
    transform: rotate(30deg);
    animation: heatPulse 6s infinite;
}
@keyframes heatPulse {
    0%   { transform: rotate(30deg) scale(1); opacity: 0.4; }
    50%  { transform: rotate(30deg) scale(1.1); opacity: 0.2; }
    100% { transform: rotate(30deg) scale(1); opacity: 0.4; }
}

/* === NOTIFICATION flottante === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeOutDown {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(20px); }
}
.animate-fade-in-up { animation: fadeInUp 0.5s ease-out; }
.animate-fade-out-down { animation: fadeOutDown 0.5s ease-in; }
