/* proceso-calidad.css - Estilos específicos para la sección de Proceso de Calidad */

/* ESTILOS BASE PARA LOS ICONOS */
.process-step .step-icon {
    position: relative;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--azul-marino, #1a237e), var(--azul-medio, #283593));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    color: white;
}

.step-icon-animated {
    background: transparent !important;
    box-shadow: none !important;
}

/* ANIMACIÓN DE PESCA SOSTENIBLE */
.animated-fishing {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fishing-float 4s infinite ease-in-out;
}

.fishing-rod {
    position: absolute;
    top: 5px;
    left: 15px;
    width: 30px;
    height: 30px;
    transform-origin: bottom left;
    animation: rod-swing 6s infinite ease-in-out;
}

.rod {
    position: absolute;
    width: 25px;
    height: 3px;
    background: var(--azul-marino, #1a237e);
    border-radius: 2px;
    transform: rotate(-30deg);
    top: 0;
    left: 0;
}

.line {
    position: absolute;
    width: 2px;
    height: 35px;
    background: var(--azul-medio, #283593);
    top: 8px;
    left: 22px;
    animation: line-swing 6s infinite ease-in-out;
}

.hook {
    position: absolute;
    width: 8px;
    height: 8px;
    border: 2px solid var(--azul-marino, #1a237e);
    border-top: none;
    border-right: none;
    border-radius: 0 0 0 8px;
    top: 40px;
    left: 20px;
    animation: hook-bounce 6s infinite ease-in-out;
}

.water-waves {
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 15px;
}

.wave {
    position: absolute;
    height: 3px;
    background: var(--azul-celeste, #29b6f6);
    border-radius: 50%;
    opacity: 0.6;
}

.wave-1 {
    width: 20px;
    bottom: 0;
    left: 10px;
    animation: wave-move 3s infinite ease-in-out;
}

.wave-2 {
    width: 15px;
    bottom: 3px;
    left: 25px;
    animation: wave-move 3s infinite ease-in-out 0.5s;
}

.wave-3 {
    width: 18px;
    bottom: 1px;
    left: 40px;
    animation: wave-move 3s infinite ease-in-out 1s;
}

.fish {
    position: absolute;
    width: 12px;
    height: 6px;
    background: linear-gradient(45deg, #FF6B6B, #FF8E8E);
    border-radius: 50%;
    top: 45px;
    left: 35px;
    animation: fish-swim 8s infinite ease-in-out;
}

/* ANIMACIÓN DE PROCESAMIENTO Y FILETEADO */
.animated-processing {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: processing-float 4s infinite ease-in-out;
}

.scissors {
    position: relative;
    width: 30px;
    height: 25px;
    z-index: 2;
}

.scissor-blade {
    position: absolute;
    width: 12px;
    height: 15px;
    background: linear-gradient(45deg, #e0e0e0, #ffffff);
    border-radius: 2px 2px 0 0;
    top: 0;
    border: 1px solid #ccc;
}

.left-blade {
    left: 8px;
    transform-origin: bottom left;
    animation: scissor-cut 2s infinite ease-in-out;
}

.right-blade {
    right: 8px;
    transform-origin: bottom right;
    animation: scissor-cut 2s infinite ease-in-out 0.1s;
}

.scissor-handle {
    position: absolute;
    width: 8px;
    height: 12px;
    background: var(--azul-marino, #1a237e);
    border-radius: 0 0 2px 2px;
    bottom: 0;
}

.left-handle {
    left: 8px;
    transform: rotate(5deg);
}

.right-handle {
    right: 8px;
    transform: rotate(-5deg);
}

.scissor-pivot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--dorado, #FFD700);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.cutting-line {
    position: absolute;
    width: 25px;
    height: 2px;
    background: var(--azul-medio, #283593);
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.7;
    animation: cut-line 2s infinite ease-in-out;
}

.fish-pieces {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.fish-piece {
    position: absolute;
    width: 8px;
    height: 12px;
    background: linear-gradient(45deg, #FF6B6B, #FF8E8E);
    border-radius: 50%;
    opacity: 0;
}

.piece-1 {
    top: 45px;
    left: 15px;
    animation: piece-fall 3s infinite ease-in-out 1s;
}

.piece-2 {
    top: 40px;
    right: 10px;
    animation: piece-fall 3s infinite ease-in-out 1.5s;
}

/* ANIMACIÓN DE CADENA DE FRÍO - COLORES MEJORADOS */
.animated-cold-chain {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: cold-pulse 4s infinite ease-in-out;
}

.snowflake {
    position: relative;
    width: 40px;
    height: 40px;
    animation: snowflake-rotate 8s infinite linear;
    z-index: 2;
}

.snow-arm {
    position: absolute;
    background: linear-gradient(90deg, #4A90E2, #1565C0); /* Azul más fuerte */
    border-radius: 2px;
    top: 50%;
    left: 50%;
    transform-origin: center;
    box-shadow: 0 0 4px rgba(21, 101, 192, 0.8);
}

.snow-arm::before,
.snow-arm::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    background: inherit;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.snow-arm::before { left: -8px; }
.snow-arm::after { right: -8px; }

.arm-1 {
    width: 25px;
    height: 3px;
    transform: translate(-50%, -50%);
}

.arm-2 {
    width: 25px;
    height: 3px;
    transform: translate(-50%, -50%) rotate(60deg);
}

.arm-3 {
    width: 25px;
    height: 3px;
    transform: translate(-50%, -50%) rotate(120deg);
}

.snow-center {
    position: absolute;
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #E53935, #B71C1C); /* Rojo intenso */
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 8px rgba(229, 57, 53, 0.8);
    z-index: 3;
}

.frost-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.frost-circle {
    position: absolute;
    border: 2px solid rgba(74, 144, 226, 0.4); /* Azul más visible */
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: frost-pulse 3s infinite ease-in-out;
}

.frost-1 {
    width: 50px;
    height: 50px;
    animation-delay: 0s;
}

.frost-2 {
    width: 60px;
    height: 60px;
    animation-delay: 0.5s;
}

.frost-3 {
    width: 70px;
    height: 70px;
    animation-delay: 1s;
}

.temperature-display {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(21, 101, 192, 0.9); /* Azul más oscuro */
    border-radius: 4px;
    padding: 2px 4px;
    z-index: 4;
    border: 1px solid rgba(229, 57, 53, 0.6); /* Borde rojo */
}

.temp-number {
    font-size: 8px;
    font-weight: bold;
    color: #ffffff;
    font-family: Arial, sans-serif;
}

.cold-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: linear-gradient(45deg, #4A90E2, #E53935); /* Azul a rojo */
    border-radius: 50%;
    opacity: 0;
    animation: particle-float 4s infinite linear;
    box-shadow: 0 0 3px rgba(74, 144, 226, 0.8);
}

.p1 { top: 10%; left: 20%; animation-delay: 0s; }
.p2 { top: 80%; left: 70%; animation-delay: 1s; }
.p3 { top: 60%; left: 30%; animation-delay: 2s; }
.p4 { top: 30%; left: 80%; animation-delay: 3s; }

/* ANIMACIÓN DE EMPAQUE AL VACÍO */
.animated-packaging {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: packaging-pulse 5s infinite ease-in-out;
}

.vacuum-box {
    position: relative;
    width: 35px;
    height: 25px;
    z-index: 2;
    animation: box-float 4s infinite ease-in-out;
}

.box-lid {
    position: absolute;
    width: 40px;
    height: 8px;
    background: linear-gradient(135deg, #8B4513, #A0522D);
    top: 0;
    left: -2px;
    border-radius: 2px 2px 0 0;
    border: 1px solid #654321;
    animation: lid-seal 3s infinite ease-in-out;
}

.box-body {
    position: absolute;
    width: 36px;
    height: 20px;
    background: linear-gradient(135deg, #DEB887, #F5DEB3);
    top: 8px;
    border: 1px solid #A0522D;
    border-radius: 0 0 3px 3px;
    overflow: hidden;
}

.product-inside {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fish-product {
    width: 20px;
    height: 8px;
    background: linear-gradient(45deg, #FF6B6B, #FF8E8E);
    border-radius: 10px;
    animation: product-fresh 4s infinite ease-in-out;
}

/* Efecto de vacío */
.vacuum-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.vacuum-ring {
    position: absolute;
    border: 2px solid rgba(139, 69, 19, 0.4);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: vacuum-shrink 4s infinite ease-in-out;
}

.ring-1 {
    width: 60px;
    height: 60px;
    animation-delay: 0s;
}

.ring-2 {
    width: 50px;
    height: 50px;
    animation-delay: 0.3s;
}

.ring-3 {
    width: 40px;
    height: 40px;
    animation-delay: 0.6s;
}

/* Burbujas de aire siendo extraídas */
.air-bubbles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.bubble {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    opacity: 0;
    animation: bubble-extract 3s infinite linear;
}

.bubble-1 {
    width: 4px;
    height: 4px;
    top: 40%;
    left: 45%;
    animation-delay: 0s;
}

.bubble-2 {
    width: 3px;
    height: 3px;
    top: 50%;
    left: 40%;
    animation-delay: 1s;
}

.bubble-3 {
    width: 5px;
    height: 5px;
    top: 35%;
    left: 50%;
    animation-delay: 2s;
}

/* Efecto de sellado */
.seal-effect {
    position: absolute;
    width: 45px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
    top: 30%;
    opacity: 0;
    animation: seal-flash 4s infinite ease-in-out;
}

/* ANIMACIÓN DE DISTRIBUCIÓN */
.animated-distribution {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: distribution-vibrate 3s infinite ease-in-out;
}

.delivery-truck {
    position: relative;
    width: 45px;
    height: 25px;
    z-index: 3;
    animation: truck-move 6s infinite linear;
}

.truck-cabin {
    position: absolute;
    width: 15px;
    height: 12px;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    left: 0;
    top: 3px;
    border-radius: 3px 0 0 3px;
}

.window {
    position: absolute;
    width: 8px;
    height: 6px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 1px;
    top: 2px;
    left: 3px;
}

.truck-container {
    position: absolute;
    width: 25px;
    height: 15px;
    background: linear-gradient(135deg, #34495e, #2c3e50);
    left: 15px;
    top: 0;
    border-radius: 0 3px 3px 0;
}

.container-door {
    position: absolute;
    width: 10px;
    height: 8px;
    background: rgba(52, 73, 94, 0.8);
    border: 1px solid #2c3e50;
    right: 3px;
    top: 3px;
    border-radius: 1px;
}

.door-handle {
    position: absolute;
    width: 2px;
    height: 1px;
    background: #f39c12;
    left: 1px;
    top: 50%;
    transform: translateY(-50%);
}

.cold-indicator {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #3498db;
    border-radius: 50%;
    left: 5px;
    top: 2px;
    animation: cold-blink 2s infinite ease-in-out;
}

.truck-wheels {
    position: absolute;
    width: 100%;
    bottom: -3px;
}

.wheel {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #2c3e50;
    border-radius: 50%;
    border: 1px solid #34495e;
    bottom: 0;
    animation: wheel-rotate 1s infinite linear;
}

.wheel-1 { left: 3px; }
.wheel-2 { left: 18px; }
.wheel-3 { right: 3px; }

.road {
    position: absolute;
    width: 60px;
    height: 4px;
    background: #7f8c8d;
    bottom: 15px;
    border-radius: 2px;
    overflow: hidden;
}

.road-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, #f1c40f 50%, transparent 100%);
    animation: road-move 1s infinite linear;
}

.movement-effect {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.speed-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(52, 152, 219, 0.6), transparent);
    right: 10px;
    opacity: 0;
    animation: speed-line 2s infinite linear;
}

.line-1 { 
    width: 15px; 
    top: 30%; 
    animation-delay: 0s; 
}
.line-2 { 
    width: 12px; 
    top: 50%; 
    animation-delay: 0.3s; 
}
.line-3 { 
    width: 10px; 
    top: 70%; 
    animation-delay: 0.6s; 
}

.delivery-ping {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.ping-circle {
    position: absolute;
    border: 2px solid rgba(46, 204, 113, 0.6);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: delivery-ping 3s infinite ease-in-out;
}

.ping-1 {
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.ping-2 {
    width: 30px;
    height: 30px;
    animation-delay: 1s;
}

.ping-3 {
    width: 40px;
    height: 40px;
    animation-delay: 2s;
}

/* ANIMACIONES COMPARTIDAS */
@keyframes fishing-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

@keyframes rod-swing {
    0%, 100% { transform: rotate(-5deg); }
    25% { transform: rotate(5deg); }
    50% { transform: rotate(-8deg); }
    75% { transform: rotate(3deg); }
}

@keyframes line-swing {
    0%, 100% { transform: translateX(0px) rotate(0deg); }
    25% { transform: translateX(3px) rotate(2deg); }
    50% { transform: translateX(-2px) rotate(-1deg); }
    75% { transform: translateX(1px) rotate(1deg); }
}

@keyframes hook-bounce {
    0%, 85%, 100% { transform: translateY(0px); }
    90% { transform: translateY(-3px); }
    95% { transform: translateY(1px); }
}

@keyframes wave-move {
    0%, 100% { transform: translateX(0px) scale(1); opacity: 0.6; }
    50% { transform: translateX(5px) scale(1.1); opacity: 0.8; }
}

@keyframes fish-swim {
    0%, 100% { transform: translateX(0px) translateY(0px); }
    25% { transform: translateX(-15px) translateY(-2px); }
    50% { transform: translateX(-25px) translateY(1px); }
    75% { transform: translateX(-10px) translateY(-1px); }
}

@keyframes scissor-cut {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(15deg); }
}

@keyframes processing-float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-3px); }
}

@keyframes cut-line {
    0%, 100% { opacity: 0.3; width: 20px; }
    50% { opacity: 0.8; width: 25px; }
}

@keyframes piece-fall {
    0% { opacity: 0; transform: translateY(0px) rotate(0deg); }
    10% { opacity: 1; transform: translateY(-5px) rotate(-10deg); }
    100% { opacity: 0; transform: translateY(20px) rotate(45deg); }
}

@keyframes snowflake-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes cold-pulse {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.05); filter: brightness(1.2); }
}

@keyframes frost-pulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes particle-float {
    0% { opacity: 0; transform: translateY(0px) scale(0); }
    10% { opacity: 1; transform: translateY(-5px) scale(1); }
    90% { opacity: 0.5; transform: translateY(-20px) scale(0.8); }
    100% { opacity: 0; transform: translateY(-25px) scale(0); }
}

@keyframes packaging-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes box-float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-2px) rotate(1deg); }
    75% { transform: translateY(1px) rotate(-1deg); }
}

@keyframes lid-seal {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-1px); }
}

@keyframes product-fresh {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes vacuum-shrink {
    0% { 
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.8);
    }
    100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes bubble-extract {
    0% {
        opacity: 0;
        transform: translateY(0px) scale(0);
    }
    10% {
        opacity: 1;
        transform: translateY(-5px) scale(1);
    }
    90% {
        opacity: 0.5;
        transform: translateY(-25px) scale(0.8);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) scale(0);
    }
}

@keyframes seal-flash {
    0%, 100% { opacity: 0; transform: scaleX(0); }
    50% { opacity: 1; transform: scaleX(1); }
}

@keyframes distribution-vibrate {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-2px); }
}

@keyframes truck-move {
    0% { transform: translateX(-10px); }
    25% { transform: translateX(-5px) translateY(-1px); }
    50% { transform: translateX(0px); }
    75% { transform: translateX(5px) translateY(1px); }
    100% { transform: translateX(10px); }
}

@keyframes wheel-rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes road-move {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes cold-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

@keyframes speed-line {
    0% { 
        opacity: 0;
        transform: translateX(0px);
    }
    10% {
        opacity: 1;
        transform: translateX(-5px);
    }
    90% {
        opacity: 0.5;
        transform: translateX(-20px);
    }
    100% {
        opacity: 0;
        transform: translateX(-25px);
    }
}

@keyframes delivery-ping {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }
    50% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* EFECTOS HOVER */
.process-step:hover .step-icon {
    transform: scale(1.1);
    transition: all 0.3s ease;
}

/* DEBUG TEMPORAL */
.process-step:nth-child(1) .step-icon { border: 2px solid red !important; }
.process-step:nth-child(2) .step-icon { border: 2px solid green !important; }
.process-step:nth-child(3) .step-icon { border: 2px solid blue !important; }
.process-step:nth-child(4) .step-icon { border: 2px solid orange !important; }
.process-step:nth-child(5) .step-icon { border: 2px solid purple !important; }