/*
Theme Name: FotoFeliz
Theme URI: https://www.fotofeliz.com.ar
Author: Ignacio Bauchwitz SISTEMAS – 1164119999
Description: Tema completo de FotoFeliz: marketplace de fotos de eventos con búsqueda por selfie, carrito, cobro con Mercado Pago, panel de fotógrafos y administración. Trae todo incluido (no necesita plugin).
Version: 1.8.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: fotofeliz-tema
*/

:root {
	--ff-primary: #1565d8;
	--ff-dark: #0a2540;
	--ff-bg: #f3f6fb;
	--ff-line: #dfe6f1;
	--ff-muted: #5b6b82;
	--t-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--t-max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--t-font); font-size: 16px; line-height: 1.6; color: var(--ff-dark); background: var(--ff-bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--ff-primary); }
h1, h2, h3, h4 { line-height: 1.2; color: var(--ff-dark); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100000; width: auto; height: auto; clip: auto; background: #fff; padding: 10px 14px; border-radius: 8px; }
.t-container { max-width: var(--t-max); margin: 0 auto; padding: 0 16px; }

/* ---------- Encabezado ---------- */
.t-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--ff-line); }
.admin-bar .t-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .t-header { top: 0; } }
.t-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.t-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ff-dark); font-weight: 900; font-size: 1.85rem; letter-spacing: -.035em; white-space: nowrap; line-height: 1; }
.t-brand .t-smiley { flex: 0 0 auto; filter: drop-shadow(0 3px 6px rgba(245,163,0,.35)); transition: transform .3s; }
.t-brand:hover .t-smiley { transform: rotate(-12deg) scale(1.06); }
.t-brand img { max-height: 44px; width: auto; }
.t-brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--ff-primary); color: #fff; font-size: 1.15rem; }
.t-brand b { color: var(--ff-primary); }
.t-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.t-nav a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; color: var(--ff-dark); font-weight: 600; font-size: .95rem; }
.t-nav a:hover, .t-nav .current-menu-item > a, .t-nav .current_page_item > a { background: var(--ff-bg); color: var(--ff-primary); }
.t-nav .t-cta > a { background: var(--ff-primary); color: #fff !important; }
.t-actions { display: flex; align-items: center; gap: 8px; }
.t-cart { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--ff-bg); color: var(--ff-dark); text-decoration: none; font-size: 1.2rem; }
.t-cart-count { position: absolute; top: -2px; right: -2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--ff-primary); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.t-cart-count[data-n="0"] { display: none; }
.t-burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--ff-bg); cursor: pointer; font-size: 1.3rem; }

