/* =========================
VARIABLES
========================= */

:root{
--fondo-header:rgba(255,255,255,.85) ;
--fondo-general: #f5f5f7;
--fondo-segundario: #e6e6e6;
--fondo-productos: #f5f5f7;
--fondo-cta: #f5f5f7;
--fondo-footer: #f5f5f7;
--accent: #0097b1;
--dark:#0096b182;
--light:#f5f5f7;
--white:#ffffff;
--text:#1d1d1f;
--text-light:#86868b;

--radius:20px;
--transition:all .35s ease;
}


/* =========================
RESET
========================= */

*{
margin:0;
padding:0;
box-sizing:border-box;
}

body{
font-family:'Inter',sans-serif;
background:var(--light);
color:var(--text);
overflow-x:hidden;
}

h1,h2,h3,.logo{
font-family:'Outfit',sans-serif;

}

a{
text-decoration:none;
color:inherit;
}


/* =========================
PROMO BAR
========================= */

.promo-bar{
background:var(--dark);
color:white;
text-align:center;
padding:8px;
font-size:.8rem;
}

.promo-bar a{
color:var(--accent);
text-decoration:underline;
}


/* =========================
NAVBAR
========================= */

header{
background:var(--fondo-header);
backdrop-filter:blur(12px);
position:sticky;
top:0;
z-index:1000;
border-bottom:1px solid #eee;
}

.nav-container{
max-width:1200px;
margin:auto;
padding:18px 30px;
display:flex;
justify-content:space-between;
align-items:center;
}

.logo{
font-size:1.6rem;
font-weight:800;
letter-spacing:-1px;
}

.logo span{
color:var(--accent);
}

.nav-links{
display:flex;
gap:30px;
list-style:none;
}

.nav-links a{
font-size:.95rem;
font-weight:500;
transition:var(--transition);
}

.nav-links a:hover{
color:var(--accent);
}

.nav-actions{
display:flex;
gap:18px;
}

.icon-btn{
background:none;
border:none;
font-size:1.1rem;
cursor:pointer;
position:relative;
}

.cart-count{
position:absolute;
top:-6px;
right:-8px;
background:var(--accent);
color:white;
font-size:.65rem;
padding:2px 6px;
border-radius:50%;
}


/* =========================
HERO
========================= */

.hero{
height:85vh;
background-image: url("../img/hero2.png");
display:flex;
align-items:center;
position:relative;
padding:0 10%;
color:white;
}

.hero-overlay{
position:absolute;
top:0;
left:0;
width:100%;
height:100%;
background:linear-gradient(to right,rgba(0,0,0,.8),transparent);
}

.hero-content{
position:relative;
max-width:600px;
z-index:1;
}

.badge{
background:var(--accent);
padding:6px 16px;
border-radius:30px;
font-size:.8rem;
display:inline-block;
margin-bottom:15px;
}

.hero h1{
font-size:4rem;
line-height:1.1;
margin-bottom:20px;
}

.hero p{
font-size:1.1rem;
color:#ccc;
margin-bottom:30px;
}

.btn-main{
background:var(--accent);
color:white;
padding:14px 35px;
border-radius:40px;
font-weight:600;
display:inline-block;
transition:var(--transition);
}

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


/* =========================
BENEFICIOS
========================= */

.benefits{
display:flex;
justify-content:center;
gap:60px;
padding:60px 20px;
background:var(--fondo-segundario);
}

.benefit-item{
display:flex;
align-items:center;
gap:15px;
}

.benefit-item i{
font-size:28px;
color:var(--accent);
}

.benefit-item h4{
font-size:1rem;
}

.benefit-item p{
font-size:.85rem;
color:var(--text-light);
}


/* =========================
CATEGORIAS
========================= */

.categories{
padding:80px 10%;
background: var(--fondo-general);
}

.section-header{
text-align:center;
margin-bottom:40px;
}

.section-header h2{
font-size:2.5rem;
}

.category-grid{
display:grid;
grid-template-columns:repeat(4,1fr);
gap:25px;
}

.category-card{
background:white;
padding:40px;
border-radius:var(--radius);
text-align:center;
transition:var(--transition);
}

.category-card:hover{
background:var(--accent);
color:white;
transform:translateY(-5px);
}

.cat-icon{
font-size:2.2rem;
margin-bottom:12px;
}

