/* ============================= */
/* RESET GENERAL */
/* ============================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Poppins', sans-serif;
    background:#ffffff;
    color:#222;
    line-height:1.2;
    text-align: center;
}

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
}

/* ============================= */
/* TOP BAR */
/* ============================= */

.top-bar{
    background:#011f03;
    color:white;
    text-align:center;
    padding:8px 10px;
    font-size:14px;
}

/* ============================= */
/* HEADER */
/* ============================= */

.header{
    background:white;
    box-shadow:0 2px 10px rgba(0,0,0,0.05);
    position:sticky;
    top:0;
    z-index:1000;
}

.nav-container{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:15px 0;
}

.logo{
    font-size:24px;
    font-weight:700;
    color:#012D04;
}

.nav-menu a{
    margin-left:25px;
    text-decoration:none;
    color:#333;
    font-weight:500;
    transition:0.3s;
}

.nav-menu a:hover{
    color:#012D04;
}

/* ============================= */
/* HERO */
/* ============================= */

.hero{
    height:42vh;
    background:linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
    url('https://picris.com/wp-content/uploads/2024/04/flores-primavera.jpg') center/cover no-repeat;
    display:flex;
    align-items:center;
    justify-content:center;
    text-align:center;
    color:white;
}

.hero h1{
    font-size:48px;
    margin-bottom:20px;
    font-weight:700;
}

.hero p{
    font-size:20px;
    margin-bottom:30px;
}

.btn-primary,
.btn-secondary{
    padding:14px 28px;
    border-radius:6px;
    font-weight:600;
    text-decoration:none;
    transition:0.3s;
}

.btn-primary{
    background:#012D04;
    color:white;
}

.btn-primary:hover{
    background:#014d08;
}

.btn-secondary{
    background:white;
    color:#012D04;
}

.btn-secondary:hover{
    background:#f0f0f0;
}

/* ============================= */
/* SECCIONES */
/* ============================= */

.section-title{
    text-align:center;
    margin-bottom:50px;
    font-size:32px;
    font-weight:700;
    color:#012D04;
}

.categories-section,
.products-section,
.testimonials-section,
.blog-section,
.contact-section{
    padding: 10px 0;
}

/* ============================= */
/* CATEGORÍAS 354x317 */
/* ============================= */

.categories-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill, 354px);
    gap:30px;
    justify-content:center;
}

.category-card{
    width:354px;
    text-align:center;
    cursor:pointer;
    transition:0.3s ease;
}

.category-image{
    width:354px;
    height:317px;
    border-radius:14px;
    overflow:hidden;
}

.category-image img{
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    transition:0.4s ease;
}

.category-card:hover img{
    transform:scale(1.05);
}

.category-card h3{
    margin-top:15px;
    font-size:18px;
    font-weight:600;
    color:#012D04;
}

/* ============================= */
/* PRODUCTOS */
/* ============================= */

.products-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:30px;
}

.product-card{
    border:1px solid #eee;
    border-radius:12px;
    padding:20px;
    text-align:center;
    background:white;
    transition:0.3s;
}

.product-card:hover{
    box-shadow:0 10px 25px rgba(0,0,0,0.08);
    transform:translateY(-5px);
}

.product-img{
    width:100%;
    aspect-ratio:1/1;
    overflow:hidden;
    border-radius:10px;
    margin-bottom:15px;
}

.product-img img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.price{
    font-size:20px;
    font-weight:700;
    color:#012D04;
    margin:10px 0;
}

.btn-add{
    background:#012D04;
    color:white;
    border:none;
    padding:10px 20px;
    border-radius:6px;
    cursor:pointer;
    transition:0.3s;
    font-weight:600;
}

.btn-add:hover{
    background:#014d08;
}

/* ============================= */
/* SHOP LAYOUT */
/* ============================= */

.shop-layout{
    display:flex;
    gap:40px;
    align-items:flex-start;
}

