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

:root{
--accent:#0071e3;
--dark:#000;
--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:rgba(255,255,255,.85);
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:url("https://images.unsplash.com/photo-1603899122634-f086ca5f5ddd?q=80&w=1974&auto=format&fit=crop") center/cover;
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:white;
}

.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%;
}

.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;
}


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

.products{
padding:0 10% 80px;
}

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

.product-card{
background:white;
border-radius:25px;
padding: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);
}

.product-info h3{
margin:6px 0;
font-size:1.1rem;
}

.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%;
}

.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:white;
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 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;
align-items:center;
}

}
/* 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:120px 10% 80px;
text-align:center;
background:var(--bg-light);
}

.shop-hero h1{
font-size:3rem;
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:60px 10%;
}

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


/* CARD PRODUCTO */

.product-card{
background:white;
border-radius:15px;
overflow:hidden;
box-shadow:0 10px 20px rgba(0,0,0,0.05);
transition:var(--transition);
}

.product-card:hover{
transform:translateY(-5px);
}

.product-card img{
width:100%;
height:220px;
object-fit:cover;
}

.product-info{
padding:20px;
}

.product-info h3{
font-size:1rem;
margin-bottom:10px;
}

.product-price{
font-weight:600;
margin-bottom:15px;
}

.product-buttons{
display:flex;
gap: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:60px 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-price{
font-size:1.5rem;
font-weight:600;
margin-bottom:20px;
}

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


/* 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;
}

}
.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;
    }
}