@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700&display=swap');

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
    font-family: 'Poppins', sans-serif;
    background-color: #f5f5f5;
    color: #333;
}

.main-content {
    flex: 1;
}

/* Colores principales */
:root {
    --color-primario: #1D1F2A; /* Azul marino oscuro */
    --color-secundario: #FFD700; /* Dorado */
    --color-fondo: #f5f5f5;
    --color-blanco: #ffffff;
    --color-texto: #333;
}

/* Top Bar */
.top-bar {
    background: var(--color-primario);
    color: var(--color-secundario);
    font-size: 0.9rem;
    border-bottom: 2px solid var(--color-secundario);
}

/* Footer */
.footer {
    background-color: var(--color-primario);
    color: #fff;
    padding: 20px 0;
    width: 100%;
    background-image: linear-gradient(to right, var(--color-primario) 0%, #17181f 100%);
}

.footer a {
    color: var(--color-secundario);
    text-decoration: none;
}

.footer a:hover {
    color: #fff;
}

.icono-footer {
    margin-right: 10px;
    color: var(--color-secundario);
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 768px) {
    .footer .container {
        flex-direction: row;
        justify-content: space-around;
    }
    .footer p {
        margin: 0 15px;
    }
}

body {
    background-color: var(--color-fondo);
    color: var(--color-texto);
}

/* Navbar */
.navbar {
    background-color: var(--color-primario);
    padding: 0.75rem 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar-brand img {
    border: 2px solid var(--color-secundario);
    border-radius: 50%;
}

.navbar-nav .nav-link,
.navbar-brand,
.navbar-text {
    color: #ffffff;
    font-weight: 500;
    text-transform: uppercase;
}

.navbar-nav .nav-link:hover {
    color: var(--color-secundario);
    text-decoration: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* Breadcrumb */
.breadcrumb {
    background: none;
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.breadcrumb-item a {
    color: var(--color-primario);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
    color: var(--color-secundario);
}


.navbar-nav .nav-link:hover {
    color: var(--color-secundario);
    text-decoration: none;
}

/* Dropdown */
.dropdown-menu {
    border: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.dropdown-item {
    color: #333;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: var(--color-secundario);
    color: #fff;
}

/* Íconos del nav */
.nav-link i {
    color: var(--color-secundario);
    font-size: 1.3rem;
}

/* Responsive barra negra mobile */
@media (max-width: 768px) {
    .d-flex.ml-auto {
        background: var(--color-primario);
        width: 100%;
        justify-content: flex-end;
        padding-right: 15px;
    }
    .d-flex.ml-auto .nav-link i {
        color: var(--color-secundario);
    }
}

.categoria-activa {
    font-weight: bold;
    color: #fff;
    background-color: var(--color-secundario);
    width: 100% !important;
    display: block;
    padding: 5px 10px;
    border-radius: 8px;
    margin-bottom: 4px;
}

/* Hero Section */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: auto;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(29,31,42,0.6);
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 4px 6px rgba(0,0,0,0.3);
    color: var(--color-secundario);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 30px;
}

.btn-hero {
    background-color: var(--color-secundario);
    color: var(--color-primario);
    font-weight: 600;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    transition: background-color 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.btn-hero:hover {
    background-color: #e5c100;
    color: #fff;
}

/* Separadores Decorativos */
.decorative-hr {
    border: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-secundario), transparent);
    width: 80%;
    margin: 40px auto;
}

/* Títulos de sección */
.section-title {
    font-weight: 700;
    color: var(--color-primario);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-secundario);
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

/* Carrusel de clientes */
.carousel-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    background: #fff;
    border-top: 2px solid var(--color-secundario);
    border-bottom: 2px solid var(--color-secundario);
    padding: 20px 0;
}

.slide-track {
    display: flex;
    animation: scroll 30s linear infinite;
}

.slide {
    height: 100px;
    width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 20px;
}

.slide img {
    height: 80px;
    object-fit: contain;
    opacity: 0.8;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Testimonios */
.testimonios .testimonial-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-secundario);
}

.testimonial-text {
    font-size: 1rem;
    font-style: italic;
    color: #555;
    margin-bottom: 10px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-primario);
}

