/* ═══════════════════════════════════════════════
   Libertad-Digital — style.css
   CSS global compartido por todas las páginas
═══════════════════════════════════════════════ */

/* ─── RESET ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── VARIABLES ─── */
:root {
  --gold:     #C9A96E;
  --gold-lt:  #E8D5B0;
  --gold-dk:  #8A6B3C;
  --ink:      #0E0E0E;
  --ink2:     #1C1C1C;
  --smoke:    #F5F3EF;
  --mist:     #EDEAE4;
  --ash:      #7A7670;
  --white:    #FDFCFB;
  --serif:    'Cormorant Garamond', Georgia, serif;
  --sans:     'DM Sans', system-ui, sans-serif;
  --ease:     cubic-bezier(.25,.46,.45,.94);
  --shadow:   0 8px 40px rgba(14,14,14,.07);
}

/* ─── BASE ─── */
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── TIPOGRAFÍA ─── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.15;
}

/* ─── NAVEGACIÓN ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 5%;
  background: rgba(253,252,251,0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(201,169,110,.15);
  transition: box-shadow .3s var(--ease);
}
nav.scrolled {
  box-shadow: 0 2px 24px rgba(14,14,14,.06);
}

.logo {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--ink);
}
.logo span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 2.4rem;
}
.nav-links a {
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ash);
  position: relative;
  transition: color .25s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .3s var(--ease);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}
.nav-links a.active::after,
.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .58rem 1.5rem;
  border: 1px solid var(--gold);
  color: var(--gold-dk);
  background: transparent;
  border-radius: 2px;
  transition: background .25s, color .25s;
  cursor: pointer;
}
.nav-cta:hover {
  background: var(--gold);
  color: var(--white);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--ink);
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* Menú móvil */
.mobile-menu {
  display: none;
  flex-direction: column;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 90;
  padding: 6rem 5% 3rem;
  transform: translateX(100%);
  transition: transform .35s var(--ease);
}
.mobile-menu.open { transform: none; }
.mobile-menu a {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--ink);
  padding: 1rem 0;
  border-bottom: 1px solid var(--mist);
  letter-spacing: .02em;
  transition: color .2s;
}
.mobile-menu a:hover { color: var(--gold-dk); }
.mobile-menu a.active { color: var(--gold-dk); }

/* ─── PAGE HERO (banner interior páginas) ─── */
.page-hero {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 8rem 5% 6rem;
  background: linear-gradient(135deg, var(--smoke) 0%, rgba(201,169,110,.05) 100%);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 45vw;
  height: 45vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.page-hero > * {
  position: relative;
  z-index: 1;
}
.page-hero-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: 1.2rem;
  font-weight: 500;
}
.page-hero-tag::before {
  content: '';
  display: block;
  width: 20px;
  height: 1px;
  background: var(--gold);
  opacity: 0.8;
}
.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0 auto 1.4rem;
  color: var(--ink);
  font-weight: 300;
  max-width: 90%;
}
.page-hero h1 em {
  font-style: italic;
  color: var(--gold-dk);
  font-weight: 600;
}
.page-hero p {
  font-size: clamp(0.95rem, 1.8vw, 1.1rem);
  color: var(--ash);
  max-width: 55ch;
  margin: 0 auto;
  line-height: 1.8;
  font-weight: 400;
}

/* ─── SECCIÓN BASE ─── */
.section {
  padding: 5.5rem 5%;
}
.section-dark {
  background: var(--ink);
  color: var(--white);
}
.section-smoke { background: var(--smoke); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: .9rem;
}
.section-tag::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--gold);
}
.section-dark .section-tag { color: var(--gold); }
.section-dark .section-tag::before { background: var(--gold); }

.section-title {
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  margin-bottom: 1.1rem;
}
.section-dark .section-title { color: var(--white); }

.section-sub {
  font-size: 1rem;
  color: var(--ash);
  max-width: 52ch;
  line-height: 1.8;
}
.section-dark .section-sub { color: rgba(255,255,255,.45); }

/* ─── BOTONES ─── */
.btn {
  display: inline-block;
  font-size: .83rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: .85rem 2.2rem;
  border-radius: 2px;
  cursor: pointer;
  border: none;
  transition: background .25s, color .25s, transform .2s;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover { background: var(--gold-dk); transform: translateY(-1px); }

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  color: var(--ash);
  border: 1px solid var(--mist);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-dk); }

