/* Panel de Valentino: mismos colores, controles grandes para usar con el pulgar. */
.admin { background: #F3F5F9; }
.login { min-height: 100dvh; display: grid; place-items: center; padding: 20px; background: var(--va-tenue) no-repeat right -60px bottom -40px / 520px auto, linear-gradient(135deg, #021E5A, #01133D); }
.login-caja { width: 100%; max-width: 400px; background: #fff; border-radius: 12px; padding: 34px 24px; text-align: center; display: grid; gap: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.login-caja img { margin: 0 auto; }
.login-caja h1 { font-family: var(--serif); font-stretch: 116%; font-weight: 800; color: var(--azul); margin: 6px 0 0; font-size: 1.6rem; }
.login-caja p { margin: 0; color: var(--texto-2); }
.login-caja input { font: inherit; font-size: 1.1rem; min-height: 60px; border-radius: 16px; border: 2px solid var(--borde); padding: 0 16px; text-align: center; }
.login-caja input:focus { outline: none; border-color: var(--azul); }
.error { color: var(--rojo); font-weight: 700; min-height: 1.2em; margin: 0; }

.btn-agregar { min-height: 52px; padding: 0 18px; }
.admin-main { max-width: 900px; margin: 0 auto; padding: 16px 14px 60px; }
.resumen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.resumen div { background: #fff; border-radius: 18px; padding: 14px; text-align: center; border: 1px solid var(--borde); }
.resumen strong { display: block; font-size: 1.7rem; font-family: var(--serif); color: var(--azul); }
.resumen span { font-size: .82rem; color: var(--texto-2); font-weight: 600; }
.pestanas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: #fff; border-radius: 16px; padding: 4px; margin-bottom: 14px; border: 1px solid var(--borde); }
.pestanas button { min-height: 50px; border: 0; border-radius: 12px; background: transparent; font: inherit; font-weight: 700; color: var(--texto-2); cursor: pointer; }
.pestanas button[aria-selected="true"] { background: var(--azul); color: #fff; }

.lista { display: grid; gap: 12px; }
.item { background: #fff; border-radius: 20px; padding: 12px; border: 1px solid var(--borde); display: grid; grid-template-columns: 110px 1fr; gap: 12px; box-shadow: 0 2px 8px rgba(2, 30, 90, .05); }
.item-foto { width: 110px; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #E6EBF3; display: grid; place-items: center; color: var(--texto-2); font-size: .75rem; font-weight: 700; text-align: center; }
.item-foto img { width: 100%; height: 100%; object-fit: cover; }
.item h3 { margin: 0; font-family: var(--serif); font-size: 1.1rem; color: var(--azul); line-height: 1.25; }
.item .meta { font-size: .9rem; color: var(--texto-2); font-weight: 600; margin: 2px 0; }
.item .stats { font-size: .82rem; color: var(--texto-2); }
.item-acciones { grid-column: 1 / -1; display: grid; gap: 8px; }
.estados { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.estados button { min-height: 50px; border-radius: 14px; border: 2px solid var(--borde); background: #fff; font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; color: var(--texto-2); }
.estados button[aria-pressed="true"][data-e="disponible"] { background: #E6F4EA; border-color: #2E7D32; color: #1F5E23; }
.estados button[aria-pressed="true"][data-e="reservado"] { background: #FFF3D6; border-color: #C98A00; color: #7A5300; }
.estados button[aria-pressed="true"][data-e="vendido"] { background: #FDECEA; border-color: var(--rojo); color: var(--rojo); }
.item .btn { min-height: 50px; }
.item.oculto { opacity: .6; }

.editor { position: fixed; inset: 0; z-index: 40; background: #F3F5F9; overflow-y: auto; }
.editor-barra { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; background: rgba(243, 245, 249, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--borde); }
.editor-barra h2 { margin: 0; font-family: var(--serif); color: var(--azul); font-size: 1.25rem; }
.editor-form { max-width: 760px; margin: 0 auto; padding: 14px 14px 80px; display: grid; gap: 14px; }
.bloque { border: 0; background: #fff; border-radius: 20px; padding: 16px; margin: 0; display: grid; gap: 12px; border: 1px solid var(--borde); }
.bloque legend { font-family: var(--serif); font-weight: 700; color: var(--azul); font-size: 1.2rem; padding: 0; float: left; width: 100%; margin-bottom: 4px; }
.bloque label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; color: var(--texto-2); font-size: .9rem; }
.bloque input, .bloque select, .bloque textarea { min-width: 0; font: inherit; font-size: 1.05rem; min-height: 56px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--borde); background: var(--crema); color: var(--texto); width: 100%; }
.bloque textarea { resize: vertical; }
.bloque input:focus, .bloque select:focus, .bloque textarea:focus { outline: none; border-color: var(--azul); background: #fff; }
.bloque .dos { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.check { flex-direction: row !important; align-items: center; gap: 12px !important; font-size: 1rem !important; color: var(--texto) !important; min-height: 50px; }
.check input { width: 28px; min-height: 28px; height: 28px; accent-color: var(--dorado); }
.ayuda-admin { margin: 0; color: var(--texto-2); font-size: .9rem; }
.fotos-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.foto-admin { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: #E6EBF3; border: 3px solid transparent; }
.foto-admin.principal { border-color: var(--dorado); }
.foto-admin img { width: 100%; height: 100%; object-fit: cover; }
.foto-admin .acciones { position: absolute; inset: auto 6px 6px 6px; display: flex; justify-content: space-between; }
.foto-admin button { width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .94); font-size: 1.15rem; cursor: pointer; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.foto-admin .tag { position: absolute; left: 6px; top: 6px; background: var(--dorado); color: #fff; font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.subir { cursor: pointer; }
.estado-subida { margin: 0; font-weight: 700; color: var(--azul); min-height: 1.2em; }
.editor-acciones { display: grid; gap: 10px; }
.borrar { color: var(--rojo); border-color: var(--rojo); }
.pie-admin { text-align: center; margin-top: 24px; }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--azul); color: #fff; padding: 14px 22px; border-radius: 16px; font-weight: 700; z-index: 60; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); max-width: calc(100% - 32px); text-align: center; }
.admin .cabecera { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(10px + env(safe-area-inset-top)) 16px 10px; }
.admin .btn { text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 1rem; }
.dos-botones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
