/* style.css - Buba Argentina */

/* === Variables === */
:root {
    --primary-color: #00AEEF;
    --secondary-color: #DEA5A4;
    --text-color: #333333;
    --light-color: #F7F7F7;
    --white: #FFFFFF;
}

/* === Reset y Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quicksand', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5px;
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* === Barra Superior (top bar) === */
.top-bar {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5px 0;
    position: relative;
    top: 0;
    z-index: 99;
    transition: all 0.3s ease;
}

.top-bar-content {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
}

.sac {
    font-size: 14px;
    text-decoration: none;
    color: var(--white);
    transition: color 0.3s;
}

.sac:hover {
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons img {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.social-icons img:hover {
    transform: scale(1.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 0;
    gap: 20px;
}

/* Logo y país */
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand img {
    height: 40px;
    width: auto;
}

.country {
    font-size: 1.3rem;
    color: var(--secondary-color);
    font-weight: 700;
    letter-spacing: 1px;
}

/* Menú de navegación */
nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    color: var(--primary-color);
}

/* Acciones (buscar, carrito, área de clientes) */
.header-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.header-actions .cart-link-visible {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 16px;
}

.header-actions .cart-link-visible:hover {
    background-color: #f5f5f5;
}

.header-actions a {
    font-size: 16px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    position: relative; /* Para posicionar el contador */
}

.header-actions a:hover {
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: 10px; /* Ajusta según sea necesario */
    right: -25px; /* Ajusta según sea necesario */
    background-color: var(--primary-color); /* Color de la burbuja */
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
    padding: 2px 6px;
    min-width: 20px; /* Asegura que sea circular */
    text-align: center;
    line-height: 1;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transform: scale(0.9); /* Para que sea un poco más pequeño */
    transform-origin: center;
}

/* Asegurar que el icono del carrito no se vea afectado por el texto */
.header-actions .cart-link img {
    vertical-align: middle;
}

/* === Hero Section === */
.hero {
    background-color: var(--primary-color);
    padding: 20px 0;
    color: var(--white);
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 5px;
    font-weight: 700;
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 20px;
}

.btn {
    display: inline-block;
    background-color: var(--white);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* === Imagen Destacada === */
.featured-image-section {
    width: 100%;
    margin: 1px 0;
    text-align: center;
}

.featured-image-section img {
    width: 100%;
    height: auto;
    max-height: 740px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
}

/* === Categorías === */
.categories {
    padding: 30px 0;
    background-color: var(--light-color);
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 30px;
}

@media (min-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.category-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-10px);
}

.category-img {
    height: 200px;
    background-size: cover;
    background-position: center;
}

.category-content {
    padding: 20px;
    text-align: center;
}

/* === Corrección: Eliminar subrayado del enlace === */
.category-link {
    text-decoration: none;
}

.category-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-color);
    transition: color 0.3s;
}

.category-content p {
    font-size: 14px;
    color: #666;
}

/* === Features === */
.features {
    padding: 40px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    text-align: center;
    padding: 30px 20px;
}

.feature-icon {
    font-size: 50px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
    font-size: 16px;
}

/* === Footer === */
footer {
    background-color: var(--text-color);
    color: var(--white);
    padding: 30px 0 30px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    transition: all 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 14px;
    color: #ccc;
}

.copyright a {
    color: #ffffff;
    text-decoration: none;
}

.copyright a:hover {
    color: var(--primary-color);
}

/* === Responsive === */
@media (max-width: 768px) {
    .top-bar {
        position: fixed;
    }
    .main-header {
        margin-top: 40px;
    }
    .header-container {
        flex-direction: column;
        gap: 20px;
    }
    nav ul {
        margin: 20px 0;
        flex-wrap: wrap;
        justify-content: center;
    }
    .hero h1 {
        font-size: 36px;
    }
    .section-title {
        font-size: 28px;
    }
}