/* public/assets/css/main.css */

:root {
    --primary: #125238;
    --secondary: #832728;
    --accent: #e0e0cd;
    --text: #333333;
    --light: #f9f9f9;
    --white: #ffffff;
    --font-main: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
}

/* Reset & Base */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--font-main);
    color: var(--text);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* Utilidades */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.section { padding: 60px 0; }
.hidden { display: none !important; }

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.btn-primary { background-color: var(--primary); color: var(--white); }
.btn-primary:hover { background-color: #0d3b28; transform: translateY(-2px); }

.btn-secondary { background-color: var(--secondary); color: var(--white); }
.btn-secondary:hover { background-color: #681f20; transform: translateY(-2px); }

.btn-outline { border: 2px solid var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--text); }

/* Header */
.main-header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
.logo span { color: var(--secondary); }

.nav-menu ul { display: flex; gap: 20px; }
.nav-menu a { font-weight: 500; font-size: 0.95rem; }
.nav-menu a:hover { color: var(--primary); }

.header-actions { display: flex; gap: 15px; align-items: center; }
.header-phone { font-size: 0.9rem; font-weight: 600; color: var(--primary); display: flex; align-items: center; gap: 5px; }

/* Mobile Menu Trigger */
.menu-toggle { display: none; font-size: 1.5rem; cursor: pointer; }

/* Hero Slider */
.hero-slider {
    position: relative;
    height: 80vh;
    overflow: hidden;
    background: #000;
}

.slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0; transition: opacity 1s ease-in-out;
    background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
}

.slide.active { opacity: 1; }
.slide-content {
    text-align: center; color: var(--white); z-index: 2;
    padding: 20px; background: rgba(0,0,0,0.4); border-radius: 10px;
}
.slide-content h1 { font-size: 3rem; margin-bottom: 10px; text-shadow: 2px 2px 4px rgba(0,0,0,0.5); }
.slide-content p { font-size: 1.2rem; margin-bottom: 20px; }

/* Icon Section */
.icon-section { background: var(--accent); padding: 40px 0; }
.icon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.icon-box i { font-size: 2rem; color: var(--primary); margin-bottom: 10px; }
.icon-box h4 { font-size: 1rem; font-weight: 600; }

/* Nosotros Split */
.split-section { display: flex; flex-wrap: wrap; }
.split-col { flex: 1; min-width: 300px; }
.split-text { padding: 60px; display: flex; flex-direction: column; justify-content: center; background: var(--white); }
.split-image { background-size: cover; background-position: center; min-height: 400px; }

/* Tienda Tabs */
.shop-tabs-nav { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 30px; }
.tab-btn {
    padding: 10px 20px; background: transparent; border: 1px solid #ddd;
    border-radius: 30px; cursor: pointer; font-family: var(--font-main);
    transition: var(--transition);
}
.tab-btn.active, .tab-btn:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 30px; }
.product-card {
    border: 1px solid #eee; border-radius: 8px; overflow: hidden;
    transition: var(--transition); background: var(--white);
    display: flex; flex-direction: column;
}
.product-card:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.product-img { position: relative; height: 250px; overflow: hidden; }
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-card:hover .product-img img { transform: scale(1.1); }
.product-info { padding: 15px; text-align: center; flex-grow: 1; display: flex; flex-direction: column; justify-content: space-between; }
.price { color: var(--secondary); font-weight: 700; font-size: 1.1rem; margin: 5px 0; }
.product-actions { display: flex; gap: 5px; justify-content: center; margin-top: 10px; }
.btn-sm { padding: 8px 15px; font-size: 0.8rem; }

/* Experience Section */
.experience-section { display: flex; flex-wrap: wrap; flex-direction: row-reverse; } /* Imagen derecha desktop */

/* Parallax */
.parallax-section {
    background-attachment: fixed; background-size: cover; background-position: center;
    padding: 100px 0; text-align: center; color: var(--white); position: relative;
}
.parallax-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.6); }
.parallax-content { position: relative; z-index: 2; }

/* Social Grid */
.social-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.social-item {
    height: 300px; background-size: cover; background-position: center;
    display: flex; align-items: center; justify-content: center;
    position: relative; color: var(--white); font-weight: 700; font-size: 1.5rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.social-item:hover .social-overlay { opacity: 0.3; }
.social-overlay {
    position: absolute; inset: 0; background: var(--primary); opacity: 0.7; transition: var(--transition);
}
.social-text { position: relative; z-index: 2; pointer-events: none;}

/* Footer */
.main-footer { background: #222; color: #fff; padding-top: 60px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-title { color: var(--accent); margin-bottom: 20px; font-size: 1.2rem; }
.footer-links li { margin-bottom: 10px; }
.footer-links a:hover { color: var(--accent); }
.copyright { background: #111; padding: 20px 0; text-align: center; font-size: 0.8rem; color: #777; }

/* Notification Toast */
.fake-notification {
    position: fixed; bottom: 20px; left: 20px; background: var(--white);
    padding: 15px 20px; border-left: 5px solid var(--primary);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2); border-radius: 4px;
    z-index: 9999; transform: translateX(-150%); transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
    display: flex; align-items: center; gap: 15px;
    font-size: 0.9rem; max-width: 350px;
}
.fake-notification.show { transform: translateX(0); }
.fake-notification img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

/* Modal */
.modal {
    display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5); align-items: center; justify-content: center;
}
.modal-content {
    background-color: #fefefe; padding: 30px; border: 1px solid #888;
    width: 90%; max-width: 500px; border-radius: 8px; position: relative;
}
.close-modal { position: absolute; top: 10px; right: 15px; font-size: 28px; font-weight: bold; cursor: pointer; }

/* Responsive */
@media (max-width: 768px) {
    .nav-menu { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: white; flex-direction: column; padding: 20px; box-shadow: 0 5px 10px rgba(0,0,0,0.1); }
    .nav-menu.active { display: flex; }
    .nav-menu ul { flex-direction: column; }
    .menu-toggle { display: block; }
    .icon-grid { grid-template-columns: repeat(2, 1fr); }
    .social-grid { grid-template-columns: 1fr; }
    .experience-section { flex-direction: column-reverse; } /* Imagen arriba en mobile */
    .experience-section .split-image { height: 300px; }
}