.stars i {
    color: var(--color-secundario);
    margin: 0 2px;
}

/* Beneficios */
.beneficios .fa {
    font-size: 2.5rem;
    color: var(--color-primario);
    margin-bottom: 10px;
}

.beneficios p {
    font-weight: 500;
    font-size: 1rem;
    color: #333;
}

/* Productos */
.productos .card {
    margin-bottom: 20px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background: #fff;
}

.card-header {
    font-size: 1.2rem;
    padding: 10px;
    text-align: center;
    font-weight: 700;
    background-color: var(--color-primario);
    color: var(--color-secundario);
    border-radius: 10px 10px 0 0;
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.card-title {
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 600;
}

.card-text {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #444;
}

.card-img-top {
    max-height: 180px;
    object-fit: contain;
    margin-bottom: 10px;
    padding: 10px;
}

.card .btn {
    margin-top: 10px;
    background-color: var(--color-secundario);
    color: var(--color-primario);
    font-weight: 600;
    border: none;
    transition: background-color 0.3s;
    border-radius: 20px;
    padding: 8px 20px;
}

.card .btn:hover {
    background-color: #e5c100;
    color: #fff;
}

/* Botones */
.btn-primary {
    background-color: var(--color-primario);
    border: none;
    color: var(--color-secundario);
    font-weight: 600;
    border-radius: 30px;
    padding: 10px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--color-secundario);
    color: var(--color-primario);
}

/* Newsletter */
.newsletter-section {
    background: #fff;
    border-top: 2px solid var(--color-secundario);
    border-bottom: 2px solid var(--color-secundario);
}

.newsletter-section .form-control {
    border-radius: 30px;
    border: 1px solid #ccc;
    padding: 10px 20px;
}

.newsletter-section .btn-hero {
    background-color: var(--color-secundario);
    color: var(--color-primario);
    border-radius: 30px;
    padding: 10px 20px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.newsletter-section .btn-hero:hover {
    background-color: #e5c100;
    color: #fff;
}

/* Whatsapp */
.whatsapp {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 10px;
    z-index: 1000;
}

@media (max-width: 768px) {
    .whatsapp {
        display: block;
        width: 60px;
        right: 0px;
        bottom: 15%;
    }
}

/* Sticky footer adjustments */
.main-content {
    padding-bottom: 100px;
}

/* Ajustes del carrito */
#cart-icon, #cart-icon-mobile {
    font-size: 1.5rem;
    color: var(--color-secundario);
}

#cart-count, #cart-count-mobile {
    background-color: #FF0000;
    color: #fff;
    font-weight: 700;
    border-radius: 50%;
}
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}


/* Ajustes específicos para mobile */
@media (max-width: 768px) {
    .hero-title {
        font-size: 1rem; /* Reduce el tamaño del título */
        line-height: 1rem; /* Ajusta el espacio entre líneas */
    }

    .hero-subtitle {
        font-size: 1rem; /* Reduce el tamaño del subtítulo */
        line-height: 1.2rem; /* Ajusta el espacio entre líneas */
        margin-bottom: 10px; /* Reduce el espacio inferior */
    }

    .hero-content {
        padding: 20px; /* Agrega un margen interno para mejor alineación */
    }

    .btn-hero {
        font-size: 0.9rem; /* Ajusta el tamaño del botón */
        padding: 8px 15px; /* Reduce el padding del botón */
        border-radius: 20px; /* Mantén las esquinas redondeadas */
    }

    .hero-overlay {
        background: rgba(29, 31, 42, 0.7); /* Aumenta la opacidad para mayor contraste */
    }
}
