*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --ink:      #0e0f0d;
  --paper:    #f5f2ea;
  --cream:    #ede8dc;
  --gold:     #c8a84b;
  --gold-lt:  #e8d49a;
  --red:      #c0392b;
  --mint:     #2a7c6f;
  --gray:     #6b6860;
  --white:    #ffffff;
}
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--paper);
  color: var(--ink);
  overflow-x: hidden;
}

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 5%;
  background: rgba(245,242,234,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(14,15,13,0.10);
}
.logo img { height: 52px; width: auto; }
.logo-placeholder {
  height: 52px; width: 130px;
  background: var(--ink); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Playfair Display', serif; font-weight: 700;
  color: var(--gold); font-size: 1.1rem; letter-spacing: 0.12em;
}
.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--ink);
  font-size: 0.82rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  position: relative; transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1px; background: var(--gold); transition: width 0.3s;
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--ink); color: var(--paper) !important;
  padding: 0.5rem 1.2rem; border-radius: 2px;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--gold); color: var(--ink) !important; }

/* ── HERO ── */
#inicio { padding: 0; }
.hero {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 90vh; position: relative; overflow: hidden;
}
.hero-left {
  padding: 7rem 5% 5rem 7%;
  display: flex; flex-direction: column; justify-content: center;
  animation: fadeUp 1s ease both;
}
.hero-eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gray);
  margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.8rem;
}
.hero-eyebrow::before {
  content: ''; display: block; width: 32px; height: 1px; background: var(--gold);
}
.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1.1; font-weight: 700;
  margin-bottom: 1.2rem;
}
.hero-headline .strike {
  color: var(--red); position: relative; font-style: italic;
}
.hero-headline .strike::after {
  content: ''; position: absolute;
  left: 0; top: 52%; width: 100%; height: 2px;
  background: var(--red); transform: rotate(-1.5deg);
}
.hero-headline .gold { color: var(--gold); }
.hero-sub {
  font-size: 1.05rem; color: var(--gray); line-height: 1.7;
  max-width: 380px; margin-bottom: 2.8rem; font-weight: 300;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  padding: 0.75rem 2rem; font-family: 'DM Sans', sans-serif;
  font-weight: 600; font-size: 0.82rem; letter-spacing: 0.08em;
  text-transform: uppercase; text-decoration: none; display: inline-block;
  border-radius: 2px; cursor: pointer; transition: all 0.2s;
}
.btn-dark { background: var(--ink); color: var(--paper); border: 2px solid var(--ink); }
.btn-dark:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.hero-right {
  background: var(--ink); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-right img {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.85;
  mix-blend-mode: luminosity;
}
.hero-right-placeholder {
  width: 100%; height: 100%; min-height: 90vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1rem;
}
.hero-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, var(--gold) 1px, transparent 1px);
  background-size: 28px 28px; opacity: 0.08;
}
.hero-tag {
  position: relative; z-index: 2;
  font-family: 'Playfair Display', serif; font-style: italic;
  color: var(--gold); font-size: 1.2rem; text-align: center; padding: 2rem;
  line-height: 1.6;
}
.hero-badge {
  position: absolute; bottom: 2.5rem; right: 2.5rem;
  width: 90px; height: 90px; border-radius: 50%;
  border: 1px solid rgba(200,168,75,0.4);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.15rem; text-align: center;
}
.hero-badge .num {
  font-family: 'Playfair Display', serif; font-size: 1.8rem;
  color: var(--gold); line-height: 1; font-weight: 700;
}
.hero-badge .label {
  font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(200,168,75,0.7); line-height: 1.3;
}
.hero-line {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
  opacity: 0.5;
}

/* ── SECTION SHARED ── */
section { padding: 6rem 5%; }
.section-label {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--gold);
  display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1rem;
}
.section-label::before {
  content: ''; width: 24px; height: 1px; background: var(--gold);
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700; line-height: 1.15;
  color: var(--ink); margin-bottom: 3.5rem;
}

/* ── ESPECIALIDADES ── */
#especialidades { background: var(--ink); color: var(--paper); }
#especialidades .section-label { color: var(--gold); }
#especialidades .section-title { color: var(--paper); }

.services-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08); margin-top: 0;
}
.service-card {
  padding: 2.5rem 2rem;
  background: var(--ink);
  border-right: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, background 0.3s;
  cursor: default;
}
.service-card.visible { opacity: 1; transform: translateY(0); }
.service-card:hover { background: rgba(200,168,75,0.06); }
.service-icon {
  width: 40px; height: 40px; margin-bottom: 1.2rem; opacity: 0.7;
}
.service-icon svg { width: 100%; height: 100%; }
.service-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--paper); margin-bottom: 0.5rem; line-height: 1.3;
}
.service-desc {
  font-size: 0.82rem; color: rgba(245,242,234,0.45); line-height: 1.6;
}
.service-num {
  font-size: 0.7rem; letter-spacing: 0.12em; color: var(--gold);
  margin-bottom: 1rem; opacity: 0.6;
}

