* torre.css */

{
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: 'Fredoka', 'Arial', sans-serif;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
min-height: 100vh;
display: flex;
justify-content: center;
align-items: center;
padding: 20px;
}
.container {
width: 100%;
max-width: 1200px;
background: rgba(255, 255, 255, 0.95);
border-radius: 20px;
padding: 30px;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.titulo {
text-align: center;
font-size: 2.5em;
color: #667eea;
margin-bottom: 20px;
text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}
.info-panel {
display: flex;
justify-content: space-around;
margin-bottom: 30px;
flex-wrap: wrap;
gap: 15px;
}
.nivel-actual,
.movimientos {
font-size: 1.3em;
font-weight: bold;
color: #333;
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
padding: 12px 25px;
border-radius: 15px;
color: white;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.area-tubos {
display: flex;
justify-content: center;
align-items: flex-end;
gap: 15px;
margin: 30px 0;
flex-wrap: wrap;
min-height: 350px;
padding: 20px;
}
.tubo {
width: 70px;
min-height: 280px;
background: rgba(255, 255, 255, 0.3);
border: 3px solid #667eea;
border-radius: 15px 15px 20px 20px;
display: flex;
flex-direction: column-reverse;
align-items: center;
padding: 8px;
gap: 5px;
cursor: pointer;
transition: all 0.3s ease;
position: relative;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.tubo:hover {
transform: translateY(-5px);
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.tubo.seleccionado {
border-color: #f5576c;
border-width: 5px;
box-shadow: 0 0 20px rgba(245, 87, 108, 0.6);
transform: translateY(-8px);
}
.esfera {
width: 54px;
height: 54px;
border-radius: 50%;
box-shadow:
inset -5px -5px 10px rgba(0, 0, 0, 0.3),
inset 5px 5px 10px rgba(255, 255, 255, 0.5),
0 4px 8px rgba(0, 0, 0, 0.2);
transition: all 0.3s ease;
position: relative;
}
.esfera::before {
content: '';
position: absolute;
top: 15%;
left: 20%;
width: 40%;
height: 40%;
background: rgba(255, 255, 255, 0.4);
border-radius: 50%;
filter: blur(3px);
}
.color-rojo {
background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}
.color-azul {
background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}
.color-verde {
background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}
.color-amarillo {
background: linear-gradient(135deg, #ffd93d 0%, #ffb93d 100%);
}
.color-morado {
background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}
.controles {
display: flex;
justify-content: center;
gap: 15px;
flex-wrap: wrap;
margin-top: 30px;
}
.btn {
padding: 15px 30px;
font-size: 1.1em;
font-weight: bold;
border: none;
border-radius: 12px;
cursor: pointer;
transition: all 0.3s ease;
color: white;
box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}
.btn:hover:not(:disabled) {
transform: translateY(-3px);
box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.btn:active:not(:disabled) {
transform: translateY(-1px);
}
.btn-reiniciar {
background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}
.btn-deshacer {
background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
}
.btn-siguiente {
background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
}
.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
transform: none;
}
.mensaje-victoria {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.7);
display: flex;
justify-content: center;
align-items: center;
z-index: 1000;
animation: fadeIn 0.3s ease;
}
.mensaje-victoria.oculto {
display: none;
}
.mensaje-contenido {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
padding: 50px;
border-radius: 20px;
text-align: center;
color: white;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
animation: scaleIn 0.5s ease;
}
.mensaje-contenido h2 {
font-size: 2.5em;
margin-bottom: 15px;
}
.mensaje-contenido p {
font-size: 1.3em;
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
@keyframes scaleIn {
from {
transform: scale(0.7);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}
}
@media (max-width: 768px) {
.titulo {
font-size: 2em;
}
.container {
    padding: 20px;
}

.tubo {
    width: 60px;
    min-height: 250px;
}

.esfera {
    width: 46px;
    height: 46px;
}

.area-tubos {
    gap: 10px;
    min-height: 300px;
}

.btn {
    padding: 12px 20px;
    font-size: 1em;
}

.mensaje-contenido {
    padding: 30px;
}

.mensaje-contenido h2 {
    font-size: 2em;
}
}
@media (max-width: 480px) {
.tubo {
width: 50px;
min-height: 220px;
}
.esfera {
    width: 38px;
    height: 38px;
}

.area-tubos {
    gap: 8px;
}
}