.btn-outline-gold {
  background: transparent;
  color: var(--gold-dk);
  border: 1px solid var(--gold);
}
.btn-outline-gold:hover { background: var(--gold); color: var(--white); }

/* ─── STATS BAR ─── */
.stats-bar {
  background: var(--ink);
  padding: 3rem 5%;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 2rem;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--gold);
  display: block;
}
.stat-lbl {
  font-size: .73rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-top: .3rem;
}

/* ─── FOOTER ─── */
footer {
  background: #080808;
  border-top: 1px solid rgba(255,255,255,.05);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  padding: 4rem 5% 3rem;
}
.footer-brand .logo {
  color: rgba(255,255,255,.55);
  font-size: 1.35rem;
  display: inline-block;
  margin-bottom: 1rem;
}
.footer-brand p {
  font-size: .85rem;
  color: rgba(255,255,255,.28);
  line-height: 1.75;
  max-width: 28ch;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 1.2rem;
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}

.footer-col ul li:has(i) {
  display: inline-block;
}

.footer-col a {
  font-size: .85rem;
  color: rgba(255,255,255,.3);
  transition: color .2s;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}

.footer-col a i {
  color: var(--gold);
  font-size: .95rem;
  transition: all .3s;
}

.footer-col a:hover { 
  color: var(--gold); 
}

.footer-col a:hover i {
  transform: scale(1.15);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 1.4rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem;
}
.footer-bottom p {
  font-size: .72rem;
  color: rgba(255,255,255,.18);
  letter-spacing: .06em;
}

/* ─── ANIMACIONES ─── */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .22s; }
.delay-3 { transition-delay: .34s; }
.delay-4 { transition-delay: .46s; }
.delay-5 { transition-delay: .58s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  
  .page-hero {
    min-height: 50vh;
    padding: 7rem 5% 5rem;
  }
  
  .page-hero h1 {
    margin-bottom: 1rem;
  }
}

@media (max-width: 640px) {
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  
  .page-hero {
    min-height: 45vh;
    padding: 6rem 4% 4rem;
  }
  
  .page-hero-tag {
    font-size: .7rem;
    margin-bottom: 1rem;
  }
  
  .page-hero h1 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }
  
  .page-hero p {
    font-size: 0.9rem;
    line-height: 1.6;
  }
}

/* ═══════════════════════════════════════════════
   PÁGINA PRINCIPAL — ESTILOS ESPECÍFICOS
═══════════════════════════════════════════════ */

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 9rem 5% 6rem;
  background: linear-gradient(135deg, var(--white) 0%, var(--smoke) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -15%;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 50ch;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: 1.4rem;
}

.hero-tag::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
}

.hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  letter-spacing: -.01em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.hero-title em {
  font-style: italic;
  color: var(--gold-dk);
  font-weight: 600;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--ash);
  line-height: 1.8;
  margin-bottom: 2.2rem;
  max-width: 45ch;
}

.hero-btns {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* ─── HERO VISUAL ─── */
.hero-visual {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.hero-card {
  background: var(--white);
  border: 1px solid rgba(201,169,110,.15);
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(14,14,14,.04);
  transition: all .4s var(--ease);
}

.hero-card:hover {
  border-color: var(--gold);
  box-shadow: 0 16px 48px rgba(201,169,110,.12);
  transform: translateY(-4px);
}

.card-label {
  font-size: .65rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: .8rem;
  font-weight: 500;
}

.card-value {
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: .3rem;
  letter-spacing: -.02em;
}

.card-value-sm {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ash);
}

.card-desc {
  font-size: .85rem;
  color: var(--ash);
  margin-bottom: 1.4rem;
  line-height: 1.6;
}

/* Card Principal - código simulado */
.card-main .code-block {
  background: #f9f7f2;
  border-left: 3px solid var(--gold);
  padding: 1.2rem;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: .78rem;
  line-height: 1.6;
  color: var(--ink);
  border-radius: 4px;
}

.code-block .k {
  color: var(--gold-dk);
  font-weight: 600;
}

.code-block .s {
  color: #6fa86f;
}

/* Card Accent */
.card-accent {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 100%);
  border: none;
  color: var(--white);
}

.card-accent .card-label {
  color: rgba(255,255,255,.6);
}

