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

body {
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(180deg, #f3f6ff 0%, #eef4ff 100%);
    color: #1f2937;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    text-align: center;
    padding: 32px 20px 20px;
}

h1 {
    color: #2d3b4e;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 0.5px;
}

.page-content {
    width: min(1100px, 90%);
    margin: 0 auto;
    flex: 1;
}

.controls {
    display: flex;
    justify-content: center;
    align-items: end;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
    padding: 22px 18px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(6px);
}

.field {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 180px;
}

label {
    font-weight: 700;
    color: #334155;
    font-size: 0.95rem;
}

select,
button {
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid #dbe3f0;
    font-size: 0.96rem;
    transition: all 0.2s ease;
}

select {
    background-color: #fff;
    color: #1f2937;
    min-width: 180px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

button {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 700;
    min-width: 170px;
    box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}

button:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-1px);
}

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

button:focus,
select:focus,
.color-card:focus-visible {
    outline: 3px solid rgba(96, 165, 250, 0.9);
    outline-offset: 2px;
}

#paleta {
  display: grid;
  gap: 28px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  margin-bottom: 40px;
}

.tarjeta {
  width: 100%;
  min-height: 260px;
  max-width: 180px;
  border: 1px solid #000;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  padding: 10px;
  border-radius: 13px;
  gap: 7px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tarjeta:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.16);
}

.color-card {
    position: relative;
    overflow: hidden;
    min-height: 170px;
    border-radius: 13px;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.color-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.12);
}

.lock-btn:hover {
    background: rgba(255, 255, 255, 0.95);
}

.tarjeta .lock-btn {
    width: 110%;
    min-width: 0;
}

.color-code {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 14px;
    background-color: rgba(255, 255, 255, 0.86);
    padding: 10px 12px;
    border-radius: 10px;
    color: #111827;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-align: center;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

.site-footer {
    text-align: center;
    padding: 20px 15px 28px;
    color: #0d1518;
    font-size: 1.25rem;
    transform: translateY(2px);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 22px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(6px);
    background: rgba(174, 166, 166, 0.8);
}

@media (max-width: 600px) {
    .controls {
        align-items: stretch;
    }

    .field,
    .controls button,
    .controls select {
        width: 100%;
    }
}
.tarjeta p {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 15px rgba(15, 23, 42, 0.08);
  border-radius: 15px;
  padding: 7px 9px;
  font-size: 0.90rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
}
body {
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.6), rgba(15, 23, 42, 0.6)),
    url("../assents/Fondo proyecto.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #e2e8f0;
}

.site-header h1 {
  color: #f8fafc;
}

.controls {
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  color: #f8fafc;
}

label {
  color: #e2e8f0;
}

select {
  background: rgba(15, 23, 42, 0.5);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

#paleta {
  position: relative;
  z-index: 1;
}
#toast {
  position: fixed;
  right: 20px;
  bottom: 90px;
  z-index: 10;
  padding: 12px 18px;
  border-radius: 8px;
  background: #6b7dae;
  color: white;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

#toast.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}