/* Estilos del sitio. Los colores, la tipografía y el brillo del hero se
   controlan desde las variables de :root — cambiar una acá lo cambia en
   todas las páginas. */

:root {
  /* Colores */
  --accent:              #c9a96e;
  --accent-dark:         #a07840;
  --accent-soft:         #c9a96e50;
  --accent-wash:         #c9a96e15;
  --hero-bg:             #0a0805;
  --hero-text:           #f5f0e8;
  --hero-text-faint:     #f5f0e835;
  --hero-gradient:       linear-gradient(135deg, rgba(201,169,110,0.12) 0%, transparent 55%), linear-gradient(to bottom, rgba(0,0,0,0) 60%, #0a0805 100%);
  --hero-overlay:        rgba(10,8,5,0.55);
  --nav-bg:              #0a0805;
  --nav-border:          rgba(201,169,110,0.15);
  --nav-text:            #f5f0e8;
  --body-bg:             #faf8f4;
  --body-text:           #1a1510;
  --body-text-muted:     #6b5e4e;
  --section-alt-bg:      #f2ede4;
  --card-bg:             #ffffff;
  --card-border:         #e8e0d4;
  --card-hover-border:   #c9a96e;
  --cta-bg:              #0a0805;
  --cta-text:            #f5f0e8;
  --cta-btn-bg:          #c9a96e;
  --cta-btn-text:        #0a0805;
  --cta-btn-border:      0 solid transparent;
  --badge-bg:            rgba(201,169,110,0.15);
  --badge-text:          #c9a96e;
  --badge-border:        #c9a96e30;
  --servicio-num:        rgba(201,169,110,0.35);
  --blob-1:              rgba(201,169,110,0.18);
  --blob-2:              rgba(139,100,50,0.14);

  /* Tipografía y forma */
  --font-heading:        Georgia, "Times New Roman", serif;
  --font-body:           "Helvetica Neue", Arial, sans-serif;
  --font-mono:           ui-monospace, SFMono-Regular, Menlo, "Courier New", monospace;
  --radius:              4px;
  --container:           1152px;

  /* Hero: subir o bajar el brillo de la foto de fondo se hace acá */
  --hero-image-opacity:  0.35;
  --hero-align:          left;
}

/* ─── Base ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--body-bg);
  color: var(--body-text);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 400; margin: 0; }
p, figure, ul { margin: 0; }
ul { padding: 0; list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 768px; }
.center { text-align: center; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--body-text-muted);
}
.section { padding: 80px 0; }
.section--alt { background: var(--section-alt-bg); }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head .eyebrow { margin-bottom: 12px; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); color: var(--body-text); }
.grid { display: grid; gap: 24px; }
.btn {
  display: inline-block;
  padding: 16px 32px;
  font-size: 1rem;
  text-align: center;
  border-radius: var(--radius);
  transition: opacity 0.2s ease, transform 0.1s ease;
}
.btn:hover { opacity: 0.9; }
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--accent); color: #fff; font-weight: 600; }
.btn--ghost { border: 1px solid var(--hero-text-faint); color: var(--hero-text); }
.btn--cta {
  background: var(--cta-btn-bg);
  color: var(--cta-btn-text);
  border: var(--cta-btn-border);
  font-weight: 600;
  padding: 16px 40px;
}

@media (min-width: 640px) {
  .grid--2, .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .section { padding: 112px 0; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ─── Banner de PYMEsign ───────────────────────────────────────────────────── */
.pms-banner {
  background: var(--accent);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 0.875rem;
}
.pms-banner .muted { opacity: 0.8; }
.pms-banner a { text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }

/* ─── Navbar ───────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
}
.nav-inner {
  max-width: var(--container); margin: 0 auto;
  padding: 16px 24px;
  display: flex; align-items: center; gap: 24px;
}
.nav-brand {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: 1.25rem; font-weight: 700;
  color: var(--nav-text);
}
.nav-brand img { height: 32px; width: auto; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; overflow-x: auto; }
.nav-links a {
  flex-shrink: 0;
  font-size: 0.875rem; padding: 6px 12px;
  color: var(--nav-text); opacity: 0.65;
  border-bottom: 2px solid transparent;
  transition: opacity 0.2s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-links a.is-active {
  color: var(--accent); opacity: 1; font-weight: 600;
  border-bottom-color: var(--accent);
}
.nav-cta {
  margin-left: auto; flex-shrink: 0;
  font-size: 0.875rem; font-weight: 500;
  padding: 10px 20px;
  background: var(--accent); color: #fff;
  border-radius: var(--radius);
  transition: opacity 0.2s ease;
}
.nav-cta:hover { opacity: 0.85; }

/* ─── Hero ─────────────────────────────────────────────────────────────────── */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); min-height: 520px; }
.hero-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: var(--hero-image-opacity);
}
.hero-overlay, .hero-gradient, .hero-dotgrid { position: absolute; inset: 0; pointer-events: none; }
.hero-overlay  { background: var(--hero-overlay); }
.hero-gradient { background: var(--hero-gradient); }
.hero-dotgrid {
  background-image: radial-gradient(circle, var(--accent) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.08;
}
.hero-blob { position: absolute; border-radius: 50%; filter: blur(64px); pointer-events: none; }
.hero-blob--1 { top: 0; right: 0; width: 384px; height: 384px; background: var(--blob-1); }
.hero-blob--2 { bottom: 0; left: 0; width: 320px; height: 320px; background: var(--blob-2); }
.hero-inner {
  position: relative;
  max-width: 1024px; margin: 0 auto;
  padding: 112px 24px;
  text-align: var(--hero-align);
}
.badge {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.75rem;
  padding: 4px 12px; margin-bottom: 24px;
  background: var(--badge-bg); color: var(--badge-text);
  border: 1px solid var(--badge-border);
  border-radius: var(--radius);
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05; letter-spacing: -0.02em;
  color: var(--hero-text);
  margin: 0 0 24px; max-width: 768px;
}
.hero-tagline {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--hero-text); opacity: 0.78;
  margin: 0 0 40px; max-width: 640px; line-height: 1.6;
}
.hero-actions { display: flex; flex-direction: column; gap: 16px; }
.hero--center h1, .hero--center .hero-tagline { margin-left: auto; margin-right: auto; }
.hero--center .hero-actions { justify-content: center; }
.hero-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.hero-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-soft); }
.hero-dots span.is-active { background: var(--accent); }
@media (min-width: 640px) { .hero-actions { flex-direction: row; } }
@media (min-width: 768px) { .hero-inner { padding: 176px 24px; } }

