/* ====== ESTILOS GENERALES ====== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

main {
    max-width: 1000px;
    margin: 0 auto;
}

/* ====== ESTILOS DE LOS SELECTS ====== */

select {
    display: block;
    margin: 15px auto;
    padding: 12px 20px;
    font-size: 16px;
    border: 2px solid white;
    border-radius: 25px;
    background-color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    width: 250px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

select:hover {
    background-color: white;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

select:focus {
    outline: none;
    border-color: #667eea;
}

/* ====== ESTILOS DEL BOTÓN ====== */

button {
    display: block;
    margin: 40px auto;
    padding: 15px 40px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    width: 280px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

button:active {
    transform: scale(0.98);
}

/* ====== ESTILOS DE LOS COLORES (MANCHAS DERRETIDAS) ====== */

.contenedor-colores {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 50px;
    padding: 20px;
}

.tarjeta-color {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

.tarjeta-color:hover {
    transform: scale(1.05);
}

/* La mancha de color derretida */
.color-display {
    width: 180px;
    height: 180px;
    border-radius: 40% 60% 50% 50% / 60% 40% 60% 40%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset -5px -5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.color-display:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), inset -5px -5px 15px rgba(0, 0, 0, 0.15);
    transform: scale(1.1);
}

.color-info {
    text-align: center;
    width: 100%;
}

.color-hex {
    background-color: white;
    padding: 12px 20px;
    border-radius: 25px;
    font-weight: bold;
    color: #333;
    font-size: 16px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border: 2px solid #667eea;
}

/* ====== ESTILOS DEL SECTION DE CONTROLES ====== */

.controls {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    text-align: center;
    margin-bottom: 30px;
}

.controls h2 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.controls p {
    color: rgba(255, 255, 255, 0.8);
}

/* ====== ESTILOS DEL FOOTER ====== */

footer {
    text-align: center;
    margin-top: 50px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* ====== BOTÓN DE BLOQUEO ====== */

.boton-bloqueo {
    background-color: #667eea;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    margin-top: 10px;
    transition: all 0.3s ease;
    width: 100%;
}

.boton-bloqueo:hover {
    background-color: #764ba2;
    transform: scale(1.05);
}

.boton-bloqueo:active {
    transform: scale(0.95);
}

/* Estilos para tarjetas bloqueadas */

.tarjeta-color.bloqueado .color-display {
    filter: brightness(0.95);
}

.tarjeta-color.bloqueado .boton-bloqueo {
    background-color: #FF6B6B;
}

.tarjeta-color.bloqueado .boton-bloqueo:hover {
    background-color: #FF5252;
}

/* ====== ESTILOS PARA COPIAR COLOR ====== */

/* ====== ESTILOS PARA COPIAR COLOR ====== */

.color-display {
    cursor: pointer;
    position: relative;
}

.color-display:hover::after {
    content: "Copiar";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    pointer-events: none;
    white-space: nowrap;
}

.color-hex {
    cursor: pointer;
    transition: all 0.2s ease;
}

.color-hex:hover {
    background-color: #667eea !important;
    color: white;
    transform: scale(1.05);
}

/* ====== FEEDBACK DE COPIA ====== */

/* ====== FEEDBACK DE COPIA ====== */

.feedback-copia {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(76, 175, 80, 0.95);
    color: white;
    padding: 18px 32px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    z-index: 1000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

.feedback-copia.mostrar {
    opacity: 1;
}