@media (max-width: 860px) {
	.t-burger { display: grid; place-items: center; }
	.t-brand { font-size: 1.5rem; }
	.t-brand .t-smiley { width: 38px; height: 38px; }
	.t-nav { position: fixed; inset: 76px 0 auto 0; background: #fff; border-bottom: 1px solid var(--ff-line); box-shadow: 0 20px 40px rgba(0,0,0,.08); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: .2s; }
	.admin-bar .t-nav { top: 122px; }
	.t-nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
	.t-nav ul { flex-direction: column; align-items: stretch; padding: 10px 16px 18px; }
	.t-nav a { padding: 12px 14px; font-size: 1.05rem; }
}

/* ---------- Contenido ---------- */
.t-main { min-height: 60vh; }
.t-page { padding-top: 28px; padding-bottom: 60px; }
.t-page-title { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 0 0 20px; }
.t-content { background: #fff; border: 1px solid var(--ff-line); border-radius: 18px; padding: clamp(18px, 4vw, 36px); }
.t-content > *:first-child { margin-top: 0; }
.t-fullwidth .t-page { padding-top: 10px; }
.t-fullwidth .t-content { background: transparent; border: 0; padding: 0; }
/* Las páginas del plugin ya traen su propio contenedor. */
.t-fullwidth .ff-wrap { padding-left: 0; padding-right: 0; }
.entry-meta { color: var(--ff-muted); font-size: .9rem; margin: -12px 0 20px; }
.t-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.t-post-card { background: #fff; border: 1px solid var(--ff-line); border-radius: 16px; overflow: hidden; }
.t-post-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.t-post-card div { padding: 16px; }
.t-post-card h2 { font-size: 1.15rem; margin: 0 0 6px; }
.t-post-card h2 a { color: inherit; text-decoration: none; }
.t-pagination { margin: 26px 0; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.t-pagination .page-numbers { padding: 8px 13px; border-radius: 10px; background: #fff; border: 1px solid var(--ff-line); text-decoration: none; color: inherit; }
.t-pagination .current { background: var(--ff-primary); color: #fff; border-color: var(--ff-primary); }
.t-404 { text-align: center; padding: 80px 16px; }
.t-404 .t-big { font-size: 5rem; margin: 0; }
.t-btn { display: inline-block; padding: .8em 1.5em; border-radius: 999px; background: var(--ff-primary); color: #fff !important; text-decoration: none; font-weight: 700; }

/* ---------- Pie ---------- */
.t-footer { background: var(--ff-dark); color: #c9cbe0; margin-top: 40px; }
.t-footer a { color: #fff; text-decoration: none; }
.t-footer a:hover { text-decoration: underline; }
.t-footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding: 46px 16px 30px; }
.t-footer h4 { color: #fff; margin: 0 0 12px; font-size: 1rem; }
.t-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.t-footer .t-brand { color: #fff; margin-bottom: 10px; }
.t-footer p { margin: 0 0 10px; font-size: .95rem; }
.t-social { display: flex; gap: 8px; margin-top: 12px; }
.t-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.1); font-size: .85rem; font-weight: 700; }
.t-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px; font-size: .85rem; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) { .t-footer-top { grid-template-columns: 1fr; gap: 24px; } }

/* WhatsApp flotante */
.t-wa { position: fixed; right: 16px; bottom: 16px; z-index: 9998; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.25); text-decoration: none; }
.t-wa svg { width: 30px; height: 30px; fill: #fff; }
/* Que no tape la barra del carrito del plugin en el celular. */
@media (max-width: 560px) { body.t-has-cartbar .t-wa { bottom: 82px; } }

/* Bloques de WordPress */
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-block-button__link { background: var(--ff-primary); border-radius: 999px; }


/* =====================================================================
 * PORTADA (front-page.php)
 * =================================================================== */
.home .t-main { background: #fff; }
.lp { overflow: hidden; }
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 26px; border-radius: 999px; font-weight: 800; font-size: 1rem; text-decoration: none !important; border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.lp-btn:hover { transform: translateY(-2px); }
.lp-btn-primary { background: linear-gradient(135deg, var(--ff-primary), #2f80ff); color: #fff !important; box-shadow: 0 10px 24px rgba(21,101,216,.35); }
.lp-btn-light { background: #FFC21A; color: #3b2a00 !important; box-shadow: 0 10px 24px rgba(255,194,26,.35); }
.lp-btn-white { background: #fff; color: var(--ff-dark) !important; }
.lp-eyebrow { color: var(--ff-primary); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; margin: 0 0 8px; text-align: center; }
.lp-h2 { text-align: center; font-size: clamp(1.7rem, 4vw, 2.6rem); letter-spacing: -.02em; margin: 0 auto 34px; max-width: 760px; }
.lp-sec { padding: 70px 16px; }

/* Hero */
.lp-hero { position: relative; padding: 56px 0 40px; background:
	radial-gradient(900px 500px at 85% 10%, rgba(56,189,248,.28), transparent 60%),
	radial-gradient(700px 500px at 0% 100%, rgba(21,101,216,.20), transparent 60%),
	linear-gradient(180deg, #f3f7ff 0%, #ffffff 100%); }
.lp-hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.lp-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--ff-line); font-weight: 700; font-size: .88rem; color: var(--ff-dark); box-shadow: 0 4px 14px rgba(10,37,64,.06); }
.lp-hero h1 { font-size: clamp(2.2rem, 5.4vw, 4rem); line-height: 1.04; letter-spacing: -.035em; margin: 18px 0 16px; }
.lp-hero h1 span { background: linear-gradient(90deg, var(--ff-primary), #38bdf8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-lead { font-size: 1.15rem; color: #3d4b63; max-width: 560px; margin: 0 0 24px; }
.lp-search { display: flex; gap: 8px; background: #fff; padding: 7px; border-radius: 999px; box-shadow: 0 18px 40px rgba(10,37,64,.14); max-width: 600px; border: 1px solid var(--ff-line); }
.lp-search input { flex: 1; border: 0; outline: none; padding: 0 16px; font: inherit; font-size: 1rem; min-width: 0; background: transparent; }
.lp-trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 18px 0 0; color: #3d4b63; font-weight: 600; font-size: .92rem; }

/* Teléfono ilustrado */
.lp-hero-art { position: relative; display: flex; justify-content: center; }
.lp-phone { width: 300px; background: #0a2540; border-radius: 42px; padding: 14px; box-shadow: 0 40px 80px rgba(10,37,64,.35), inset 0 0 0 2px #1d3b63; transform: rotate(3deg); }
.lp-phone > * { background: #fff; }
.lp-phone-top { height: 26px; border-radius: 30px 30px 0 0; display: flex; justify-content: center; align-items: center; }
.lp-phone-top span { width: 80px; height: 8px; border-radius: 9px; background: #0a2540; }
.lp-selfie { text-align: center; padding: 10px 0 6px; }
.lp-face { position: relative; display: inline-block; padding: 8px; border-radius: 50%; border: 3px solid #18a058; }
.lp-scan { position: absolute; left: -6px; right: -6px; height: 3px; top: 10%; background: #18a058; box-shadow: 0 0 12px #18a058; animation: lpscan 2.2s ease-in-out infinite; }
@keyframes lpscan { 50% { top: 85%; } }
.lp-selfie p { margin: 6px 0 0; font-size: .78rem; color: var(--ff-muted); font-weight: 600; }
.lp-found { text-align: center; padding: 4px 10px 8px; font-size: .9rem; color: var(--ff-primary); }
.lp-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 0 12px 10px; }
.lp-mini { aspect-ratio: 1; border-radius: 10px; background: linear-gradient(135deg, #bcd3f7, #e7effc) center/cover; position: relative; }
.lp-mini.is-match { outline: 3px solid var(--ff-primary); outline-offset: -3px; }
.lp-mini.is-match::after { content: '✓'; position: absolute; right: 4px; bottom: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--ff-primary); color: #fff; font-size: 11px; font-weight: 900; display: grid; place-items: center; }
.lp-buy { margin: 0; padding: 12px; border-radius: 0 0 30px 30px; text-align: center; font-size: .9rem; color: #fff !important; background: linear-gradient(135deg, var(--ff-primary), #2f80ff) !important; }
.lp-float { position: absolute; background: #fff; border-radius: 14px; padding: 10px 14px; font-weight: 700; font-size: .85rem; box-shadow: 0 14px 30px rgba(10,37,64,.18); animation: lpfloat 4s ease-in-out infinite; }
.lp-float-1 { left: -10px; top: 38%; }
.lp-float-2 { right: -6px; bottom: 16%; color: #18a058; animation-delay: -2s; }
@keyframes lpfloat { 50% { transform: translateY(-10px); } }
.lp-stats { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 40px; }
.lp-stats div { background: #fff; border: 1px solid var(--ff-line); border-radius: 16px; padding: 14px 24px; text-align: center; min-width: 180px; }
.lp-stats b { display: block; font-size: 1.7rem; color: var(--ff-dark); }
.lp-stats span { color: var(--ff-muted); font-size: .88rem; }

/* Pasos */
.lp-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.lp-step { position: relative; background: #fff; border: 1px solid var(--ff-line); border-radius: 22px; padding: 26px 20px; text-align: center; box-shadow: 0 6px 20px rgba(10,37,64,.05); }
.lp-step-n { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--ff-primary); color: #fff; font-weight: 900; display: grid; place-items: center; }
.lp-step-ic { font-size: 2.4rem; display: block; margin: 6px 0 8px; }
.lp-step h3 { font-size: 1.05rem; margin: 0 0 6px; }
.lp-step p { margin: 0; color: var(--ff-muted); font-size: .93rem; }

/* Urgencia */
.lp-urgent { background: linear-gradient(135deg, #fff7e0, #ffefc2); padding: 50px 0; }
.lp-urgent-head { text-align: center; margin-bottom: 24px; }
.lp-urgent-head h2 { margin: 0 0 6px; font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
.lp-urgent-head p { margin: 0; color: #7a5200; font-weight: 600; }

/* Marketplace en la portada */
.lp-market .ff-wrap { padding: 0; }

/* Beneficios */
.lp-benefits { background: #f3f6fb; }
.lp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lp-card { background: #fff; border-radius: 20px; padding: 26px; border: 1px solid var(--ff-line); }
.lp-card span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: #e7f0ff; font-size: 1.6rem; margin-bottom: 12px; }
.lp-card h3 { margin: 0 0 6px; font-size: 1.1rem; }
.lp-card p { margin: 0; color: var(--ff-muted); }

/* Fotógrafos y auspiciantes */
.lp-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.lp-box { border-radius: 26px; padding: 38px; color: #fff; }
.lp-box h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 12px; }
.lp-box p { opacity: .9; }
.lp-box .lp-eyebrow { text-align: left; color: #FFC21A; }
.lp-box-dark { background: linear-gradient(150deg, #0a2540, #12365f); }
.lp-box-blue { background: linear-gradient(150deg, var(--ff-primary), #38bdf8); }
.lp-box-blue .lp-eyebrow { color: #fff; opacity: .85; }
.lp-checks { list-style: none; padding: 0; margin: 16px 0 24px; display: grid; gap: 10px; }
.lp-checks li { padding-left: 30px; position: relative; }
.lp-checks li::before { content: '✓'; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-size: 12px; font-weight: 900; }

/* Preguntas */
.lp-faq { max-width: 820px; }
.lp-faq details { background: #fff; border: 1px solid var(--ff-line); border-radius: 16px; padding: 4px 20px; margin-bottom: 10px; }
.lp-faq summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; position: relative; padding-right: 30px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; position: absolute; right: 0; top: 10px; font-size: 1.4rem; color: var(--ff-primary); }
.lp-faq details[open] summary::after { content: '–'; }
.lp-faq details p { margin: 0 0 16px; color: var(--ff-muted); }

/* CTA final */
.lp-final { text-align: center; padding: 70px 16px; background: linear-gradient(135deg, #0a2540, var(--ff-primary)); color: #fff; }
.lp-final h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.5rem); max-width: 720px; margin: 14px auto 24px; }

@media (max-width: 900px) {
	.lp-hero-in { grid-template-columns: 1fr; }
	.lp-hero-art { margin-top: 10px; }
	.lp-steps { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
	.lp-cards { grid-template-columns: 1fr 1fr; }
	.lp-duo { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.lp-hero { padding-top: 30px; }
	.lp-search { flex-direction: column; border-radius: 22px; }
	.lp-search input { padding: 12px 14px; }
	.lp-phone { width: 260px; }
	.lp-float-1 { left: 0; } .lp-float-2 { right: 0; }
	.lp-steps, .lp-cards { grid-template-columns: 1fr; }
	.lp-sec { padding: 50px 16px; }
	.lp-box { padding: 28px 22px; }
	.lp-stats div { min-width: 0; flex: 1 1 40%; padding: 12px; }
}
.home .t-footer { margin-top: 0; }
.lp-float-1 { top: 10%; left: -30px; }
@media (max-width: 560px) { .lp-float-1 { left: 0; top: 4%; } }
.t-brand-txt { display: flex; flex-direction: column; gap: 3px; }
.t-brand-name { line-height: .95; }
.t-brand-tag { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ff-muted); line-height: 1; padding-left: 2px; }
.t-footer .t-brand-tag { color: #9fb3d1; }
@media (max-width: 560px) { .t-brand-tag { font-size: .58rem; letter-spacing: .1em; } }

/* Compartir FotoFeliz (portada) */
.lp-share-card { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; background: linear-gradient(135deg, #eef4ff, #ffffff); border: 1px solid var(--ff-line); border-radius: 28px; padding: 34px; }
.lp-qr { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lp-qr canvas { width: 220px; height: 220px; background: #fff; padding: 12px; border-radius: 20px; box-shadow: 0 14px 34px rgba(10,37,64,.15); image-rendering: pixelated; }
.lp-qr-dl { border: 1.5px solid var(--ff-line); padding: 11px 20px; font-size: .9rem; }
.lp-share-txt h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 10px; }
.lp-share-txt > p { color: var(--ff-muted); margin: 0 0 16px; }
.lp-share-txt .ff-share { background: transparent; border: 0; padding: 0; }
@media (max-width: 760px) { .lp-share-card { grid-template-columns: 1fr; text-align: center; padding: 26px 18px; } .lp-share-txt .lp-eyebrow { text-align: center !important; } .lp-share-txt .ff-share-btns { justify-content: center; } }
