/* =========================================
   1. VARIABLES Y REINICIO
   ========================================= */
:root {
    --brand-orange: #f6b32d;
    --brand-gray: #4c4c4c;
    --brand-white: #ffffff;
    --text-muted: #666;
    --light-bg: #f8f9fa;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--brand-gray);
    background-color: var(--brand-white);
    overflow-x: hidden;
}

/* =========================================
   2. NAVEGACIÓN (NAVBAR)
   ========================================= */
.navbar {
    display: flex;
    justify-content: center;
    padding: 15px 5%;
    background: var(--brand-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.nav-logo {
    height: 50px;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--brand-gray);
    font-weight: 600;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--brand-orange);
}

.btn-cta {
    background-color: var(--brand-orange);
    color: var(--brand-white) !important;
    padding: 10px 20px;
    border-radius: 5px;
}

/* =========================================
   3. PORTADA Y VIDEO (HERO)
   ========================================= */
.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--brand-white);
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    z-index: -2;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.hero-content {
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    margin-top: 60px; /* Compensa la barra de navegación */
}

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

.hero h1 span {
    color: var(--brand-orange);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.btn-main {
    display: inline-block;
    background-color: var(--brand-orange);
    color: var(--brand-white);
    padding: 15px 30px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    font-size: 1.1rem;
    transition: transform 0.3s, background 0.3s;
}

.btn-main:hover {
    background-color: #e0a225;
    transform: translateY(-3px);
}

/* =========================================
   4. SECCIÓN DE SERVICIOS
   ========================================= */
.services-section {
    padding: 80px 5%;
    text-align: center;
    background: var(--light-bg);
}

.services-section h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.services-section h2 span {
    color: var(--brand-orange);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--brand-white);
    padding: 30px 20px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--brand-gray);
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.service-img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--brand-orange);
}

/* =========================================
   5. SECCIÓN PRODUCTOS (CARRUSEL)
   ========================================= */
.products-section {
    padding: 80px 5%;
    text-align: center;
    background: var(--brand-white);
}

.products-section h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.products-section h2 span {
    color: var(--brand-orange);
}

.carousel-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
}

.slider-container {
    overflow: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

.slider-track {
    display: flex;
    gap: 30px;
}

.product-slide {
    min-width: 300px;
    flex-shrink: 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.product-slide:hover {
    transform: scale(1.05);
}

.product-slide img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.carousel-btn {
    background: var(--brand-orange);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    z-index: 10;
}

.left-btn { left: -50px; }
.right-btn { right: -50px; }

/* =========================================
   6. SECCIÓN COTIZAR
   ========================================= */
.quote-section {
    padding: 80px 5%;
    background: var(--light-bg);
    text-align: center;
}

.quote-section h2 { font-size: 2.5rem; margin-bottom: 10px; font-weight: 800; }
.quote-section h2 span { color: var(--brand-orange); }
.quote-section p { margin-bottom: 40px; color: var(--text-muted); }

.quote-form {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
}

.input-group {
    display: flex;
    gap: 20px;
}

.quote-form input[type="text"],
.quote-form input[type="tel"],
.quote-form input[type="email"],
.quote-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s;
}

.quote-form input:focus, .quote-form textarea:focus {
    border-color: var(--brand-orange);
}

.quote-form textarea {
    min-height: 150px;
    resize: vertical;
}

.file-upload-wrapper {
    background: var(--brand-white);
    padding: 20px;
    border-radius: 8px;
    border: 2px dashed #ccc;
    text-align: center;
}

.file-upload-wrapper label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--brand-gray);
}

.form-actions {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.btn-whatsapp, .btn-email {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    color: white;
    transition: all 0.3s ease;
}

.btn-whatsapp { background-color: #25D366; }
.btn-email { background-color: var(--brand-gray); }

.btn-whatsapp:disabled, .btn-email:disabled {
    background-color: #e0e0e0;
    color: #999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-whatsapp:not(:disabled):hover { background-color: #1ebe57; transform: translateY(-3px); }
.btn-email:not(:disabled):hover { background-color: var(--brand-orange); transform: translateY(-3px); }

/* =========================================
   7. OPTIMIZACIÓN RESPONSIVA (CELULARES)
   ========================================= */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 15px;
    }
    .navbar {
        padding: 15px 5%;
        position: relative; /* Evita que tape el hero en móviles */
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }
    .hero {
        height: auto;
        padding: 100px 5%;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .carousel-wrapper {
        padding: 0 40px;
    }
    .left-btn { left: 0; }
    .right-btn { right: 0; }
    .product-slide { width: 260px; }
    .input-group, .form-actions { flex-direction: column; gap: 15px; }
}