/* ===== VARIABLES GLOBALES ===== */
:root {
    --primary: #C06331;
    --dark-brown: #4F3C36;
    --cream: #FFFBF2;
    --beige: #E8BD90;
    --gray: #B7AFAF;
    --white: #FFFFFF;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--cream);
    color: var(--dark-brown);
}
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    right: 25px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(0,0,0,.3);
    z-index: 1000;
    transition: transform .3s ease;
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}
/* ===== HEADER ===== */
.header-fixed {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow);
}
.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}
/* FIX DEFINITIVO LOGO EN HEADER */
.main-header > .logo-link {
    display: flex;
    align-items: center;
    width: auto;
}

.logo-link .logo-container {
    display: flex;
    align-items: center;
}
.main-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

/* Logo */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.logo-text h1 {
    color: var(--primary);
    font-size: 1.5rem;
}

.logo-text p {
    font-size: 0.8rem;
    color: var(--gray);
}

/* Búsqueda */
.search-container {
    flex: 0 1 400px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 0.7rem 2.5rem 0.7rem 1rem;
    border: 2px solid var(--beige);
    border-radius: 30px;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray);
}

/* Iconos */
.user-actions {
    display: flex;
    gap: 1rem;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    position: relative;
    color: var(--dark-brown);
    font-size: 1.2rem;
    text-decoration: none;
    transition: background-color 0.2s;
}

.icon-btn:hover {
    background-color: var(--beige);
}

.cart-badge, .favoritos-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: white;
}

.cart-badge {
    background-color: var(--primary);
}

.favoritos-badge {
    background-color: #ff4444;
}

/* ===== MENÚ ===== */
.main-nav {
    background: var(--dark-brown);
    padding: 0.8rem 0;
}

.nav-menu {
    display: flex;
    justify-content: center;
    gap: 2rem;
    list-style: none;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: background-color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background-color: var(--primary);
}

/* ===== CONTENIDO ===== */
main {
    margin-top: 130px;
    padding: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
    font-size: 2rem;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: var(--beige);
    margin: 0.5rem auto;
}

/* ===== SLIDER CONTAINER (para secciones con flechas) ===== */
.slider-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.products-slider {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 1rem 0.5rem;
    flex: 1;
}

.products-slider::-webkit-scrollbar {
    display: none;
}

/* Tarjetas dentro del slider */
.products-slider .product-card {
    flex: 0 0 calc(33.333% - 1rem);
    min-width: 250px;
    max-width: 350px;
}

/* ===== GRID DE PRODUCTOS (para sección Nuevos) ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

/* Asegurar que las imágenes en grid tengan el mismo tamaño */
.products-grid .product-card {
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
}

/* ===== BOTONES DE DESPLAZAMIENTO ===== */
.slider-arrow {
    background: var(--white);
    border: 2px solid var(--primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.2rem;
    box-shadow: var(--shadow);
    flex-shrink: 0;
    z-index: 10;
}

.slider-arrow:hover {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 12px rgba(192, 99, 49, 0.3);
}

.slider-arrow:active {
    transform: scale(0.95);
}

.slider-arrow i {
    font-size: 1.2rem;
}

/* ===== TARJETA PRODUCTO ===== */
.product-card {
    position: relative;
    background: var(--cream);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.2s;
    width: 100%;
}

.product-card:hover {
    transform: translateY(-3px);
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.product-info {
    padding: 1.2rem;
    text-align: center;
}

.product-title {
    color: var(--dark-brown);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-price {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    z-index: 5;
}

/* ===== BOTÓN FAVORITOS ===== */
.favorito-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.9);
    border: none;
    color: #ff4444;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.favorito-btn:hover {
    transform: scale(1.1);
}

.favorito-btn.activo {
    background: #ff4444;
    color: white;
}

/* ===== CONTADOR ===== */
.counter {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.counter-btn {
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: var(--beige);
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter-btn:hover {
    background: var(--primary);
    color: white;
}

.counter-value {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

/* ===== BOTÓN PRINCIPAL ===== */
.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--dark-brown);
}

/* ===== NOTIFICACIONES ===== */
.notificacion {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    font-weight: 500;
    z-index: 10000;
    transform: translateX(120%);
    transition: transform 0.3s;
    border-left: 4px solid;
    min-width: 250px;
}

.notificacion.mostrar {
    transform: translateX(0);
}

.notificacion-success { border-left-color: #28a745; color: #28a745; }
.notificacion-error { border-left-color: #dc3545; color: #dc3545; }
.notificacion-info { border-left-color: #17a2b8; color: #17a2b8; }

/* ===== FOOTER ===== */
.main-footer {
    background: var(--dark-brown);
    color: white;
    margin-top: 2rem;
    padding: 2rem 0 0;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.footer-section h4 {
    color: var(--beige);
    margin-bottom: 1rem;
}

.footer-section p {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.2s;
    text-decoration: none;
}

.social-icons a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    background: rgba(0,0,0,0.2);
}
.resaltado {
    outline: 3px solid #ff6b6b;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.5);
    transition: all 0.3s ease;
}
.logo-link {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-container:hover {
    cursor: pointer;
    opacity: 0.9;
}
/* ===== RESPONSIVE ===== */
/* ============================= */
/* TABLETS GRANDES */
/* ============================= */
@media (max-width: 1200px) {

main{
    padding: 1.5rem;
}

.products-slider .product-card{
    flex: 0 0 calc(50% - 1rem);
}

}


/* ============================= */
/* TABLETS */
/* ============================= */
@media (max-width: 992px) {

.main-header{
    flex-wrap: wrap;
    gap: 1rem;
}

.search-container{
    order: 3;
    flex: 100%;
}

.nav-menu{
    gap: 1rem;
    flex-wrap: wrap;
}

.products-slider .product-card{
    flex: 0 0 70%;
}

}


/* ============================= */
/* CELULARES GRANDES */
/* ============================= */
@media (max-width: 768px) {

.main-header{
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
}

.logo-container{
    justify-content: center;
}

.search-container{
    width: 100%;
}

.user-actions{
    justify-content: center;
}

.main-nav{
    padding: .5rem 0;
}

.nav-menu{
    flex-wrap: wrap;
    gap: .5rem;
}

.nav-menu a{
    padding: .4rem .8rem;
    font-size: .9rem;
}

main{
    margin-top: 200px;
    padding: 1rem;
}

.section{
    padding: 1.5rem;
}

.section-title{
    font-size: 1.6rem;
}

.products-slider .product-card{
    flex: 0 0 85%;
}

.products-grid{
    grid-template-columns: 1fr;
}

.product-image{
    height: 180px;
}

.slider-arrow{
    width: 35px;
    height: 35px;
}

.slider-arrow i{
    font-size: .9rem;
}

.footer-content{
    grid-template-columns: 1fr;
    text-align: center;
}

.social-icons{
    justify-content: center;
}

}


/* ============================= */
/* CELULARES PEQUEÑOS */
/* ============================= */
@media (max-width: 480px) {

.logo-text h1{
    font-size: 1.2rem;
}

.logo-text p{
    font-size: .7rem;
}

.search-input{
    font-size: .8rem;
}

.section-title{
    font-size: 1.4rem;
}

.product-title{
    font-size: 1rem;
}

.product-price{
    font-size: 1.1rem;
}

.btn-primary{
    padding: .7rem 1rem;
}

.whatsapp-float{
    width: 50px;
    height: 50px;
}

.whatsapp-float img{
    width: 28px;
    height: 28px;
}

}