.category-card span{
font-weight:600;
}
@media (max-width: 768px){
    .category-card{
        padding: 15px;
    }

}

/* =========================
PRODUCTOS
========================= */

.products{
padding:0 10% 80px;
background: var(--fondo-productos);
}

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

.product-card{
background:white;
border-radius:25px;
position:relative;
transition:var(--transition);
}

.product-card:hover{
transform:translateY(-8px);
box-shadow:0 20px 40px rgba(0,0,0,.08);
}

.product-tag{
position:absolute;
top:18px;
left:18px;
background:black;
color:white;
padding:4px 12px;
border-radius:12px;
font-size:.75rem;
}

.product-img{
height:230px;
background:#f7f7f7;
border-radius:18px;
display:flex;
align-items:center;
justify-content:center;
font-size:4rem;
color:#ddd;
margin-bottom:20px;
}

.cat-name{
font-size:.75rem;
text-transform:uppercase;
letter-spacing:1px;
color:var(--text-light);
}

.price-row{
display:flex;
justify-content:space-between;
align-items:center;
margin-top:15px;
}

.price{
font-size:1.3rem;
font-weight:700;
color:var(--accent);
}

.add-to-cart{
background:#f2f2f2;
border:none;
width:40px;
height:40px;
border-radius:50%;
cursor:pointer;
transition:var(--transition);
}

.add-to-cart:hover{
background:var(--accent);
color:white;
}


/* =========================
NEWSLETTER
========================= */

.newsletter{
padding:80px 10%;
background: var(--fondo-cta);
}

.news-box{
background:black;
color:white;
padding:60px;
border-radius:40px;
text-align:center;
}

.news-form{
margin-top:25px;
display:flex;
justify-content:center;
gap:10px;
flex-wrap:wrap;
}

.news-form input{
padding:14px 25px;
border-radius:30px;
border:none;
width:260px;
outline:none;
}

.news-form button{
padding:14px 30px;
border-radius:30px;
border:none;
background:var(--accent);
color:white;
font-weight:600;
cursor:pointer;
}


/* =========================
FOOTER
========================= */

footer{
background:var(--fondo-footer);
padding:80px 10% 30px;
border-top:1px solid #eee;
}

.footer-grid{
display:grid;
grid-template-columns:2fr 1fr 1fr;
gap:60px;
margin-bottom:40px;
}

.footer-links ul{
list-style:none;
}
.footer-links h4 {
    margin-bottom: 15px;
}

.footer-links li{
margin-bottom:10px;
color:var(--text-light);
font-size:.9rem;
}

.footer-bottom{
text-align:center;
border-top:1px solid #eee;
padding-top:20px;
font-size:.8rem;
color:var(--text-light);
}


/* =========================
RESPONSIVE
========================= */

@media(max-width:900px){
    .hero{
        background-image: url("../img/hero2.png");
        background-position: right;
        background-size: cover;
        background-repeat: no-repeat;

    }

.hero h1{
font-size:2.8rem;
}

.category-grid{
    grid-template-columns:repeat(2,1fr);
}

.footer-grid{
grid-template-columns:1fr;
}

.nav-links{
display:none;
}

.benefits{
flex-direction:column;
gap:30px;
padding:30px 50px;
}

}
/* HAMBURGUESA */

.hamburger{
display:none;
font-size:1.6rem;
cursor:pointer;
}

/* MOBILE */

@media (max-width:900px){

.nav-links{
position:absolute;
top:70px;
left:0;
width:100%;
background:white;
flex-direction:column;
align-items:center;
gap:20px;
padding:30px 0;
display:none;
}

.nav-links.active{
display:flex;
}

.hamburger{
display:block;
}

}
/* HERO NOSOTROS */

.about-hero{
padding:120px 10% 80px;
text-align:center;
background:var(--bg-light);
}

.about-hero h1{
font-size:3rem;
margin-bottom:20px;
}

.about-hero p{
max-width:700px;
margin:auto;
color:var(--text-secondary);
}


/* HISTORIA */

.about-section{
padding:80px 10%;
}

.about-grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:60px;
align-items:center;
}

.about-text h2{
font-size:2rem;
margin-bottom:20px;
}

.about-text p{
margin-bottom:15px;
color:var(--text-secondary);
}

.about-image img{
width:100%;
border-radius:20px;
}


