﻿/* ==========================================
           CONTENIDO DEL ARCHIVO stylesheet.css
           ========================================== */

:root {
    --cursor-dot-size: 15px; /*Diametro de punto*/
    --cursor-outline-size: 70px; /*Diametro del Circulo*/
    --cursor-color: #0751fb; /*Color de Circulo*/
    --cursor-hover-size: 80px; /*El circulo se expande a 80px cuando pasa sobre un control*/
    --ripple-color: rgba(0, 255, 255, 0.4); /*Formato de color que define los canales Rojo, G (Green/Verde), B (Blue/Azul) y A (Alpha/Opacidad)*/
}
/*El modelo de color RGB (Red, Green, Blue) define los tonos mediante la combinación aditiva de tres canales de luz. Cada canal tiene un valor entero que va desde 0 (sin intensidad) hasta 255 (máxima intensidad).*/

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Agency FB', system-ui, -apple-system, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    min-height: 100vh;
    /* Ocultar cursor predeterminado en elementos interactivos */
    cursor: none !important;
}

/* Excepción para campos de texto donde se necesita el cursor de texto */
input, textarea, select {
    cursor: text !important;
}

/* Punto central del cursor */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--cursor-dot-size);
    height: var(--cursor-dot-size);
    background-color: var(--cursor-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
    mix-blend-mode: difference;
}

/* Contorno del cursor con efecto de retraso */
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--cursor-outline-size);
    height: var(--cursor-outline-size);
    border: 2px solid var(--cursor-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94), background-color 0.3s ease, border-color 0.3s ease;
}

/* Estado hover del cursor */
.cursor-dot.hovered {
    width: 15px; /*Valor que adquiere e punto cuand pasa sobre un control*/
    height: 15px; /*Valor que adquiere e punto cuand pasa sobre un control*/
    background-color: #f91509; /*#ffffff*/
}

.cursor-outline.hovered {
    width: var(--cursor-hover-size);
    height: var(--cursor-hover-size);
    background-color: rgba(37, 99, 235, 0.1);
    border-color: transparent;
}

/* Efecto de onda al tocar en móviles/tablets */
.touch-ripple {
    position: fixed;
    border-radius: 50%;
    background-color: var(--ripple-color);
    pointer-events: none;
    z-index: 99997;
    transform: translate(-50%, -50%);
    animation: ripple-animation 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes ripple-animation {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
    }

    100% {
        width: 120px;
        height: 120px;
        opacity: 0;
    }
}

/* Estilos de demostración para el contenido */
.demo-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.demo-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #0f172a;
}

.demo-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: #475569;
    margin-bottom: 2rem;
}

.demo-button {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--cursor-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    margin: 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

    .demo-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
    }

.demo-link {
    color: var(--cursor-color);
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 500;
}

.demo-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    margin-top: 40px;
    text-align: left;
}

/* Ajustes responsive específicos */
@media (max-width: 768px) {
    :root {
        --cursor-outline-size: 50px;
        --cursor-hover-size: 70px;
    }

    .demo-title {
        font-size: 2rem;
    }
}

/* Ocultar cursores personalizados en dispositivos que no soportan hover si se prefiere, 
           pero el requisito indica que debe verse en móviles, por lo que se mantiene visible */
@media (hover: none) and (pointer: coarse) {
    .cursor-dot, .cursor-outline {
        display: block; /* Forzar visualización en táctil */
    }
}
