/* ==========================================================
   Base
   ========================================================== */
:root {
    --primary-color: #e74c3c;
    --secondary-color: #2c3e50;
    --white-color: #fff;
    --gray-color: #aaa;
    --font-family: 'Poppins', sans-serif;
}

body {
    font-family: var(--font-family);
    color: #333;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ==========================================================
   Hero Section
   ========================================================== */
.hero-header {
    position: relative;
    height: 100vh;
    width: 100vw;
    display: flex;
    flex-direction: column;
    color: var(--white-color);
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    text-align: center;
}

.hero-background {
    position: fixed;
    top: -5%;
    left: -5%;
    width: 110%;
    height: 110%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transition: transform 0.2s ease-out;
}

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

/* Navbar */
.navbar-top {
    position: relative;
    width: 100%;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
}

.nav-brand img {
    height: 45px;
    width: auto;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-link-item {
    color: var(--white-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 15px;
    border-radius: 5px;
    transition: background-color 0.2s, transform 0.2s;
    position: relative;
}

.nav-link-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.nav-link-item.coming-soon .badge {
    position: absolute;
    top: -8px;
    right: -25px;
    font-size: 0.6rem;
    padding: 3px 6px;
    background-color: #5bc0de;
    border-radius: 50px;
    white-space: nowrap;
}

/* Contenido Principal */
.hero-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}

.main-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.price-tag {
    background-color: #ffc107;
    color: #333;
    font-size: 0.7em;
    font-weight: 700;
    padding: 0.2em 0.8em;
    border-radius: 50px;
    display: inline-block;
    margin-top: 5px;
}

.main-subtitle {
    font-size: 1rem;
    font-weight: 300;
    margin-bottom: 2rem;
    line-height: 1.5;
    max-width: 500px;
}

/* Tarjetas de valor */
.card-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 3rem;
    width: 100%;
}

.value-card {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.value-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card-svg-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.card-text {
    margin: 0;
    font-weight: 600;
    text-align: left;
    flex-grow: 1;
}

/* Botones de acción */
.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.btn-primary, .btn-whatsapp-hero {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    width: 100%;
    max-width: 300px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #c0392b;
    border-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-whatsapp-hero {
    background-color: #25D366;
    color: var(--white-color);
    border: 2px solid #25D366;
}

.btn-whatsapp-hero:hover {
    background-color: #128C7E;
    border-color: #128C7E;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}


/* Modal de Catalogo */
#catalogModal .modal-icon-lg {
    width: 64px;
    height: auto;
}

#catalogModal .modal-icon-lg #SVGRepo_iconCarrier path {
    fill: var(--primary-color);
}

/* Modal de Cotización */
#quoteModal .btn-primary {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 2px solid var(--primary-color);
}
#quoteModal .btn-primary:hover {
    background-color: #c0392b;
    border-color: #c0392b;
}

/* Modal de Ubicacion */
#locationModal .list-group-item {
    background-color: #f8f9fa;
    border: none;
    border-radius: 0.5rem;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}

#locationModal .list-group-item strong {
    color: var(--secondary-color);
}

#locationModal .list-group-item i {
    flex-shrink: 0;
}

#locationModal .list-group-item a {
    color: #25D366;
    font-weight: 600;
}

#locationModal .list-group-item a:hover {
    color: #128C7E;
}

/* Mobile Floating Buttons */
.mobile-float-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--secondary-color);
    padding: 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
}

.mobile-float-buttons .btn-primary,
.mobile-float-buttons .btn-whatsapp-hero {
    width: 50%;
    margin: 0;
    padding: 12px 15px;
    font-size: 0.9rem;
}
.mobile-float-buttons .btn-whatsapp-hero i {
    font-size: 1.1rem;
    margin-right: 5px;
}

/* Ocultar elementos en desktop y viceversa */
@media (max-width: 767px) {
    .hero-buttons { display: none; }
    .mobile-float-buttons { display: flex; }
    body { overflow-y: auto; }
    .hero-header { height: auto; min-height: 100vh; }
    .main-title, .main-subtitle { text-align: center; }
}

@media (min-width: 768px) {
    .mobile-float-buttons { display: none; }
    .hero-buttons { display: flex; }
}


/* ==========================================================
   Desktop styles (min-width: 768px)
   ========================================================== */
@media (min-width: 768px) {
    .navbar-top {
        padding: 20px 40px;
    }
    
    .nav-brand img {
        height: 60px;
    }
    
    .hero-content {
        padding: 0 40px;
    }

    .main-title {
        font-size: clamp(3rem, 6vw, 4.5rem);
        max-width: 700px;
    }

    .main-subtitle {
        font-size: 1.2rem;
        max-width: 700px;
    }
    
    .card-grid {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        max-width: 900px;
    }

    .value-card {
        flex: 1 1 200px;
    }
    
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 25px;
        max-width: 500px;
    }

    .btn-primary, .btn-whatsapp-hero {
        width: auto;
        min-width: 200px;
    }

    .form-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .modal-dialog.modal-sm {
        max-width: 500px;
    }
}