:root {
  --pino: #0f5132; --pino2: #157347; --rojo: #b3121d; --oro: #f6c453;
  --crema: #fbf6ec; --tinta: #1d2733; --gris: #5b6672; --linea: #e4dccb;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Nunito, system-ui, sans-serif; background: var(--crema); color: var(--tinta); line-height: 1.45; }
a { color: var(--pino2); }
h1 { font-family: "Mountains of Christmas", Nunito, serif; font-size: 2rem; margin: .2em 0 .3em; color: var(--pino); }
h2 { font-size: 1.15rem; margin: 2em 0 .6em; }
small, .chico { font-size: .85rem; color: var(--gris); }

.p-barra { background: var(--pino); color: #fff; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; padding: 12px 20px; border-bottom: 4px solid var(--rojo); }
.p-marca { font-family: "Mountains of Christmas", serif; font-size: 1.35rem; color: var(--oro); text-decoration: none; margin-right: auto; }
.p-barra nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.p-barra nav a { color: #fff; text-decoration: none; font-weight: 600; }
.p-barra nav a:hover { color: var(--oro); }
.p-quien { font-size: .8rem; opacity: .8; width: 100%; }
.p-main { max-width: 1100px; margin: 0 auto; padding: 20px 16px 60px; }

.fila-titulo { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
.acciones { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.resumen { color: var(--gris); margin: 0 0 16px; }

.btn { display: inline-block; background: var(--rojo); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.1); }
.btn.sec { background: #fff; color: var(--pino); box-shadow: inset 0 0 0 1.5px var(--pino2); }
.btn.peligro { background: #fff; color: var(--rojo); box-shadow: inset 0 0 0 1.5px var(--rojo); }
.btn.chico { padding: 6px 12px; font-size: .85rem; border-radius: 8px; color: #fff; }
.btn.chico.sec { color: var(--pino); } .btn.chico.peligro { color: var(--rojo); }
.btn.grande { font-size: 1.15rem; padding: 16px 26px; }

.tarjeta { background: #fff; border: 1px solid var(--linea); border-radius: 14px; padding: 20px; }
.vacio { text-align: center; color: var(--gris); padding: 40px 20px; }
.login { max-width: 380px; margin: 40px auto; display: grid; gap: 14px; }
.formu { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.formu .ancho { grid-column: 1 / -1; }
label { display: grid; gap: 5px; font-weight: 600; font-size: .92rem; }
input:not([type=radio]):not([type=checkbox]), select { font: inherit; padding: 10px 12px; border: 1.5px solid #cfc6b2; border-radius: 9px; background: #fff; width: 100%; }
input:focus, select:focus { outline: 2px solid var(--oro); border-color: var(--pino2); }
fieldset { border: 1.5px solid #cfc6b2; border-radius: 9px; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 6px 22px; }
legend { font-weight: 600; font-size: .92rem; padding: 0 6px; }
label.radio { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.ojo { color: var(--rojo); }

.aviso { background: #fff5d6; border-left: 5px solid var(--oro); padding: 12px 16px; border-radius: 8px; margin: 0 0 16px; }
.aviso.ok { background: #e3f4e8; border-color: var(--pino2); }
.aviso.error { background: #fde5e6; border-color: var(--rojo); }
.clave { font-size: 1.2rem; background: #fff; padding: 2px 10px; border-radius: 6px; user-select: all; }

.buscar { margin-bottom: 12px; }
.tabla { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--linea); border-radius: 14px; overflow: hidden; }
.tabla th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--gris); background: #f4eddc; }
.tabla th, .tabla td { padding: 10px 12px; border-bottom: 1px solid var(--linea); vertical-align: top; }
.tabla tr.baja td { opacity: .55; }
.ops { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.ops form { margin: 0; }
.chapa { display: inline-block; padding: 1px 10px; border-radius: 99px; font-size: .8rem; font-weight: 800; }
.chapa.verde { background: #d7efdf; color: var(--pino); }
.chapa.roja { background: #fbdcdd; color: var(--rojo); }
.chapa.gris { background: #e6e6e6; color: #555; }
.chapa.ambar { background: #ffe9b3; color: #7a5200; }
.chapa.azul { background: #dbe9f8; color: #1d4f85; }
.globo { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--oro); color: var(--tinta); font-size: .78rem; font-weight: 800; text-align: center; }
.btn.chico.ok { background: var(--pino2); }
.grupo-mod { margin-bottom: 18px; }
.grupo-mod h2 { margin: 0 0 2px; }
.paso-correo { border-left: 5px solid var(--oro); margin-bottom: 18px; }
.paso-correo h2 { margin-top: 0; }
.paso-correo details { margin: 14px 0 6px; }
.paso-correo summary { cursor: pointer; color: var(--pino2); font-weight: 600; }
.en-linea { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.en-linea input { flex: 1 1 220px; width: auto !important; }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
textarea { font: inherit; }

.subir { text-align: center; margin-bottom: 20px; }
.progreso { list-style: none; padding: 0; margin: 10px 0 0; font-size: .9rem; }
.progreso .ok { color: var(--pino2); } .progreso .mal { color: var(--rojo); font-weight: 700; }
.grilla-fotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.grilla-fotos figure { margin: 0; background: #fff; border: 1px solid var(--linea); border-radius: 12px; overflow: hidden; }
.grilla-fotos figure.es-portada { outline: 3px solid var(--oro); }
.grilla-fotos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.grilla-fotos figcaption { display: flex; gap: 6px; justify-content: space-between; align-items: center; padding: 8px; }
.grilla-fotos form { margin: 0; }

@media (max-width: 760px) {
  .formu { grid-template-columns: 1fr; }
  .tabla thead { display: none; }
  .tabla, .tabla tbody, .tabla tr, .tabla td { display: block; width: 100%; }
  .tabla tr { border-bottom: 6px solid var(--crema); padding: 6px 0; }
  .tabla td { border: 0; padding: 4px 14px; }
  .tabla td[data-t]::before { content: attr(data-t) ": "; font-size: .75rem; text-transform: uppercase; color: var(--gris); }
  .ops { justify-content: flex-start; padding-bottom: 10px; }
}
