
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;1,400&family=Montserrat:wght@300;400;500;600&display=swap');

:root {
    --primary: #4a2e1b;
    --secondary: #d4a373;
    --dark: #2c1e16;
    --light: #fdfbf7;
    --accent: #8b5a2b;
    --text-gray: #555555;
    --border: #e0dcd2;
}

* { box-sizing: border-box; }

body { 
    font-family: 'Montserrat', sans-serif; 
    margin: 0; 
    padding: 0; 
    background-color: var(--light); 
    color: var(--dark); 
    line-height: 1.6; 
}

h1, h2, h3, h4 { 
    font-family: 'Playfair Display', serif; 
    margin: 0;
}

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

/* Navbar */
.navbar { 
    position: fixed; 
    top: 0; 
    width: 100%; 
    background: rgba(253, 251, 247, 0.98); 
    padding: 0 5%; 
    height: 73px;
    display: flex; 
    justify-content: center; 
    align-items: center; 
    z-index: 1000; 
    box-shadow: 0 2px 15px rgba(0,0,0,0.05); 
}
.navbar > a { height: 100%; display: flex; align-items: center; overflow: hidden; }
.navbar img { height: 40px; width: auto; object-fit: contain; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { 
    font-weight: 500; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-size: 0.85rem; 
    transition: color 0.3s; 
}
.nav-links a:hover, .nav-links a.active { color: var(--secondary); }

/* Heroes */
.hero { 
    height: 100vh; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    background: linear-gradient(rgba(44, 30, 22, 0.75), rgba(44, 30, 22, 0.6)), url('../assets/fondo.jpg') center/cover no-repeat; 
    color: var(--light); 
    padding: 0 20px; 
}

/* Rediseño de Cabecera Secundaria - Opción 1: Imagen Premium con Parallax */
.hero-small {
    height: 45vh;
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    text-align: center; 
    background: linear-gradient(rgba(44, 30, 22, 0.55), rgba(44, 30, 22, 0.65)), url('../assets/fondo.jpg') center/cover fixed no-repeat; 
    color: var(--light); 
    padding: 135px 20px 0 20px;
}

.hero h1 { 
    font-size: 4.5rem; 
    margin-bottom: 15px; 
    letter-spacing: 3px; 
    text-transform: uppercase;
}

.hero-small h1 { 
    font-size: 3.5rem; 
    margin-bottom: 10px; 
    letter-spacing: 2px; 
    text-transform: uppercase;
    text-shadow: 2px 2px 12px rgba(0,0,0,0.4);
}

.hero p, .hero-small p { 
    font-size: 1.2rem; 
    max-width: 600px; 
    margin-bottom: 40px; 
    font-weight: 300; 
    letter-spacing: 1px;
}
.hero-small p {
    font-size: 1.1rem;
    text-shadow: 1px 1px 6px rgba(0,0,0,0.3);
    margin-bottom: 0;
}

/* Buttons */
.btn { 
    padding: 15px 35px; 
    background-color: var(--secondary); 
    color: var(--dark); 
    text-transform: uppercase; 
    font-weight: 600; 
    border: none; 
    cursor: pointer; 
    transition: all 0.3s ease; 
    border-radius: 2px; 
    font-size: 0.9rem; 
    letter-spacing: 1px;
    display: inline-block;
}
.btn.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}
.btn:hover { 
    background-color: var(--primary); 
    color: var(--light);
    transform: translateY(-2px);
}

/* Sections */
.section { padding: 80px 5%; max-width: 1400px; margin: 0 auto; }
.section-light { background-color: #fff; }
.section-title { 
    text-align: center; 
    font-size: 2.8rem; 
    margin-bottom: 60px; 
    color: var(--primary); 
    position: relative;
}
.section-title::after {
    content: '';
    width: 60px;
    height: 2px;
    background-color: var(--secondary);
    display: block;
    margin: 15px auto 0;
}

/* Grids */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }

/* Home Summaries */
.summary-card {
    text-align: center;
    padding: 40px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.summary-card i { font-size: 4.5rem; color: var(--secondary); margin-bottom: 20px; }
.summary-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--primary); }

/* Esencia - Valores y Testimonios */
.valor-card {
    text-align: center;
    padding: 30px;
    border: 1px solid var(--border);
    transition: transform 0.3s;
}
.valor-card:hover { transform: translateY(-5px); border-color: var(--secondary); }
.valor-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 15px; }

.testimonio-card {
    background: var(--light);
    padding: 40px;
    border-left: 4px solid var(--secondary);
    font-style: italic;
    color: var(--text-gray);
    position: relative;
}
.testimonio-card::before {
    content: '"';
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: rgba(212, 163, 115, 0.2);
    position: absolute;
    top: 10px;
    left: 20px;
}
.testimonio-autor {
    margin-top: 20px;
    font-style: normal;
    font-weight: 600;
    color: var(--primary);
    text-align: right;
}