/* ─── Quiénes somos ────────────────────────────────────────────────────────── */
.about { background: var(--body-bg); padding: 80px 0; }
.about-inner { display: grid; gap: 64px; align-items: center; }
.about-inner--solo { max-width: 768px; margin: 0 auto; text-align: center; }
.about .eyebrow { margin-bottom: 24px; }
.about-text {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.65; color: var(--body-text);
}
.about-brand { font-size: 0.875rem; font-weight: 600; color: var(--accent); margin-top: 24px; }
.about-figure { position: relative; overflow: hidden; border-radius: var(--radius); }
.about-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.about-figure::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 4px; background: var(--accent);
}
@media (min-width: 768px) {
  .about { padding: 112px 0; }
  .about-inner--split { grid-template-columns: 1fr 1fr; }
}

/* ─── CTA final ────────────────────────────────────────────────────────────── */
.cta { background: var(--cta-bg); padding: 96px 0; }
.cta .eyebrow { color: var(--accent); opacity: 0.75; margin-bottom: 24px; }
.cta h2 { font-size: clamp(2rem, 4vw, 3rem); color: var(--cta-text); margin-bottom: 24px; line-height: 1.15; }
.cta-sub { font-size: 1.125rem; color: var(--cta-text); opacity: 0.65; margin-bottom: 40px; }
@media (min-width: 768px) { .cta { padding: 128px 0; } }

/* ─── Footer ───────────────────────────────────────────────────────────────── */
.footer {
  background: var(--hero-bg);
  border-top: 1px solid var(--hero-text-faint);
  padding: 32px 0;
}
.footer-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: flex; flex-direction: column; align-items: center;
  justify-content: space-between; gap: 16px;
}
.footer-copy { font-family: var(--font-heading); font-size: 0.875rem; color: var(--hero-text); opacity: 0.45; }
.footer-link { font-size: 0.75rem; color: var(--accent); }
@media (min-width: 768px) { .footer-inner { flex-direction: row; } }


/* ─── Servicios: tarjetas que giran ────────────────────────────────────────── */
.card { perspective: 1000px; height: 220px; }
.card-flip {
  position: relative; width: 100%; height: 100%;
  transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}
.card:hover .card-flip { transform: rotateY(180deg); }
.card-front, .card-back {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  padding: 32px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}
.card-back {
  transform: rotateY(180deg);
  background: var(--hero-bg);
  border-color: var(--accent);
  display: flex; align-items: center;
}
.card-back p { color: var(--hero-text); opacity: 0.85; font-size: 0.9rem; line-height: 1.6; }
.card-back .card-label { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 12px; }
.card-num { font-family: var(--font-mono); font-size: 2.25rem; font-weight: 700; color: var(--servicio-num); margin-bottom: 16px; }
.card h3 { font-size: 1.25rem; color: var(--body-text); margin-bottom: 12px; }
.card-hint { font-size: 0.75rem; color: var(--body-text-muted); }


