﻿/* Product cards */
.product-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 8px;
    overflow: hidden;
}

    .product-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.12) !important;
    }

.product-img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-img {
    transform: scale(1.05);
}

/* Overlay con botón de vista previa */
.product-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0);
    opacity: 0;
    transition: opacity 0.25s ease, background 0.25s ease;
}

.product-card:hover .product-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.35);
}

/* Navbar */
.navbar-info {
    font-family: Roboto-Light;
    color: #ffffff;
    background-color: #748C70 !important;
}
.navbar-principal {
    background-color: rgba(0, 0, 0, 0) !important;
}
.navbar-brand {
    letter-spacing: -0.5px;
    font-family: Roboto-Bold;
    color: black !important;
}
.navbar-link {
    font-family: Roboto-Medium;    
}
.navbar .nav-link {    
    font-weight: 500;
    transition: color 0.15s ease;
}

    .navbar .nav-link:hover {
        
        color: #198754 !important;
    }

.nav-item {
    font-family: Roboto-Regular;
}

.btn-login {
    
    background-color: #748C70 !important;
}



/* Footer */
footer a:hover {
    color: #198754 !important;
}


/* Sticky footer styles
-------------------------------------------------- */
html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 300px; /* Margin bottom by footer height */
}

footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: #5A6D57 !important ;
}



/* Modal de imagen */
#imageModal .modal-body img {
    max-height: 70vh;
    object-fit: contain;
}



/* Mobile tweaks */
@media (max-width: 576px) {
    .product-img {
        aspect-ratio: 4 / 3;
    }
    body {
        margin-bottom: 450px; /* Margin bottom by footer height */
    }
    
}

/* Botón flotante del carrito */
.cart-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    z-index: 1065;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .cart-float:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 18px rgba(25, 135, 84, 0.5) !important;
    }

    .cart-float .badge {
        font-size: 0.7rem;
        padding: 0.35em 0.5em;
    }

/* El panel del carrito aparece justo arriba del botón */
#cartPanel {
    bottom: 100px;
    right: 24px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Ajustes para móvil */
@media (max-width: 576px) {
    .cart-float {
        bottom: 20px;
        right: 16px;
        width: 56px;
        height: 56px;
        font-size: 20px;
    }

    #cartPanel {
        right: 12px !important;
        bottom: 90px !important;
    }
}

/* Hero carousel */
.hero-carousel {
    background-color: #f1f3f5;
    position: relative;
    margin-bottom: 2rem;
    padding: 3rem 0;
}

.hero-row {
    min-height: 420px;
}

/* Texto del hero */
.hero-text {
    padding: 2rem 1rem;
}

.hero-title {
    font-family: Roboto-Bold;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 500;
    color: #212529;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-family: Roboto-Light;
    font-size: clamp(0.95rem, 1.4vw, 1.15rem);
    color: #495057;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Imagen del hero */
.hero-image-col {
    padding: 1rem;
}

.hero-img {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.hero-carousel .carousel-item.active .hero-img {
    animation: hero-zoom 6s ease-out forwards;
}

@keyframes hero-zoom {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.05);
    }
}

/* Flechas de navegación (verde tenue) */
.hero-carousel .hero-control {
    width: 48px;
    opacity: 0.4;
    transition: opacity 0.2s ease;
    filter: invert(48%) sepia(79%) saturate(450%) hue-rotate(90deg) brightness(95%) contrast(85%);
}

    .hero-carousel .hero-control:hover {
        opacity: 0.9;
    }

    .hero-carousel .hero-control .carousel-control-prev-icon,
    .hero-carousel .hero-control .carousel-control-next-icon {
        width: 2rem;
        height: 2rem;
        background-size: 100% 100%;
    }

/* Indicadores (puntitos abajo) */
.hero-indicators {
    margin-bottom: 0.5rem;
}

    .hero-indicators [data-bs-target] {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: #198754;
        opacity: 0.35;
        border: none;
        margin: 0 5px;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .hero-indicators .active {
        opacity: 1;
        transform: scale(1.2);
    }

/* Ajustes para móvil */
@media (max-width: 768px) {
    .hero-carousel {
        padding: 2rem 0;
    }

    .hero-row {
        min-height: auto;
    }

    .hero-text {
        padding: 1rem 0.5rem;
        text-align: center;
    }

    .hero-image-col {
        order: -1; /* La imagen va arriba en móvil */
        padding-bottom: 0;
    }

    .hero-img {
        max-height: 260px;
    }

    .hero-carousel .hero-control {
        width: 32px;
    }
}

/* Fuentes especiales */
@font-face {
    font-family: 'Roboto-Bold';
    src: url('/fonts/Roboto-Bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto-Light';
    src: url('/fonts/Roboto-Light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Roboto-Medium';
    src: url('/fonts/Roboto-Medium.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Roboto-Regular';
    src: url('/fonts/Roboto-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Roboto-Thin';
    src: url('/fonts/Roboto-Thin.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


