* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #f2f2f2;
    color: #5d4828;
    line-height: 1.6;
}

.announcement-bar {
    background-color: #1c5272;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
    width: 100%;
    padding: 0.5rem 0;
    z-index: 1001;
    position: fixed;
    top: 0;
}

.announcement-text {
    display: inline-block;
    animation: scroll 25s linear infinite;
    padding-right: 100%;
}

.announcement-text::after {
    content: "ENVÍO GRATUITO DESDE $100.000 - Descubre nuestros uniformes y insumos médicos - ¡Compra ahora!";
    position: absolute;
    top: 0;
    left: 100%;
    white-space: nowrap;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.announcement-text:hover {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .announcement-text {
        font-size: 0.8rem;
    }
}

header {
    background-color: #ffffff;
    padding: 0.5rem;
    text-align: center;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    height: 60px;
    position: relative;
    top: 2.5rem;
}

.logo {
    margin-left: 1rem;
}
.logo-img {
    height: 80px;
    width: auto;
    max-width: 100%;
    margin-top: 0.5rem;
}

nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-right: 1rem;
}
nav a {
    color: #1a2a44;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: color 0.3s ease;
}
nav a:hover {
    color: #1a73e8;
}

.nav-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-container {
    display: flex;
    align-items: center;
    background-color: #f0f4f8;
    border-radius: 5px;
    padding: 14px;
}
.search-icon, .tienda-icon, .user-icon {
    height: 20px;
    width: 20px;
    cursor: pointer;
}
#search-input {
    border: none;
    outline: none;
    padding: 5px;
    font-size: 0.9rem;
    width: 150px;
    background: transparent;
}

.banner {
    padding: 4rem 2rem;
    text-align: center;
    position: relative;
    min-height: 600px;
    animation: fadeIn 1.5s ease-in;
    margin-top: 0;
}
.banner-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}
.banner-image .banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.banner-content {
    position: relative;
    z-index: 1;
    color: #1a2a44;
    max-width: 500px;
    margin-top: 10rem;
    margin-left: 2rem;
    text-align: left;
}
.banner-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 700;
}
.banner-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    font-weight: 400;
}
.btn-buy {
    display: inline-block;
    background-color: #4c6dbb; /* Azul base inspirado en uniformes */
    color: #ffffff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}
.btn-buy:hover {
    background-color: #1c5272; /* Azul más oscuro */
}

footer {
    background-color: #1a2a44; /* Gris oscuro inspirado en uniformes */
    color: #87ceeb;
    text-align: center;
    padding: 2rem;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 0.5rem;
        top: 2.5rem;
        height: auto;
    }
    nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    nav a {
        margin: 0.5rem 0;
    }
    .nav-icons {
        margin: 0.5rem 0;
    }
    .banner {
        padding: 2rem 1rem;
        margin-top: 0;
    }
    .banner-content h1 {
        font-size: 1.5rem;
    }
    .search-icon, .tienda-icon, .user-icon {
        height: 20px;
        width: 20px;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.carousel-section {
    padding: 1rem;
    background-color: #f0f4f8; /* Gris claro inspirado en uniformes */
    text-align: center;
}

.uniforms-carousel {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 12.5%; /* 4 diapositivas visibles en desktop */
    box-sizing: border-box;
    padding: 0 10px;
}

.carousel-slide img {
    width: 100%;
    height: 300px; /* Tamaño fijo para consistencia con 600px x 600px */
    object-fit: cover; /* Asegura que la imagen se ajuste sin distorsionarse */
    display: block;
    border-radius: 5px;
}

.slide-title {
    font-size: 0.9rem;
    margin: 0.5rem 0;
    color: #1a2a44;
    font-weight: bold;
}

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(28, 82, 114, 0.5); /* Azul inspirado en uniformes */
    color: #ffffff;
    border: none;
    padding: 1px;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
}

.carousel-prev {
    left: 2px;
}

.carousel-next {
    right: 2px;
}

.carousel-dots {
    text-align: center;
}

.carousel-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #bbb;
    border-radius: 50%;
    margin: 5px;
    cursor: pointer;
}

.carousel-dot.active {
    background-color: #ff9900; /* Naranja inspirado en uniformes */
}

.category-links {
    display: flex;
    justify-content: space-between; /* Distribución uniforme entre elementos */
    flex-wrap: wrap; /* Permite que los elementos se ajusten en múltiples filas */
    margin: 2rem 1rem; /* Margen exterior para mejor espaciado */
    background-color: #e6f0fa; /* Fondo azul claro */
    padding: 1rem; /* Padding para evitar que los elementos toquen los bordes */
    gap: 1rem; /* Espacio entre elementos */
}