/* VALORES */

.values{
padding:80px 10%;
background:white;
}

.values-grid{
display:grid;
grid-template-columns:repeat(3,1fr);
gap:30px;
margin-top:40px;
}

.value-card{
background:var(--bg-light);
padding:40px;
border-radius:20px;
text-align:center;
}

.value-card i{
font-size:2rem;
color:var(--accent);
margin-bottom:15px;
}

.value-card h3{
margin-bottom:10px;
}


/* CTA */

.about-cta{
padding:100px 10%;
text-align:center;
background:var(--dark-bg);
color:var(--text);
}

.about-cta h2{
font-size:2rem;
margin-bottom:15px;
}

.about-cta p{
margin-bottom:30px;
color:#ccc;
}


/* RESPONSIVE */

@media (max-width:900px){

.about-grid{
grid-template-columns:1fr;
}

.values-grid{
grid-template-columns:1fr;
}

}
/* HERO CONTACTO */

.contact-hero{
padding:120px 10% 80px;
text-align:center;
background:var(--bg-light);
}

.contact-hero h1{
font-size:3rem;
margin-bottom:15px;
}

.contact-hero p{
max-width:600px;
margin:auto;
color:var(--text-secondary);
}


/* TARJETAS CONTACTO */

.contact-info{
padding:80px 10%;
}

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

.contact-card{
background:white;
padding:40px;
border-radius:20px;
text-align:center;
transition:var(--transition);
}

.contact-card:hover{
transform:translateY(-5px);
box-shadow:0 15px 30px rgba(0,0,0,0.08);
}

.contact-card i{
font-size:2rem;
color:var(--accent);
margin-bottom:15px;
}

.contact-card h3{
margin-bottom:10px;
}

.contact-card p{
color:var(--text-secondary);
margin-bottom:10px;
}

.contact-card a{
color:var(--accent);
font-weight:600;
}


/* FORMULARIO */

.contact-form-section{
padding:80px 10%;
background:white;
}

.contact-form-container{
max-width:600px;
margin:auto;
text-align:center;
}

.contact-form{
display:flex;
flex-direction:column;
gap:15px;
margin-top:30px;
}

.contact-form input,
.contact-form textarea{
padding:15px;
border-radius:10px;
border:1px solid #ddd;
font-family:'Inter',sans-serif;
}

.contact-form textarea{
resize:none;
}


/* MAPA */
.map-section{
padding:80px 10%;
justify-content: center;
text-align: center;
}

.map-section iframe{
width: 80%;
height:400px;
border:none;
border-radius:20px;
}


/* RESPONSIVE */

@media (max-width:900px){

.contact-grid{
grid-template-columns:1fr;
}

}
/* HERO TIENDA */

.shop-hero{
padding:50px 0 10px;
text-align:center;
background:var(--bg-light);
}

.shop-hero h1{
font-size: 50px;
margin-bottom:10px;
}

.shop-hero p{
color:var(--text-secondary);
}
/* FILTROS */
.shop-filters{
padding:20px 10%;
display:flex;
justify-content:center;
}

.shop-filters select{
padding:10px 15px;
border-radius:8px;
border:1px solid #ddd;
}


/* PRODUCTOS */

.products-section{
padding:10px 60px;
}


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


/* CARD PRODUCTO */

.contenedor-info{
padding:5px 20px 10px;
}

.product-buttons button{
flex:1;
padding:10px;
border:none;
border-radius:8px;
cursor:pointer;
}

.btn-view{
background:#f1f1f1;
}

.btn-cart{
background:var(--accent);
color:white;
}
/* MIGAS DE PAN */

.breadcrumb{
padding:20px 10%;
font-size:14px;
color:var(--text-secondary);
}

.breadcrumb a{
color:var(--accent);
text-decoration:none;
}

.breadcrumb span{
margin:0 8px;
}


/* PRODUCTO */

.product-page{
padding:0px 10%;
}

.product-container{
display:grid;
grid-template-columns:1fr 1fr;
gap:60px;
align-items:start;
}


/* IMAGEN */

.product-gallery img{
width:100%;
border-radius:20px;
}


/* DETALLES */

.product-details h1{
font-size:2rem;
margin-bottom:15px;
}

.product-description{
color:var(--text-secondary);
margin-bottom:10px;
}


