/*
Theme Name: Polygum — Propuesta 2
Theme URI: https://polygum-studio.com/
Author: Polygum Studio
Description: Landing page expresiva inspirada en el lettering y los degradados del logo Polygum.
Version: 2.11.0
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: polygum-landing
*/

:root {
  --ink: #10110f;
  --paper: #f7f5ed;
  --acid: #d9ff43;
  --aqua: #83e9dc;
  --coral: #ff7657;
  --line: rgba(16, 17, 15, .2);
  --muted: #5e6058;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(calc(100% - 48px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 999; background: var(--ink); color: #fff; padding: 12px 18px; }
.skip-link:focus { top: 16px; }

.site-header { position: absolute; inset: 0 0 auto; z-index: 20; padding: 25px 0; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; text-decoration: none; letter-spacing: -.04em; }
.brand-mark { width: 42px; aspect-ratio: 1; display: grid; place-items: center; border: 2px solid var(--ink); border-radius: 50%; background: var(--acid); font-size: 21px; }
.site-nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 700; }
.site-nav a { text-decoration: none; }
.site-nav a:not(.nav-cta):hover { text-decoration: underline; text-underline-offset: 5px; }
.nav-cta, .button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 2px solid var(--ink); border-radius: 999px; padding: 12px 20px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 800; box-shadow: 4px 4px 0 var(--coral); transition: transform .18s, box-shadow .18s; }
.nav-cta:hover, .button:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--coral); }
.button.light { background: var(--paper); color: var(--ink); box-shadow: 4px 4px 0 var(--acid); }
.menu-toggle { display: none; border: 0; background: transparent; font: inherit; font-weight: 800; }

