/* /var/www/madsur.cl/public_html/assets/css/style.css */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: #1a2e1a;
    color: white;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    max-height: 50px;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.nav a:hover {
    color: #4CAF50;
}

.carrito-link {
    background: #4CAF50;
    padding: 8px 15px;
    border-radius: 20px;
}

.carrito-link:hover {
    background: #45a049;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #1a2e1a, #2d4a2d);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero .btn-secondary {
    margin-left: 15px;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #388E3C;
}

.btn-secondary {
    display: inline-block;
    background: transparent;
    color: #4CAF50;
    padding: 10px 25px;
    border: 2px solid #4CAF50;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #4CAF50;
    color: white;
}

.btn-success {
    display: inline-block;
    background: #4CAF50;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-success:hover {
    background: #388E3C;
}

.btn-danger {
    display: inline-block;
    background: #f44336;
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-danger:hover {
    background: #d32f2f;
}

/* Grids */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.text-center {
    text-align: center;
    margin-top: 40px;
}

/* Servicios */
.servicios-destacados {
    padding: 80px 0;
    background: #f8f9fa;
}

.servicios-destacados h2,
.productos-destacados h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 20px;
}

.servicio-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.servicio-card img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.servicio-card h3 {
    margin-bottom: 10px;
}

/* Productos */
.productos-destacados {
    padding: 80px 0;
}

.producto-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
}

.producto-card img {
    max-width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.producto-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

.producto-card .precio {
    font-size: 20px;
    font-weight: 700;
    color: #4CAF50;
    margin: 10px 0;
}

.producto-card .stock {
    color: #666;
    margin-bottom: 15px;
}

/* Footer */
.footer {
    background: #1a2e1a;
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h3, .footer h4 {
    margin-bottom: 15px;
}

.footer ul {
    list-style: none;
}

.footer a {
    color: #ccc;
    text-decoration: none;
}

.footer a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    .nav ul {
        display: none;
        flex-direction: column;
        gap: 15px;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: #1a2e1a;
        padding: 20px;
        text-align: center;
    }
    .nav ul.active {
        display: flex;
    }
    .hero h1 {
        font-size: 32px;
    }
    .hero p {
        font-size: 18px;
    }
    .hero .btn-secondary {
        margin-left: 0;
        margin-top: 10px;
    }
}