.card-accent .card-value {
  color: var(--white);
}

.card-accent .card-desc {
  color: rgba(255,255,255,.7);
}

.card-accent .card-value-sm {
  color: rgba(255,255,255,.5);
}

/* Card Stat */
.card-stat {
  background: var(--ink2);
  color: var(--white);
  border: 1px solid rgba(201,169,110,.2);
}

.card-stat .card-label {
  color: var(--gold);
}

.card-stat .card-value {
  color: var(--white);
}

.card-stat .card-desc {
  color: rgba(255,255,255,.5);
}

/* ─── SERVICIOS PREVIEW ─── */
.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  gap: 2rem;
}

.preview-header > div {
  flex: 1;
}

.services-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.2rem;
}

.srv-card {
  padding: 2.4rem 2rem;
  border: 1px solid var(--mist);
  border-radius: 6px;
  background: var(--white);
  transition: all .35s var(--ease);
  position: relative;
}

.srv-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  border-radius: 6px 6px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}

.srv-card:hover {
  border-color: var(--gold);
  box-shadow: 0 12px 32px rgba(201,169,110,.1);
  transform: translateY(-3px);
}

.srv-card:hover::before {
  transform: scaleX(1);
}

.srv-num {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--gold-lt);
  display: block;
  margin-bottom: .6rem;
  line-height: 1;
}

.srv-name {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: .8rem;
  letter-spacing: -.01em;
}

.srv-desc {
  font-size: .9rem;
  color: var(--ash);
  line-height: 1.7;
}

/* ─── FEATURED PROJECT ─── */
.featured-header {
  margin-bottom: 3rem;
}

.featured-project {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.featured-visual {
  position: relative;
}

.featured-mockup {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(14,14,14,.08);
}

.mockup-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 1rem;
  background: var(--smoke);
  border-bottom: 1px solid var(--mist);
}

.mockup-bar span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-lt);
}

.mockup-bar span:nth-child(1) { background: #ff6b6b; }
.mockup-bar span:nth-child(2) { background: #ffb347; }
.mockup-bar span:nth-child(3) { background: #51cf66; }

.mockup-content {
  padding: 2rem;
  min-height: 280px;
}

.mockup-hero-sim {
  width: 100%;
  height: 80px;
  background: linear-gradient(90deg, var(--mist) 0%, var(--smoke) 100%);
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

.mockup-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.mockup-block {
  height: 50px;
  background: var(--mist);
  border-radius: 4px;
}

.mockup-block.tall {
  grid-row: span 2;
  height: 110px;
}

.featured-info {
  padding-right: 2rem;
}

.proj-cat {
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: 1rem;
  font-weight: 500;
}

.proj-title {
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--ink);
  margin-bottom: 1.2rem;
  letter-spacing: -.01em;
  line-height: 1.2;
}

.proj-desc {
  font-size: 1rem;
  color: var(--ash);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.proj-meta {
  display: flex;
  gap: 2.4rem;
  margin-bottom: 2.4rem;
  flex-wrap: wrap;
}

.proj-meta-item {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.meta-lbl {
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ash);
  font-weight: 500;
}

.meta-val {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--ink);
}

/* ─── CTA SECTION ─── */
.cta-section {
  min-height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cta-inner {
  max-width: 52ch;
}

.cta-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin-bottom: 1.4rem;
  letter-spacing: -.01em;
  line-height: 1.2;
}

.cta-title em {
  font-style: italic;
  color: var(--gold);
}

.cta-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 2.4rem;
  line-height: 1.75;
}

/* ─── INDEX RESPONSIVE ─── */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 7rem 5% 4rem;
    gap: 3rem;
  }

  .hero-visual {
    grid-template-columns: 1fr;
  }

  .hero::before {
    width: 80vw;
    height: 80vw;
    top: -30%;
    right: -30%;
  }

  .featured-project {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .featured-info {
    padding-right: 0;
  }

  .preview-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .preview-header > div {
    width: 100%;
  }

  .preview-header .btn {
    align-self: flex-start;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 5rem 5% 3rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-btns {
    flex-direction: column;
  }

  .hero-btns .btn {
    width: 100%;
    text-align: center;
  }

  .hero-visual {
    gap: 1rem;
  }

  .services-preview-grid {
    grid-template-columns: 1fr;
  }

  .proj-meta {
    flex-direction: column;
    gap: 1.2rem;
  }

  .mockup-row {
    grid-template-columns: 1fr;
  }

  .mockup-block.tall {
    grid-row: auto;
  }

  .cta-title {
    font-size: 1.8rem;
  }
}

/* ═══════════════════════════════════════════════
   PÁGINA DE SERVICIOS — ESTILOS ESPECÍFICOS
═══════════════════════════════════════════════ */

/* ─── SERVICIOS FULL GRID ─── */
.services-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.svc-card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 8px;
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
  transition: all .4s var(--ease);
  position: relative;
  overflow: hidden;
}

.svc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-lt) 100%);
  opacity: 0;
  transition: opacity .4s var(--ease);
}

