/*
Theme Name: Crea PeruPixel
Theme URI: https://crea.perupixel.com
Author: PeruPixel
Description: Tema propio para crea.perupixel.com — foto y video de eventos, bodas y promociones. Sin page builders.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: crea
*/

:root {
  --bg: #0a0a0f;
  --bg-2: #101018;
  --card: #15151e;
  --line: rgba(255, 255, 255, .09);
  --text: #f4f4f6;
  --muted: #a3a3b3;
  --accent: #ff4d2e;
  --accent-2: #ffb347;
  --radius: 18px;
  --font-head: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1180px, 92%); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--alt { background: var(--bg-2); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent-2); margin-bottom: 14px;
}
.lead { color: var(--muted); font-size: 1.12rem; max-width: 62ch; }
.section-head { max-width: 760px; margin-bottom: 48px; }
.center { text-align: center; margin-inline: auto; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  border: 1.5px solid transparent; cursor: pointer; transition: .25s;
  background: var(--accent); color: #fff; font-family: var(--font-body);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -8px rgba(255, 77, 46, .6); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); box-shadow: none; }
.btn--block { width: 100%; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 15, .8); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.logo em { font-style: normal; color: var(--muted); font-weight: 500; }
.logo-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255, 77, 46, .25); animation: rec 1.6s infinite; }
@keyframes rec { 50% { opacity: .25; } }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { font-size: .95rem; color: var(--muted); transition: .2s; }
.nav a:not(.btn):hover, .nav a.is-current { color: var(--text); }
.nav .btn { padding: 10px 20px; }
.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 0; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 6px auto; transition: .25s; }

/* Hero */
.hero {
  position: relative; overflow: hidden; min-height: 88vh; display: flex; align-items: center;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(255, 77, 46, .22), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(255, 179, 71, .12), transparent 60%),
    var(--bg);
}
.hero-in { position: relative; z-index: 2; padding: 80px 0; }
.hero h1 span { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin: 24px 0 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.viewfinder { position: absolute; inset: 7% 4%; z-index: 1; pointer-events: none; opacity: .5; }
.viewfinder i { position: absolute; width: 38px; height: 38px; border: 2px solid var(--text); }
.viewfinder i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.viewfinder i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.viewfinder i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.viewfinder i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.viewfinder b { position: absolute; top: 6px; right: 56px; font-size: .75rem; letter-spacing: .2em; display: flex; align-items: center; gap: 8px; }
.viewfinder b::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: rec 1.6s infinite; }

/* Grids y cards */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; transition: .3s;
}
.card:hover { border-color: rgba(255, 255, 255, .22); transform: translateY(-4px); }
.card .num { font-family: var(--font-head); font-size: 2.4rem; font-weight: 800; color: var(--accent); }
.card p { color: var(--muted); margin: 0; }
.card .more { display: inline-block; margin-top: 18px; font-weight: 600; color: var(--accent-2); }

/* Planes */
.plans { align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 26px;
}
.plan--featured { border-color: var(--accent); background: linear-gradient(180deg, rgba(255, 77, 46, .14), var(--card) 55%); transform: scale(1.03); }
.plan-badge {
  position: absolute; top: -13px; left: 26px; background: var(--accent); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.plan h3 { margin-bottom: 4px; }
.plan-desc { color: var(--muted); font-size: .92rem; min-height: 3em; }
.plan-price { margin: 12px 0 22px; }
.plan-price span { font-family: var(--font-head); font-size: 2.7rem; font-weight: 800; }
.plan-price small { color: var(--muted); font-size: .9rem; }
.plan ul { margin-bottom: 28px; flex: 1; }
.plan li { padding: 8px 0 8px 28px; position: relative; font-size: .95rem; border-bottom: 1px solid var(--line); }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--accent-2); font-weight: 700; }
.plans-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 28px; }

