@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");
@import url('https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css');
@import url('https://fonts.cdnfonts.com/css/self-deception');

/* ======== ESTILOS BASE ======== */
body {
    font-family: "Poppins", sans-serif;
    background: linear-gradient(135deg, #ffd6e8, #ffe6f9, #fddde6);
    background-size: 300% 300%;
    animation: gradientBG 12s ease infinite;
    margin: 0;
    color: #333;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ======== CARRUSEL ======== */
.carousel-inner img {
    max-height: 400px;
    object-fit: contain;
    width: 100%;
    height: 100%;
    background-color: #fff;
    transition: transform 0.4s ease-in-out, filter 0.4s ease;
}
.carousel-inner img:hover {
    transform: scale(1.04);
    filter: brightness(1.05);
}

@media (max-width: 768px) {
    .carousel-inner img { max-height: 250px; }
    .carousel-caption h5 { font-size: 14px; }
    .carousel-caption p { font-size: 12px; }
}
@media (max-width: 480px) {
    .carousel-inner img { max-height: 180px; }
}

/* ======== BOTONES CARRUSEL CON FLECHAS DINÁMICAS ======== */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-image: none;
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff4081, #f50057);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(255,64,129,0.4);
    transition: all 0.4s ease;
    position: relative;
}

.carousel-control-prev-icon::after,
.carousel-control-next-icon::after {
    font-size: 22px;
    font-weight: bold;
    color: #000; /* Flecha negra por defecto */
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.carousel-control-prev-icon::after { content: '<'; }
.carousel-control-next-icon::after { content: '>'; }

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    background: linear-gradient(135deg, #f50057, #c51162);
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 6px 18px rgba(245,0,87,0.6);
}

.carousel-control-prev:hover .carousel-control-prev-icon::after,
.carousel-control-next:hover .carousel-control-next-icon::after {
    color: #fff; /* Flecha blanca al hover */
    text-shadow: 0 0 8px #fff, 0 0 12px #ff4081, 0 0 16px #f50057;
}


/* Texto carrusel */
.carousel-caption {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translateX(-8%);
    width: 85%;
    text-align: center;
    background: rgba(255, 255, 255, 0.85);
    padding: 10px;
    border-radius: 10px;
    color: black;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInUp 1.5s ease-in-out;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.carousel-caption h5 {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 5px;
    color: #ff4081;
}
.carousel-caption p {
    font-size: 1rem;
    margin-bottom: 0;
}

/* Animación */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ======== SCROLLBAR ======== */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #ff80ab, #ff4081);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #f50057, #c51162);
}

/* ======== CATEGORÍAS ======== */
.container { max-width: 1200px; }
.row { row-gap: 35px; }

.card {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.85));
    box-shadow: 0 6px 15px rgba(255,64,129,0.15);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(255,64,129,0.25);
}

.card-img-top {
    width: 100%;
    height: 150px;
    object-fit: contain;
    padding: 10px;
    background: #fff;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.card-body {
    text-align: center;
    padding: 15px;
    margin-top: 15px;
}
.card-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ff4081;
}

/* Botones categorías */
.btn-categoria {
    background: linear-gradient(90deg, #ff4081, #f50057) !important;
    color: white !important;
    font-weight: 500;
    border-radius: 5px;
    padding: 6px 14px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 3px 8px rgba(255,64,129,0.3);
}
.btn-categoria:hover {
    background: linear-gradient(90deg, #f50057, #c51162) !important;
    transform: scale(1.07);
    box-shadow: 0 5px 12px rgba(255,64,129,0.4);
}

/* Responsividad */
@media (max-width: 768px) {
    .categorias1 ul, .categorias2 ul { flex-direction: column; align-items: center; }
    .categorias1 li, .categorias2 li { width: 85%; }
    .categorias1 li img, .categorias2 li img { width: 50px; }
}
@media (max-width: 480px) {
    .categorias1 li img, .categorias2 li img { width: 45px; }
}