/* ---------- Base ---------- */
:root {
  --navy: #14213d;
  --navy-soft: #1f2f54;
  --blue: #3a86ff;
  --blue-soft: #ecf3ff;
  --white: #ffffff;
  --bg: #f6f8fc;
  --ink: #14213d;
  --muted: #5c6b8a;
  --green: #22c55e;
  --green-dark: #16a34a;
  --border: #e2e8f5;
  --radius: 18px;
  --font-display: 'Sora', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --font-accent: 'Fraunces', serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.15rem; }

p { line-height: 1.6; margin: 0 0 1em; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.wrap-narrow { max-width: 820px; }

em {
  font-style: italic;
  font-family: var(--font-accent);
  color: var(--blue);
  font-weight: 500;
}

/* subtle grain/texture overlay */
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: .025;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-dark {
  background: var(--navy);
  color: var(--white);
}
.btn-dark:hover { background: var(--navy-soft); box-shadow: 0 10px 24px -8px rgba(20,33,61,.5); }

.btn-sm { padding: 10px 20px; font-size: .85rem; }

.btn-wa {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(34,197,94,.5);
}
.btn-wa:hover { background: var(--green-dark); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn-outline:hover { border-color: var(--navy); }

.btn-lg { padding: 18px 34px; font-size: 1.05rem; }

.icon-wa { width: 18px; height: 18px; fill: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 248, 252, .85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.brand-mark { width: 34px; height: 34px; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy);
}
.brand-name em { color: var(--blue); font-style: normal; font-family: var(--font-display); font-weight: 700; }

.main-nav {
  display: flex;
  gap: 32px;
}
.main-nav a {
  font-weight: 600;
  font-size: .92rem;
  color: var(--navy);
  position: relative;
  padding: 4px 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s ease;
}
.main-nav a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 88px 0 100px;
  background:
    radial-gradient(circle at 82% 20%, rgba(58,134,255,.10), transparent 55%),
    var(--bg);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(20,33,61,.10) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 60% 60% at 75% 30%, black, transparent);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 22px;
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft);
  flex-shrink: 0;
}
.dot-green { background: var(--green); box-shadow: 0 0 0 4px #dcfce7; }
.dot-blue { background: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.dot-navy { background: var(--navy); box-shadow: 0 0 0 4px #e2e8f5; }

.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.1rem);
  color: var(--navy);
  margin-bottom: .4em;
}

.hero-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 46ch;
  margin-bottom: 2em;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.hero-art-glow {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(58,134,255,.18), transparent 70%);
  filter: blur(6px);
}

.hero-logo {
  width: min(340px, 80%);
  position: relative;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 30px 50px rgba(20,33,61,.18));
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(-2deg); }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.eyebrow-section {
  color: var(--blue);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  margin-bottom: 14px;
}

.section h2 { color: var(--navy); max-width: 18ch; }

.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 60ch;
  margin-top: 18px;
  margin-bottom: 52px;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.price-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease;
}
.price-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -18px rgba(20,33,61,.18); }

.price-card-featured {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.price-badge {
  position: absolute;
  top: -14px;
  left: 28px;
  background: var(--blue);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 6px 14px;
  border-radius: 999px;
}

.price-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 18px;
}
.price-card-featured .price-tag { color: #b9c6e6; }

.price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.price-card-featured .price-amount { color: var(--white); }
.price-amount span:not(.price-from) { font-size: 1.3rem; font-weight: 600; }
.price-from {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--muted);
  margin-right: 4px;
}
.price-card-featured .price-from { color: #b9c6e6; }

.price-desc {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 24px;
  min-height: 66px;
}
.price-card-featured .price-desc { color: #cdd7ef; }

.price-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-list li {
  position: relative;
  padding-left: 26px;
  font-size: .92rem;
  font-weight: 600;
}
.price-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}
.price-card-featured .price-list li::before { color: #7fb1ff; }

/* ---------- Trabajos ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: transform .2s ease;
}
.work-card:hover { transform: translateY(-4px); }

.work-thumb {
  height: 180px;
  border-radius: 12px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background-size: cover;
  background-position: center;
}
.work-thumb span {
  color: var(--white);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  background: rgba(20,33,61,.55);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.work-thumb-1 { background: linear-gradient(135deg, #14213d, #3a86ff); }
.work-thumb-2 { background: linear-gradient(135deg, #3a86ff, #14213d 130%); }
.work-thumb-3 { background: linear-gradient(135deg, #1f2f54, #6ea8ff); }

.work-thumb-img {
  display: block;
  position: relative;
  padding: 0;
  overflow: hidden;
  align-items: stretch;
}
.work-thumb-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .4s ease;
}
.work-card-real:hover .work-thumb-img img { transform: scale(1.05); }
.work-thumb-img span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(20,33,61,.6);
}

.work-card h3 { color: var(--navy); margin-bottom: .3em; }
.work-card h3 a { color: inherit; }
.work-card h3 a:hover { color: var(--blue); }
.work-card p { color: var(--muted); font-size: .92rem; margin: 0 0 .8em; }

.work-link {
  display: inline-block;
  font-weight: 700;
  font-size: .88rem;
  color: var(--blue);
}
.work-link:hover { text-decoration: underline; }

/* ---------- Página de caso (trabajos individuales) ---------- */
.case-hero {
  padding: 56px 0 64px;
  background:
    radial-gradient(circle at 82% 10%, rgba(58,134,255,.10), transparent 55%),
    var(--bg);
}

.case-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 28px;
}
.case-back:hover { color: var(--blue); }

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.case-tag {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--navy);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 999px;
}

