/* FotoFeliz – estilos públicos */
:root { --ff-primary: #1565d8; --ff-dark: #0a2540; --ff-bg: #f3f6fb; --ff-line: #dfe6f1; --ff-muted: #5b6b82; --ff-ok: #1f9d63; --ff-radius: 14px; }
.ff-wrap { max-width: 1180px; margin: 0 auto; padding: 18px 16px 90px; font-family: inherit; color: var(--ff-dark); box-sizing: border-box; }
.ff-wrap *, .ff-wrap *::before, .ff-wrap *::after { box-sizing: border-box; }
.ff-narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.ff-wrap h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.15; margin: 0 0 .4em; }
.ff-wrap h2 { font-size: 1.25rem; margin: 0 0 .7em; }
.ff-wrap h3 { font-size: 1.05rem; margin: 0 0 .3em; }
.ff-muted { color: var(--ff-muted); font-size: .92rem; }
.ff-center { text-align: center; }
.ff-hint { color: var(--ff-muted); font-size: .85rem; margin: .2em 0 0; }
.ff-hp { position: absolute !important; left: -9999px; }
[hidden] { display: none !important; }
body.ff-noscroll { overflow: hidden; }

/* Botones */
.ff-btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; padding: .7em 1.25em; border-radius: 999px; border: 2px solid var(--ff-line); background: #fff; color: var(--ff-dark); font-weight: 600; font-size: .95rem; line-height: 1.2; cursor: pointer; text-decoration: none !important; transition: transform .12s, box-shadow .12s, background .12s; }
.ff-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.ff-btn:disabled { opacity: .55; cursor: wait; transform: none; }
.ff-btn-primary { background: var(--ff-primary); border-color: var(--ff-primary); color: #fff !important; }
.ff-btn-ghost { background: transparent; }
.ff-btn-light { background: #fff; border-color: #fff; color: var(--ff-dark) !important; }
.ff-btn-danger { border-color: #f3c2c2; color: #c0392b; background: #fff; }
.ff-btn-lg { padding: .9em 1.6em; font-size: 1.05rem; }
.ff-btn-sm { padding: .45em .9em; font-size: .85rem; }
.ff-btn-block { width: 100%; }
.ff-link { background: none; border: 0; color: var(--ff-muted); text-decoration: underline; cursor: pointer; font-size: .9rem; }

/* Tarjetas y formularios */
.ff-card { background: #fff; border: 1px solid var(--ff-line); border-radius: var(--ff-radius); padding: 20px; margin-bottom: 18px; box-shadow: 0 2px 10px rgba(20,20,60,.04); }
.ff-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ff-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 12px; }
.ff-form input[type=text], .ff-form input[type=email], .ff-form input[type=password], .ff-form input[type=tel], .ff-form input[type=number], .ff-form input[type=date], .ff-form select, .ff-form textarea,
.ff-coupon input, .ff-search input { display: block; width: 100%; margin-top: 5px; padding: .7em .85em; border: 1.5px solid var(--ff-line); border-radius: 10px; font: inherit; font-weight: 400; background: #fff; color: var(--ff-dark); }
.ff-form input:focus, .ff-form select:focus, .ff-form textarea:focus, .ff-search input:focus, .ff-coupon input:focus { outline: none; border-color: var(--ff-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ff-primary) 18%, transparent); }
.ff-form .ff-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.ff-check input { margin-top: 3px; }
.ff-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ff-fieldset { border: 1.5px dashed var(--ff-line); border-radius: 12px; padding: 12px 14px 4px; margin: 4px 0 14px; }
.ff-fieldset legend { font-weight: 700; padding: 0 6px; }
.ff-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ff-form-msg { margin-top: 10px; font-weight: 600; }
.ff-form-msg.ok { color: var(--ff-ok); }
.ff-form-msg.error { color: #c0392b; }
.ff-form #loginform p { margin: 0 0 12px; }
.ff-form #loginform input[type=text], .ff-form #loginform input[type=password] { width: 100%; padding: .7em .85em; border: 1.5px solid var(--ff-line); border-radius: 10px; }
.ff-form #wp-submit { background: var(--ff-primary); color: #fff; border: 0; border-radius: 999px; padding: .75em 1.6em; font-weight: 700; cursor: pointer; }

.ff-alert { padding: 12px 16px; border-radius: 12px; margin: 0 0 16px; background: #eef3ff; border: 1px solid #d6e0ff; }
.ff-alert-ok { background: #e9f8f0; border-color: #bfe8d2; }
.ff-alert-warn { background: #fff7e6; border-color: #ffe0a3; }
.ff-alert-error { background: #fdeceb; border-color: #f6c4bf; color: #8e2a20; }
.ff-badge { display: inline-block; padding: .2em .65em; border-radius: 999px; background: var(--ff-bg); border: 1px solid var(--ff-line); font-size: .78rem; font-weight: 600; color: var(--ff-muted); }
.ff-badge-ok { background: #e9f8f0; color: var(--ff-ok); border-color: #bfe8d2; }
.ff-badge-price { background: color-mix(in srgb, var(--ff-primary) 10%, #fff); color: var(--ff-primary); border-color: color-mix(in srgb, var(--ff-primary) 30%, #fff); }
.ff-empty { text-align: center; padding: 50px 20px; background: #fff; border: 2px dashed var(--ff-line); border-radius: var(--ff-radius); }

/* Portada / listado */
.ff-promo-banner { background: var(--ff-dark); color: #fff; text-align: center; padding: 10px 14px; border-radius: 12px; font-weight: 600; margin-bottom: 16px; }
.ff-hero { text-align: center; padding: clamp(30px, 6vw, 70px) 16px; margin-bottom: 26px; border-radius: 22px; background: radial-gradient(1200px 400px at 10% -20%, color-mix(in srgb, var(--ff-primary) 30%, #fff), transparent), linear-gradient(135deg, #fff, var(--ff-bg)); border: 1px solid var(--ff-line); }
.ff-hero p { max-width: 640px; margin: 0 auto 22px; color: var(--ff-muted); font-size: 1.08rem; }
.ff-search { display: flex; gap: 8px; max-width: 620px; margin: 0 auto; }
.ff-search input { margin: 0; border-radius: 999px; padding-left: 1.2em; }
.ff-steps { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; font-weight: 600; font-size: .95rem; }
.ff-steps div { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--ff-line); padding: 8px 14px 8px 8px; border-radius: 999px; }
.ff-steps b { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ff-primary); color: #fff; }

.ff-grid { display: grid; gap: 14px; }
.ff-grid-events { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.ff-event-card { display: block; background: #fff; border: 1px solid var(--ff-line); border-radius: var(--ff-radius); overflow: hidden; color: inherit; text-decoration: none !important; transition: transform .15s, box-shadow .15s; }
a.ff-event-card:hover, .ff-event-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(20,20,60,.1); }
.ff-event-cover { position: relative; display: block; aspect-ratio: 4/3; background: var(--ff-bg); overflow: hidden; }
.ff-event-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ff-noimg { display: grid; place-items: center; height: 100%; color: var(--ff-muted); font-size: 1.1rem; }
.ff-ribbon { position: absolute; top: 12px; left: 12px; background: var(--ff-primary); color: #fff; font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; letter-spacing: .05em; }
.ff-event-body { padding: 14px 16px 16px; }
.ff-event-body p { margin: 0 0 8px; }
.ff-pager { display: flex; justify-content: center; gap: 6px; margin: 26px 0; flex-wrap: wrap; }
.ff-pager a { min-width: 38px; padding: 8px 12px; text-align: center; border-radius: 10px; border: 1px solid var(--ff-line); background: #fff; text-decoration: none; color: inherit; }
.ff-pager a.is-active { background: var(--ff-primary); color: #fff; border-color: var(--ff-primary); }
.ff-cta-photographer { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 40px; padding: 28px; border-radius: 20px; background: var(--ff-dark); color: #fff; }
.ff-cta-photographer h2 { color: #fff; margin-bottom: .3em; }
.ff-cta-photographer p { margin: 0; opacity: .85; max-width: 620px; }

/* Página del evento */
.ff-crumbs { margin: 0 0 6px; font-size: .9rem; }
.ff-crumbs a { color: var(--ff-muted); text-decoration: none; }
.ff-event-header { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; margin-bottom: 18px; flex-wrap: wrap; }
.ff-event-header > div:first-child { flex: 1 1 420px; }
.ff-price-box { flex: 0 0 auto; min-width: 220px; background: #fff; border: 1px solid var(--ff-line); border-radius: var(--ff-radius); padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; }
.ff-price-box span { color: var(--ff-muted); font-size: .85rem; }
.ff-price-box strong { font-size: 1.7rem; color: var(--ff-primary); }
.ff-price-box em { font-style: normal; font-size: .85rem; font-weight: 600; }
.ff-selfie-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 22px 24px; border-radius: 20px; margin-bottom: 24px; color: #fff; background: linear-gradient(120deg, var(--ff-dark) 0%, var(--ff-primary) 60%, #38bdf8 100%); }
.ff-selfie-cta h2 { color: #fff; margin: 0 0 4px; }
.ff-selfie-cta p { margin: 0; opacity: .92; }
.ff-selfie-cta .ff-btn-primary { background: #fff; color: var(--ff-primary) !important; border-color: #fff; }
.ff-section-title { margin-top: 10px; }
.ff-results { background: #fff; border: 2px solid var(--ff-primary); border-radius: 20px; padding: 18px; margin-bottom: 26px; scroll-margin-top: 80px; }
.ff-results-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.ff-results-head h2 { margin: 0; }

.ff-grid-photos { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
.ff-ptile, .ff-pcard { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--ff-bg); cursor: pointer; }
.ff-ptile img, .ff-pcard img { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; transition: transform .25s; }
.ff-ptile:hover img { transform: scale(1.04); }
.ff-ptile-add { position: absolute; right: 8px; bottom: 8px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); color: var(--ff-dark); font-size: 22px; font-weight: 700; cursor: pointer; box-shadow: 0 3px 10px rgba(0,0,0,.25); display: grid; place-items: center; }
.ff-ptile-add .b { display: none; }
.ff-ptile.in-cart { outline: 4px solid var(--ff-primary); outline-offset: -4px; }
.ff-ptile.in-cart .ff-ptile-add { background: var(--ff-primary); color: #fff; }
.ff-ptile.in-cart .ff-ptile-add .a { display: none; }
.ff-ptile.in-cart .ff-ptile-add .b { display: inline; }
.ff-pcard { cursor: default; }
.ff-pcard.is-cover { outline: 3px solid #f5b301; outline-offset: -3px; }
.ff-pcard-info { position: absolute; left: 6px; bottom: 6px; display: flex; gap: 4px; }
.ff-pcard-info span { background: rgba(0,0,0,.6); color: #fff; font-size: .72rem; padding: 2px 7px; border-radius: 999px; }
.ff-pcard-tools { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.ff-pcard:hover .ff-pcard-tools { opacity: 1; }
.ff-pcard-tools button, .ff-pcard-remove { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); cursor: pointer; font-weight: 700; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.ff-pcard-remove { position: absolute; top: 6px; right: 6px; }
.ff-pcard-dl { position: absolute; left: 6px; right: 6px; bottom: 6px; text-align: center; background: var(--ff-primary); color: #fff !important; padding: 5px; border-radius: 8px; font-weight: 700; font-size: .75rem; text-decoration: none !important; }
@media (hover: none) { .ff-pcard-tools { opacity: 1; } }

/* Modal selfie */
.ff-modal, .ff-lightbox { position: fixed; inset: 0; z-index: 99999; background: rgba(15,15,30,.75); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ff-modal-box { position: relative; background: #fff; border-radius: 22px; padding: 28px 24px; width: 100%; max-width: 440px; text-align: center; max-height: 92vh; overflow: auto; }
.ff-modal-close, .ff-lb-close { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 22px; cursor: pointer; color: inherit; }
.ff-selfie-buttons { display: flex; flex-direction: column; gap: 10px; margin: 18px 0; }
.ff-privacy { font-size: .8rem; color: var(--ff-muted); background: var(--ff-bg); padding: 10px; border-radius: 10px; }
.ff-spinner { width: 46px; height: 46px; margin: 10px auto 14px; border-radius: 50%; border: 5px solid var(--ff-line); border-top-color: var(--ff-primary); animation: ffspin 0.9s linear infinite; }
@keyframes ffspin { to { transform: rotate(360deg); } }
#ff-selfie-preview { max-width: 100%; border-radius: 12px; margin-top: 10px; }

/* Lightbox */
.ff-lightbox { background: rgba(8,8,18,.94); color: #fff; }
.ff-lightbox figure { margin: 0; max-width: min(1100px, 100%); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ff-lightbox img { max-width: 100%; max-height: 78vh; border-radius: 10px; user-select: none; -webkit-user-drag: none; }
.ff-lightbox figcaption { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.ff-lightbox .ff-muted { color: #b9bccb; font-size: .82rem; }
.ff-lb-close { color: #fff; font-size: 28px; z-index: 2; }
.ff-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 32px; line-height: 1; cursor: pointer; }
.ff-lb-prev { left: 12px; } .ff-lb-next { right: 12px; }
#ff-lb-toggle.is-in { background: var(--ff-ok); border-color: var(--ff-ok); }

/* Barra del carrito */
.ff-cartbar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 9999; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; background: var(--ff-dark); color: #fff !important; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.3); text-decoration: none !important; font-weight: 600; white-space: nowrap; max-width: calc(100% - 24px); animation: ffup .25s ease-out; }
.ff-cartbar-count { display: grid; place-items: center; min-width: 34px; height: 34px; border-radius: 50%; background: var(--ff-primary); font-weight: 800; }
.ff-cartbar-go { background: #fff; color: var(--ff-dark); padding: 7px 14px; border-radius: 999px; }
@keyframes ffup { from { transform: translate(-50%, 30px); opacity: 0; } }

/* Carrito */
.ff-cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 18px; align-items: start; }
.ff-grid-cart { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.ff-summary { position: sticky; top: 20px; }
.ff-coupon { display: flex; gap: 6px; }
.ff-coupon input { margin: 0; text-transform: uppercase; }
.ff-coupon-msg { font-size: .85rem; font-weight: 600; margin: 6px 0; min-height: 1em; }
.ff-coupon-msg.ok { color: var(--ff-ok); } .ff-coupon-msg.error { color: #c0392b; }
.ff-notes { list-style: none; padding: 0; margin: 0 0 8px; font-size: .85rem; color: var(--ff-ok); font-weight: 600; }
.ff-totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; margin: 12px 0 18px; padding: 12px 0; border-top: 1px solid var(--ff-line); border-bottom: 1px solid var(--ff-line); }
.ff-totals dt, .ff-totals dd { margin: 0; }
.ff-totals dd { text-align: right; font-weight: 600; }
.ff-totals .ff-disc, .ff-totals .ff-cdisc { color: var(--ff-ok); }
.ff-total-label { font-weight: 800; font-size: 1.1rem; }
.ff-total { font-size: 1.35rem; color: var(--ff-primary); font-weight: 800 !important; }

/* Pedido */
.ff-order-ok, .ff-order-wait { text-align: center; padding: 30px 16px; margin-bottom: 20px; }
.ff-order-ok p { max-width: 560px; margin: 0 auto 18px; }

/* Panel */
.ff-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.ff-panel-head h1 { margin: 0; }
.ff-tabs { display: flex; gap: 6px; border-bottom: 2px solid var(--ff-line); margin-bottom: 20px; overflow-x: auto; }
.ff-tab { padding: 10px 16px; text-decoration: none !important; color: var(--ff-muted); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.ff-tab.is-active { color: var(--ff-primary); border-bottom-color: var(--ff-primary); }
.ff-toolbar { margin-bottom: 16px; }
.ff-dropzone { position: relative; border: 2.5px dashed var(--ff-line); border-radius: 16px; padding: 34px 16px; text-align: center; cursor: pointer; background: var(--ff-bg); transition: border-color .15s, background .15s; margin-bottom: 10px; }
.ff-dropzone.is-over, .ff-dropzone:hover { border-color: var(--ff-primary); background: color-mix(in srgb, var(--ff-primary) 6%, #fff); }
.ff-dropzone input { display: none; }
.ff-dropzone p { margin: 4px 0; }
.ff-progress { height: 12px; background: var(--ff-bg); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.ff-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--ff-primary), #38bdf8); transition: width .3s; }
.ff-upload-errors { color: #c0392b; font-size: .85rem; max-height: 160px; overflow: auto; }
.ff-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 14px; }
.ff-stat { background: #fff; border: 1px solid var(--ff-line); border-radius: var(--ff-radius); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.ff-stat span { color: var(--ff-muted); font-size: .85rem; }
.ff-stat strong { font-size: 1.4rem; }
.ff-stat-hl { background: var(--ff-dark); color: #fff; }
.ff-stat-hl span { color: #c9cbe0; }
.ff-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ff-table th, .ff-table td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--ff-line); }
.ff-table th { color: var(--ff-muted); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; }

/* Registro */
.ff-hero-mini { text-align: center; margin-bottom: 18px; }
.ff-checks { list-style: none; padding: 0; display: inline-flex; flex-direction: column; gap: 6px; text-align: left; }
.ff-checks li::before { content: '✔'; color: var(--ff-ok); font-weight: 800; margin-right: 8px; }

@media (max-width: 860px) {
	.ff-cart-layout { grid-template-columns: 1fr; }
	.ff-summary { position: static; }
}
@media (max-width: 560px) {
	.ff-row { grid-template-columns: 1fr; gap: 0; }
	.ff-grid-photos { grid-template-columns: repeat(3, 1fr); gap: 4px; }
	.ff-ptile, .ff-pcard { border-radius: 6px; }
	.ff-ptile-add { width: 32px; height: 32px; font-size: 18px; right: 4px; bottom: 4px; }
	.ff-search { flex-direction: column; }
	.ff-selfie-cta { padding: 18px; text-align: center; justify-content: center; }
	.ff-selfie-cta .ff-btn { width: 100%; }
	.ff-cartbar-text, #ff-cartbar-text { display: none; }
	.ff-lb-nav { display: none; }
	.ff-event-header { flex-direction: column; }
	.ff-event-header > div:first-child { flex: 0 0 auto; }
	.ff-price-box { width: 100%; }
}

/* QR del evento */
.ff-qr-card { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.ff-qr-card > div:last-child { flex: 1 1 280px; }
.ff-qr-box { flex: 0 0 auto; padding: 10px; background: #fff; border: 1px solid var(--ff-line); border-radius: 14px; }
.ff-qr-box canvas { display: block; width: 180px; height: 180px; image-rendering: pixelated; }
.ff-qr-link code { font-size: .78rem; word-break: break-all; background: var(--ff-bg); padding: 4px 8px; border-radius: 6px; display: inline-block; }
@media (max-width: 560px) { .ff-qr-card { justify-content: center; text-align: center; } .ff-qr-card .ff-actions { justify-content: center; } }

/* Formas de pago y transferencia */
.ff-methods { display: grid; gap: 8px; margin: 4px 0 14px; }
.ff-form .ff-method { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1.5px solid var(--ff-line); border-radius: 12px; cursor: pointer; margin: 0; font-weight: 400; }
.ff-form .ff-method:has(input:checked) { border-color: var(--ff-primary); background: color-mix(in srgb, var(--ff-primary) 6%, #fff); }
.ff-method input { margin-top: 4px; }
.ff-method span { display: flex; flex-direction: column; }
.ff-method small { color: var(--ff-muted); font-size: .82rem; }
.ff-holder small { display: block; font-weight: 400; margin-top: 4px; }
.ff-transfer { max-width: 620px; margin: 0 auto; }
.ff-bank { background: #fff; border: 1px solid var(--ff-line); border-radius: 16px; padding: 8px 16px; margin: 18px 0; text-align: left; }
.ff-bank-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--ff-line); }
.ff-bank-row:last-child { border-bottom: 0; }
.ff-bank-row span { color: var(--ff-muted); min-width: 110px; font-size: .9rem; }
.ff-bank-row strong { flex: 1; word-break: break-all; }
.ff-btn-wa { background: #25d366; border-color: #25d366; color: #fff !important; }
@media (max-width: 560px) {
	.ff-bank-row { flex-wrap: wrap; gap: 2px 10px; }
	.ff-bank-row span { min-width: 100%; font-size: .8rem; }
}

/* Vencimiento de eventos */
.ff-expiry { background: #fff7e6; border: 1px solid #ffe0a3; color: #7a5200; padding: 10px 14px; border-radius: 12px; font-weight: 600; font-size: .92rem; margin: 0 0 18px; }
.ff-expiry.is-urgent { background: #fdeceb; border-color: #f6c4bf; color: #a12a1d; animation: ffpulse 2s ease-in-out infinite; }
@keyframes ffpulse { 50% { box-shadow: 0 0 0 4px rgba(192,57,43,.12); } }
.ff-badge-urgent { background: #fdeceb; color: #a12a1d; border-color: #f6c4bf; }

/* Eventos gratis con auspiciante */
.ff-free-box strong { color: #1f9d63; }
.ff-badge-free { background: #e9f8f0; color: #1f9d63; border-color: #bfe8d2; }
.ff-ribbon-free { background: #1f9d63; }
.ff-ptile-dl { text-decoration: none !important; color: var(--ff-dark) !important; font-size: 20px; }
.ff-sponsor { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; background: #fff; border: 1px solid var(--ff-line); border-radius: 16px; padding: 12px 18px; margin: 0 0 18px; text-decoration: none !important; color: var(--ff-dark) !important; }
.ff-sponsor span { color: var(--ff-muted); font-size: .9rem; }
.ff-sponsor img { max-height: 56px; max-width: 260px; width: auto; }
.ff-sponsor strong { font-size: 1.05rem; }
.ff-free-set { border-color: #bfe8d2; background: #f6fcf9; }
.ff-sponsor-prev { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.ff-sponsor-prev img { max-height: 70px; max-width: 100%; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0/16px 16px; border-radius: 8px; padding: 4px; }
.ff-lb-report { background: none; border: 0; color: #b9bccb; font-size: .8rem; text-decoration: underline; cursor: pointer; }
.ff-mod-badge { position: absolute; top: 6px; left: 6px; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #fff7e6; color: #7a5200; }
.ff-mod-flagged, .ff-mod-reported { background: #c0392b; color: #fff; }
.ff-contract-box { max-height: 340px; overflow: auto; border: 1.5px solid var(--ff-line); border-radius: 12px; padding: 12px 16px; background: #fafafe; font-size: .88rem; margin-bottom: 14px; }
.ff-contract-box p { margin: 0 0 .8em; }
@media print { .t-header, .t-footer, .ff-tabs, .ff-panel-head, .t-wa, .ff-no-print { display: none !important; } .ff-contract-box { max-height: none; border: 0; } }

/* ===== Marketplace de eventos ===== */
.ff-market { scroll-margin-top: 90px; }
.ff-market-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.ff-market-head h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0; }
.ff-market-head p { margin: 4px 0 0; }
.ff-market-search { display: flex; gap: 8px; flex: 1 1 360px; max-width: 520px; }
.ff-market-search input { flex: 1; padding: .75em 1.1em; border: 1.5px solid var(--ff-line); border-radius: 999px; font: inherit; background: #fff; }
.ff-market-search input:focus { outline: none; border-color: var(--ff-primary); }
.ff-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; scrollbar-width: none; }
.ff-chips::-webkit-scrollbar { display: none; }
.ff-chip { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--ff-line); color: var(--ff-dark) !important; text-decoration: none !important; font-weight: 600; font-size: .9rem; white-space: nowrap; transition: .15s; }
.ff-chip:hover { border-color: var(--ff-primary); }
.ff-chip.is-on { background: var(--ff-dark); border-color: var(--ff-dark); color: #fff !important; }
.ff-filters { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.ff-seg { display: inline-flex; background: #fff; border: 1.5px solid var(--ff-line); border-radius: 999px; padding: 4px; gap: 2px; overflow-x: auto; max-width: 100%; }
.ff-seg a { padding: 7px 13px; border-radius: 999px; text-decoration: none !important; color: var(--ff-muted) !important; font-weight: 600; font-size: .88rem; white-space: nowrap; }
.ff-seg a.is-on { background: var(--ff-primary); color: #fff !important; }
.ff-selects { display: flex; gap: 8px; flex-wrap: wrap; }
.ff-selects select { padding: .6em 2.2em .6em .9em; border: 1.5px solid var(--ff-line); border-radius: 999px; background: #fff; font: inherit; font-size: .9rem; color: var(--ff-dark); }

.ff-grid-products { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px; }
.ff-pcard-p { display: flex; flex-direction: column; background: #fff; border-radius: 18px; overflow: hidden; border: 1px solid var(--ff-line); box-shadow: 0 2px 8px rgba(10,37,64,.05); transition: transform .18s, box-shadow .18s; }
.ff-pcard-p:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(10,37,64,.14); }
.ff-pc-img { position: relative; display: block; aspect-ratio: 4/3; background: linear-gradient(135deg, #dbe7fb, #f3f6fb); overflow: hidden; }
.ff-pc-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.ff-pcard-p:hover .ff-pc-img img { transform: scale(1.06); }
.ff-pc-img .ff-noimg { display: grid; place-items: center; height: 100%; font-size: 2.4rem; }
.ff-pc-tag { position: absolute; top: 12px; left: 12px; padding: 5px 11px; border-radius: 8px; font-size: .75rem; font-weight: 800; letter-spacing: .03em; color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,.18); }
.ff-pc-promo { background: #e8364f; }
.ff-pc-free { background: #18a058; }
.ff-pc-new { background: var(--ff-primary); }
.ff-pc-timer { position: absolute; top: 12px; right: 12px; padding: 5px 10px; border-radius: 8px; font-size: .75rem; font-weight: 800; background: #fff3cd; color: #8a5a00; }
.ff-pc-cat { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: rgba(10,37,64,.78); color: #fff; backdrop-filter: blur(4px); }
.ff-pc-count { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: rgba(255,255,255,.92); color: var(--ff-dark); }
.ff-pc-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.ff-pc-body h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ff-pc-body h3 a { color: var(--ff-dark) !important; text-decoration: none !important; }
.ff-pc-meta { margin: 0; color: var(--ff-muted); font-size: .85rem; }
.ff-pc-by { margin: 0; display: flex; align-items: center; gap: 7px; font-size: .85rem; color: var(--ff-muted); }
.ff-avatar { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ff-primary); color: #fff; font-size: .75rem; font-weight: 800; }
.ff-pc-foot { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--ff-line); display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.ff-pc-price { display: flex; flex-direction: column; line-height: 1.15; }
.ff-pc-price small { color: var(--ff-muted); font-size: .75rem; }
.ff-pc-price strong { font-size: 1.35rem; color: var(--ff-dark); }
.ff-pc-price strong.is-free { color: #18a058; }
@media (max-width: 560px) {
	.ff-grid-products { grid-template-columns: 1fr 1fr; gap: 10px; }
	.ff-pc-body { padding: 10px; }
	.ff-pc-body h3 { font-size: .92rem; }
	.ff-pc-by, .ff-pc-cat { display: none; }
	.ff-pc-foot { flex-direction: column; align-items: stretch; }
	.ff-pc-foot .ff-btn { width: 100%; }
	.ff-pc-price strong { font-size: 1.1rem; }
	.ff-filters { flex-direction: column; align-items: stretch; }
	.ff-selects select { flex: 1; }
	.ff-market-search { flex-basis: 100%; }
}
.ff-pc-foot .ff-btn { white-space: nowrap; }
.ff-pc-price small { max-width: 150px; }
.ff-market-search input { min-width: 0; }
@media (max-width: 560px) {
	.ff-pc-tag { top: 8px; left: 8px; font-size: .68rem; padding: 4px 8px; }
	.ff-pc-timer { top: auto; bottom: 8px; left: 8px; right: auto; font-size: .68rem; padding: 4px 8px; }
	.ff-pc-count { bottom: 8px; right: 8px; }
}

/* Compartir */
.ff-share { background: #fff; border: 1px solid var(--ff-line); border-radius: 16px; padding: 14px 16px; margin: 0 0 18px; }
.ff-share-label { display: block; font-weight: 800; margin-bottom: 10px; }
.ff-share-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ff-sh { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: .9rem; color: #fff !important; text-decoration: none !important; transition: transform .12s, filter .12s; }
.ff-sh:hover { transform: translateY(-1px); filter: brightness(1.05); }
.ff-sh svg { width: 18px; height: 18px; }
.ff-sh-wa { background: #25d366; }
.ff-sh-fb { background: #1877f2; }
.ff-sh-tg { background: #229ed9; }
.ff-sh-x { background: #111; }
.ff-sh-native { background: linear-gradient(135deg, #ff0050, #00c2c7); flex-direction: row; }
.ff-sh-native small { font-weight: 500; opacity: .9; font-size: .75rem; }
.ff-sh-copy { background: var(--ff-bg); color: var(--ff-dark) !important; border: 1.5px solid var(--ff-line); }
.ff-sh-copy em { font-style: normal; }
.ff-sh-copy.is-ok { background: #e9f8f0; border-color: #bfe8d2; color: #18a058 !important; }
.ff-share-hint { margin: 10px 0 0; font-size: .8rem; color: var(--ff-muted); }
@media (max-width: 560px) {
	.ff-sh span:not(:first-child) { }
	.ff-sh-native { width: 100%; justify-content: center; }
}
