@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Lato:wght@300;400;700&display=swap');

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

body {
    font-family: 'Lato', sans-serif;
    background: #faf9f6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #4a4a4a;
}

header {
    background: linear-gradient(to bottom, #ffffff 0%, #fafaf8 100%);
    padding: 40px 20px;
    border-bottom: 2px solid #e8e6e1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.header-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.logo-wrapper {
    position: relative;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.logo-wrapper:hover {
    transform: scale(1.05);
}

.logo-wrapper::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 1px solid #e8e6e1;
    border-radius: 50%;
    opacity: 0.4;
}

header .logo {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1;
}

.brand-section {
    text-align: left;
}

.brand-link {
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease;
}

.brand-link:hover {
    transform: translateX(5px);
}

header h1 {
    font-family: 'Playfair Display', serif;
    color: #2c3e2f;
    font-size: 3.5em;
    font-weight: 600;
    letter-spacing: 2px;
    margin: 0;
    line-height: 1;
}

.header-divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, #7a9b7e, transparent);
    margin: 15px 0;
}

.tagline {
    font-family: 'Lato', sans-serif;
    color: #8a8a8a;
    font-size: 0.95em;
    font-weight: 300;
    letter-spacing: 1px;
    font-style: italic;
    margin: 0;
}

main {
    flex: 1;
    padding: 60px 20px;
}

.productos-grid {
    display: grid;
    gap: 35px;
    margin: 0 auto;
    max-width: 900px;
}

.producto-card {
    background: white;
    border-radius: 2px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    max-width: 900px;
    width: 100%;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    transition: box-shadow 0.3s ease;
}

.producto-card:hover {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
}

.producto-imagenes {
    background: #f8f7f4;
    display: flex;
    flex-direction: column;
    padding: 50px;
}

.imagen-principal {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    min-height: 350px;
}

.imagen-principal img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 2px;
    transition: opacity 0.3s ease;
}

.miniaturas {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.miniatura {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    opacity: 0.7;
    padding: 0;
    background: transparent;
}

.miniatura:hover {
    opacity: 1;
    transform: scale(1.05);
}

.miniatura.activa {
    border-color: #7a9b7e;
    opacity: 1;
    box-shadow: 0 2px 8px rgba(122, 155, 126, 0.3);
}

.miniatura img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sin-imagen {
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b8b5ad;
    font-size: 1em;
    font-weight: 300;
}

.producto-info {
    padding: 50px 45px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.producto-info h2 {
    font-family: 'Playfair Display', serif;
    color: #2c3e2f;
    font-size: 2em;
    font-weight: 600;
    margin-bottom: 25px;
    line-height: 1.3;
}

.descripcion {
    color: #6b6b6b;
    line-height: 1.8;
    margin-bottom: 35px;
    font-size: 0.95em;
    font-weight: 300;
}

.precio {
    font-family: 'Playfair Display', serif;
    font-size: 2.2em;
    color: #7a9b7e;
    font-weight: 600;
    margin-bottom: 35px;
    letter-spacing: 0.5px;
}

.btn-comprar {
    background: #7a9b7e;
    color: white;
    border: none;
    padding: 16px 45px;
    font-size: 0.95em;
    font-family: 'Lato', sans-serif;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    text-decoration: none;
    display: inline-block;
}

.btn-comprar:hover {
    background: #6b8a6f;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(122, 155, 126, 0.3);
}

.btn-comprar:active {
    transform: translateY(0);
}

.no-productos {
    color: #6b6b6b;
    font-size: 1.3em;
    text-align: center;
    font-weight: 300;
}

footer {
    background: #ffffff;
    padding: 25px 20px;
    text-align: center;
    color: #8a8a8a;
    border-top: 1px solid #e8e6e1;
    font-size: 0.9em;
    font-weight: 300;
}

@media (max-width: 768px) {
    header {
        padding: 20px 15px;
    }
    
    .header-container {
        flex-direction: row;
        gap: 20px;
        justify-content: flex-start;
    }
    
    .logo-wrapper::after {
        top: -5px;
        left: -5px;
        right: -5px;
        bottom: -5px;
    }
    
    header .logo {
        width: 60px;
        height: 60px;
        border: 2px solid #ffffff;
    }
    
    .brand-section {
        text-align: left;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    header h1 {
        font-size: 1.8em;
        letter-spacing: 1px;
    }
    
    .header-divider {
        display: none;
    }
    
    .tagline {
        display: none;
    }
    
    main {
        padding: 30px 15px;
    }
    
    .producto-card {
        grid-template-columns: 1fr;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    }
    
    .producto-imagenes {
        padding: 25px;
    }
    
    .imagen-principal {
        min-height: 250px;
        margin-bottom: 15px;
    }
    
    .imagen-principal img {
        max-height: 300px;
    }
    
    .miniaturas {
        gap: 10px;
    }
    
    .miniatura {
        width: 60px;
        height: 60px;
    }
    
    .producto-info {
        padding: 30px 25px;
    }
    
    .producto-info h2 {
        font-size: 1.5em;
        margin-bottom: 20px;
    }
    
    .descripcion {
        font-size: 0.9em;
        margin-bottom: 25px;
    }
    
    .precio {
        font-size: 1.8em;
        margin-bottom: 25px;
    }
    
    .btn-comprar {
        width: 100%;
        text-align: center;
        padding: 14px 30px;
        font-size: 0.9em;
    }
    
    footer {
        padding: 20px 15px;
        font-size: 0.85em;
    }
}
