/* TADEL Orlas — área de alumno (Mi cuenta > Mis fotos) */
.tadel-account { --tadel-accent: #1f2937; --tadel-accent-2: #b45309; --tadel-border: #e5e7eb; --tadel-bg: #f9fafb; }
.tadel-account * { box-sizing: border-box; }
.tadel-group-switch { display: flex; gap: .5em; align-items: center; margin-bottom: 1em; }
.tadel-group-switch select { max-width: 100%; }
.tadel-group-name { margin: 0 0 1em; font-size: 1.1em; }

.tadel-notice { padding: .9em 1.1em; border-radius: 6px; margin: 0 0 1.2em; border: 1px solid var(--tadel-border); background: var(--tadel-bg); line-height: 1.5; }
.tadel-notice-warning { background: #fffbeb; border-color: #f59e0b; }
.tadel-notice-success { background: #ecfdf5; border-color: #10b981; }
.tadel-notice-info { background: #eff6ff; border-color: #3b82f6; }
.tadel-help { color: #4b5563; margin: 0 0 1em; }
.tadel-help-small { font-size: .85em; }
.tadel-reminder { padding: 1em 1.2em; border-radius: 6px; margin: 0 0 1.2em; border: 1px solid #f59e0b; border-left-width: 5px; background: #fffbeb; line-height: 1.5; }
.tadel-reminder p:last-child { margin-bottom: 0; }
.tadel-section { margin: 0 0 2em; }
.tadel-section-title { font-size: 1.15em; margin: 0 0 .6em; padding-bottom: .3em; border-bottom: 1px solid var(--tadel-border); }
.tadel-count { color: #6b7280; font-weight: 400; font-size: .9em; }
.tadel-warning-text { color: #b45309; font-weight: 600; }

.tadel-tabs { display: flex; flex-wrap: wrap; gap: .4em; margin: 0 0 1.5em; border-bottom: 2px solid var(--tadel-border); padding-bottom: .6em; }
.tadel-tab { display: inline-block; padding: .45em .9em; border-radius: 999px; text-decoration: none; background: var(--tadel-bg); color: var(--tadel-accent); font-weight: 600; font-size: .95em; border: 1px solid var(--tadel-border); }
.tadel-tab:hover { background: #e5e7eb; }
.tadel-tab.is-active { background: var(--tadel-accent); color: #fff; border-color: var(--tadel-accent); }

.tadel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.2em; margin: 0 0 1.5em; }
.tadel-grid-single { grid-template-columns: minmax(240px, 420px); }
.tadel-grid-orla { grid-template-columns: minmax(280px, 640px); }
.tadel-card { display: flex; flex-direction: column; gap: .5em; border: 1px solid var(--tadel-border); border-radius: 8px; padding: .6em; background: #fff; }
.tadel-card-img { position: relative; display: block; aspect-ratio: 3 / 4; background: #f3f4f6; border-radius: 6px; overflow: hidden; }
.tadel-grid-orla .tadel-card-img { aspect-ratio: auto; }
.tadel-card-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tadel-zoom { position: absolute; right: .4em; bottom: .4em; background: rgba(255,255,255,.9); border: 0; border-radius: 50%; width: 2.2em; height: 2.2em; cursor: pointer; font-size: .9em; line-height: 1; }
.tadel-card-title { font-size: .85em; color: #374151; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tadel-card-base { border-color: var(--tadel-accent-2); box-shadow: 0 0 0 3px rgba(180,83,9,.15); }
.tadel-card-badge { position: absolute; left: .4em; top: .4em; background: var(--tadel-accent-2); color: #fff; font-size: .72em; font-weight: 700; padding: .25em .55em; border-radius: 999px; letter-spacing: .02em; }
.tadel-card-badge-free { top: auto; bottom: .4em; background: #065f46; }
.tadel-card.is-free { background: #f0fdf4; }
.tadel-card.is-fav { border-color: var(--tadel-accent-2); }
.tadel-fav { display: flex; align-items: center; gap: .4em; font-size: .9em; cursor: pointer; padding: .3em .4em; border-radius: 6px; background: var(--tadel-bg); font-weight: 600; }
.tadel-card-favable { border-width: 2px; }
.tadel-fav-form { margin: 0 0 1.5em; }
.tadel-fav input { margin: 0; }
.tadel-card.is-fav .tadel-fav { background: var(--tadel-accent-2); color: #fff; }
.tadel-download { display: inline-block; font-size: .9em; font-weight: 600; color: #065f46; text-decoration: underline; }
.tadel-download::before { content: "\2B07\FE0E "; }
.tadel-download-head { margin: 0 0 1.5em; padding: 1em 1.2em; border-radius: 8px; background: #f0fdf4; border: 1px solid #10b981; }
.tadel-download-head .tadel-help { margin-bottom: .8em; }
.tadel-download-head .tadel-help-small { margin: .6em 0 0; }
.tadel-btn-zip { display: inline-block; }
.tadel-btn-download { text-align: center; margin-top: auto; }
.tadel-grid-compact { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .8em; }
.tadel-grid-compact .tadel-card { padding: .45em; }
.tadel-grid-orla-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tadel-grid-orla-list .tadel-card-img { aspect-ratio: auto; }

.tadel-card-selectable { cursor: pointer; border-width: 2px; }
.tadel-card-selectable input { position: absolute; opacity: 0; pointer-events: none; }
.tadel-card-selectable.is-checked { border-color: var(--tadel-accent-2); box-shadow: 0 0 0 3px rgba(180,83,9,.2); }
.tadel-card-check { display: inline-block; text-align: center; padding: .4em; border-radius: 6px; background: var(--tadel-bg); font-weight: 600; font-size: .9em; }
.tadel-card-selectable.is-checked .tadel-card-check { background: var(--tadel-accent-2); color: #fff; }
.tadel-card-selectable.is-checked .tadel-card-check::before { content: "✓ "; }

.tadel-instructions { margin: 1em 0; }
.tadel-instructions textarea { width: 100%; margin-top: .4em; }
.tadel-instructions-view { margin-top: 1em; padding: 1em; background: var(--tadel-bg); border-radius: 6px; }
.tadel-form-msg { display: inline-block; margin-left: 1em; color: #b91c1c; }

.tadel-buy { display: flex; flex-direction: column; gap: .4em; margin-top: auto; }
.tadel-buy select { width: 100%; }
.tadel-buy-row { display: flex; gap: .4em; }
.tadel-buy-qty { width: 4.5em; flex: 0 0 auto; }
.tadel-btn-add { flex: 1 1 auto; white-space: nowrap; }
.tadel-btn { cursor: pointer; }
.tadel-card-nobuy { font-size: .85em; color: #6b7280; }

.tadel-pagination { display: flex; flex-wrap: wrap; gap: .3em; margin: 0 0 1em; }
.tadel-pagination a { padding: .3em .7em; border: 1px solid var(--tadel-border); border-radius: 4px; text-decoration: none; }
.tadel-pagination a.is-active { background: var(--tadel-accent); color: #fff; }

.tadel-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 99999; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2em; }
.tadel-lightbox[hidden] { display: none; }
.tadel-lightbox img { max-width: 100%; max-height: 85vh; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.tadel-lightbox-caption { color: #fff; margin: .8em 0 0; }
.tadel-lightbox-close { position: absolute; top: .5em; right: .8em; background: none; border: 0; color: #fff; font-size: 2.5em; cursor: pointer; line-height: 1; }
body.tadel-lightbox-open { overflow: hidden; }

.tadel-toast { position: fixed; left: 50%; bottom: 1.5em; transform: translateX(-50%); background: #111827; color: #fff; padding: .9em 1.3em; border-radius: 8px; z-index: 99998; box-shadow: 0 6px 24px rgba(0,0,0,.3); max-width: 92vw; }
.tadel-toast[hidden] { display: none; }
.tadel-toast a { color: #fcd34d; text-decoration: underline; }
.tadel-toast.is-error { background: #991b1b; }
.tadel-toast.is-success { background: #065f46; }

@media (max-width: 600px) {
	.tadel-grid { grid-template-columns: repeat(2, 1fr); gap: .7em; }
	.tadel-grid-compact { grid-template-columns: repeat(2, 1fr); }
	.tadel-grid-orla-list { grid-template-columns: 1fr; }
	.tadel-grid-single, .tadel-grid-orla { grid-template-columns: 1fr; }
	.tadel-tab { font-size: .85em; padding: .4em .7em; }
}