.shop-sidebar{
    width:260px;
    background:#f9f9f9;
    padding:25px;
    border-radius:12px;
    box-shadow:0 5px 20px rgba(0,0,0,0.05);
    position:sticky;
    top:120px;
}

.category-filter{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.category-filter input{
    accent-color:#012D04;
}

/* ============================= */
/* CONTACTO */
/* ============================= */

.contact-layout{
    display:flex;
    gap:50px;
}

.contact-form{
    flex:1;
    background:white;
    padding:40px;
    border-radius:12px;
    box-shadow:0 5px 20px rgba(0,0,0,0.05);
}

.form-group{
    margin-bottom:20px;
    display:flex;
    flex-direction:column;
}

.form-group input,
.form-group textarea{
    padding:10px;
    border:1px solid #ccc;
    border-radius:6px;
}

/* ============================= */
/* FOOTER */
/* ============================= */

.footer{
    background:#011f03;
    color:white;
    padding-top:60px;
}

.footer-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:40px;
    padding-bottom:40px;
}

.footer-bottom{
    background:#000;
    text-align:center;
    padding:15px;
    font-size:14px;
}

/* ============================= */
/* RESPONSIVE */
/* ============================= */

@media(max-width:992px){

    .shop-layout,
    .contact-layout{
        flex-direction:column;
    }

    .shop-sidebar{
        width:100%;
        position:relative;
        top:0;
    }

    .categories-grid{
        grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    }

    .category-card,
    .category-image{
        width:100%;
    }

    .category-image{
        height:250px;
    }
}

@media(max-width:768px){

    .hero h1{
        font-size:32px;
    }

    .hero p{
        font-size:16px;
    }

}
/* ============================= */
/* CENTRAR TEXTOS GENERALES */
/* ============================= */

.section-title,
.testimonials-section,
.blog-section,
.products-section,
.contact-section {
    text-align: center;
}

/* Centrar párrafos dentro de secciones */
.testimonials-section p,
.blog-section p,
.products-section p,
.contact-section p {
    text-align: center;
}

/* Centrar títulos secundarios */
h2, h3 {
    text-align: center;
}
/* ============================= */
/* MENU NAVEGACIÓN */
/* ============================= */

nav ul {
    list-style: none;
    display: flex;
    justify-content: center; /* centra horizontal */
    gap: 40px; /* espacio entre links */
}

nav ul li a {
    text-decoration: none;
    color: white; /* color blanco */
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
}

/* Hover elegante */
nav ul li a:hover {
    color: #c8facc; /* verde claro elegante */
}
.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    text-decoration: none;
    color: white;
    transition: 0.3s;
}

.footer ul li a:hover {
    color: #9ff5a6;
}
/* ============================= */
/* VARIABLES DE COLOR */
/* ============================= */
:root {
    --primary-green: #0b3d0b;
    --light-green: #eaf7ea;
    --accent-green: #1c7c1c;
    --text-dark: #222;
    --soft-gray: #f8f8f8;
}

/* ============================= */
/* GENERALES */
/* ============================= */
.section-title {
    text-align: center;
    font-size: 32px;
    color: var(--primary-green);
    margin-bottom: 50px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* ============================= */
/* BENEFICIOS */
/* ============================= */
.benefits-section {
    background: var(--light-green);
    padding: 80px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    text-align: center;
}

.benefit {
    background: white;
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    transition: 0.3s ease;
}

.benefit:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.benefit h3 {
    font-size: 20px;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.benefit p {
    color: var(--text-dark);
    font-size: 15px;
}

/* ============================= */
/* TESTIMONIOS */
/* ============================= */
.testimonials-section {
    padding: 90px 0;
    background: white;
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--soft-gray);
    padding: 35px;
    border-radius: 15px;
    transition: 0.3s;
}

.testimonial-card:hover {
    transform: scale(1.03);
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--text-dark);
}

.testimonial-card strong {
    color: var(--primary-green);
}

