:root {
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    --yellow: #FFD700;
    --blue: #0056b3;
    --red: #CC0000;
    
    --gradient-yellow: linear-gradient(135deg, #FFD700, #FFA500);
    --gradient-blue: linear-gradient(135deg, #0056b3, #0077cc);
    --gradient-red: linear-gradient(135deg, #CC0000, #FF3333);
    --gradient-tricolor: linear-gradient(90deg, #FFD700 33.3%, #0056b3 33.3%, #0056b3 66.6%, #CC0000 66.6%);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-100);
}

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

/* Header */
.header {
    background: var(--gray-900);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo-container {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 0.5rem;
    background: var(--gradient-tricolor);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav ul {
    display: flex;
    list-style: none;
}

.nav ul li {
    margin-left: 1.5rem;
}

.nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.nav ul li a:hover {
    color: var(--yellow);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: var(--gray-900);
    color: white;
    padding: 8rem 0 5rem;
    text-align: center;
    margin-top: 60px;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
        url('../images/hero-content.jpeg');
    background-size: cover;
    background-position: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background: var(--gradient-blue);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Section Common Styles */
section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    font-weight: 700;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient-tricolor);
    margin: 0.5rem auto;
    border-radius: 2px;
}

/* Servicios Section */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.servicio-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.servicio-card:hover {
    transform: translateY(-5px);
}

.servicio-card h3 {
    margin-bottom: 1rem;
    color: var(--gray-800);
    font-size: 1.5rem;
}

/* About Section */
.about-content p {
    margin-bottom: 1.5rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature h3 {
    margin-bottom: 1rem;
    color: var(--gray-800);
}

/* Proyectos and Marcas Sections */
.proyectos, .marcas {
    background: var(--gray-200);
}

.glide__slide {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.logo-image {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: filter 0.3s, opacity 0.3s;
    max-width: 150px;
    height: auto;
    max-height: 80px;
    object-fit: contain;
}

.logo-image:hover {
    filter: grayscale(0%);
    opacity: 1;
}

.glide__arrows {
    text-align: center;
    margin-top: 1rem;
}

.glide__arrow {
    background: var(--gray-700);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin: 0 0.5rem;
    transition: background 0.3s;
}

.glide__arrow:hover {
    background: var(--gray-800);
}

/* Why Choose Us Section */
.reasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.reason {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.reason:hover {
    transform: translateY(-5px);
}

.reason h3 {
    margin-bottom: 1rem;
    color: var(--gray-800);
    font-size: 1.5rem;
}

/* Precios Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card h3 {
    margin-bottom: 1rem;
    color: var(--gray-800);
}

.price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1.5rem 0;
    background: var(--gradient-tricolor);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Contacto Section */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.contact-icons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.social-row {
    display: flex;
    gap: 1rem;
}

.contact-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: var(--gray-800);
    transition: transform 0.3s;
    flex: 1;
    min-width: 140px;
}

.contact-icon:hover {
    transform: translateY(-3px);
}

.contact-icon img {
    width: 40px;
    height: 40px;
    margin-bottom: 0.5rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--gray-300);
    border-radius: 5px;
    font-family: inherit;
}

.form-group textarea {
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer a {
    color: var(--yellow);
    text-decoration: none;
}

.footer-logo {
    background: var(--gradient-tricolor);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

/* Botón Ir Arriba */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-blue);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

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

.scroll-to-top img {
    width: 24px;
    height: 24px;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 25px;
    left: 25px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    .nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--gray-900);
        padding: 1rem 0;
    }
    
    .nav.active ul {
        display: flex;
    }
    
    .nav ul li {
        margin: 0.5rem 1.5rem;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .logo-text {
        display: none;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .social-row {
        flex-direction: column;
    }
    
    .contact-icon {
        min-width: auto;
    }
    
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
    
    .scroll-to-top img {
        width: 20px;
        height: 20px;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
    }
    
    .whatsapp-float img {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .servicios-grid,
    .reasons-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .glide__arrow {
        padding: 0.3rem 0.8rem;
    }
}