.svc-card:hover {
  border-color: var(--gold);
  box-shadow: 0 16px 48px rgba(201,169,110,.12);
  transform: translateY(-4px);
}

.svc-card:hover::before {
  opacity: 1;
}

.svc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.svc-num {
  font-family: var(--serif);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--gold-lt);
  line-height: 1;
}

.svc-badge {
  font-size: .65rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-lt) 100%);
  color: var(--white);
  padding: .4rem .8rem;
  border-radius: 20px;
  font-weight: 600;
}

.svc-name {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: .8rem;
  letter-spacing: -.01em;
}

.svc-desc {
  font-size: .9rem;
  color: var(--ash);
  line-height: 1.7;
  margin-bottom: 1.6rem;
  flex-grow: 1;
}

.svc-features {
  list-style: none;
  margin-bottom: 2rem;
}

.svc-features li {
  font-size: .85rem;
  color: var(--ash);
  padding-left: 1.4rem;
  margin-bottom: .6rem;
  position: relative;
  line-height: 1.6;
}

.svc-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
}

.svc-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--mist);
  flex-wrap: wrap;
}

.svc-price {
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.price-from {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ash);
  font-weight: 500;
}

.price-val {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.01em;
}

.price-period {
  font-size: .8rem;
  font-weight: 400;
}

/* ─── PROCESO ─── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.step {
  text-align: center;
  padding: 2rem 1.5rem;
}

.step-dot {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 300;
  letter-spacing: .05em;
}

.step-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: .8rem;
  font-weight: 400;
}

.step-desc {
  font-size: .9rem;
  color: var(--ash);
  line-height: 1.7;
}

/* ─── FAQ ─── */
.faq-list {
  max-width: 700px;
  margin: 3rem auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--mist);
  padding: 1.6rem 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--mist);
}

.faq-question {
  width: 100%;
  text-align: left;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color .3s;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question:hover {
  color: var(--gold-dk);
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--gold);
  flex-shrink: 0;
  transition: transform .3s var(--ease);
}

.faq-item.active .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding-top: 1rem;
  margin-top: 1rem;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-answer p {
  font-size: .9rem;
  color: var(--ash);
  line-height: 1.8;
}

/* ═══════════════════════════════════════════════
   PÁGINA DE CONTACTO — ESTILOS ESPECÍFICOS
═══════════════════════════════════════════════ */

.contact-section {
  background: linear-gradient(135deg, var(--white) 0%, rgba(201,169,110,.03) 100%);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.info-block .section-tag {
  display: block;
  margin-bottom: 1.6rem;
}

.info-items {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.info-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.info-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  color: var(--gold);
  transition: color .3s, transform .3s;
}

.info-item:hover .info-icon {
  color: var(--gold-dk);
  transform: scale(1.1);
}

.info-lbl {
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ash);
  margin-bottom: .4rem;
  font-weight: 600;
}

.info-val {
  font-size: .95rem;
  color: var(--ink);
  font-weight: 500;
  transition: color .3s;
}

.info-item a:hover {
  color: var(--gold-dk);
}

.info-promise {
  background: var(--smoke);
  border-left: 3px solid var(--gold);
  padding: 1.8rem;
  border-radius: 4px;
}

.promise-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 1rem;
  font-weight: 400;
}

.promise-list {
  list-style: none;
}

.promise-list li {
  font-size: .9rem;
  color: var(--ash);
  padding-left: 1.4rem;
  margin-bottom: .6rem;
  position: relative;
  line-height: 1.6;
}

.promise-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
}

.info-social {
  padding-top: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  font-size: 1rem;
  transition: all .3s;
  border: 2px solid transparent;
}

