/* FREE LANCER */

.freelancer {
    min-height: 60vh; /* Asegura buena presencia vertical */
    width: 100%;
    margin: 0; /* Evita márgenes inesperados */
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.7)), url("../assets/freelancer2.webp");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* CONTACTO / FOOTER */

/* Estilo general del footer */
footer {
    border-top: 2px solid #fff; /* Línea superior blanca que separa el footer del contenido */
}

/* Títulos dentro de secciones específicas del footer */
:is(.social__media, .contact, .my__services) h3 {
    margin-bottom: 1rem; /* Espacio inferior entre el título y el contenido siguiente */
}

/* Color de texto para párrafos e íconos */
:is(.social__media, .contact, .my__services) p,
:is(.fa-phone, .fa-envelope, .fa-message, .fa-brands) {
    color: #a3a3a3; /* Color gris claro para texto e íconos, aporta elegancia y contraste */
}

/* Íconos de redes sociales */
.social__mediaIcons .fa-brands {
    font-size: 2rem; /* Tamaño grande para destacar los íconos */
    transition: all 0.2s ease-in; /* Transición suave al pasar el mouse */
    cursor: pointer; /* Cursor tipo mano para indicar interactividad */
}

/* Efecto hover en íconos de redes */
.social__mediaIcons .fa-brands:hover {
    color: var(--secondary-bg-color); /* Cambia el color al pasar el mouse, usando tu color secundario (ej: naranja vibrante) */
}

/* Botón de contacto por email */
.contact a {
    padding: 0.5rem 1.8rem; /* Espaciado interno para que el botón sea cómodo de clicar */
    background-color: unset; /* Fondo transparente para mantener estilo limpio */
    border: 1px solid var(--secondary-bg-color); /* Borde con color secundario para destacar el botón */
    font-family: var(--font); /* Fuente personalizada definida en variables globales */
    font-size: 0.9rem; /* Tamaño de texto ligeramente reducido para elegancia */
    color: #a3a3a3; /* Color gris claro para mantener coherencia con el resto del footer */
}

/* FLOTANTE WHATSAPP */
.whatsapp-float {
    position: fixed; /* Posición fija en la pantalla */
    bottom: 20px; /* A 20px del fondo */
    right: 20px; /* A 20px del lado derecho */
    width: 60px; /* Ancho del botón */
    height: 60px; /* Alto del botón */
    background-color: #25D366; /* Color de fondo de WhatsApp */
    color: white; /* Color del ícono */
    font-size: 28px; /* Tamaño del ícono */
    border-radius: 50%; /* Botón redondo */
    display: flex; /* Usar flexbox para centrar el ícono */
    align-items: center; /* Centrar verticalmente */
    justify-content: center; /* Centrar horizontalmente */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); /* Sombra para darle profundidad */
    z-index: 999; /* Asegurarse de que esté por encima de otros elementos */
    transition: transform 0.3s ease; /* Transición suave al hacer hover */
    text-decoration: none; /* Quitar subrayado */
    
}

.whatsapp-float:hover {
    transform: scale(1.1); /* Efecto de agrandamiento al pasar el mouse */
    background-color: #1ebe5d; /* Color de fondo al hacer hover */
}
.copyright__footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    text-align: center;
}

.copyright__footer p {
    color: #a3a3a3;
    font-size: 0.9rem;
}


/* Mobile footer polish */
@media screen and (max-width: 768px) {
    footer#contact {
        gap: 2rem;
        padding-inline: 1rem;
        text-align: center;
    }

    .social__media,
    .contact,
    .my__services {
        align-items: center;
        gap: 0.8rem;
    }

    .social__mediaIcons {
        justify-content: center;
        margin-top: 1.25rem !important;
    }

    .phone__number,
    .email {
        justify-content: center;
        flex-wrap: wrap;
        overflow-wrap: anywhere;
    }

    .contact a {
        width: min(100%, 12rem);
        padding: 0.75rem 1rem;
    }

    .whatsapp-float {
        width: 52px;
        height: 52px;
        right: 14px;
        bottom: 14px;
        font-size: 24px;
    }

    .copyright__footer {
        padding: 0.85rem 0 1.25rem;
    }

    .copyright__footer p {
        font-size: 0.78rem;
        line-height: 1.45;
    }
}

/* WhatsApp tooltip */
.whatsapp-float::before {
    content: attr(data-tooltip);
    position: absolute;
    right: calc(100% + 0.9rem);
    top: 50%;
    transform: translate(0.55rem, -50%) scale(0.98);
    width: max-content;
    max-width: 12rem;
    padding: 0.58rem 0.78rem 0.58rem 0.9rem;
    border: 1px solid rgba(255, 73, 0, 0.32);
    border-left: 3px solid var(--secondary-bg-color);
    border-radius: 0.55rem;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(5, 5, 6, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.42);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.whatsapp-float::after {
    content: "";
    position: absolute;
    right: calc(100% + 0.55rem);
    top: 50%;
    transform: translate(0.55rem, -50%) rotate(45deg) scale(0.9);
    width: 0.58rem;
    height: 0.58rem;
    border-top: 1px solid rgba(255, 73, 0, 0.32);
    border-right: 1px solid rgba(255, 73, 0, 0.32);
    background: rgba(5, 5, 6, 0.92);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.whatsapp-float:hover::before,
.whatsapp-float:focus-visible::before {
    opacity: 1;
    transform: translate(0, -50%) scale(1);
}

.whatsapp-float:hover::after,
.whatsapp-float:focus-visible::after {
    opacity: 1;
    transform: translate(0, -50%) rotate(45deg) scale(1);
}

@media screen and (max-width: 576px) {
    .whatsapp-float::before,
    .whatsapp-float::after {
        display: none;
    }
}