/* ── METODOLOGÍA ── */
#metodologia { background: var(--cream); }
.metodo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; background: rgba(14,15,13,0.08);
}
.metodo-item {
  background: var(--cream); padding: 2.5rem 2rem;
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.metodo-item.visible { opacity: 1; transform: translateY(0); }
.metodo-num {
  font-family: 'Playfair Display', serif; font-size: 3rem;
  font-weight: 700; color: var(--gold-lt); line-height: 1;
  margin-bottom: 0.8rem;
}
.metodo-text {
  font-size: 0.95rem; color: var(--ink); line-height: 1.6; font-weight: 400;
}

/* ── CLIENTES ── */
#clientes { background: var(--paper); }
#clientes .section-title { text-align: center; margin-bottom: 1rem; }
#clientes .section-label { justify-content: center; }
#clientes .section-label::before { display: none; }
#clientes .section-label::after {
  content: ''; width: 24px; height: 1px; background: var(--gold);
}
.clientes-wrap {
  max-width: 880px; margin: 3rem auto 0;
}
.clientes-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 1px; background: rgba(14,15,13,0.08);
  margin-bottom: 1px;
}
.clientes-grid-2 { grid-template-columns: repeat(4, 1fr); }
.cliente-logo {
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  height: 120px; padding: 1rem;
  transition: background 0.2s;
}
.cliente-logo:hover { background: var(--cream); }
.cliente-logo img { max-height: 70px; max-width: 100%; object-fit: contain; filter: grayscale(100%); opacity: 0.65; transition: all 0.3s; }
.cliente-logo:hover img { filter: grayscale(0%); opacity: 1; }
.cliente-placeholder {
  width: 80px; height: 40px; background: rgba(14,15,13,0.07);
  border-radius: 2px;
}

/* ── CTA ── */
#cta {
  background: var(--gold); color: var(--ink);
  text-align: center;
}
#cta .section-label { color: rgba(14,15,13,0.5); justify-content: center; }
#cta .section-label::before { background: rgba(14,15,13,0.3); }
#cta .section-title { color: var(--ink); text-align: center; margin-bottom: 1rem; }
.cta-sub {
  font-size: 1rem; color: rgba(14,15,13,0.65); margin-bottom: 2.5rem; font-weight: 300;
}
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-invert { background: var(--ink); color: var(--paper); border: 2px solid var(--ink); }
.btn-invert:hover { background: transparent; color: var(--ink); }
.btn-border-dark { background: transparent; color: var(--ink); border: 2px solid var(--ink); }
.btn-border-dark:hover { background: var(--ink); color: var(--paper); }

/* ── FOOTER ── */
footer {
  background: var(--ink); color: var(--paper);
  padding: 3rem 7% 2rem;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem; align-items: start;
}
.footer-brand { }
.footer-logo-img { height: 44px; width: auto; margin-bottom: 1rem; }
.footer-tagline { font-size: 0.8rem; color: rgba(245,242,234,0.4); line-height: 1.6; max-width: 200px; }
.footer-col h4 {
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem; font-weight: 600;
}
.footer-col a, .footer-col p {
  display: block; color: rgba(245,242,234,0.55); font-size: 0.85rem;
  text-decoration: none; line-height: 2; transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding-top: 1.5rem; margin-top: 1rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 0.5rem;
}
.footer-bottom p { font-size: 0.75rem; color: rgba(245,242,234,0.3); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .metodo-grid { grid-template-columns: repeat(2, 1fr); }
  footer { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { gap: 1rem; }
  .nav-links li:nth-child(1), .nav-links li:nth-child(2) { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .metodo-grid { grid-template-columns: 1fr; }
  .clientes-grid { grid-template-columns: repeat(3, 1fr); }
  .clientes-grid-2 { grid-template-columns: repeat(2, 1fr); }
  footer { grid-template-columns: 1fr; }
  .hero-left { padding: 4rem 5% 3rem; }
}
.wa-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  z-index: 999;
  transition: transform 0.2s, box-shadow 0.2s;
}

.wa-btn:hover {
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 8px 24px rgba(37,211,102,0.5);
}

.wa-btn svg {
  width: 30px;
  height: 30px;
}

/* ── SERVICIOS: layout panel ── */
.services-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  align-items: stretch;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
}

.service-card {
  padding: 2.5rem 2rem;
  background: var(--ink);
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, background 0.25s;
  border-bottom: 2px solid transparent;
}

.service-card.visible { opacity: 1; transform: translateY(0); }

.service-card:hover,
.service-card.active {
  background: rgba(200,168,75,0.08);
  border-bottom: 2px solid var(--gold);
}

/* Panel lateral */
.services-panel {
  background: rgba(200,168,75,0.06);
  border-left: 1px solid rgba(200,168,75,0.2);
  display: flex;
  align-items: flex-start;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.panel-content {
  width: 100%;
}

.panel-num {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: rgba(200,168,75,0.15);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 0.5rem;
  transition: opacity 0.3s;
}

.panel-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

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

.panel-list li {
  font-size: 0.9rem;
  color: rgba(245,242,234,0.75);
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  transition: color 0.2s;
}

.panel-list li::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
  opacity: 0.6;
}

.panel-list li:hover { color: var(--paper); }

.panel-cta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: opacity 0.2s;
}

.panel-cta:hover { opacity: 0.7; }

/* Animación de entrada del panel */
@keyframes panelIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.panel-animate {
  animation: panelIn 0.3s ease both;
}

/* Responsive */
@media (max-width: 1024px) {
  .services-layout { grid-template-columns: 1fr; }
  .services-panel {
    border-left: none;
    border-top: 1px solid rgba(200,168,75,0.2);
  }
}

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