/* Catálogo */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 50px; }
.tab-btn { 
    padding: 12px 25px; background: transparent; border: 1px solid var(--primary); 
    color: var(--primary); cursor: pointer; font-family: 'Montserrat', sans-serif; 
    font-weight: 500; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; transition: all 0.3s; 
}
.tab-btn.active, .tab-btn:hover { background: var(--primary); color: var(--light); }
.catalog-grid { display: none; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 30px; animation: fadeIn 0.5s ease-in-out; }
.catalog-grid.active { display: grid; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.product-card { 
    background: #fff; padding: 40px 20px; text-align: center; border-radius: 4px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.04); transition: all 0.3s ease; border: 1px solid var(--border);
}
.product-card:hover { transform: translateY(-8px); box-shadow: 0 15px 30px rgba(0,0,0,0.08); border-color: var(--secondary); }
.product-icon { font-size: 2.5rem; color: var(--secondary); margin-bottom: 20px; }
.product-title { font-size: 1.1rem; font-weight: 600; color: var(--primary); }

/* Personalizados */
.custom-box {
    background: #fff;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    margin-top: 40px;
}
.custom-list { list-style: none; padding: 0; }
.custom-list li { margin-bottom: 15px; display: flex; align-items: flex-start; gap: 15px; }
.custom-list i { color: var(--secondary); font-size: 1.2rem; margin-top: 3px; }
.color-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.color-tag { padding: 5px 15px; background: var(--light); border: 1px solid var(--border); font-size: 0.85rem; border-radius: 20px; }

/* Contacto */
.contact-wrapper { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; background: #fff; padding: 60px; border-radius: 8px; box-shadow: 0 15px 50px rgba(0,0,0,0.06); }
.info-block { margin-bottom: 30px; }
.info-block h4 { font-size: 1.2rem; margin-bottom: 10px; color: var(--primary); display: flex; align-items: center; gap: 10px;}
.info-block p { color: var(--text-gray); margin: 0; }

.warranty-box { background: rgba(212, 163, 115, 0.1); padding: 25px; border-left: 4px solid var(--secondary); margin-top: 30px; }
.warranty-box h4 { color: var(--primary); margin-bottom: 10px; }

.form-group { margin-bottom: 25px; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.9rem; color: var(--text-gray); text-transform: uppercase; letter-spacing: 0.5px; }
.form-group input, .form-group textarea { width: 100%; padding: 15px; border: 1px solid var(--border); font-family: 'Montserrat', sans-serif; background: var(--light); transition: border-color 0.3s; font-size: 1rem; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--secondary); background: #fff; }

.qr-container img { max-width: 140px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); margin-top: 20px; }
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; background: var(--light); color: var(--primary); border: 1px solid var(--primary); border-radius: 50%; transition: all 0.3s; font-size: 1.2rem; }
.social-links a:hover { background: var(--primary); color: var(--light); }

/* Footer */
footer { background: var(--dark); color: rgba(255,255,255,0.7); text-align: center; padding: 40px 20px; font-size: 0.9rem; letter-spacing: 0.5px; margin-top: 50px; }
footer p { margin: 5px 0; }
footer strong { color: var(--secondary); }

img.responsive { width: 100%; height: auto; border-radius: 4px; }

/* Responsive */
@media(max-width: 900px) {
    .grid-2, .grid-3, .grid-4, .contact-wrapper { grid-template-columns: 1fr; gap: 40px; }
    .hero h1 { font-size: 3rem; }
    .hero-small h1 { font-size: 2.5rem; }
    .section { padding: 60px 5%; }
    .contact-wrapper { padding: 30px 20px; }
}

@media(max-width: 768px) {
    .navbar { 
        height: auto; 
        padding: 15px 5%; 
        flex-direction: column; 
        gap: 15px; 
        position: relative; 
    }
    .navbar > a { height: 80px; width: 100%; justify-content: center; }
    .navbar img { height: 40px; width: auto; object-fit: contain; }
    .nav-links { flex-wrap: wrap; justify-content: center; gap: 10px; width: 100%; }
    .nav-links a { font-size: 0.85rem; padding: 5px; }

    .hero { padding: 40px 20px; height: auto; min-height: 70vh; }
    .hero-small { padding: 40px 20px; height: auto; min-height: 40vh; }

    .section-title { font-size: 2rem; margin-bottom: 40px; }
    
    .tabs { flex-direction: column; width: 100%; gap: 5px; }
    .tab-btn { width: 100%; font-size: 0.85rem; padding: 15px; }

    .product-card { padding: 20px; }
    .btn { display: block; width: 100%; text-align: center; box-sizing: border-box; }
    
    footer > div {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}

@media(max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .hero p { font-size: 1rem; }
    .hero-small h1 { font-size: 2rem; }
    .summary-card i { font-size: 3.5rem; }
    .summary-card h3 { font-size: 1.3rem; }
    .admin-form .grid-2 { grid-template-columns: 1fr; gap: 15px; }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Micro-animations */
.btn, .nav-links a, .summary-card, .valor-card, .product-card {
    transition: all 0.4s ease;
}
.summary-card:hover, .product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.btn:hover {
    transform: scale(1.05);
}

/* Image Modal Lightbox */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.image-modal-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    animation: zoomIn 0.3s ease;
    object-fit: contain;
}
.image-modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}
.image-modal-close:hover {
    color: var(--primary, #bbb);
}
@keyframes zoomIn {
    from {transform:scale(0.8); opacity:0;}
    to {transform:scale(1); opacity:1;}
}
