/* Custom CSS for VML Instalaciones */

:root {
    --primary-color: #4936F1;
    --secondary-color: #1E3A8A;
    --accent-yellow: #FFD60A;
    --text-dark: #0a0a0a;
    --text-muted: #666666;
    --light-bg: #fafafa;
    --white: #ffffff;
    --border-light: #e5e5e5;
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.7;
    font-weight: 400;
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

/* Custom Primary Color */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(73, 54, 241, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Navigation */
.navbar {
    padding: 1.5rem 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-light);
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    color: var(--text-dark) !important;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.75rem;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.navbar .btn-primary {
    padding: 10px 24px;
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    padding: 5rem 0 6rem;
    background-image: url('https://hstechgroup.com/wp-content/uploads/2021/11/shutterstock_1680278365.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

@media (max-width: 991px) {
    .hero {
        min-height: auto;
        padding: 0;
    }

    .hero h1 {
        margin-top: 20vh !important;
        margin-bottom: 1.5rem !important;
        text-transform: uppercase;
        font-size: 2.5rem !important;
    }

    .hero .lead {
        margin-bottom: 2rem !important;
        font-size: 1.35rem !important;
        line-height: 1.4;
    }

    .hero .btn-primary {
        margin-bottom: 20vh;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    color: var(--white);
    line-height: 1.15;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.hero .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    line-height: 1.6;
    font-weight: 400;
}

.hero-benefits-card {
    background-color: var(--white);
    border-radius: 16px;
    position: relative;
    z-index: 1;
}

.hero-benefits-card h2 {
    color: var(--primary-color);
}

.hero-benefits-card .card-body {
    padding: 2.5rem !important;
}

.hero-card-spacing {
    margin-top: 5rem;
}

@media (max-width: 991px) {
    .hero-card-spacing {
        margin-top: 0 !important;
        padding-top: 0 !important;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .hero-benefits-card {
        margin-bottom: 0 !important;
    }

    .hero-benefits-card .card-body {
        padding: 1.5rem !important;
        margin-bottom: 0 !important;
        padding-bottom: 1.5rem !important;
    }

    .hero-benefits-card .text-center:last-child {
        margin-bottom: 0 !important;
    }

    .hero-benefits-card .btn-primary {
        margin-bottom: 0 !important;
    }
}

@media (min-width: 992px) {
    .hero-card-spacing {
        margin-top: 5rem;
    }
}

@media (min-width: 992px) {
    .hero-row {
        min-height: 75vh;
    }
}

/* Service Cards */
.service-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background-color: var(--white);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    border-color: var(--primary-color);
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card ul li {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.8;
    display: flex;
    align-items: flex-start;
}

.service-card .bi-check-circle-fill {
    font-size: 1rem;
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* Feature Icons */
.feature-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Benefit Cards */
.benefit-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    background-color: var(--white);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
    border-color: var(--primary-color);
}

/* Benefit Icons */
.benefit-icon i {
    font-size: 2.5rem;
    color: var(--primary-color);
    background-color: rgba(73, 54, 241, 0.1);
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

/* About Section */
.about-image-placeholder {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 16px;
    padding: 5rem 2rem;
    text-align: center;
    color: white;
    box-shadow: 0 20px 60px rgba(73, 54, 241, 0.3);
    position: relative;
    overflow: hidden;
}

.about-image-placeholder i {
    position: relative;
    z-index: 1;
}

/* Contact Section */
.contact-icon {
    width: 60px;
    height: 60px;
    background-color: var(--light-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: white;
    padding: 4rem 0;
}

.cta-section h2 {
    color: var(--white);
}

.cta-section .btn-primary,
.cta-section .cta-button {
    background-color: var(--white) !important;
    border-color: var(--white) !important;
    color: var(--primary-color) !important;
}

.cta-section .btn-primary:hover,
.cta-section .cta-button:hover {
    background-color: var(--white) !important;
    border-color: var(--white) !important;
    color: var(--secondary-color) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.4) !important;
}

/* Footer */
.footer-section {
    background: var(--secondary-color);
    color: var(--white);
}

.footer-section h5,
.footer-section h6 {
    color: var(--white);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-section .social-links a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section .social-links a:hover {
    color: var(--primary-color);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
}

/* Responsive adjustments */
@media (max-width: 991px) {
    section {
        padding: 4rem 0;
    }

    .hero {
        padding: 3rem 0 4rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero .lead {
        font-size: 1.1rem;
    }

    section h2 {
        font-size: 2rem;
    }

    .hero-benefits-card .card-body,
    .about-image-placeholder {
        padding: 2rem !important;
    }
}

@media (max-width: 767px) {
    section {
        padding: 3rem 0;
    }

    .hero h1 {
        font-size: 2rem;
    }

    section h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .btn-lg,
    .btn-primary {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

    .service-icon i {
        font-size: 2rem;
    }

    .feature-icon i {
        font-size: 2rem;
    }

    .benefit-icon i {
        font-size: 2rem;
        width: 56px;
        height: 56px;
    }

    .navbar {
        padding: 1rem 0;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Sections */
section {
    padding: 5rem 0;
}

section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.bg-light {
    background-color: rgba(73, 54, 241, 0.03) !important;
}

/* Card shadows */
.shadow-sm {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
}

.shadow {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
}

/* Contact Cards */
#contacto .card {
    border: 1px solid var(--border-light);
    border-radius: 12px;
}

#contacto h5 {
    font-size: 1.1rem;
}

#contacto .bi {
    color: var(--primary-color);
}

/* Utility Classes */
.text-muted {
    color: var(--text-muted) !important;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(73, 54, 241, 0.3);
    padding: 0;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(73, 54, 241, 0.4);
}

@media (max-width: 767px) {
    .back-to-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
        font-size: 1.25rem;
    }
}