/* =====================================================
   LOGOTIPOS - ESTILOS CONSISTENTES CON DESARROLLO WEB
   Mismo look & feel que desarrollo_web_modern.css
   ===================================================== */

/* Este archivo solo contiene los estilos únicos de la animación de logotipos */
/* Todos los estilos de página (hero, sections, etc) vienen de desarrollo_web_modern.css */

/* ===== ANIMACIÓN 3D - DISEÑO DE LOGOTIPOS ===== */

.logo-animation-container {
    position: relative;
    width: 100%;
    height: 500px;
    perspective: 1500px;
    overflow: hidden;
}

/* Escena 3D principal */
.design-scene {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

/* Formas geométricas flotantes */
.geometric-shape {
    position: absolute;
    transform-style: preserve-3d;
    animation: floatShape 8s ease-in-out infinite;
}

.shape-circle {
    width: 120px;
    height: 120px;
    border: 4px solid rgba(33, 150, 243, 0.8);
    border-radius: 50%;
    top: 15%;
    left: 10%;
    animation-delay: 0s;
    box-shadow: 0 0 30px rgba(33, 150, 243, 0.5);
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(33, 150, 243, 0.7);
    top: 50%;
    right: 15%;
    animation-delay: 2s;
    filter: drop-shadow(0 0 30px rgba(33, 150, 243, 0.6));
}

.shape-square {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.5), rgba(25, 118, 210, 0.5));
    border: 3px solid rgba(33, 150, 243, 0.8);
    top: 65%;
    left: 20%;
    animation-delay: 4s;
    transform: rotate(45deg);
    box-shadow: 0 0 40px rgba(33, 150, 243, 0.5);
}

.shape-hexagon {
    width: 80px;
    height: 140px;
    background: rgba(33, 150, 243, 0.6);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    top: 30%;
    right: 25%;
    animation-delay: 6s;
    filter: drop-shadow(0 0 35px rgba(33, 150, 243, 0.6));
}

/* Panel de diseño central */
.design-canvas {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateY(0deg);
    width: 350px;
    height: 400px;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(33, 150, 243, 0.3);
    padding: 30px;
    animation: canvasPulse 4s ease-in-out infinite;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.canvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.canvas-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a1a;
}

.canvas-tools {
    display: flex;
    gap: 8px;
}

.tool-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tool-icon:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.6);
}

/* Logo en construcción */
.logo-preview {
    position: relative;
    width: 100%;
    height: 200px;
    background: #f8f9fa;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
}

.logo-letter {
    font-size: 5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #2196F3, #1976D2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: letterScale 3s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(33, 150, 243, 0.5));
}

/* Paleta de colores */
.color-palette {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3), 0 0 15px rgba(33, 150, 243, 0.3);
    animation: colorPulse 2s ease-in-out infinite;
}

.color-swatch:nth-child(1) {
    background: #2196F3;
    animation-delay: 0s;
}

.color-swatch:nth-child(2) {
    background: #1976D2;
    animation-delay: 0.2s;
}

.color-swatch:nth-child(3) {
    background: #0D47A1;
    animation-delay: 0.4s;
}

.color-swatch:nth-child(4) {
    background: #64B5F6;
    animation-delay: 0.6s;
}

.color-swatch:nth-child(5) {
    background: #BBDEFB;
    animation-delay: 0.8s;
}

.color-swatch:hover {
    transform: scale(1.2);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4), 0 0 30px rgba(33, 150, 243, 0.6);
}

/* Herramientas de diseño flotantes */
.design-tool {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.6;
    animation: toolFloat 6s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(33, 150, 243, 0.8));
}

.tool-pencil {
    top: 10%;
    right: 10%;
    animation-delay: 0s;
}

.tool-brush {
    bottom: 15%;
    right: 20%;
    animation-delay: 2s;
}

.tool-ruler {
    top: 60%;
    left: 8%;
    animation-delay: 4s;
}

/* Partículas creativas */
.creative-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(33, 150, 243, 1);
    border-radius: 50%;
    animation: particleCreative 12s linear infinite;
    box-shadow: 0 0 15px rgba(33, 150, 243, 1);
}

.creative-particle:nth-child(odd) {
    background: rgba(25, 118, 210, 1);
}

/* Cursor de diseño */
.design-cursor {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid #2196F3;
    border-radius: 50%;
    pointer-events: none;
    animation: cursorMove 8s ease-in-out infinite;
    z-index: 20;
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.8);
}

.design-cursor::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #2196F3;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(33, 150, 243, 1);
}