/* Servicios (página) */
.service-block { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.service-block:first-of-type { border-top: 0; }
.service-block:nth-of-type(even) .service-text { order: 2; }
.service-visual {
  aspect-ratio: 4 / 3; border-radius: var(--radius); border: 1px solid var(--line);
  display: flex; align-items: flex-end; padding: 24px; font-family: var(--font-head); font-size: 1.3rem; font-weight: 700;
}
.sv-1 { background: radial-gradient(circle at 20% 20%, rgba(255, 77, 46, .5), transparent 60%), var(--card); }
.sv-2 { background: radial-gradient(circle at 80% 20%, rgba(255, 179, 71, .45), transparent 60%), var(--card); }
.sv-3 { background: radial-gradient(circle at 50% 10%, rgba(120, 100, 255, .45), transparent 60%), var(--card); }
.checks li { padding: 7px 0 7px 28px; position: relative; color: var(--muted); }
.checks li::before { content: '→'; position: absolute; left: 0; color: var(--accent); }
.service-text .btn { margin-top: 18px; }

/* Portafolio */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filters button {
  background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 999px;
  padding: 9px 20px; cursor: pointer; font-family: var(--font-body); font-size: .92rem; transition: .2s;
}
.filters button.is-on, .filters button:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.work { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: var(--card); border: 1px solid var(--line); }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.work:hover img { transform: scale(1.06); }
.work-ph { width: 100%; height: 100%; background: linear-gradient(135deg, #1c1c28, #0f0f16); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .9rem; }
.work-info { position: absolute; inset: auto 0 0 0; padding: 60px 20px 20px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); }
.work-info small { color: var(--accent-2); letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; font-weight: 600; }
.work-info h3 { margin: 4px 0 0; font-size: 1.1rem; }
.work-play { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; font-size: .8rem; }
.work.is-hidden { display: none; }

/* Sobre nosotros */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-visual { aspect-ratio: 1; border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(circle at 30% 25%, rgba(255, 77, 46, .45), transparent 55%), radial-gradient(circle at 75% 80%, rgba(255, 179, 71, .3), transparent 55%), var(--card); }
.about-visual img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

/* Formulario */
.form-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 48px); max-width: 820px; margin-inline: auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 15px; color: var(--text); font: inherit; font-size: .98rem;
}
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--accent); }
textarea { min-height: 120px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.notice { background: rgba(80, 200, 120, .12); border: 1px solid rgba(80, 200, 120, .4); padding: 14px 18px; border-radius: 12px; margin-bottom: 22px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 32px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-grid h4 { font-size: 1rem; margin-bottom: 14px; }
.footer-grid li { margin-bottom: 8px; color: var(--muted); }
.footer-grid a:hover { color: var(--text); }
.copy { border-top: 1px solid var(--line); padding-top: 24px; color: var(--muted); font-size: .85rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Contenido genérico */
.entry { max-width: 760px; }
.entry img { border-radius: 12px; }
.entry a { color: var(--accent-2); text-decoration: underline; }
.video-embed { aspect-ratio: 16 / 9; margin: 24px 0; }
.video-embed iframe { width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.page-hero { padding: clamp(56px, 8vw, 110px) 0 24px; background: radial-gradient(800px 400px at 90% 0, rgba(255, 77, 46, .16), transparent 60%), var(--bg); }

/* Animación de entrada */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1020px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .plan--featured { transform: none; }
}
@media (max-width: 820px) {
  .grid--3 { grid-template-columns: 1fr; }
  .service-block, .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .service-block:nth-of-type(even) .service-text { order: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; background: var(--bg); flex-direction: column; align-items: stretch;
    padding: 24px 6%; gap: 18px; border-bottom: 1px solid var(--line);
    transform: translateY(-130%); transition: transform .3s; z-index: -1;
  }
  .nav.open { transform: none; }
  .nav a:not(.btn) { font-size: 1.1rem; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid--4 { grid-template-columns: 1fr; }
  .viewfinder { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