.category-item {
    text-align: center;
    flex: 0 0 200px; /* Ancho fijo en desktop */
}

.category-item img {
    width: 100%; /* Ocupa el ancho del contenedor */
    height: auto; /* Mantiene la proporción (800px x 1000px → 200px x 250px) */
    object-fit: cover; /* Asegura que no se distorsione */
    border-radius: 5px;
    display: block;
}

.category-item p {
    font-size: 1rem;
    margin-top: 0.5rem;
    color: #1a2a44;
    font-weight: 600; /* Para mejor legibilidad */
}

.category-item a {
    text-decoration: none;
}

/* Responsividad para tablets */
@media (max-width: 768px) {
    .category-item {
        flex: 0 0 150px; /* Ancho reducido para tablets */
    }
    .category-item img {
        /* 150px de ancho → altura proporcional ~187.5px (relación 4:5) */
        width: 100%;
        height: auto;
    }
    .category-item p {
        font-size: 0.9rem; /* Texto más pequeño para mejor ajuste */
    }
    .carousel-slide {
        min-width: 50%; /* 2 diapositivas en tablets */
    }
    .carousel-slide img {
        height: 200px; /* Ajuste para tablets */
    }
}

/* Responsividad para móviles */
@media (max-width: 480px) {
    .category-links {
        justify-content: center; /* Centra los elementos en móviles */
    }
    .category-item {
        flex: 0 0 120px; /* Ancho aún más pequeño para móviles */
    }
    .category-item img {
        /* 120px de ancho → altura proporcional ~150px (relación 4:5) */
        width: 100%;
        height: auto;
    }
    .category-item p {
        font-size: 0.8rem; /* Texto aún más pequeño */
    }
    .carousel-slide {
        min-width: 100%; /* 1 diapositiva en móviles */
    }
    .carousel-slide img {
        height: 150px; /* Ajuste para móviles */
    }
}

.best-sellers {
    padding: 2rem;
    background-color: #f8f1e6; /* Naranja claro inspirado en uniformes */
    text-align: center;
}

.best-sellers h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #1a2a44;
}

.products-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.product-card {
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 1rem;
    width: 200px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.product-card h3 {
    font-size: 1rem;
    margin: 0.5rem 0;
    color: #1a2a44;
}

.product-card .price {
    font-size: 0.9rem;
    color: #1a73e8;
    margin-bottom: 0.5rem;
}

.add-to-cart {
    background-color: #4c6dbb;
    color: #ffffff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.add-to-cart:hover {
    background-color: #1c5272;
}

.subscription-section {
    padding: 4rem 2rem;
    background-color: #e6f3e6; /* Verde claro inspirado en blanco grisáceo */
    text-align: center;
    margin-bottom: 2rem;
}

.subscription-promo {
    margin-bottom: 2rem;
}

.subscription-promo h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a2a44;
    margin-bottom: 1rem;
}

.promo-details {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.promo-details p {
    font-size: 1rem;
    color: #1a2a44;
    margin: 0;
}

.subscribe-button {
    background-color: #4c6dbb;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.subscribe-button:hover {
    background-color: #1c5272;
}

.subscription-form-container {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.subscription-form-container h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a2a44;
    margin-bottom: 1rem;
}

.subscription-form-container p {
    font-size: 1.2rem;
    color: #1a2a44;
    margin-bottom: 1.5rem;
}

.subscription-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.subscription-form input {
    padding: 0.75rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
    outline: none;
}

.subscription-form button {
    background-color: #4c6dbb;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
    align-self: flex-start;
}

.subscription-form button:hover {
    background-color: #1c5272;
}

@media (max-width: 768px) {
    .subscription-promo h2 {
        font-size: 1.5rem;
    }

    .promo-details {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }

    .subscription-form-container h2 {
        font-size: 1.5rem;
    }

    .subscription-form-container p {
        font-size: 1rem;
    }
}

.footer {
    background-color: #1a2a44;
    color: #87ceeb;
    padding: 3rem 2rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
}

.footer-column {
    flex: 1;
    min-width: 200px;
}

.footer-column h3 {
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 700;
}

.footer-column p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0.5rem 0;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.social-icons {
    margin: 1rem 0;
}

.social-icon {
    height: 20px;
    width: 20px;
    margin-right: 0.5rem;
}

.footer-logo {
    height: 70px;
    width: auto;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    font-size: 0.9rem;
    margin: 0;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-column {
        margin-bottom: 2rem;
    }

    .social-icons {
        justify-content: center;
    }

    .footer-logo {
        margin: 0 auto;
    }
}