:root{
  --bg:#FFFFFF; --fg:#0A0A0A; --muted:#6B6B6B; --line:#E7E5E1;
  --accent:#FF4436; --card:#F7F6F4;
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){ --bg:#0B0B0C; --fg:#F5F4F2; --muted:#9A9895; --line:#232324; --card:#151516; }
}
:root[data-theme="dark"]{ --bg:#0B0B0C; --fg:#F5F4F2; --muted:#9A9895; --line:#232324; --card:#151516; }
html{ scroll-behavior:smooth; scroll-padding-top:calc(70px + env(safe-area-inset-top,0px)); }
*{ box-sizing:border-box; }
body{ margin:0; background:var(--bg); color:var(--fg); font-family:'Inter',system-ui,sans-serif; line-height:1.55; -webkit-font-smoothing:antialiased; overflow-x:hidden; }
h1,h2,h3{ font-family:'Space Grotesk',system-ui,sans-serif; font-weight:700; letter-spacing:-0.01em; margin:0; }
p{ margin:0; } a{ color:inherit; } img{ max-width:100%; display:block; }
.wrap{ max-width:1080px; margin:0 auto; padding:0 24px; position:relative; z-index:1; }

/* ---- Logotipo (recreado en HTML/CSS, mismo trazo que el vector original) ---- */
.logo-wordmark{
  font-family:'Archivo Black', sans-serif; font-weight:400;
  display:inline-flex; align-items:flex-start; color:var(--fg); line-height:1;
}
.logo-wordmark .i-dot,.logo-wordmark .i-accent{ position:relative; display:inline-block; }
.logo-wordmark .dot{ position:absolute; left:50%; top:-0.58em; width:0.22em; height:0.22em; border-radius:50%; background:var(--fg); transform:translateX(-50%); }
.logo-wordmark .accent{ position:absolute; left:50%; top:-0.8em; width:0.16em; height:0.5em; background:var(--fg); border-radius:1px; transform:translateX(-50%) rotate(-28deg); }
.logo-hero{ font-size:clamp(52px,11vw,140px); }
nav .logo-wordmark{ font-size:22px; }
footer .logo-wordmark{ font-size:20px; }

/* Nav */
header{ position:sticky; top:0; z-index:20; background:var(--bg); border-bottom:1px solid var(--line); padding-top:env(safe-area-inset-top,0px); }
nav.wrap{ display:flex; align-items:center; justify-content:space-between; height:70px; }
.navlinks{ display:flex; gap:28px; font-size:15px; font-weight:500; }
.navlinks a{ text-decoration:none; opacity:0.75; }
.navlinks a:hover{ opacity:1; }
.navcta{ display:inline-flex; align-items:center; padding:10px 18px; background:var(--fg); color:var(--bg); border-radius:2px; font-weight:600; font-size:14px; text-decoration:none; }
@media (max-width:720px){ .navlinks{ display:none; } }

/* Hero con logo grande centrado + parallax */
.hero{ position:relative; overflow:hidden; padding:88px 0 76px; text-align:center; }
.hero-bg{ position:absolute; inset:-15% -10% -15% -10%; z-index:0; pointer-events:none; will-change:transform; }
.hero-bg::before{ content:""; position:absolute; top:6%; right:6%; width:260px; height:84px; background:var(--accent); transform:rotate(-30deg); opacity:0.95; }
.hero-bg::after{ content:""; position:absolute; bottom:4%; left:4%; width:16px; height:16px; border-radius:50%; background:var(--card); border:1px solid var(--line); }
.hero-inner{ position:relative; z-index:1; display:flex; flex-direction:column; align-items:center; }
.logo-hero{ margin-bottom:32px; will-change:transform; }
.hero h1{ font-size:clamp(30px,5vw,50px); line-height:1.08; max-width:17ch; }
.hero p.lede{ margin-top:20px; max-width:46ch; font-size:18px; color:var(--muted); }
.hero-ctas{ display:flex; gap:14px; margin-top:32px; flex-wrap:wrap; justify-content:center; }
.btn{ display:inline-flex; align-items:center; padding:14px 24px; border-radius:2px; font-weight:600; font-size:15px; text-decoration:none; border:1px solid var(--fg); }
.btn-primary{ background:var(--fg); color:var(--bg); }
.btn-ghost{ background:transparent; color:var(--fg); }

/* Section generic */
section{ padding:64px 0; border-top:1px solid var(--line); }
.section-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:40px; flex-wrap:wrap; }
.section-head h2{ font-size:clamp(26px,4vw,36px); max-width:20ch; }
.section-head p{ color:var(--muted); max-width:38ch; font-size:15px; }