.case-hero h1 {
  color: var(--navy);
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  max-width: 18ch;
}

.case-lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 60ch;
  margin: 18px 0 28px;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}
.case-meta div p:first-child {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 4px;
}
.case-meta div p:last-child {
  font-weight: 700;
  color: var(--navy);
  margin: 0;
}

.case-shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 60px -30px rgba(20,33,61,.35);
}
.case-shot img { width: 100%; display: block; }

.case-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: start;
}

.case-block { margin-bottom: 44px; }
.case-block:last-child { margin-bottom: 0; }
.case-block h2 {
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: .5em;
}
.case-block p { color: var(--muted); }

.case-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.case-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink);
  font-weight: 600;
  font-size: .96rem;
}
.case-list li span {
  display: block;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}
.case-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-weight: 700;
}

.case-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.case-gallery figure {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
}
.case-gallery img { width: 100%; display: block; }
.case-gallery figcaption {
  padding: 12px 16px;
  font-size: .82rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.case-gallery .span-2 { grid-column: span 2; }

.case-sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 100px;
}
.case-sidebar h3 {
  color: var(--navy);
  font-size: 1rem;
  margin-bottom: 16px;
}
.case-sidebar .price-list { margin-bottom: 24px; }
.case-sidebar .price-list:last-of-type { margin-bottom: 0; }

/* ---------- Proceso ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.step { border-top: 2px solid var(--navy); padding-top: 20px; }

.step-num {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--blue);
  margin-bottom: 8px;
}

.step h3 { color: var(--navy); margin-bottom: .4em; }
.step p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 24px 4px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--navy);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .25s ease;
}
.faq-item.is-open .faq-chevron { transform: rotate(180deg); stroke: var(--blue); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-answer p {
  color: var(--muted);
  padding: 0 4px 24px;
  margin: 0;
  max-width: 65ch;
}
.faq-item.is-open .faq-answer { max-height: 240px; }

/* ---------- CTA final ---------- */
.cta-final {
  padding: 110px 0;
  background: var(--navy);
  background-image: radial-gradient(circle at 20% 20%, rgba(58,134,255,.25), transparent 55%);
  color: var(--white);
  text-align: center;
}
.cta-final-inner { display: flex; flex-direction: column; align-items: center; }
.cta-final h2 { color: var(--white); max-width: none; }
.cta-final p { color: #b9c6e6; font-size: 1.1rem; max-width: 46ch; margin-bottom: 2em; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 44px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.brand-footer .brand-mark { width: 28px; height: 28px; }
.brand-footer .brand-name { font-size: 1rem; }

.footer-meta { text-align: center; color: var(--muted); font-size: .88rem; }
.footer-meta p { margin: 0 0 4px; }
.footer-meta a:hover { color: var(--blue); }

.footer-copy { color: var(--muted); font-size: .82rem; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; height: 220px; }
  .hero-logo { width: 180px; }
  .pricing-grid, .work-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .case-sidebar { position: static; }
  .case-gallery { grid-template-columns: 1fr; }
  .case-gallery .span-2 { grid-column: span 1; }
}

@media (max-width: 760px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 32px;
    border-bottom: 1px solid var(--border);
    gap: 18px;
  }

  .header-inner .btn-sm { display: none; }
  .steps-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 20px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
