/*
Theme Name: iGray by GrayLabs
Theme URI: https://allbegray.com
Author: GrayLabs
Author URI: https://allbegray.com
Description: Tema moderno y personalizable para presentar GrayLabs y sus proyectos ShotBridge y BudgGray.
Version: 1.2.0
Requires at least: 6.2
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: igray-graylabs
*/

:root {
  --bg: #f8f9fc;
  --panel: #ffffff;
  --panel-2: #f1f4f9;
  --text: #171a24;
  --muted: #626b7c;
  --line: rgba(23,26,36,.1);
  --accent: #5269ff;
  --accent-2: #00a978;
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(103,126,255,.18), transparent 34rem),
    radial-gradient(circle at 92% 26%, rgba(19,206,150,.12), transparent 30rem),
    radial-gradient(circle at 48% 55%, rgba(255,189,74,.08), transparent 32rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(248,249,252,.82);
  backdrop-filter: blur(18px);
}
.site-header.scrolled { border-color: var(--line); }
.header-row { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; letter-spacing: -.02em; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid rgba(82,105,255,.22); border-radius: 11px;
  color: white;
  background: linear-gradient(145deg, #5269ff, #8c60ff);
  box-shadow: 0 9px 24px rgba(82,105,255,.22);
}
.brand-mark::before { content: "G"; font-size: 16px; }
.brand-sub { color: var(--muted); font-size: 12px; font-weight: 500; display: block; margin-top: -4px; }
.nav-menu { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.nav-menu a { color: var(--muted); font-size: 14px; transition: color .2s; }
.nav-menu a:hover { color: var(--text); }
.menu-toggle { display: none; border: 1px solid var(--line); color: var(--text); background: var(--panel); border-radius: 10px; padding: 9px 12px; }

.hero { position: relative; padding: clamp(80px, 13vw, 160px) 0 90px; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; z-index: -1; right: -90px; top: 100px;
  width: 360px; height: 360px; border-radius: 43% 57% 55% 45%;
  background: linear-gradient(145deg, #ffd766, #ff7da7 48%, #7f77ff);
  opacity: .2; filter: blur(2px); transform: rotate(18deg);
}
.eyebrow { display: inline-flex; gap: 8px; align-items: center; color: #4e586b; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); }
.hero h1 {
  max-width: 900px; margin: 24px 0;
  font-size: clamp(52px, 9vw, 112px); line-height: .93;
  letter-spacing: -.068em; font-weight: 760;
}
.hero h1 span {
  color: transparent;
  background: linear-gradient(100deg, #5269ff, #9b59ff 45%, #00a978);
  -webkit-background-clip: text; background-clip: text;
}
.hero-copy { max-width: 650px; color: var(--muted); font-size: clamp(18px, 2vw, 22px); }
.actions { display: flex; gap: 13px; flex-wrap: wrap; margin-top: 34px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 50px;
  padding: 0 20px; border: 1px solid transparent; border-radius: 14px;
  background: linear-gradient(120deg, #5269ff, #7b5df5); color: #fff; font-weight: 700;
  box-shadow: 0 12px 28px rgba(82,105,255,.22); transition: transform .2s, box-shadow .2s;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(82,105,255,.28); }
.button.secondary { color: var(--text); background: white; border-color: var(--line); box-shadow: 0 10px 25px rgba(23,26,36,.06); }

.metric-row { margin-top: 82px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.metric { padding: 24px 0; color: var(--muted); font-size: 13px; }
.metric + .metric { padding-left: 28px; border-left: 1px solid var(--line); }
.metric strong { display: block; color: var(--text); font-size: 20px; margin-bottom: 3px; }

.section { padding: 110px 0; }
.section-head { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; align-items: end; margin-bottom: 48px; }
.section-head h2 { margin: 0; font-size: clamp(38px, 5vw, 68px); line-height: 1; letter-spacing: -.055em; }
.section-head p { color: var(--muted); max-width: 580px; margin: 0; font-size: 18px; }

.projects { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.project {
  position: relative; min-height: 720px; overflow: hidden; padding: 30px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(145deg, var(--card, #fff), #fff);
  box-shadow: 0 24px 70px rgba(44,50,70,.08);
}
.project:nth-child(1), .project:nth-child(2) { grid-column: span 6; }
.project::after {
  content: ""; position: absolute; width: 240px; height: 240px; right: -50px; bottom: -70px;
  border-radius: 50%; background: var(--glow, var(--accent)); opacity: .2; filter: blur(5px);
}
.project-index { color: var(--muted); font-size: 13px; }
.project-body { position: relative; z-index: 2; }
.project-icon {
  width: 60px; height: 60px; margin: 24px 0 22px; border-radius: 18px;
  display: grid; place-items: center; font-weight: 800; font-size: 21px;
  color: #0b0d11; background: var(--icon, #fff);
  box-shadow: 0 18px 45px rgba(55,63,95,.16);
}
.project h3 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -.04em; line-height: 1; margin: 0 0 12px; }
.project p { color: var(--muted); max-width: 510px; margin: 0; }
.project-visual {
  position: relative; z-index: 1; height: 245px; margin: 42px -4px 0;
  border: 1px solid rgba(255,255,255,.7); border-radius: 22px; overflow: hidden;
  background: rgba(255,255,255,.48);
}
.project-visual img { width: 100%; height: 100%; object-fit: cover; }
.shotbridge-visual { height: 100%; display: flex; align-items: center; justify-content: center; gap: 25px; background: linear-gradient(145deg, #dce2ff, #eef8ff); }
.visual-phone { width: 68px; height: 132px; padding: 7px; border: 5px solid #27304b; border-radius: 18px; background: white; box-shadow: 0 20px 45px rgba(39,48,75,.18); transform: rotate(-5deg); }
.visual-phone i { display: block; width: 100%; height: 100%; border-radius: 10px; background: linear-gradient(145deg, #7889ff, #78e1d0); }
.visual-pc { width: 176px; height: 112px; padding: 8px; border: 6px solid #27304b; border-radius: 12px; background: white; box-shadow: 0 20px 45px rgba(39,48,75,.18); transform: rotate(3deg); }
.visual-pc::after { content: ""; display: block; width: 54px; height: 20px; margin: 10px auto 0; border-bottom: 6px solid #27304b; border-left: 6px solid transparent; border-right: 6px solid transparent; }
.visual-pc i { display: block; width: 100%; height: 100%; border-radius: 5px; background: linear-gradient(145deg, #eef1ff, #b6c4ff); }
.visual-flow { color: #5269ff; font-size: 38px; font-weight: 900; animation: flowPulse 1.8s ease-in-out infinite; }
@keyframes flowPulse { 50% { transform: translateX(6px); opacity: .55; } }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; }
.project-tag {
  display: inline-flex; padding: 7px 11px; border-radius: 999px;
  background: rgba(255,255,255,.72); border: 1px solid rgba(23,26,36,.09);
  color: #40495a; font-size: 12px; font-weight: 700;
}
.project-status {
  position: absolute; right: 28px; top: 26px; padding: 7px 11px; border-radius: 999px;
  background: rgba(255,255,255,.78); color: #465064; font-size: 11px; font-weight: 800;
  letter-spacing: .05em; text-transform: uppercase;
}
.project-wide-content { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: end; }
.project-features { margin: 20px 0 0; padding: 0; list-style: none; color: #4e586b; }
.project-features li { position: relative; padding: 7px 0 7px 24px; }
.project-features li::before {
  content: "✓"; position: absolute; left: 0; color: var(--glow); font-weight: 900;
}
.project-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.project-more {
  appearance: none; border: 0; border-radius: 12px; padding: 12px 17px;
  color: white; background: var(--glow); font: inherit; font-weight: 800; cursor: pointer;
  box-shadow: 0 10px 25px color-mix(in srgb, var(--glow) 25%, transparent);
}
.project-site { color: var(--glow); font-weight: 800; }

body.modal-open { overflow: hidden; }
.project-modal[hidden] { display: none; }
.project-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px; }
.project-modal-backdrop { position: absolute; inset: 0; background: rgba(23,26,36,.52); backdrop-filter: blur(12px); }
.project-modal-panel {
  position: relative; z-index: 1; width: min(100%, 920px); max-height: min(90vh, 900px);
  overflow-y: auto; border-radius: 30px; background: white;
  box-shadow: 0 40px 100px rgba(23,26,36,.28);
}
.project-modal-close {
  position: absolute; z-index: 3; right: 18px; top: 18px; width: 42px; height: 42px;
  border: 1px solid rgba(23,26,36,.1); border-radius: 50%; background: rgba(255,255,255,.9);
  color: #171a24; font-size: 27px; line-height: 1; cursor: pointer;
}
.modal-hero {
  padding: clamp(42px, 7vw, 76px); border-radius: 30px 30px 0 0;
  background: radial-gradient(circle at 88% 10%, color-mix(in srgb, var(--modal-color) 30%, transparent), transparent 36%), var(--modal-card);
}
.modal-hero span, .modal-label { color: var(--modal-color, var(--accent)); font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.modal-hero h2 { margin: 16px 0 14px; font-size: clamp(44px, 8vw, 78px); line-height: .95; letter-spacing: -.06em; }
.modal-hero p { max-width: 680px; margin: 0; color: #515b6d; font-size: 19px; }
.modal-content { padding: clamp(30px, 6vw, 64px); }
.modal-content section + section { margin-top: 58px; }
.modal-content h3 { margin: 9px 0 13px; font-size: clamp(26px, 4vw, 38px); line-height: 1.08; letter-spacing: -.04em; }
.modal-content p { color: var(--muted); font-size: 17px; }
.modal-steps { list-style: none; counter-reset: steps; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-steps li { counter-increment: steps; padding: 20px; border: 1px solid var(--line); border-radius: 16px; color: #505a6b; background: #fafbfe; }
.modal-steps li::before { content: "0" counter(steps); display: block; margin-bottom: 15px; color: var(--accent); font-size: 12px; font-weight: 900; }
.modal-goals { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-goals div { padding: 18px 20px; border-radius: 15px; background: var(--panel-2); font-weight: 700; }
.modal-summary { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; padding: 24px; border-radius: 18px; background: #f5f7fb; }
.modal-summary div { display: grid; }
.modal-summary .button { margin-left: auto; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.about-card { padding: clamp(28px, 5vw, 55px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 22px 60px rgba(44,50,70,.06); }
.about-card h3 { font-size: 30px; letter-spacing: -.04em; margin-top: 0; }
.about-card p { color: var(--muted); }
.value-list { list-style: none; padding: 0; margin: 26px 0 0; }
.value-list li { padding: 13px 0; border-top: 1px solid var(--line); }

.contact-card {
  padding: clamp(34px, 8vw, 90px); text-align: center; border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 8px);
  background:
    radial-gradient(circle at 20% 120%, rgba(82,105,255,.2), transparent 42%),
    radial-gradient(circle at 85% 0%, rgba(0,199,142,.16), transparent 42%),
    var(--panel);
  box-shadow: 0 28px 80px rgba(44,50,70,.09);
}
.contact-card h2 { max-width: 800px; margin: 0 auto 20px; font-size: clamp(42px, 7vw, 80px); line-height: 1; letter-spacing: -.06em; }
.contact-card p { color: var(--muted); font-size: 18px; }

.site-footer { padding: 36px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

.content-shell { width: min(calc(100% - 40px), 820px); margin: 0 auto; padding: 90px 0 120px; }
.content-shell h1 { font-size: clamp(40px, 6vw, 70px); line-height: 1; letter-spacing: -.05em; }
.entry-content { color: #424b5c; }
.entry-content h2, .entry-content h3 { color: var(--text); margin-top: 2em; }
.entry-content a { color: var(--accent); text-decoration: underline; }

@media (max-width: 800px) {
  .menu-toggle { display: block; }
  .nav-menu {
    display: none; position: absolute; top: 76px; left: 20px; right: 20px;
    padding: 20px; flex-direction: column; align-items: flex-start;
    border: 1px solid var(--line); border-radius: 16px; background: #fff;
  }
  .nav-menu.open { display: flex; }
  .section-head, .about-grid { grid-template-columns: 1fr; }
  .project:nth-child(n) { grid-column: 1 / -1; min-height: 390px; }
  .project-wide-content { grid-template-columns: 1fr; gap: 10px; }
  .metric-row { grid-template-columns: 1fr; }
  .metric + .metric { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .section { padding: 80px 0; }
  .project { min-height: auto; }
  .project-visual { height: 210px; }
  .modal-steps, .modal-goals { grid-template-columns: 1fr; }
  .project-modal { padding: 10px; }
  .project-modal-panel { border-radius: 22px; max-height: 96vh; }
  .modal-hero { border-radius: 22px 22px 0 0; }
}

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