/* Webtic - Logo Styles */

/* Logo principal en header */
.webtic-logo {
    height: 80px;
    width: auto;
    transition: all 0.3s ease;
    max-width: 240px;
    object-fit: contain;
}

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

/* Logo en móviles */
@media (max-width: 768px) {
    .webtic-logo {
        height: 60px;
        max-width: 180px;
    }
}

/* Logo en footer */
.webtic-logo-footer {
    height: 45px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    /* Comentado para mantener colores originales del logo */
    /* filter: brightness(0) invert(1); */
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.webtic-logo-footer:hover {
    opacity: 1;
}

/* Contenedor del logo (solo logo, sin texto) */
.logo-container {
    display: flex;
    align-items: center;
    gap: 0px;
    cursor: pointer;
}

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

/* Logo loading con mejor UX */
.webtic-logo[src=""] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: logoLoading 1.5s infinite;
    border-radius: 4px;
    min-width: 240px;
    height: 80px;
}

@keyframes logoLoading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Error handling para logo */
.webtic-logo[alt]::after {
    content: "";
    display: block;
}

.webtic-logo-error {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 240px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-weight: bold;
    font-size: 18px;
    border-radius: 8px;
    text-align: center;
}

/* Responsive logo adjustments */
@media (max-width: 640px) {
    .logo-container {
        gap: 12px;
    }
    
    .logo-container span {
        font-size: 1.25rem;
    }
    
    .webtic-logo {
        height: 50px;
        max-width: 150px;
    }
}

/* High DPI display optimization */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .webtic-logo,
    .webtic-logo-footer {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Logo en hero section - Por defecto en blanco para mejor contraste */
.hero-logo {
    max-width: 300px;
    height: auto;
    margin: 0 auto;
    filter: brightness(0) invert(1) drop-shadow(0 10px 30px rgba(255, 255, 255, 0.1));
    transition: all 0.3s ease;
    object-fit: contain;
    opacity: 0.95;
}

.hero-logo:hover {
    transform: scale(1.05);
    filter: brightness(0) invert(1) drop-shadow(0 15px 40px rgba(255, 255, 255, 0.3));
    opacity: 1;
}

/* Efecto especial para logo en hero con fondo degradado */
.float-animation .hero-logo {
    position: relative;
}

.float-animation .hero-logo::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 50%, transparent 70%);
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.float-animation:hover .hero-logo::before {
    opacity: 1;
}

@media (max-width: 768px) {
    .hero-logo {
        max-width: 250px;
    }
}

@media (max-width: 640px) {
    .hero-logo {
        max-width: 200px;
    }
    
    .float-animation .hero-logo::before {
        top: -8px;
        left: -8px;
        right: -8px;
        bottom: -8px;
    }
}

/* Variantes del logo hero */
.hero-logo.logo-white {
    filter: brightness(0) invert(1) drop-shadow(0 10px 30px rgba(255, 255, 255, 0.1));
}

.hero-logo.logo-white:hover {
    filter: brightness(0) invert(1) drop-shadow(0 15px 40px rgba(255, 255, 255, 0.3));
}

.hero-logo.logo-color {
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.1));
}

.hero-logo.logo-color:hover {
    filter: drop-shadow(0 15px 40px rgba(0, 0, 0, 0.2));
}
