/*
Theme Name: Africam 2026 -1
Theme URI: http://poeticavisual.com/
Description:
Version: 0
Author: Zabdiel
Author URI: http://poeticavisual.com/
*/

:root {
	--surface: rgba(14, 16, 18, 0.56);
	--surface-2: rgba(255, 255, 255, 0.04);
	--surface-3: rgba(255, 255, 255, 0.08);
	--border: rgba(255, 255, 255, 0.10);
	--border-strong: rgba(255, 255, 255, 0.18);
	--text: #f5f7f8;
	--muted: rgba(245, 247, 248, 0.66);
	--accent: #98dc75;
	--accent-text: #111;
	--success: #79d790;
	--danger: #ff8787;
	--radius: 14px;
	--radius-lg: 18px;
	--shadow: 0 12px 30px rgba(0, 0, 0, 0.20);
	--shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.24);
}

/* ===== RESET ===== */
html {
	margin: 0;
	padding: 0;
	min-height: 100%;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	padding: 0;
	min-height: 100vh;
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.4;
	color: var(--text);

	background:
		radial-gradient(circle at 20% 25%, rgba(255, 0, 180, 0.18), transparent 45%),
		radial-gradient(circle at 80% 75%, rgba(120, 0, 255, 0.18), transparent 50%),
		linear-gradient(135deg, #5a00ff, #8a00c8, #2a0038);

	background-attachment: fixed;
	transition: background 0.3s ease, background-color 0.3s ease;
}

*,
*::before,
*::after {
	box-sizing: border-box;
	-webkit-tap-highlight-color: transparent;
}

img,
picture,
video,
canvas,
svg {
	display: block;
	max-width: 100%;
}

button,
input,
select,
textarea {
	font: inherit;
}

a {
	color: inherit;
	text-decoration: none;
}

:focus {
	outline: none;
}

:focus-visible {
	outline: 2px solid rgba(255, 255, 255, 0.22);
	outline-offset: 2px;
}

/* ===== BACKGROUNDS POR PROMO ===== */
body.promo-africam {
	background:
		radial-gradient(circle at 15% 20%, rgba(130, 255, 120, 0.18), transparent 45%),
		radial-gradient(circle at 85% 80%, rgba(40, 180, 90, 0.16), transparent 50%),
		linear-gradient(135deg, #295b34, #1c7a43, #10391d);
}

body.promo-reeses {
	background:
		radial-gradient(circle at 15% 20%, rgba(255, 190, 80, 0.18), transparent 45%),
		radial-gradient(circle at 85% 80%, rgba(255, 120, 30, 0.18), transparent 50%),
		linear-gradient(135deg, #a44d05, #d96b0b, #6d2f00);
}

/* ===== LAYOUT GENERAL ===== */
.site-shell {
	min-height: 100vh;
	padding: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.capture-card {
	width: 100%;
	max-width: 430px;
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	overflow: hidden;
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

.capture-header {
	padding: 14px 14px 8px;
}

.capture-title {
	margin: 0 0 8px;
	font-size: 1.5rem;
	line-height: 1.1;
	font-weight: 800;
	letter-spacing: -0.02em;
	text-align: center;
	color: #f5f7f8;
}

.capture-intro {
	margin: 0 0 16px;
	text-align: center;
	font-size: 1.2rem;
	line-height: 1.4;
	color: rgba(245, 247, 248, 0.7);
	max-width: 320px;
	margin-left: auto;
	margin-right: auto;
}

.capture-subtitle {
	margin: 6px 0 0;
	font-size: 0.82rem;
	line-height: 1.3;
	color: var(--muted);
	text-align: center;
}

.capture-form {
	padding: 10px 14px 14px;
}

.form-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

.form-group,
.form-group-full {
	display: flex;
	flex-direction: column;
	gap: 5px;
	min-width: 0;
}

.form-group-full {
	grid-column: 1 / -1;
}

.capture-card.is-hidden {
	display: none;
}

.capture-card--selector {
	max-width: 430px;
}

.capture-card--form {
	max-width: 430px;
}

.promo-entry-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.promo-entry-btn {
	width: 100%;
	min-height: 74px;
	padding: 0 18px;
	border: 1px solid rgba(255,255,255,0.14);
	border-radius: 16px;
	background: rgba(255,255,255,0.07);
	color: #fff;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.promo-entry-btn:hover {
	background: rgba(255,255,255,0.12);
	border-color: rgba(255,255,255,0.22);
	transform: translateY(-1px);
}

.promo-entry-btn:active {
	transform: translateY(1px);
}

label,
.group-label {
	font-size: 0.78rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--text);
	letter-spacing: 0.01em;
}

/* ===== TEXTOS DE DATOS FIJOS ===== */
.data-line {
	margin: 0;
	padding: 10px 12px;
	border-radius: 11px;
	background: var(--surface-2);
	border: 1px solid var(--border);
	font-size: 0.86rem;
	line-height: 1.35;
	color: var(--text);
}

.data-line + .data-line {
	margin-top: 6px;
}

.data-line strong {
	color: var(--muted);
	font-weight: 700;
	margin-right: 6px;
}

.data-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.data-item {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 10px 12px;
	border-radius: 12px;
	border: 1px solid rgba(255,255,255,0.08);
}

.data-label {
	font-size: 0.72rem;
	font-weight: 700;
	color: rgba(255,255,255,0.55);
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.data-value {
	font-size: 0.9rem;
	font-weight: 700;
	color: #fff;
	word-break: break-word;
}

/* ===== FORM CONTROLS ===== */
input,
select,
textarea {
	width: 100%;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--border);
	border-radius: 11px;
	background: var(--surface-2);
	color: var(--text);
	font-size: 16px;
	outline: none;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

textarea {
	height: auto;
	min-height: 80px;
	padding-top: 10px;
	padding-bottom: 10px;
	resize: vertical;
}

input::placeholder,
textarea::placeholder {
	color: rgba(255, 255, 255, 0.34);
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--border-strong);
	background: rgba(255, 255, 255, 0.06);
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
}

select {
	background-image:
		linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.75) 50%),
		linear-gradient(135deg, rgba(255,255,255,0.75) 50%, transparent 50%);
	background-position:
		calc(100% - 18px) calc(50% - 3px),
		calc(100% - 12px) calc(50% - 3px);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 34px;
}

select option {
	color: #111;
}

input[type="file"] {
	height: auto;
	padding: 10px 12px;
}

.help-text {
	margin: 2px 0 0;
	font-size: 0.74rem;
	line-height: 1.3;
	color: var(--muted);
}

/* ===== PROMOCIONES ===== */
.radio-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.radio-tile {
	position: relative;
	min-width: 0;
}

.radio-tile input {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.radio-tile span {
	min-height: 58px;
	padding: 0 14px;
	border-radius: 14px;
	border: 1px solid rgba(255, 255, 255, 0.12);
	background: rgba(255, 255, 255, 0.06);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-size: 0.95rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	cursor: pointer;
	transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
	user-select: none;
}

.radio-tile input:checked + span {
	background: rgba(255, 255, 255, 0.2);
	border-color: rgba(255, 255, 255, 0.5);
	transform: translateY(-1px);
}

/* ===== CÁMARA ===== */
.camera-wrap {
	display: none;
	position: relative;
	width: 100%;
	margin-top: 8px;
	border-radius: 12px;
	overflow: hidden;
	background: #000;
	border: 1px solid rgba(255,255,255,0.08);
}

.camera-wrap.is-active {
	display: block;
}

.camera-wrap::before {
	content: "";
	display: block;
}

#camera-stream {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
	object-position: center center;
	background: #000;
}

.camera-wrap .btn-primary {
	position: absolute;
	left: 50%;
	bottom: 8px;
	transform: translateX(-50%);
	width: calc(100% - 16px);
	min-height: 42px;
	z-index: 2;
}

/* ===== PREVIEW ===== */
.preview-box {
	display: none;
	padding: 8px;
	border-radius: 12px;
	border: 1px solid var(--border);
	background: rgba(255, 255, 255, 0.03);
}

.preview-box.is-visible {
	display: block;
}

.preview-box img {
	width: 100%;
	max-height: 180px;
	object-fit: cover;
	object-position: center center;
	border-radius: 8px;
}

/* ===== BOTONES ===== */
.actions-row {
	margin-top: 4px;
	display: grid;
	grid-template-columns: 1fr;
	gap: 8px;
}

.btn-primary,
.btn-secondary {
	width: 100%;
	min-height: 44px;
	padding: 0 14px;
	border-radius: 11px;
	border: 0;
	font-size: 0.9rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
	transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
	background: var(--accent);
	color: var(--accent-text);
}

.btn-primary:hover {
	opacity: 0.96;
}

.btn-primary:active,
.btn-secondary:active {
	transform: translateY(1px);
}

.btn-primary[disabled] {
	opacity: 0.7;
	cursor: progress;
}

.btn-secondary {
	background: rgba(255, 255, 255, 0.05);
	color: var(--text);
	border: 1px solid var(--border);
}

.btn-secondary:hover {
	background: rgba(255, 255, 255, 0.08);
}

/* ===== MENSAJES ===== */
.notice {
	display: none;
	margin-top: 10px;
	padding: 11px 12px;
	border-radius: 11px;
	font-size: 0.82rem;
	line-height: 1.35;
	font-weight: 700;
	border: 1px solid transparent;
}

.notice.is-visible {
	display: block;
}

.notice-success {
	background: rgba(121, 215, 144, 0.10);
	border-color: rgba(121, 215, 144, 0.18);
	color: #defee6;
}

.notice-error {
	background: rgba(255, 135, 135, 0.10);
	border-color: rgba(255, 135, 135, 0.18);
	color: #ffe3e3;
}

/* ===== ADMIN ===== */
.admin-wrap .widefat td img {
	max-width: 80px;
	height: auto;
	border-radius: 8px;
}

.admin-wrap .widefat td,
.admin-wrap .widefat th {
	vertical-align: middle;
}

/* ===== RESPONSIVE ===== */
@media (min-width: 760px) {
	.site-shell {
		padding: 18px;
	}

	.capture-card {
		max-width: 460px;
	}

	.capture-header {
		padding: 16px 16px 8px;
	}

	.capture-form {
		padding: 10px 16px 16px;
	}

	.form-grid {
		gap: 11px;
	}
}

@media (max-width: 480px) {
	.site-shell {
		padding: 10px;
	}

	.capture-card {
		border-radius: 16px;
	}

	.capture-title {
		font-size: 1.22rem;
	}

	.radio-row {
		gap: 8px;
	}

	.radio-tile span {
		min-height: 54px;
		font-size: 0.9rem;
	}

	.preview-box img {
		max-height: 150px;
	}
}


