:root {
    --color-primary: #F66955;
    --color-secondary: #082B45;
    --color-background: #DFE7EA;
    --color-text: #082B45;
    --color-text-light: #FFFFFF;
    --font-family: 'Poppins', sans-serif;
}

.dark-mode {
    --color-primary: #F66955;
    --color-secondary: #DFE7EA;
    --color-background: #082B45;
    --color-text: #DFE7EA;
    --color-text-light: #082B45;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
}

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

.header {
    background-color: var(--color-text-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.header-left {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 40px;
    margin-right: 1rem;
}

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

.nav-menu li:not(:last-child) {
    margin-right: 1.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--color-primary);
}

.nav-toggle {
    display: none;
}

#darkModeToggle {
    background: none;
    border: none;
    color: var(--color-text);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

#darkModeToggle:hover {
    color: var(--color-primary);
}

.hero {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    padding: 10rem 0 8rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--color-text-light);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.services {
    padding: 6rem 0;
    background-color: var(--color-text-light);
}

.services h2 {
    text-align: center;
    margin-bottom: 4rem;
    font-size: 2.5rem;
    color: var(--color-secondary);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.service-item {
    background-color: var(--color-background);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
}

.service-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.service-item h3 {
    color: var(--color-secondary);
    margin: 1rem 0;
    font-size: 1.5rem;
}

.service-icon {
    font-size: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.about {
    padding: 6rem 0;
    background-color: var(--color-background);
}

.about h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--color-secondary);
}

.about p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    text-align: center;
    font-size: 1.1rem;
}

.contact {
    padding: 6rem 0;
    background-color: var(--color-text-light);
    text-align: center;
}

.contact h2 {
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--color-secondary);
}

.contact p {
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 3rem;
}

.contact-link {
    display: flex;
    align-items: center;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.contact-link:hover {
    color: var(--color-secondary);
    transform: translateY(-2px);
}

.contact-link i {
    font-size: 1.5rem;
    margin-right: 0.75rem;
}

.footer {
    background-color: var(--color-secondary);
    color: var(--color-text-light);
    padding: 2rem 0;
    text-align: center;
}


@media screen and (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--color-text-light);
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        margin: 0;
        padding: 1rem;
        text-align: center;
    }

    .nav-toggle {
        display: block;
        background: none;
        border: none;
        cursor: pointer;
    }

    .nav-toggle-icon {
        display: block;
        width: 25px;
        height: 2px;
        background-color: var(--color-text);
        position: relative;
        transition: background-color 0.3s ease;
    }

    .nav-toggle-icon::before,
    .nav-toggle-icon::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        background-color: var(--color-text);
        transition: transform 0.3s ease;
    }

    .nav-toggle-icon::before {
        transform: translateY(-6px);
    }

    .nav-toggle-icon::after {
        transform: translateY(6px);
    }

    .nav-toggle.active .nav-toggle-icon {
        background-color: transparent;
    }

    .nav-toggle.active .nav-toggle-icon::before {
        transform: rotate(45deg);
    }

    .nav-toggle.active .nav-toggle-icon::after {
        transform: rotate(-45deg);
    }

    .header-left {
        flex-grow: 1;
    }

    .nav {
        order: 2;
    }

    #darkModeToggle {
        margin-right: 1rem;
    }

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

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

    .contact-info {
        flex-direction: column;
        align-items: center;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .services h2,
    .about h2,
    .contact h2 {
        font-size: 2rem;
    }

    .service-item {
        padding: 2rem;
    }

    .service-icon {
        font-size: 2.5rem;
    }
}

@keyframes shake {
    0% { transform: translateX(-10%) scale(0.3); }
    25% { transform: translateX(10%) scale(1.2); }
    50% { transform: translateX(-10%) scale(1.1); }
    75% { transform: translateX(10%) scale(1.2); }
    100% { transform: translateX(0) scale(1); }
}

@keyframes shake {
    0% { transform: translateX(-10%) scale(0.3); }
    25% { transform: translateX(10%) scale(1.2); }
    50% { transform: translateX(-10%) scale(1.1); }
    75% { transform: translateX(10%) scale(1.2); }
    100% { transform: translateX(0) scale(1); } /* Tamaño y posición finales */
}

.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #F66955; /* Naranjo */
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    text-decoration: none;
    opacity: 0;
    transform: scale(0.3); /* Inicialmente pequeño */
    transition: transform 0.3s ease, opacity 0.6s ease; /* Suavidad al hover */
}

.whatsapp-float.visible {
    opacity: 1;
    animation: shake 0.6s cubic-bezier(0.25, 1.75, 0.5, 1.25) forwards;
}

.whatsapp-float:hover {
    transform: scale(1.2); /* Efecto de agrandamiento suave */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); /* Sombras más pronunciadas al hover */
}

.whatsapp-icon {
    width: 24px;
    height: 24px;
    fill: white;
}