.social-links a i {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.social-links a:hover {
  background: var(--gold);
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(201,169,110,.25);
}

/* ─── FORM ─── */
.form-wrap {
  background: var(--white);
  border: 1px solid var(--mist);
  padding: 2.4rem;
  border-radius: 8px;
  position: relative;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  position: relative;
}

.form-label {
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
}

.form-input,
.form-select,
.form-textarea {
  padding: .8rem 1rem;
  border: 1px solid var(--mist);
  border-radius: 4px;
  font-family: var(--sans);
  font-size: .9rem;
  color: var(--ink);
  transition: border-color .3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,110,.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-input.error,
.form-select.error,
.form-textarea.error {
  border-color: #e74c3c;
  box-shadow: 0 0 0 3px rgba(231,76,60,.1);
}

.char-count {
  display: block;
  font-size: .75rem;
  color: var(--ash);
  margin-top: .3rem;
  text-align: right;
  transition: color .2s;
}

.form-error {
  font-size: .75rem;
  color: #e74c3c;
  opacity: 0;
  display: none;
  margin-top: .2rem;
}

.form-check {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .85rem;
  margin: 1rem 0;
}

.form-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--gold);
}

.form-submit {
  align-self: flex-start;
  margin-top: 1rem;
}

.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
}

.success-icon {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 1rem;
}

.form-success h3 {
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: .8rem;
  font-weight: 400;
}

.form-success p {
  color: var(--ash);
  margin-bottom: 1.6rem;
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}

/* ─── UBICACIÓN ─── */
.location-section {
  padding: 6rem 5%;
}

.location-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 100%;
}

.location-info {
  max-width: 50ch;
}

.location-map {
  background: var(--ink);
  border-radius: 8px;
  padding: 0;
  text-align: center;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.map-visual {
  position: relative;
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .map-visual {
    height: 300px;
  }
}

/* ═══════════════════════════════════════════════
   PÁGINA DE PROYECTOS — ESTILOS ESPECÍFICOS
═══════════════════════════════════════════════ */

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .6rem 1.4rem;
  border: 1px solid var(--mist);
  background: transparent;
  color: var(--ash);
  border-radius: 4px;
  cursor: pointer;
  transition: all .3s;
  font-weight: 500;
}

.filter-btn:hover {
  border-color: var(--gold);
  color: var(--gold-dk);
}

.filter-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.4rem;
}

.project-card {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 8px;
  overflow: hidden;
  transition: all .4s var(--ease);
  cursor: pointer;
}

.project-card:hover {
  border-color: var(--gold);
  box-shadow: 0 16px 48px rgba(14,14,14,.08);
  transform: translateY(-4px);
}

.proj-thumbnail {
  background: linear-gradient(135deg, var(--smoke) 0%, var(--mist) 100%);
  padding: 1rem;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.proj-mockup {
  background: var(--white);
  border: 1px solid var(--mist);
  border-radius: 4px;
  width: 100%;
  overflow: hidden;
}

.pm-bar {
  display: flex;
  gap: 6px;
  padding: .8rem;
  background: var(--smoke);
  border-bottom: 1px solid var(--mist);
}

.pm-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mist);
}

.pm-bar.dark {
  background: var(--ink2);
  border-bottom-color: rgba(255,255,255,.1);
}

.pm-bar.dark span {
  background: rgba(255,255,255,.2);
}

.pm-body {
  padding: 1.2rem;
  min-height: 200px;
}

.pm-body.dark {
  background: var(--ink2);
}

.pm-nav-sim {
  height: 30px;
  background: rgba(201,169,110,.15);
  border-radius: 3px;
  margin-bottom: .8rem;
}

.pm-hero-strip {
  height: 60px;
  background: linear-gradient(90deg, var(--mist) 0%, var(--smoke) 100%);
  border-radius: 3px;
  margin-bottom: 1rem;
}

.pm-hero-strip.warm {
  background: linear-gradient(90deg, rgba(201,169,110,.2) 0%, rgba(201,169,110,.05) 100%);
}

.pm-hero-strip.dark {
  background: linear-gradient(90deg, rgba(201,169,110,.3) 0%, rgba(201,169,110,.1) 100%);
}

.pm-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}

.pm-col {
  height: 50px;
  background: var(--mist);
  border-radius: 3px;
}

