* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: white;
}

.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
                url('img/CM\ 5.png');
    background-size: cover;
    background-position: center;
    position: relative;
    transition: background-image 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.hero.fade {
    opacity: 0;
}

.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav img {
    height: 30px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
}

.nav-links a {
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #000000;
    position: absolute;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle span:first-child {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.menu-toggle span:last-child {
    bottom: 0;
}

.menu-toggle.active span:first-child {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:last-child {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 1024px) {
    .nav {
        flex-direction: column;
        padding: 10px;
    }
    
    .nav-links {
        margin-top: 15px;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 15px;
    }
    
    .nav-links a {
        font-size: 14px;
        padding: 5px 10px;
    }
    
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 10;
    }

    .menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: #000;
        transition: all 0.3s ease;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
}

.hero-logo {
    width: 60%;
    max-width: 600px;
    height: auto;
    margin-bottom: 3rem;
    transition: filter 0.3s ease;
}


@media (max-width: 768px) {
    .hero-logo {
        width: 80%;
        margin-bottom: 2rem;
    }
}

/* Animación del botón de tema */
.theme-toggle.rotating {
    animation: rotate 0.5s ease-in-out;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.cta-button {
    padding: 15px 30px;
    font-size: 1.1rem;
    color: white;
    background: transparent;
    border: 2px solid white;
    border-radius:0px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 20px;
}

.cta-button:hover {
    border: 2px solid rgb(18, 30, 101);
    transform: scale(1.1);
    background: rgba(16, 32, 205, 0.532);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .cta-button {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }
}

/* Footer Styles */
.site-footer {
    background-color: #ffffff;
    color: #333333;
    padding: 4rem 5% 2rem;
    font-family: 'Montserrat', sans-serif;
    border-top: 1px solid #f0f0f0;
}

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

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 20px;
}

/* Footer Columns */
.footer-column {
    padding: 0 15px;
}

.footer-column h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #333333;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background-color: #0066cc;
}

/* Logo Column */
.logo-column {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    width: 230px;
    height: auto;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.footer-logo:hover {
    transform: scale(1.05);
}

.footer-desc {
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-top: 1rem;
}

/* Links Column */
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #666666;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: block;
}

.footer-links a:hover {
    color: #0066cc;
    padding-left: 5px;
}

/* Social Media Column */
.social-links {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #000000;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.social-link:hover {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-link:hover::before {
    left: 100%;
}

/* Add a subtle pulse effect on hover */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(0, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

.social-link:active {
    transform: translateY(-1px) scale(0.95);
    animation: pulse 0.5s;
}

.contact-info {
    margin-top: 1.5rem;
}

.contact-info p {
    color: #666666;
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}

.contact-info i {
    color: #0066cc;
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid #000000;
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: #999999;
    font-size: 0.85rem;
    margin: 0;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-column {
        padding: 0;
    }
    
    .footer-logo {
        width: 100px;
    }
}

.logo-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    margin-bottom: 15px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.company-desc {
    color: #ccc;
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 250px;
}

.quick-links {
    list-style: none;
}

.quick-links li {
    margin-bottom: 12px;
}

.quick-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    transform: scale(1);
}

.quick-links a:hover {
    color: #fff;
    transform: scale(1.1);
}

.quick-links a:active {
    transform: scale(0.95);
}

.quick-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 50%;
    background-color: #fff;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.quick-links a:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #000000;
    border: 1px solid #333;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #000000;
    transform: translateY(-2px);
}

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

.footer-bottom p {
    color: #888;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .logo-section {
        align-items: center;
    }

    .company-desc {
        max-width: none;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 0 15px;
    }

    .footer-container {
        padding: 0 15px;
    }

    .logo {
        font-size: 1.5rem;
    }
}