/* Grid de diseño */
.design-grid {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(33, 150, 243, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(33, 150, 243, 0.08) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.7;
}

/* Texto de diseño */
.design-text {
    position: absolute;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: rgba(33, 150, 243, 0.8);
    font-weight: 600;
    animation: textFade 4s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(33, 150, 243, 0.5);
}

.text-1 {
    top: 8%;
    left: 35%;
    animation-delay: 0s;
}

.text-2 {
    bottom: 12%;
    left: 15%;
    animation-delay: 2s;
}

.text-3 {
    top: 20%;
    right: 8%;
    animation-delay: 4s;
}

/* Iconos de marca */
.brand-icon {
    position: absolute;
    font-size: 1.8rem;
    opacity: 0.5;
    animation: iconSpin 10s linear infinite;
    filter: drop-shadow(0 0 15px rgba(33, 150, 243, 0.6));
}

.icon-star {
    top: 25%;
    left: 15%;
    animation-delay: 0s;
}

.icon-heart {
    bottom: 30%;
    right: 12%;
    animation-delay: 3s;
}

.icon-diamond {
    top: 70%;
    left: 25%;
    animation-delay: 6s;
}

/* Líneas de brillo */
.glow-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(33, 150, 243, 1) 50%, 
        transparent 100%
    );
    animation: lineGlow 3s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.8);
}

.line-1 {
    top: 20%;
    left: 0;
    width: 100%;
    animation-delay: 0s;
}

.line-2 {
    top: 60%;
    left: 0;
    width: 100%;
    animation-delay: 1.5s;
}

/* ===== ANIMACIONES ===== */

@keyframes floatShape {
    0%, 100% {
        transform: translateY(0) rotateX(0deg) rotateZ(0deg);
        filter: drop-shadow(0 0 20px rgba(33, 150, 243, 0.4));
    }
    25% {
        transform: translateY(-30px) rotateX(10deg) rotateZ(5deg);
        filter: drop-shadow(0 0 30px rgba(33, 150, 243, 0.6));
    }
    50% {
        transform: translateY(0) rotateX(-5deg) rotateZ(-5deg);
        filter: drop-shadow(0 0 25px rgba(33, 150, 243, 0.5));
    }
    75% {
        transform: translateY(-20px) rotateX(5deg) rotateZ(3deg);
        filter: drop-shadow(0 0 35px rgba(33, 150, 243, 0.7));
    }
}

@keyframes canvasPulse {
    0%, 100% {
        transform: translate(-50%, -50%) rotateY(0deg) scale(1);
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 80px rgba(33, 150, 243, 0.3);
    }
    50% {
        transform: translate(-50%, -50%) rotateY(5deg) scale(1.02);
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6), 0 0 120px rgba(33, 150, 243, 0.6);
    }
}

@keyframes letterScale {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(2deg);
    }
}

@keyframes colorPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

@keyframes toolFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-25px) rotate(10deg);
        opacity: 0.9;
    }
}

@keyframes particleCreative {
    0% {
        transform: translate(0, 100vh) scale(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate(50px, -100vh) scale(1.5) rotate(360deg);
        opacity: 0;
    }
}

@keyframes cursorMove {
    0% {
        top: 50%;
        left: 50%;
    }
    25% {
        top: 30%;
        left: 60%;
    }
    50% {
        top: 60%;
        left: 45%;
    }
    75% {
        top: 40%;
        left: 55%;
    }
    100% {
        top: 50%;
        left: 50%;
    }
}

@keyframes textFade {
    0%, 100% {
        opacity: 0.8;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-5px);
    }
}

@keyframes iconSpin {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: rotate(180deg) scale(1.2);
        opacity: 0.7;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.5;
    }
}

@keyframes lineGlow {
    0%, 100% {
        opacity: 0;
        transform: translateX(-100%);
    }
    50% {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
    .logo-animation-container {
        height: 400px;
    }
    
    .design-canvas {
        width: 280px;
        height: 350px;
        padding: 20px;
    }
    
    .logo-letter {
        font-size: 3.5rem;
    }
    
    .color-swatch {
        width: 35px;
        height: 35px;
    }
    
    .shape-circle,
    .shape-square,
    .shape-hexagon {
        transform: scale(0.7);
    }
    
    .design-tool {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .logo-animation-container {
        height: 320px;
    }
    
    .design-canvas {
        width: 240px;
        height: 300px;
        padding: 15px;
    }
    
    .logo-letter {
        font-size: 2.5rem;
    }
    
    .color-swatch {
        width: 30px;
        height: 30px;
        gap: 8px;
    }
    
    .geometric-shape {
        display: none;
    }
    
    .design-text {
        display: none;
    }
}

/* Hover en canvas */
.design-canvas:hover {
    transform: translate(-50%, -50%) rotateY(5deg) scale(1.03);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 100px rgba(33, 150, 243, 0.5);
}

.design-canvas:hover .logo-letter {
    transform: scale(1.1);
}