.pm-products {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: .6rem;
}

.pm-prod {
  height: 60px;
  background: var(--mist);
  border-radius: 3px;
}

.pm-prod.dark {
  background: rgba(255,255,255,.1);
}

.pm-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}

.pm-gal-item {
  height: 80px;
  background: var(--mist);
  border-radius: 3px;
}

.pm-gal-item.tall {
  grid-row: span 2;
  height: 170px;
}

.pm-gal-side {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.pm-cta-sim {
  text-align: center;
  padding: 1rem 0;
}

.pm-btn-sim {
  width: 120px;
  height: 35px;
  background: var(--gold);
  border-radius: 3px;
  margin: 0 auto;
}

.proj-info {
  padding: 1.6rem;
}

.proj-category-tag {
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold-dk);
  font-weight: 600;
  display: inline-block;
  margin-bottom: .8rem;
}

.proj-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: .8rem;
  letter-spacing: -.01em;
}

.proj-brief {
  font-size: .85rem;
  color: var(--ash);
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.proj-tech-row {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.tech-tag {
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--smoke);
  color: var(--ash);
  padding: .4rem .8rem;
  border-radius: 3px;
  font-weight: 500;
}

.proj-result {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--mist);
}

.result-lbl {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ash);
  font-weight: 600;
}

.result-val {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--gold-dk);
  font-weight: 600;
}

.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--ash);
  font-size: 1rem;
}

/* ═══════════════════════════════════════════════
   PÁGINA NOSOTROS — ESTILOS ESPECÍFICOS
═══════════════════════════════════════════════ */

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.story-text {
  max-width: 55ch;
}

.story-p {
  font-size: 1rem;
  color: var(--ash);
  line-height: 1.8;
  margin-bottom: 1.6rem;
}

.story-visual {
  position: relative;
}

.story-img-wrap {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-decoration {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(201,169,110,.08) 0%, transparent 70%);
  border-radius: 50%;
}

.story-img-inner {
  position: relative;
  z-index: 1;
}

.story-badge {
  position: absolute;
  bottom: -20px;
  right: 0;
  background: var(--gold);
  color: var(--white);
  padding: .8rem 1.4rem;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(14,14,14,.1);
}

.story-badge-num {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  display: block;
  margin-bottom: .2rem;
}

.story-badge-txt {
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .9;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--mist);
  padding: 2.4rem 2rem;
  border-radius: 6px;
  text-align: center;
  transition: all .35s var(--ease);
}

.value-card:hover {
  border-color: var(--gold);
  box-shadow: 0 12px 32px rgba(201,169,110,.1);
  transform: translateY(-3px);
}

.value-icon {
  font-size: 2rem;
  color: var(--gold);
  margin-bottom: .8rem;
}

.value-name {
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: .8rem;
  font-weight: 400;
}

.value-desc {
  font-size: .9rem;
  color: var(--ash);
  line-height: 1.7;
}

.skills-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.skills-intro {
  max-width: 45ch;
}

.skills-bars {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.skill-bar-item {
  display: flex;
  flex-direction: column;
  gap: .8rem;
}

.skill-bar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.skill-name {
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: .05em;
}

.skill-pct {
  font-size: .85rem;
  color: var(--gold-dk);
  font-weight: 600;
}

.skill-track {
  height: 6px;
  background: var(--mist);
  border-radius: 3px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-lt) 100%);
  border-radius: 3px;
  transition: width 1s ease-out;
}

/* ─── RESPONSIVE SERVICIOS/CONTACTO/PROYECTOS ─── */
@media (max-width: 960px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .location-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .skills-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .services-full-grid {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    padding: 0;
  }

  .form-wrap {
    padding: 1.6rem;
  }

  .svc-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .svc-footer .btn {
    width: 100%;
    text-align: center;
  }

  .form-submit {
    align-self: stretch;
  }

  .location-map {
    padding: 2rem;
    min-height: 250px;
  }

  .map-city {
    font-size: 1.6rem;
  }

  .story-img-wrap {
    height: 300px;
  }

  .story-badge {
    bottom: -15px;
    right: -10px;
    padding: .6rem 1rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .process-steps {
    gap: 1.5rem;
  }

  .step {
    padding: 1.5rem 1rem;
  }

  .faq-list {
    max-width: 100%;
  }
}
