/* Optimizaciones de rendimiento */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Optimización de fuentes */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    /* Optimización de renderizado */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Optimización de imágenes */
img {
    max-width: 100%;
    height: auto;
}

/* Optimización de animaciones */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:root {
    --color-bg: #333;
    --color-text: white;
    --color-hover: rgba(255, 255, 255, 0.2);
    --font-size-logo: 1.5rem;
    --font-size-links: 1.125rem;
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float a:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    font-size: 28px;
}

.telefono-float {
    position: fixed;
    width: auto;
    bottom: 20px;
    right: 20px;
    background-color: #25d366; /* color tipo WhatsApp, opcional */
    color: white;
    font-weight: bold;
    padding: 10px 15px;
    border-radius: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    font-family: Arial, sans-serif;
    font-size: 16px;
    cursor: default; /* indica que no se puede clickear */
    z-index: 1000;
}

.telefono-float span {
    display: inline-block;
}


/* Animación de pulso */
@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.8);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}

/* Responsive para el botón de WhatsApp */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-float a {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-float i {
        font-size: 24px;
    }
}