/* BOTONES */

.product-actions{
display:flex;
gap:15px;
}

.btn-cart{
background:var(--accent);
color:white;
border:none;
padding:12px 20px;
border-radius:8px;
cursor:pointer;
}

.btn-whatsapp{
background:#25D366;
color:white;
padding:12px 20px;
border-radius:8px;
text-decoration:none;
}


/* RESPONSIVE */

@media (max-width:900px){

.product-container{
grid-template-columns:1fr;
}
}
@media (max-width:768px){
    .product-page{
        padding: 0px;
    }
    .product-container{
        width: 100%;
    }

}
.boton-comprar-whatsapp {
    background-color: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    font-weight: 600;
    cursor: pointer;
}
.boton-comprar-whatsapp:hover {
    background-color: #1a9b47;
    color: white;
}
@media (max-width:900px){
    .boton-comprar-whatsapp {
        padding: 10px 15px;
    }
}
.mini-cart{

position:fixed;
top:0;
right:-400px;
width:350px;
height:100%;
background:white;
box-shadow:-5px 0 20px rgba(0,0,0,0.1);
transition:0.3s;
z-index:9999;

display:flex;
flex-direction:column;

}

.mini-cart.open{
right:0;
}

.mini-cart-header{

display:flex;
justify-content:space-between;
padding:20px;
border-bottom:1px solid #eee;

}

.mini-cart-items{

flex:1;
overflow:auto;
padding:20px;

}

.mini-cart-item{

display:flex;
gap:10px;
margin-bottom:15px;

}

.mini-cart-item img{

width:60px;
height:60px;
object-fit:cover;

}

.mini-cart-footer{

padding:20px;
border-top:1px solid #eee;

}

.btn-whatsapp{

width:100%;
padding:12px;
background:#25D366;
border:none;
color:white;
font-weight:bold;
cursor:pointer;

}


/* ============================= */
/* IMAGEN */
/* ============================= */

.product-card img{

width:100%;
height:320px;
object-fit:cover;
border-radius:10px;
margin-bottom:10px;

}


/* ============================= */
/* TITULO */
/* ============================= */

.product-card h3{

font-size:16px;
font-weight:600;
margin-bottom:8px;
color:#222;
min-height:40px;

}
/* PC - 4 PRODUCTOS */

@media (min-width:1024px){

.products-grid{

grid-template-columns:repeat(4,1fr);

}

}
@media(max-width:768px){
    .products-section {
        padding: 10px 5px;
    }
    .shop-hero {
        padding: 20px;
        text-align: center;
    }
    .shop-hero h1 {
        font-size: 30px;
    }
    

    .products-grid {
        width: 100%;
        height: 100%;
        grid-template-columns : 1fr 1fr;
        gap: 10px;
        
    }
    .product-card {
        width: 100%;
        height: 100%;
    }
    .product-card img {
        width: 100%;
        height: 250px;
        object-fit: cover;
    }
}

/* PRECIO TACHADO */

.price-old{
text-decoration:line-through;
color:#999;
font-size:25px;
font-family:'great vibes';
font-weight:400;
}
.price-old-tienda{
text-decoration:line-through;
color:#999;
font-size:20px;
font-family:'great vibes';
font-weight:400;
}
/* PRECIO PROMO */

.price-promo{
color:#e63946;
font-weight:700;
font-size:35px;
font-family:'great vibes';

}
.price-promo-tienda{
color:#e63946;
font-weight:700;
font-size:25px;
font-family:'great vibes';
}
@media (max-width:900px){
    .price-old-tienda{
        font-size:18px;
    }
    .price-promo-tienda{
        font-size:20px;
    }
}

/* ============================= */
/* BOTONES */
/* ============================= */
.product-buttons{
display:flex;
gap:10px;
justify-content:center;

}


/* BOTON VER */

.btn-view{

padding:8px 14px;
background:#111;
color:#fff;
border-radius:6px;
font-size:13px;
text-decoration:none;
transition:.3s;

}

.btn-view:hover{

background:#333;

}


/* BOTON CARRITO */

.btn-cart{

padding:8px 14px;
background:#e63946;
color:#fff;
border:none;
border-radius:6px;
font-size:13px;
cursor:pointer;
transition:.3s;

}

.btn-cart:hover{

background:#c82333;

}