.hero { min-height: 760px; padding: 170px 0 90px; position: relative; display: flex; align-items: center; border-bottom: 2px solid var(--ink); background: linear-gradient(120deg, var(--aqua) 0 58%, var(--paper) 58%); }
.hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; align-items: center; gap: 70px; }
.eyebrow { margin: 0 0 22px; font-family: "Fira Code", monospace; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { content: "✳"; margin-right: 9px; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 920px; margin-bottom: 28px; font-size: clamp(58px, 8vw, 116px); line-height: .86; letter-spacing: -.075em; font-weight: 800; }
.hero h1 em { position: relative; font-style: normal; z-index: 0; }
.hero h1 em::after { content: ""; position: absolute; z-index: -1; height: .18em; bottom: .08em; left: -.02em; right: -.02em; background: var(--acid); transform: rotate(-2deg); }
.hero-copy { max-width: 680px; font-size: clamp(18px, 2vw, 23px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 36px; }
.text-link { font-weight: 800; text-underline-offset: 6px; }
.hero-art { width: min(43vw, 560px); margin: 0; position: relative; border: 2px solid var(--ink); background: var(--paper); box-shadow: 12px 12px 0 var(--acid); transform: rotate(2deg); }
.hero-art img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-art figcaption { position: absolute; left: -22px; bottom: 24px; padding: 9px 14px; border: 2px solid var(--ink); background: var(--paper); font: 700 11px "Fira Code", monospace; transform: rotate(-5deg); }

.ticker { overflow: hidden; border-bottom: 2px solid var(--ink); background: var(--acid); padding: 13px 0; white-space: nowrap; }
.ticker-track { display: flex; gap: 0; width: max-content; min-width: max-content; font: 700 13px "Fira Code", monospace; text-transform: uppercase; animation: ticker 32s linear infinite; will-change: transform; }
.ticker-track span { display: block; flex: 0 0 auto; padding-right: 28px; }
@keyframes ticker { to { transform: translateX(-50%); } }

.section { padding: clamp(80px, 10vw, 145px) 0; }
.section-head { display: grid; grid-template-columns: .6fr 1.4fr; gap: 40px; margin-bottom: 70px; }
h2 { max-width: 850px; margin-bottom: 24px; font-size: clamp(42px, 6vw, 76px); line-height: .98; letter-spacing: -.055em; }
.section-intro { max-width: 720px; color: var(--muted); font-size: 20px; }
.services { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.service { min-height: 360px; padding: 28px; border-right: 2px solid var(--ink); position: relative; transition: background .25s; }
.service:first-child { border-left: 2px solid var(--ink); }
.service:hover { background: var(--acid); }
.service-no { font: 700 12px "Fira Code", monospace; }
.service h3 { margin: 85px 0 18px; font-size: 26px; line-height: 1.05; letter-spacing: -.04em; }
.service p { color: var(--muted); font-size: 16px; }
.service-arrow { position: absolute; top: 28px; right: 30px; font-size: 30px; }

.work { background: var(--ink); color: var(--paper); }
.work .eyebrow, .work .section-intro { color: var(--paper); }
.work-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 22px; }
.project { min-height: 450px; padding: 38px; border: 2px solid var(--paper); display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; overflow: hidden; position: relative; }
.project:nth-child(1) { background: var(--coral); color: var(--ink); }
.project:nth-child(2) { background: var(--aqua); color: var(--ink); }
.project:nth-child(3) { grid-column: 1 / -1; min-height: 300px; background: var(--acid); color: var(--ink); }
.project::after { content: "↗"; position: absolute; top: 24px; right: 28px; font-size: 38px; transition: transform .2s; }
.project:hover::after { transform: translate(5px, -5px); }
.project-tag { font: 700 12px "Fira Code", monospace; text-transform: uppercase; }
.project h3 { margin: 0; max-width: 650px; font-size: clamp(35px, 5vw, 64px); line-height: .95; letter-spacing: -.05em; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step { padding: 26px; border-top: 2px solid var(--ink); }
.step strong { display: block; margin-bottom: 55px; font: 700 12px "Fira Code", monospace; }
.step h3 { font-size: 23px; }
.step p { color: var(--muted); font-size: 15px; }

.cta-section { padding: 70px 0; background: var(--coral); border-block: 2px solid var(--ink); }
.cta-box { display: flex; justify-content: space-between; align-items: end; gap: 40px; }
.cta-box h2 { margin: 0; }
.cta-copy { max-width: 380px; }

.site-footer { padding: 55px 0 35px; background: var(--ink); color: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.footer-title { margin: 0; font-size: clamp(45px, 8vw, 100px); line-height: .85; letter-spacing: -.07em; }
.footer-links { display: flex; gap: 20px; font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 55px; padding-top: 20px; border-top: 1px solid #45463f; color: #b9bab2; font-size: 12px; }

@media (max-width: 900px) {
  .hero { background: var(--aqua); }
  .hero-grid, .section-head, .work-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 30px; }
  .hero-art { width: min(100%, 560px); margin: 10px auto 0; }
  .services { grid-template-columns: 1fr; }
  .service, .service:first-child { border: 2px solid var(--ink); border-top: 0; min-height: 260px; }
  .service:first-child { border-top: 2px solid var(--ink); }
  .service h3 { margin-top: 55px; }
  .project:nth-child(3) { grid-column: auto; }
  .process-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .menu-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 78px; left: 14px; right: 14px; padding: 24px; border: 2px solid var(--ink); background: var(--paper); flex-direction: column; align-items: stretch; }
  .site-nav.is-open { display: flex; }
  .hero { min-height: auto; padding-top: 145px; }
  h1 { font-size: clamp(52px, 17vw, 76px); }
  .hero-art { width: 94%; }
  .section { padding-block: 75px; }
  .section-head { margin-bottom: 45px; }
  .process-grid { grid-template-columns: 1fr; }
  .step strong { margin-bottom: 20px; }
  .cta-box, .footer-grid, .footer-bottom { align-items: flex-start; flex-direction: column; display: flex; }
  .footer-links { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Propuesta 2 — lenguaje visual inspirado en el logo */
:root {
  --ink: #10040d;
  --paper: #fff7f3;
  --acid: #ffb019;
  --aqua: #ff3e76;
  --coral: #ff5b35;
  --pink: #ec006e;
  --orange: #ff7d18;
  --line: rgba(16, 4, 13, .16);
  --muted: #735965;
}
body { background: var(--paper); }
.site-header { position: absolute; color: #fff; }
.brand-mark { border-color: #fff; background: linear-gradient(145deg, var(--pink), var(--orange)); color: #fff; }
.site-header .brand { display: inline-flex; align-items: center; gap: 11px; color: #fff; font-size: 18px; line-height: 1; letter-spacing: -.035em; white-space: nowrap; }
.site-header .brand-logo { display: block; width: 46px !important; height: 42px !important; max-width: 46px; object-fit: contain; flex: 0 0 46px; }
.site-nav .nav-cta { border-color: #fff; background: #fff; color: var(--ink); box-shadow: 5px 5px 0 var(--orange); }
.hero { min-height: 820px; overflow: hidden; color: #fff; border-bottom: 0; background: radial-gradient(circle at 80% 40%, #63002e 0, transparent 32%), linear-gradient(135deg, #12010e 10%, #3a031f 62%, #8b0a2f 100%); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 999px; filter: blur(2px); transform: rotate(-22deg); }
.hero::before { width: 55vw; height: 130px; right: -11vw; top: 8%; border: 32px solid var(--pink); opacity: .45; }
.hero::after { width: 48vw; height: 100px; right: -6vw; bottom: 7%; border: 25px solid var(--orange); opacity: .35; }
.hero-grid { grid-template-columns: 1.02fr .98fr; position: relative; z-index: 2; }
.hero .eyebrow { color: #ffb8d1; }
.hero h1 { font-size: clamp(62px, 8.8vw, 126px); letter-spacing: -.085em; }
.hero h1 em { font-family: Georgia, serif; font-weight: 500; color: #ff4a64; }
.hero h1 em::after { height: .12em; background: var(--orange); border-radius: 100%; transform: rotate(-4deg); }
.hero-copy { color: #f4dbe6; }
.hero .button { border-color: #fff; background: linear-gradient(100deg, var(--pink), var(--coral), var(--orange)); box-shadow: 6px 6px 0 #fff; }
.hero .text-link { color: #fff; }
.hero-art { width: min(38vw, 480px); border: 0; background: transparent; box-shadow: none; transform: perspective(900px) rotate(-3deg); transform-style: preserve-3d; transition: transform .55s cubic-bezier(.2,.8,.2,1), filter .4s ease; will-change: transform; }
.hero-art.is-tilting { transition-duration: .12s; filter: brightness(1.06) saturate(1.06); }
.hero-art img { aspect-ratio: 1; object-fit: contain; border-radius: 0; filter: drop-shadow(0 24px 38px rgba(0, 0, 0, .45)); }
.hero-art figcaption { left: auto; right: 8%; bottom: -8px; border-color: #fff; color: #fff; background: rgba(16, 4, 13, .82); transform: rotate(3deg); }
.ticker { border: 0; padding: 16px 0; color: #fff; background: linear-gradient(90deg, var(--pink), var(--coral), var(--orange)); }
.section .eyebrow { color: var(--pink); }
h2 { letter-spacing: -.065em; }
.services { border: 0; gap: 14px; }
.service, .service:first-child { min-height: 375px; overflow: hidden; border: 0; border-radius: 32px 8px 32px 8px; background: #fff; box-shadow: 0 15px 45px rgba(80, 5, 42, .08); }
.service:nth-child(1) { background: #ffe5ef; }
.service:nth-child(2) { background: #ffeadc; }
.service:nth-child(3) { background: #f6e8ff; }
.service:nth-child(4) { background: #fff0d0; }
.service:hover { color: #fff; background: linear-gradient(145deg, var(--pink), var(--coral)); transform: translateY(-6px) rotate(-1deg); }
.service:hover p { color: #fff; }
.work { position: relative; overflow: hidden; background: #210117; }
.work::before { content: ""; position: absolute; width: 70vw; height: 120px; left: -18vw; top: 5%; border: 28px solid var(--pink); border-radius: 100%; transform: rotate(-15deg); opacity: .17; }
.work .eyebrow { color: #ff9ac0; }
.project { border: 0; border-radius: 35px 10px 35px 10px; }
.project:nth-child(1) { background: linear-gradient(145deg, #ec006e, #ff5048); color: #fff; }
.project:nth-child(2) { background: linear-gradient(145deg, #ff623d, #ff9a19); color: var(--ink); }
.project:nth-child(3) { background: linear-gradient(100deg, #6e0cb8, #d80076); color: #fff; }
.step { border-color: #f35c8a; }
.step strong { color: var(--pink); }
.cta-section { position: relative; overflow: hidden; border: 0; color: #fff; background: linear-gradient(110deg, var(--pink), var(--coral) 55%, var(--orange)); }
.cta-section::after { content: ""; position: absolute; width: 320px; height: 90px; right: -80px; top: 20px; border: 24px solid #fff; border-radius: 100%; transform: rotate(-25deg); opacity: .18; }
.cta-section .eyebrow { color: #fff; }
.cta-section .button.light { border-color: #fff; box-shadow: 5px 5px 0 var(--ink); }
.contact-form-section { padding: clamp(70px, 9vw, 120px) 0; background: var(--paper); }
.contact-form-wrap { max-width: 860px; margin-inline: auto; }
.contact-form-wrap > h2 { margin-bottom: 18px; }
.contact-form-note { margin-bottom: 42px; color: var(--muted); }
.contact-form-placeholder { padding: 28px; border: 2px dashed rgba(16, 4, 13, .3); border-radius: 24px 8px; color: var(--muted); background: #fff; }
.contact-form-wrap .wpcf7-form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.contact-form-wrap .wpcf7-form > p { margin: 0; }
.contact-form-wrap .wpcf7-form > p:has(textarea),
.contact-form-wrap .wpcf7-form > p:last-of-type { grid-column: 1 / -1; }
.contact-form-wrap .wpcf7-form label { display: grid; gap: 8px; color: var(--ink); font-weight: 700; }
.contact-form-wrap .wpcf7-form-control:not(.wpcf7-submit) { width: 100%; min-height: 56px; border: 2px solid var(--ink); border-radius: 18px 6px; padding: 14px 16px; background: #fff; color: var(--ink); font: inherit; }
.contact-form-wrap textarea.wpcf7-form-control { min-height: 160px; resize: vertical; }
.contact-form-wrap .wpcf7-form-control:focus { outline: 4px solid rgba(236, 0, 110, .2); outline-offset: 2px; }
.contact-form-wrap .wpcf7-submit { border: 2px solid var(--ink); border-radius: 999px; padding: 15px 28px; background: linear-gradient(100deg, var(--pink), var(--coral), var(--orange)); color: #fff; font-family: inherit; font-size: 17px; font-weight: 800; box-shadow: 5px 5px 0 var(--ink); cursor: pointer; }
.contact-form-wrap .wpcf7-response-output { grid-column: 1 / -1; margin: 10px 0 0 !important; border-radius: 14px; }
.site-footer { padding: 26px 0 30px; background: #12010e; }
.site-footer .footer-bottom { margin-top: 0; }
.internal-header { position: relative; padding: 18px 0; color: #fff; background: #12010e; }
.internal-header .brand-logo { display: block; width: 46px; height: 42px; object-fit: contain; flex: 0 0 46px; }
.internal-header .site-nav a { color: #fff; }
.internal-header .site-nav .nav-cta { color: var(--ink); }
.internal-page { min-height: calc(100vh - 190px); padding: 55px 0 80px; background: var(--paper); }
.internal-page-wrap { width: min(calc(100% - 32px), 1440px); margin-inline: auto; }
.contact-page { min-height: calc(100vh - 190px); padding: clamp(70px, 9vw, 120px) 0; background: var(--paper); }
.contact-page .contact-form-wrap > h1 { margin: 0 0 42px; font-size: clamp(50px, 7vw, 88px); line-height: .95; letter-spacing: -.06em; }

@media (max-width: 900px) {
  .hero { background: radial-gradient(circle at 80% 55%, #63002e 0, transparent 38%), linear-gradient(135deg, #12010e, #4a0328); }
  .hero-art { width: min(80%, 500px); }
  .services { grid-template-columns: 1fr 1fr; }
  .service, .service:first-child { border: 0; }
}
@media (max-width: 680px) {
  .site-nav { color: var(--ink); }
  .hero { padding-bottom: 80px; }
  .hero-art { width: 88%; }
  .services { grid-template-columns: 1fr; }
  .contact-form-wrap .wpcf7-form { grid-template-columns: 1fr; }
  .contact-form-wrap .wpcf7-form > p { grid-column: 1 !important; }
  .internal-header .site-nav a { color: var(--ink); }
}