/* ============================= */
/* BLOG */
/* ============================= */
.blog-section {
    padding: 80px 0;
    background: var(--light-green);
    text-align: center;
}

.blog-post {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.blog-post:hover {
    transform: translateY(-6px);
}

.blog-post h3 {
    margin-bottom: 10px;
    color: var(--primary-green);
}

.blog-post p {
    font-size: 14px;
    color: var(--text-dark);
}

/* ============================= */
/* NEWSLETTER */
/* ============================= */
.newsletter-section {
    background: var(--primary-green);
    padding: 70px 0;
    text-align: center;
    color: white;
}

.newsletter-section h2 {
    margin-bottom: 25px;
}

.newsletter-form {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.newsletter-form input {
    padding: 14px 18px;
    border-radius: 30px;
    border: none;
    width: 280px;
    outline: none;
}

.newsletter-form button {
    padding: 14px 25px;
    border-radius: 30px;
    border: none;
    background: white;
    color: var(--primary-green);
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.newsletter-form button:hover {
    background: var(--accent-green);
    color: white;
}

/* ============================= */
/* SHOP LAYOUT */
/* ============================= */

.shop-layout {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Sidebar */
.shop-sidebar {
    width: 260px;
    background: #f8f8f8;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

/* ============================= */
/* GRID PRODUCTOS */
/* ============================= */

.products-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
}
/* ============================= */
/* PRODUCT CARD */
/* ============================= */

.product-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    text-align: center;
    position: relative;
    transition: 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

/* ============================= */
/* PRODUCT IMAGE AJUSTE PERFECTO */
/* ============================= */

.product-img {
    width: 100%;
    aspect-ratio: 1 / 1;      /* Hace la imagen cuadrada */
    background-size: cover;   /* Cubre todo sin deformar */
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: transform 0.4s ease;
}
.product-card:hover .product-img {
    transform: scale(1.05);
}

/* Efecto zoom elegante */
.product-card:hover .product-img {
    transform: scale(1.05);
}

/* Precio */
.price {
    font-weight: 600;
    font-size: 18px;
    margin: 10px 0 20px 0;
    color: #0b3d0b;
}

/* Botón */
.btn-add {
    background: #0b3d0b;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-add:hover {
    background: #1c7c1c;
}
.badge,
.badge-sale {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.badge {
    background: #1c7c1c;
    color: white;
}

.badge-sale {
    background: crimson;
    color: white;
}
@media (max-width: 900px) {

    .shop-layout {
        flex-direction: column;
    }

    .shop-sidebar {
        width: 100%;
    }

}


.testimonials-section {
    text-align: center;
}

.testimonials-section p {
    max-width: 700px;
    margin: 0 auto 15px auto;
}










/* ============================= */
/* FORMULARIO */
/* ============================= */

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.contact-form h2 {
    margin-bottom: 30px;
    color: #012D04;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.form-group input,
.form-group textarea {
    padding: 12px 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 14px;
    transition: 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #012D04;
    box-shadow: 0 0 0 3px rgba(1,45,4,0.1);
    outline: none;
}/* ============================= */
/* CART SECTION */
/* ============================= */

.cart-section {
    padding: 80px 0;
}

.cart-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

/* ITEMS */

.cart-items {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.cart-item h4 {
    margin-bottom: 5px;
}

.cart-item button {
    background: crimson;
    color: white;
    border: none;
    padding: 8px 14px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.cart-item button:hover {
    background: darkred;
}

/* SUMMARY */

.cart-summary {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    height: fit-content;
}

.summary-line,
.summary-total {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
}

.summary-total {
    font-weight: 700;
    font-size: 18px;
}

.btn-checkout {
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    border-radius: 30px;
    border: none;
    background: #012D04;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.btn-checkout:hover {
    background: #014d08;
}

/* RESPONSIVE */

@media(max-width: 900px){
    .cart-layout {
        grid-template-columns: 1fr;
    }
}