/* Packages */
.packages{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media (max-width:860px){ .packages{ grid-template-columns:1fr; } }
.pkg{ background:var(--card); border:1px solid var(--line); border-radius:4px; padding:28px 24px; display:flex; flex-direction:column; }
.pkg.featured{ border-color:var(--fg); }
.pkg-tag{ font-size:12px; font-weight:600; color:var(--accent); margin-bottom:10px; }
.pkg h3{ font-size:21px; }
.pkg .price{ font-family:'Space Grotesk',sans-serif; font-weight:700; font-size:30px; margin-top:10px; }
.pkg .price span{ font-family:'Inter'; font-weight:500; font-size:13px; color:var(--muted); }
.pkg ul{ list-style:none; margin:20px 0 0; padding:0; display:flex; flex-direction:column; gap:10px; font-size:14.5px; flex:1; }
.pkg li{ padding-left:18px; position:relative; }
.pkg li::before{ content:""; position:absolute; left:0; top:7px; width:8px; height:3px; background:var(--accent); }
.pkg .btn{ margin-top:24px; justify-content:center; }
.custom-note{ margin-top:24px; padding:20px 24px; background:var(--card); border:1px dashed var(--line); border-radius:4px; font-size:14.5px; color:var(--muted); }
.custom-note strong{ color:var(--fg); }

/* Portfolio */
.portfolio-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
@media (max-width:860px){ .portfolio-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:600px){ .portfolio-grid{ grid-template-columns:1fr; } }
.demo-card{ border:1px solid var(--line); border-radius:4px; overflow:hidden; text-decoration:none; color:inherit; background:var(--card); }
.demo-thumb{ aspect-ratio:4/3; display:flex; align-items:center; justify-content:center; font-family:'Space Grotesk'; font-weight:700; font-size:15px; color:var(--bg); text-align:center; padding:0 10px; }
.demo-body{ padding:16px 18px 20px; }
.demo-body .cat{ font-size:12px; color:var(--muted); margin-bottom:4px; }
.demo-body h3{ font-size:17px; }
.demo-empty{ border:1px dashed var(--line); border-radius:4px; padding:40px 24px; text-align:center; color:var(--muted); font-size:14.5px; }

/* Contact */
.contact-grid{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:48px; }
@media (max-width:860px){ .contact-grid{ grid-template-columns:1fr; } }
form{ display:flex; flex-direction:column; gap:14px; }
label{ font-size:13px; font-weight:600; margin-bottom:6px; display:block; }
input,textarea{ width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:2px; background:var(--bg); color:var(--fg); font-family:'Inter'; font-size:15px; }
textarea{ min-height:110px; resize:vertical; }
form .btn{ align-self:flex-start; margin-top:6px; border:none; cursor:pointer; }
.contact-side{ font-size:15px; color:var(--muted); }
.contact-side a{ color:var(--fg); font-weight:600; text-decoration:underline; }
.contact-side .item{ margin-bottom:18px; }
#form-status{ font-size:14px; margin-top:4px; min-height:18px; }

footer{ border-top:1px solid var(--line); padding:48px 0 40px; }
.footer-top{ display:flex; justify-content:space-between; align-items:center; gap:24px; flex-wrap:wrap; margin-bottom:28px; }
.footer-links{ display:flex; gap:20px; font-size:14px; }
.footer-links a{ text-decoration:none; opacity:0.75; }
details{ border-top:1px solid var(--line); padding:14px 0; font-size:14px; color:var(--muted); }
details summary{ cursor:pointer; color:var(--fg); font-weight:600; font-size:14.5px; }
details p{ margin-top:10px; }
.copyright{ margin-top:24px; font-size:13px; color:var(--muted); }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  .hero-bg,.logo-hero{ transform:none !important; }
}