/* ============================= */
/* BADGE OFERTA */
/* ============================= */

.product-card.sale::before{

content:"OFERTA";
position:absolute;
top:10px;
left:10px;
background:#e63946;
color:#fff;
font-size:11px;
padding:4px 8px;
border-radius:4px;

}
/* CONTENEDOR GENERAL DEL PRODUCTO */

.product-container{

max-width:1200px;
margin:auto;
padding:40px 20px;

display:grid;
grid-template-columns:1fr 1fr;
gap:50px;

}


/* GALERIA */

.product-gallery{

display:flex;
flex-direction:column;
gap:15px;

}


/* IMAGEN PRINCIPAL */

.main-image{

width:100%;
border-radius:12px;
overflow:hidden;
background:#f7f7f7;

}

.main-image img{

width:100%;
height:480px;
object-fit:cover;
display:block;
transition:0.3s;

}


/* EFECTO HOVER */

.main-image img:hover{

transform:scale(1.03);

}


/* MINIATURAS */

.thumb-images{

display:flex;
gap:10px;
flex-wrap:wrap;

}

.thumb-images img{

width:85px;
height:85px;

object-fit:cover;

border-radius:8px;

cursor:pointer;

border:2px solid transparent;

transition:0.25s;

background:#f5f5f5;

}


/* HOVER MINIATURA */

.thumb-images img:hover{

border:2px solid #e63946;

transform:scale(1.05);

}


/* MINIATURA ACTIVA */

.thumb-images img.active{

border:2px solid #e63946;

}


/* INFO PRODUCTO */

.product-info{

display:flex;
flex-direction:column;
gap:10px;

}


/* TITULO */

.product-info h1{
font-family:'great vibes';
font-size:40px;
font-weight:600;
}



/* PRECIO PROMO */

.price-promo{

color:#e63946;

font-weight:700;

}





/* BOTON CARRITO */

.btn-add-cart{

margin-top:20px;

padding:14px;

background:#111;

color:white;

border:none;

border-radius:8px;

font-size:16px;

font-weight:600;

cursor:pointer;

transition:0.3s;

}

.btn-add-cart:hover{

background:#e63946;

}
/* ============================= */
/* PRECIO */
/* ============================= */

.product-price{
display:flex;
justify-content:center;
align-items:center;
gap:10px;
margin-bottom:1px;
font-weight:600;

}


/* RESPONSIVE */

@media(max-width:900px){

.product-container{

grid-template-columns:1fr;
gap:30px;

}


}


/* TELEFONO */

@media(max-width:600px){

.product-info h1{

font-size:28px;

}

.main-image img{

height:400px;

}

.thumb-images img{

width:70px;
height:70px;

}

.product-price{

font-size:22px;

}

}
/* ITEM CARRITO */

.cart-item{

display:flex;
align-items:center;

gap:12px;

padding:12px 0;

border-bottom:1px solid #eee;

}


/* IMAGEN */

.cart-item img{

width:60px;
height:60px;

object-fit:cover;

border-radius:6px;

}


/* INFO */

.cart-info{

flex:1;

display:flex;
flex-direction:column;

gap:4px;

font-size:14px;

}


/* PRECIO */

.cart-price{

color:#e63946;
font-weight:600;

}


/* CONTROLES CANTIDAD */

.cart-qty{

display:flex;

align-items:center;

gap:8px;

margin-top:4px;

}

.cart-qty button{

width:26px;
height:26px;

border:none;

background:#eee;

border-radius:4px;

cursor:pointer;

font-size:16px;

}

.cart-qty button:hover{

background:#ddd;

}


/* ELIMINAR */

.cart-remove{

background:none;

border:none;

font-size:18px;

cursor:pointer;

color:#999;

}

.cart-remove:hover{

color:#e63946;

}
.checkout-form{

display:flex;
flex-direction:column;

gap:8px;

margin-bottom:12px;

}

.checkout-form input{

padding:10px;

border:1px solid #ddd;

border-radius:6px;

font-size:14px;

}
.product-option select {
    padding: 8px;
    border-radius: 8px;
    border: 1px solid #ddd;
    cursor: pointer;
}
.product-option select:focus {
    outline: none;
    box-shadow: #2d7ef0 0px 0px 15px;
    border-color: #2d7ef0;
    transition: 0.3s;
    transform: scale(1.05);
}
