/*
Theme Name: Pinnock & Pinnock
Theme URI: https://legalpinnock.com
Author: Pinnock & Pinnock
Author URI: https://legalpinnock.com
Description: Tema oficial de Pinnock & Pinnock — Firma Legal en Ciudad de Panamá. Especialistas en derecho civil, corporativo e inmobiliario.
Version: 1.0.0
License: Proprietary
Tags: law, legal, business, professional
Text Domain: legalpinnock
*/

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

:root {
  --black:   #0e0e0e;
  --dark:    #1c1c1c;
  --mid:     #4a4a4a;
  --light:   #8a8a8a;
  --border:  #e0e0e0;
  --bg-off:  #f8f7f4;
  --white:   #ffffff;
  --accent:  #b8975a;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: var(--dark);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--black);
}

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

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============================
   BARRA SUPERIOR
   ============================ */
.topbar {
  background: var(--black);
  color: #ccc;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 8px 0;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; }
.topbar a { color: #ccc; transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar-left { display: flex; gap: 24px; }
.topbar-right { display: flex; gap: 20px; align-items: center; }

/* ============================
   NAVEGACIÓN — ISOLATED REWRITE
   Selectores prefijados con #navbar para aislar
   de estilos globales del theme y plugins de WP.
   ============================ */

#navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 500;
  overflow: visible;
  transition: box-shadow 0.3s;
}

#navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

#navbar .container {
  position: relative;
}

#navbar .nav-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  overflow: visible;
}

#navbar .logo {
  flex: 0 0 auto;
  white-space: nowrap;
  font-family: 'EB Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--black);
  line-height: 1;
}

#navbar .logo a {
  color: inherit;
  text-decoration: none;
  display: block;
}

#navbar .logo span { color: var(--accent); }

#navbar .menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 4px;
  flex: 0 0 auto;
  position: relative;
  z-index: 600;
}

#navbar .menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  transform-origin: center;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

#navbar .menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#navbar .menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#navbar .menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#navbar .nav-links {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 0 0 auto;
}

#navbar .nav-links li {
  margin: 0;
  padding: 0;
  list-style: none;
}

#navbar .nav-links a {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
  padding-bottom: 3px;
  white-space: nowrap;
}

#navbar .nav-links a:hover { color: var(--black); }

#navbar .nav-links .active a {
  color: var(--black);
  border-bottom: 2px solid var(--black);
}

#navbar .nav-links .nav-cta {
  display: inline-block;
  background: var(--black);
  color: var(--white);
  padding: 10px 22px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid var(--black);
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

#navbar .nav-links a:hover .nav-cta {
  background: var(--white);
  color: var(--black);
}

@media (max-width: 768px) {
  #navbar .menu-btn { display: flex; }

  #navbar .logo { font-size: 1.15rem; }

  #navbar .nav-links {
    flex: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 400;
    transition: max-height 0.35s ease, opacity 0.3s ease, visibility 0s linear 0.35s;
  }

  #navbar .nav-links.open {
    visibility: visible;
    max-height: 480px;
    opacity: 1;
    overflow: visible;
    transition: max-height 0.35s ease, opacity 0.3s ease, visibility 0s linear 0s;
  }

  #navbar .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--border);
  }

  #navbar .nav-links li:last-child { border-bottom: none; }

  #navbar .nav-links a {
    padding: 13px 24px;
    font-size: 0.82rem;
    padding-bottom: 13px;
    border-bottom: none;
  }

  #navbar .nav-links .active a {
    border-bottom: none;
    border-left: 3px solid var(--black);
    padding-left: 21px;
    color: var(--black);
  }

  #navbar .nav-links .nav-cta {
    display: block;
    margin: 10px 20px 14px;
    padding: 13px 20px;
    text-align: center;
    width: calc(100% - 40px);
  }
}

/* ============================
   BREADCRUMB
   ============================ */
.breadcrumb {
  background: var(--bg-off);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.breadcrumb-inner {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.78rem;
  color: var(--light);
}
.breadcrumb-inner a { color: var(--light); transition: color .2s; }
.breadcrumb-inner a:hover { color: var(--black); }
.breadcrumb-inner span { color: var(--dark); font-weight: 500; }

/* ============================
   BOTONES
   ============================ */
.btn {
  display: inline-block;
  padding: 14px 30px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all .25s;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-primary:hover { background: transparent; color: var(--accent); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-outline-dark { background: transparent; color: var(--black); border-color: var(--black); }
.btn-outline-dark:hover { background: var(--black); color: var(--white); }
.btn-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-dark:hover { background: transparent; color: var(--black); }

/* ============================
   SECTION UTILITIES
   ============================ */
.section-tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}
.section-title { font-size: 2.4rem; margin-bottom: 16px; }
.section-subtitle { font-size: 1rem; color: var(--mid); max-width: 540px; line-height: 1.75; }
.section-header { margin-bottom: 60px; }

/* ============================
   HERO — BASE
   ============================ */
.hero {
  position: relative;
  padding: 90px 0 80px;
  background: var(--black);
  overflow: hidden;
}
.hero-bg-text {
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'EB Garamond', serif;
  font-size: 14rem;
  font-weight: 700;
  color: rgba(255,255,255,.03);
  letter-spacing: -0.05em;
  line-height: 1;
  user-select: none;
}
.hero-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  border: 1px solid rgba(184,151,90,.3);
  padding: 6px 14px;
}
.hero h1 { font-size: 2.8rem; line-height: 1.1; color: var(--white); margin-bottom: 24px; }
.hero-sub { font-size: 1.02rem; color: rgba(255,255,255,.68); max-width: 500px; margin-bottom: 36px; line-height: 1.75; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* Hero — Service pages (2-column grid with panel) */
.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-panel {
  border: 1px solid rgba(255,255,255,.1);
  padding: 32px;
  background: rgba(255,255,255,.03);
}
.hero-panel h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.hero-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.hero-list li {
  font-size: 0.9rem;
  color: rgba(255,255,255,.75);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.5;
}
.hero-list li::before { content: '—'; color: var(--accent); flex-shrink: 0; }

/* Hero — Homepage (video bg, equal columns, min-height) */
.hero-home {
  padding: 100px 0 90px;
  min-height: 580px;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(14,14,14,.80) 0%, rgba(14,14,14,.72) 55%, rgba(14,14,14,.88) 100%);
  z-index: 0;
}
.hero-home .container {
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.hero-home .hero-tag { border: none; padding: 0; }
.hero-home .hero h1 { font-size: 3rem; }
.hero-home .hero-sub { max-width: 460px; color: rgba(255,255,255,.72); }
.hero-visual { display: flex; flex-direction: column; gap: 16px; color: var(--white); }
.hero-stat {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
  backdrop-filter: blur(6px);
  transition: border-color .25s;
}
.hero-stat:hover { border-color: var(--accent); }
.hero-stat-num {
  font-family: 'EB Garamond', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  min-width: 60px;
}
.hero-stat-label { font-size: 0.82rem; color: rgba(255,255,255,.75); line-height: 1.4; }
.hero-stat-label strong { display: block; color: #fff; font-weight: 500; margin-bottom: 2px; }

/* Hero — Sobre la firma (single column, max-width) */
.hero-firma .container {
  display: block;
  max-width: 800px;
}
.hero-firma .hero-tag { border: 1px solid rgba(184,151,90,.3); padding: 6px 14px; }
.hero-firma h1 { font-size: 3rem; }
.hero-firma .hero-sub { font-size: 1.05rem; color: rgba(255,255,255,.65); max-width: 640px; }

/* ============================
   BANDA DE ÁREAS
   ============================ */
/* Default: service pages (gold bg) */
.areas-band { background: var(--accent); padding: 16px 0; }
.areas-band .container { display: flex; justify-content: center; gap: 60px; }
.area-item { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.area-item.current { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }

/* Homepage variant (dark bg) */
.areas-band-home { background: var(--black); padding: 20px 0; }
.areas-band-home .area-item { color: rgba(255,255,255,.55); transition: color .2s; }
.areas-band-home .area-item:hover { color: var(--white); }
.areas-band-home .area-item span { color: var(--accent); margin-right: 8px; }

/* ============================
   HOMEPAGE: PILARES
   ============================ */
.pilares { padding: 100px 0; background: var(--white); }
.pilares-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  border: 2px solid var(--border);
}
.pilar {
  padding: 36px 28px;
  border-right: 2px solid var(--border);
  transition: all .3s;
  position: relative;
}
.pilar:last-child { border-right: none; }
.pilar:hover { background: var(--black); }
.pilar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s;
}
.pilar:hover::after { transform: scaleX(1); }
.pilar-num {
  font-family: 'EB Garamond', serif;
  font-size: 3rem;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
  transition: color .3s;
}
.pilar:hover .pilar-num { color: rgba(255,255,255,.15); }
.pilar h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 12px;
  transition: color .3s;
}
.pilar:hover h3 { color: var(--white); }
.pilar p { font-size: 0.88rem; color: var(--mid); line-height: 1.7; transition: color .3s; }
.pilar:hover p { color: rgba(255,255,255,.65); }

/* ============================
   HOMEPAGE: SERVICIOS
   ============================ */
.servicios { padding: 100px 0; background: var(--bg-off); }
.servicios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.servicio-card {
  background: var(--white);
  padding: 48px 36px;
  transition: all .3s;
  position: relative;
  overflow: hidden;
}
.servicio-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--border);
  transition: background .3s;
}
.servicio-card:hover::before { background: var(--black); }
.servicio-card:hover { transform: translateY(-6px); box-shadow: 0 20px 60px rgba(0,0,0,.08); }
.servicio-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--border);
  margin-bottom: 28px;
  transition: border-color .3s;
}
.servicio-card:hover .servicio-icon { border-color: var(--black); }
.servicio-icon svg { width: 20px; height: 20px; stroke: var(--mid); }
.servicio-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.servicio-desc { font-size: 0.9rem; color: var(--mid); line-height: 1.75; margin-bottom: 24px; }
.servicio-lista { list-style: none; margin-bottom: 32px; }
.servicio-lista li {
  font-size: 0.84rem;
  color: var(--mid);
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.servicio-lista li::before { content: ''; width: 16px; height: 1px; background: var(--accent); flex-shrink: 0; }
.servicio-link {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: gap .2s;
}
.servicio-link:hover { gap: 14px; }
.servicio-link::after { content: '→'; }

/* ============================
   EQUIPO (homepage + sobre-la-firma)
   ============================ */
.equipo { padding: 100px 0; background: var(--white); }
.equipo.equipo-dark { background: var(--black); }
.equipo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.miembro { position: relative; overflow: hidden; cursor: pointer; }
.miembro-img {
  width: 100%;
  padding-top: 130%;
  background: var(--border);
  position: relative;
  overflow: hidden;
}
.miembro-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1c1c1c 0%, #3a3a3a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.miembro-placeholder span { font-family: 'EB Garamond', serif; font-size: 5rem; color: rgba(255,255,255,.15); font-weight: 600; }
.miembro-overlay {
  position: absolute;
  inset: 0;
  background: rgba(14,14,14,.0);
  transition: background .35s;
  display: flex;
  align-items: flex-end;
  padding: 28px;
}
.miembro:hover .miembro-overlay { background: rgba(14,14,14,.75); }
.miembro-overlay-text { color: var(--white); opacity: 0; transform: translateY(12px); transition: all .35s; }
.miembro:hover .miembro-overlay-text { opacity: 1; transform: translateY(0); }
.miembro-overlay-text p { font-size: 0.82rem; color: rgba(255,255,255,.75); line-height: 1.6; }
.miembro-info {
  padding: 20px 0 0;
  border-top: 2px solid var(--border);
  margin-top: 12px;
  transition: border-color .3s;
}
.equipo-dark .miembro-info { border-top-color: rgba(255,255,255,.1); }
.miembro:hover .miembro-info { border-color: var(--accent); }
.miembro-nombre { font-family: 'EB Garamond', serif; font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; }
.equipo-dark .miembro-nombre { color: var(--white); }
.miembro-cargo { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--light); }
.equipo-dark .miembro-cargo { color: rgba(255,255,255,.45); }
.miembro-area { font-size: 0.8rem; color: var(--accent); margin-top: 4px; }
.equipo-dark .section-tag { color: var(--accent); }
.equipo-dark .section-title { color: var(--white); }
.equipo-dark .section-subtitle { color: rgba(255,255,255,.6); }

/* ============================
   HOMEPAGE: TESTIMONIOS
   ============================ */
.testimonios { padding: 100px 0; background: var(--black); }
.testimonios .section-tag { color: var(--accent); }
.testimonios .section-title { color: var(--white); }
.testimonios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.testimonio { padding: 40px 32px; border: 1px solid rgba(255,255,255,.08); transition: border-color .3s; }
.testimonio:hover { border-color: var(--accent); }
.testimonio-quote { font-family: 'EB Garamond', serif; font-size: 3rem; color: var(--accent); line-height: .8; margin-bottom: 16px; }
.testimonio-text { font-size: 0.95rem; color: rgba(255,255,255,.75); line-height: 1.8; margin-bottom: 28px; font-style: italic; }
.testimonio-divider { width: 32px; height: 1px; background: var(--accent); margin-bottom: 16px; }
.testimonio-nombre { font-size: 0.88rem; font-weight: 600; color: var(--white); }
.testimonio-empresa { font-size: 0.78rem; color: rgba(255,255,255,.45); margin-top: 2px; }

/* ============================
   HOMEPAGE: CTA CONTACTO
   ============================ */
.cta-contacto { padding: 100px 0; background: var(--bg-off); }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.cta-left h2 { font-size: 2.8rem; margin-bottom: 16px; }
.cta-left p { font-size: 0.95rem; color: var(--mid); line-height: 1.75; margin-bottom: 36px; }
.contacto-datos { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }
.dato { display: flex; gap: 14px; align-items: flex-start; }
.dato-icon { width: 36px; height: 36px; background: var(--black); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dato-icon svg { width: 15px; height: 15px; stroke: #fff; }
.dato-text { font-size: 0.88rem; color: var(--mid); }
.dato-text strong { display: block; color: var(--black); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 2px; }

.form-contacto { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mid); }
.field label .req { color: var(--accent); margin-left: 2px; }
.field input,
.field select,
.field textarea {
  border: 1.5px solid var(--border);
  background: var(--white);
  padding: 13px 16px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  transition: border-color .2s, background .2s;
  outline: none;
  -webkit-appearance: none;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--black); background: var(--white); }
.field textarea { resize: vertical; min-height: 110px; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234a4a4a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form-nota { font-size: 0.78rem; color: var(--light); line-height: 1.6; }
.btn-form {
  width: 100%;
  padding: 16px;
  background: var(--black);
  color: var(--white);
  border: 2px solid var(--black);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all .25s;
}
.btn-form:hover { background: var(--white); color: var(--black); }

/* Contacto page specific form */
.form-col { background: var(--white); padding: 48px 44px; }
.form-header { margin-bottom: 32px; }
.form-header h2 { font-size: 1.8rem; margin-bottom: 8px; }
.form-header p { font-size: 0.9rem; color: var(--mid); line-height: 1.7; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--black); }
.field textarea { min-height: 120px; }
.checkbox-field { display: flex; gap: 12px; align-items: flex-start; }
.checkbox-field input[type="checkbox"] { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; accent-color: var(--black); cursor: pointer; }
.checkbox-field label { font-size: 0.82rem; color: var(--mid); line-height: 1.6; cursor: pointer; }
.checkbox-field label a { color: var(--black); text-decoration: underline; }
.btn-submit {
  width: 100%;
  padding: 18px;
  background: var(--black);
  color: var(--white);
  border: 2px solid var(--black);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: all .25s;
}
.btn-submit:hover { background: var(--white); color: var(--black); }

/* ============================
   HOMEPAGE: ALIADOS
   ============================ */
.aliados { padding: 100px 0; background: var(--bg-off); }
.aliados .section-header { text-align: center; }
.aliados .section-subtitle { max-width: 540px; margin: 0 auto; text-align: center; }
.aliados-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 60px; }
.aliado-card { background: var(--white); padding: 48px 36px; text-align: center; position: relative; transition: all .3s; border-top: 3px solid var(--border); }
.aliado-card:hover { border-top-color: var(--accent); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.07); }
.aliado-logo-wrap { height: 72px; display: flex; align-items: center; justify-content: center; margin-bottom: 28px; }
.aliado-nombre { font-family: 'EB Garamond', serif; font-size: 1.35rem; font-weight: 600; color: var(--black); letter-spacing: 0.01em; }
.aliado-tipo { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-top: 6px; margin-bottom: 18px; }
.aliado-desc { font-size: 0.88rem; color: var(--mid); line-height: 1.75; }
.aliado-divider { width: 28px; height: 1px; background: var(--accent); margin: 20px auto; }

/* ============================
   SERVICE PAGES: INTRO
   ============================ */
.intro { padding: 100px 0; background: var(--white); }
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.intro-left h2 { font-size: 2.2rem; margin-bottom: 24px; }
.intro-left p { font-size: 0.95rem; color: var(--mid); line-height: 1.8; margin-bottom: 20px; }
.intro-left blockquote { border-left: 3px solid var(--accent); padding: 20px 24px; margin: 28px 0; background: var(--bg-off); }
.intro-left blockquote p { font-family: 'EB Garamond', serif; font-size: 1.15rem; font-style: italic; color: var(--dark); line-height: 1.7; margin: 0; }
.intro-stat { display: flex; gap: 20px; align-items: flex-start; padding: 24px 0; border-bottom: 1px solid var(--border); }
.intro-stat:first-child { border-top: 1px solid var(--border); }
.intro-stat-num { font-family: 'EB Garamond', serif; font-size: 2.8rem; font-weight: 600; color: var(--accent); line-height: 1; min-width: 80px; }
.intro-stat-info { padding-top: 4px; }
.intro-stat-info strong { display: block; font-size: 0.88rem; font-weight: 600; color: var(--black); margin-bottom: 4px; }
.intro-stat-info span { font-size: 0.84rem; color: var(--mid); line-height: 1.5; }
.alerta-inv { background: var(--black); padding: 24px 28px; margin-top: 28px; border-left: 3px solid var(--accent); }
.alerta-inv h4 { font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.alerta-inv p { font-size: 0.88rem; color: rgba(255,255,255,.7); line-height: 1.7; }

/* ============================
   SERVICE PAGES: CASOS
   ============================ */
.casos { padding: 100px 0; background: var(--white); }
.casos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.caso-card { background: var(--bg-off); padding: 40px 32px; position: relative; overflow: hidden; transition: all .3s; }
.caso-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.08); }
.caso-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.caso-card:hover::after { transform: scaleX(1); }
.caso-num { font-family: 'EB Garamond', serif; font-size: 3.5rem; color: var(--border); line-height: 1; margin-bottom: 16px; }
.caso-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.caso-card p { font-size: 0.88rem; color: var(--mid); line-height: 1.7; }

/* ============================
   SERVICE PAGES: PROCESO
   ============================ */
.proceso { padding: 100px 0; background: var(--black); }
.proceso .section-tag { color: var(--accent); }
.proceso .section-title { color: var(--white); }
.proceso .section-subtitle { color: rgba(255,255,255,.6); }
.proceso-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin-top: 60px; }
.step { padding: 40px 28px; border: 1px solid rgba(255,255,255,.08); transition: border-color .3s; }
.step:hover { border-color: var(--accent); }
.step-num { font-family: 'EB Garamond', serif; font-size: 4rem; color: rgba(255,255,255,.08); line-height: 1; margin-bottom: 20px; }
.step h3 { font-family: 'Inter', sans-serif; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); margin-bottom: 12px; }
.step p { font-size: 0.88rem; color: rgba(255,255,255,.55); line-height: 1.7; }

/* ============================
   SERVICE PAGES: FAQ
   ============================ */
.faq { padding: 100px 0; background: var(--bg-off); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.faq-item { background: var(--white); padding: 32px; border-top: 3px solid var(--border); transition: border-top-color .3s; }
.faq-item:hover { border-top-color: var(--accent); }
.faq-item h3 { font-size: 1.05rem; margin-bottom: 12px; }
.faq-item p { font-size: 0.9rem; color: var(--mid); line-height: 1.75; }

/* ============================
   SERVICE PAGES: SOCIO RESPONSABLE
   ============================ */
.socio { padding: 100px 0; background: var(--white); }
.socio-inner { display: grid; grid-template-columns: 280px 1fr; gap: 60px; align-items: start; max-width: 900px; }
.socio-foto { width: 100%; padding-top: 130%; background: linear-gradient(135deg, #1c1c1c 0%, #3a3a3a 100%); position: relative; }
.socio-tag { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.socio-info h2 { font-size: 2rem; margin-bottom: 6px; }
.socio-cargo { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--light); margin-bottom: 24px; }
.socio-bio { font-size: 0.95rem; color: var(--mid); line-height: 1.8; margin-bottom: 20px; }
.socio-especialidades { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.socio-esp { display: flex; gap: 12px; align-items: center; font-size: 0.88rem; color: var(--dark); }
.socio-esp::before { content: ''; width: 20px; height: 1px; background: var(--accent); flex-shrink: 0; }

/* ============================
   SERVICE PAGES: CORPORATIVO SERVICIOS
   ============================ */
.servicios-corp { padding: 100px 0; background: var(--bg-off); }
.servicios-corp-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.serv-item { background: var(--white); padding: 40px 36px; position: relative; overflow: hidden; transition: all .3s; border-left: 3px solid var(--border); }
.serv-item:hover { border-left-color: var(--accent); transform: translateX(4px); }
.serv-icon { width: 44px; height: 44px; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; transition: border-color .3s; }
.serv-item:hover .serv-icon { border-color: var(--accent); }
.serv-icon svg { width: 20px; height: 20px; stroke: var(--mid); }
.serv-item h3 { font-size: 1.15rem; margin-bottom: 12px; }
.serv-item p { font-size: 0.88rem; color: var(--mid); line-height: 1.7; }

/* ============================
   SERVICE PAGES: DUE DILIGENCE (INMOBILIARIO)
   ============================ */
.due-diligence { padding: 100px 0; background: var(--bg-off); }
.fases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.fase-card { background: var(--white); padding: 40px 32px; position: relative; border-top: 3px solid var(--border); transition: border-top-color .3s; }
.fase-card:hover { border-top-color: var(--accent); }
.fase-num { font-family: 'EB Garamond', serif; font-size: 3.5rem; color: var(--border); line-height: 1; margin-bottom: 16px; }
.fase-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.fase-card ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.fase-card ul li { font-size: 0.85rem; color: var(--mid); display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.fase-card ul li::before { content: ''; width: 12px; height: 1px; background: var(--accent); flex-shrink: 0; margin-top: 9px; }

/* ============================
   SERVICE PAGES: OTRAS ÁREAS
   ============================ */
.otras-areas { padding: 100px 0; background: var(--bg-off); }
.otras-areas .section-header { text-align: center; }
.otras-areas .section-subtitle { margin: 0 auto; text-align: center; }
.otras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 60px; }
.otra-card { background: var(--white); padding: 48px 40px; position: relative; overflow: hidden; transition: all .3s; border-top: 3px solid var(--border); }
.otra-card:hover { border-top-color: var(--black); transform: translateY(-4px); box-shadow: 0 16px 48px rgba(0,0,0,.07); }
.otra-card h3 { font-size: 1.6rem; margin-bottom: 12px; }
.otra-card p { font-size: 0.9rem; color: var(--mid); line-height: 1.7; margin-bottom: 28px; }
.otra-link { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--black); display: inline-flex; align-items: center; gap: 8px; transition: gap .2s; }
.otra-link:hover { gap: 14px; }
.otra-link::after { content: '→'; }

/* ============================
   SERVICE PAGES: CTA FINAL (dark)
   ============================ */
.cta-final { padding: 100px 0; background: var(--black); }
.cta-final-inner { text-align: center; max-width: 700px; margin: 0 auto; }
.cta-final .section-tag { display: block; }
.cta-final h2 { font-size: 2.8rem; color: var(--white); margin-bottom: 20px; }
.cta-final p { font-size: 1rem; color: rgba(255,255,255,.65); line-height: 1.75; margin-bottom: 40px; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================
   SOBRE LA FIRMA: STATS BAND
   ============================ */
.stats-band { background: var(--black); padding: 60px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.stat-item { padding: 36px 28px; border-right: 1px solid rgba(255,255,255,.08); text-align: center; }
.stat-item:last-child { border-right: none; }
.stat-num { font-family: 'EB Garamond', serif; font-size: 3.2rem; font-weight: 600; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.stat-label { font-size: 0.82rem; color: rgba(255,255,255,.55); line-height: 1.5; }
.stat-label strong { display: block; color: rgba(255,255,255,.85); font-weight: 500; margin-bottom: 4px; font-size: 0.9rem; }

/* ============================
   SOBRE LA FIRMA: HISTORIA / TIMELINE
   ============================ */
.historia { padding: 100px 0; background: var(--bg-off); }
.historia-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.historia-timeline { display: flex; flex-direction: column; gap: 0; }
.hito { display: grid; grid-template-columns: 80px 1fr; gap: 24px; position: relative; padding-bottom: 40px; }
.hito:last-child { padding-bottom: 0; }
.hito::before { content: ''; position: absolute; left: 39px; top: 44px; bottom: 0; width: 1px; background: var(--border); }
.hito:last-child::before { display: none; }
.hito-año { font-family: 'EB Garamond', serif; font-size: 0.82rem; font-weight: 600; color: var(--accent); letter-spacing: 0.06em; padding-top: 4px; text-align: center; }
.hito-dot { width: 10px; height: 10px; background: var(--accent); border-radius: 50%; margin: 0 auto 12px; }
.hito-content h3 { font-size: 1rem; margin-bottom: 8px; }
.hito-content p { font-size: 0.88rem; color: var(--mid); line-height: 1.7; }
.historia-right h2 { font-size: 2.2rem; margin-bottom: 24px; }
.historia-right p { font-size: 0.95rem; color: var(--mid); line-height: 1.85; margin-bottom: 20px; }

/* ============================
   SOBRE LA FIRMA: VALORES
   ============================ */
.valores { padding: 100px 0; background: var(--white); }
.valores-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; }
.valor-card { padding: 48px 40px; border: 1.5px solid var(--border); position: relative; overflow: hidden; transition: all .3s; }
.valor-card:hover { border-color: var(--black); }
.valor-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.valor-card:hover::before { transform: scaleX(1); }
.valor-num { font-family: 'EB Garamond', serif; font-size: 4rem; color: var(--border); line-height: 1; margin-bottom: 16px; transition: color .3s; }
.valor-card:hover .valor-num { color: var(--accent); opacity: .4; }
.valor-card h3 { font-size: 1.3rem; margin-bottom: 14px; }
.valor-card p { font-size: 0.9rem; color: var(--mid); line-height: 1.8; }

/* ============================
   SOBRE LA FIRMA: DIFERENCIADORES
   ============================ */
.diferenciadores { padding: 100px 0; background: var(--bg-off); }
.dif-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.dif-item { background: var(--white); padding: 44px 36px; border-top: 3px solid var(--border); transition: border-top-color .3s; }
.dif-item:hover { border-top-color: var(--accent); }
.dif-icon { width: 44px; height: 44px; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; transition: border-color .3s; }
.dif-item:hover .dif-icon { border-color: var(--accent); }
.dif-icon svg { width: 20px; height: 20px; stroke: var(--mid); }
.dif-item h3 { font-size: 1.15rem; margin-bottom: 12px; }
.dif-item p { font-size: 0.9rem; color: var(--mid); line-height: 1.75; }

/* ============================
   SOBRE LA FIRMA: MISIÓN
   ============================ */
.mision { padding: 100px 0; background: var(--white); }
.mision-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.mision-left h2 { font-size: 2.2rem; margin-bottom: 24px; }
.mision-left p { font-size: 0.95rem; color: var(--mid); line-height: 1.85; margin-bottom: 20px; }
.mision-right { background: var(--black); padding: 48px 40px; }
.mision-cita { font-family: 'EB Garamond', serif; font-size: 1.8rem; color: var(--white); line-height: 1.4; font-style: italic; margin-bottom: 24px; }
.mision-cita span { color: var(--accent); }
.mision-firma { font-size: 0.8rem; color: rgba(255,255,255,.45); letter-spacing: 0.06em; text-transform: uppercase; }

/* CTA variant for sobre-la-firma (light background grid layout) */
.cta-final--light { background: var(--bg-off); }
.cta-final--light .cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 80px; align-items: center; max-width: none; text-align: left; margin: 0; }
.cta-final--light h2 { font-size: 2.4rem; color: var(--black); margin-bottom: 16px; }
.cta-final--light p { font-size: 0.95rem; color: var(--mid); line-height: 1.75; margin-bottom: 0; }
.cta-final--light .cta-btns { flex-direction: column; gap: 16px; min-width: 220px; justify-content: flex-start; }

/* ============================
   CONTACTO: HERO
   ============================ */
.hero-contact { background: var(--black); padding: 72px 0 60px; position: relative; overflow: hidden; }
.hero-contact-bg { position: absolute; right: 0; top: 0; bottom: 0; width: 45%; background: rgba(184,151,90,.04); clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%); }
.hero-contact .container { position: relative; z-index: 1; }
.hero-contact h1 { font-size: 2.6rem; color: var(--white); margin-bottom: 16px; }
.hero-contact p { font-size: 0.95rem; color: rgba(255,255,255,.6); max-width: 520px; line-height: 1.75; }

/* ============================
   CONTACTO: PROMESA BAND
   ============================ */
.promesa-band { background: var(--accent); padding: 24px 0; }
.promesa-band .container { display: flex; justify-content: center; gap: 60px; }
.promesa-item { display: flex; gap: 12px; align-items: center; }
.promesa-item svg { width: 18px; height: 18px; stroke: rgba(255,255,255,.8); flex-shrink: 0; }
.promesa-item span { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,.9); }

/* ============================
   CONTACTO: MAIN
   ============================ */
.main-contact { padding: 80px 0 100px; background: var(--bg-off); }
.main-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: start; }
.datos-col { display: flex; flex-direction: column; gap: 0; }
.dato-bloque { padding: 32px 0; border-bottom: 1px solid var(--border); }
.dato-bloque:first-child { padding-top: 0; }
.dato-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.dato-linea { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px; }
.dato-linea:last-child { margin-bottom: 0; }
.dato-icono { width: 36px; height: 36px; background: var(--black); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dato-icono svg { width: 15px; height: 15px; stroke: #fff; }
.dato-texto { font-size: 0.9rem; color: var(--dark); }
.dato-texto strong { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--light); margin-bottom: 2px; }
.dato-texto a { color: var(--dark); transition: color .2s; }
.dato-texto a:hover { color: var(--black); }

.contacto-directo { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.btn-whatsapp { display: flex; gap: 12px; align-items: center; padding: 16px 20px; background: #25D366; color: #fff; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; transition: all .2s; }
.btn-whatsapp:hover { background: #1da851; }
.btn-whatsapp svg { width: 20px; height: 20px; fill: #fff; flex-shrink: 0; }
.btn-email { display: flex; gap: 12px; align-items: center; padding: 16px 20px; background: var(--black); color: #fff; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.06em; transition: all .2s; }
.btn-email:hover { background: var(--dark); }
.btn-email svg { width: 18px; height: 18px; stroke: #fff; fill: none; flex-shrink: 0; }

.mapa-embed { overflow: hidden; border-radius: 2px; }

.alternativas { padding: 80px 0; background: var(--white); }
.alt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.alt-card { padding: 40px 32px; border: 1.5px solid var(--border); transition: border-color .3s; }
.alt-card:hover { border-color: var(--black); }
.alt-icon { width: 44px; height: 44px; border: 1.5px solid var(--border); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; transition: border-color .3s; }
.alt-card:hover .alt-icon { border-color: var(--accent); }
.alt-icon svg { width: 20px; height: 20px; stroke: var(--mid); }
.alt-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.alt-card p { font-size: 0.88rem; color: var(--mid); line-height: 1.7; margin-bottom: 20px; }
.alt-link { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--black); display: inline-flex; align-items: center; gap: 8px; transition: gap .2s; }
.alt-link:hover { gap: 14px; }
.alt-link::after { content: '→'; }

/* ============================
   BLOG: HERO
   ============================ */
.blog-hero { background: var(--black); padding: 64px 0 56px; position: relative; overflow: hidden; }
.blog-hero::before { content: 'Blog'; position: absolute; right: -20px; top: 50%; transform: translateY(-50%); font-family: 'EB Garamond', serif; font-size: 18rem; font-weight: 700; color: rgba(255,255,255,.03); line-height: 1; pointer-events: none; }
.blog-hero-content { position: relative; z-index: 1; }
.blog-hero-tag { display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.blog-hero h1 { font-family: 'EB Garamond', serif; font-size: 3.4rem; font-weight: 600; color: var(--white); line-height: 1.15; margin-bottom: 20px; max-width: 580px; }
.blog-hero p { font-size: 1.02rem; color: rgba(255,255,255,.62); max-width: 520px; line-height: 1.75; }

/* ============================
   BLOG: ARTÍCULO DESTACADO
   ============================ */
.destacado-section { padding: 72px 0 60px; background: var(--white); }
.destacado-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--light); margin-bottom: 24px; display: flex; align-items: center; gap: 12px; }
.destacado-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.destacado-card { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; border: 1px solid var(--border); overflow: hidden; transition: box-shadow .3s; }
.destacado-card:hover { box-shadow: 0 8px 40px rgba(0,0,0,.1); }
.destacado-foto { position: relative; overflow: hidden; }
.destacado-foto-inner { position: absolute; inset: 0; background: linear-gradient(135deg, #1a3a5c 0%, #2c5f8a 50%, #1a2a3c 100%); }
.destacado-foto-inner img { width: 100%; height: 100%; object-fit: cover; object-position: center; position: absolute; inset: 0; }
.destacado-foto-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: rgba(255,255,255,.25); }
.destacado-foto-placeholder svg { width: 44px; height: 44px; }
.destacado-foto-placeholder span { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; }
.destacado-foto::after { content: ''; display: block; padding-top: 72%; }
.destacado-body { padding: 48px 52px; display: flex; flex-direction: column; justify-content: center; background: var(--white); }
.destacado-body .card-badge { margin-bottom: 20px; align-self: flex-start; }
.destacado-body h2 { font-size: 1.95rem; line-height: 1.25; margin-bottom: 18px; color: var(--black); }
.destacado-body h2 a { transition: color .2s; }
.destacado-body h2 a:hover { color: var(--accent); }
.destacado-excerpt { font-size: 0.95rem; color: var(--mid); line-height: 1.75; margin-bottom: 28px; }
.destacado-meta { display: flex; align-items: center; gap: 20px; margin-bottom: 32px; }
.destacado-cta { align-self: flex-start; }

/* ============================
   BLOG: FILTROS
   ============================ */
.filtros-section { padding: 0 0 48px; background: var(--white); }
.filtros-bar { display: flex; gap: 0; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.filtros-bar::-webkit-scrollbar { display: none; }
.filtro-btn { background: none; border: none; cursor: pointer; padding: 14px 22px; font-family: 'Inter', sans-serif; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--light); transition: color .2s; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.filtro-btn:hover { color: var(--dark); }
.filtro-btn.active { color: var(--black); border-bottom-color: var(--black); }

/* ============================
   BLOG: BADGES DE CATEGORÍA
   ============================ */
.card-badge { display: inline-block; padding: 4px 12px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; border-radius: 2px; color: var(--white); }
.badge-inmobiliario { background: #2c5f8a; }
.badge-corporativo  { background: #a07840; }
.badge-civil        { background: #7a3e22; }
.badge-noticias     { background: #2c6e49; }
.badge-tesis        { background: #4a4a8a; }
.badge-procesal     { background: #5c3a6e; }

/* ============================
   BLOG: GRID DE ARTÍCULOS
   ============================ */
.articulos-section { padding: 0 0 96px; background: var(--white); }
.articulos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.articulo-card { border: 1px solid var(--border); background: var(--white); overflow: hidden; transition: box-shadow .3s, border-color .3s; display: flex; flex-direction: column; }
.articulo-card:hover { box-shadow: 0 6px 30px rgba(0,0,0,.09); border-color: #d0c8bc; }
.card-foto-link { display: block; }
.card-foto { position: relative; overflow: hidden; }
.card-foto::after { content: ''; display: block; padding-top: 58%; }
.card-foto-inner { position: absolute; inset: 0; transition: transform .4s ease; }
.articulo-card:hover .card-foto-inner { transform: scale(1.04); }
.card-foto-inner img { width: 100%; height: 100%; object-fit: cover; object-position: center; position: absolute; inset: 0; }
.card-foto-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: rgba(255,255,255,.2); }
.card-foto-placeholder svg { width: 32px; height: 32px; }
.card-foto-placeholder span { font-size: 0.65rem; letter-spacing: 0.08em; text-transform: uppercase; }
.card-badge-wrap { position: absolute; top: 14px; left: 14px; z-index: 1; }
.card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { font-size: 1.22rem; line-height: 1.35; margin-bottom: 10px; color: var(--black); }
.card-body h3 a { transition: color .2s; }
.card-body h3 a:hover { color: var(--accent); }
.card-excerpt { font-size: 0.88rem; color: var(--mid); line-height: 1.65; margin-bottom: 20px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); margin-bottom: 16px; }
.autor-mini { display: flex; align-items: center; gap: 8px; }
.autor-mini-foto { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; object-position: top center; background: var(--border); flex-shrink: 0; }
.autor-mini-foto.placeholder-foto { display: flex; align-items: center; justify-content: center; background: var(--bg-off); border: 1px solid var(--border); font-family: 'EB Garamond', serif; font-size: 0.75rem; font-weight: 600; color: var(--mid); }
.autor-mini span { font-size: 0.78rem; color: var(--dark); font-weight: 500; }
.card-meta-right { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--light); white-space: nowrap; }
.card-sep { color: var(--border); }
.card-link { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--black); transition: color .2s; }
.card-link:hover { color: var(--accent); }
.cta-blog { background: var(--black); padding: 80px 0; text-align: center; }
.cta-blog .section-tag { color: var(--accent); }
.cta-blog h2 { color: var(--white); font-size: 2.2rem; margin-bottom: 16px; }
.cta-blog p { color: rgba(255,255,255,.6); font-size: 0.95rem; max-width: 460px; margin: 0 auto 36px; line-height: 1.75; }

/* ============================
   BLOG ARTÍCULO: HEADER
   ============================ */
.articulo-header { padding: 64px 0 0; background: var(--white); }
.articulo-header-inner { max-width: 740px; }
.articulo-header .card-badge { margin-bottom: 24px; }
.articulo-header h1 { font-size: 2.9rem; line-height: 1.2; margin-bottom: 24px; color: var(--black); }
.articulo-header .resumen { font-size: 1.1rem; color: var(--mid); line-height: 1.75; margin-bottom: 32px; font-style: italic; }
.articulo-meta { display: flex; align-items: center; gap: 24px; padding: 24px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.autor-bloque { display: flex; align-items: center; gap: 12px; }
.autor-foto { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: top center; background: var(--bg-off); }
.autor-info { display: flex; flex-direction: column; gap: 2px; }
.autor-nombre { font-size: 0.88rem; font-weight: 600; color: var(--dark); }
.autor-cargo { font-size: 0.75rem; color: var(--light); }
.meta-sep { width: 1px; height: 32px; background: var(--border); }
.meta-dato { font-size: 0.78rem; color: var(--light); }
.meta-dato strong { display: block; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--light); font-weight: 600; margin-bottom: 2px; }

/* ============================
   BLOG ARTÍCULO: PORTADA
   ============================ */
.articulo-portada { position: relative; overflow: hidden; margin: 48px 0; }
.articulo-portada::after { content: ''; display: block; padding-top: 46%; }
.portada-inner { position: absolute; inset: 0; background: linear-gradient(135deg, #1a3a5c 0%, #2c5f8a 50%, #1a2a3c 100%); }
.portada-inner img { width: 100%; height: 100%; object-fit: cover; object-position: center; position: absolute; inset: 0; }
.portada-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; color: rgba(255,255,255,.22); }
.portada-placeholder svg { width: 52px; height: 52px; }
.portada-placeholder p { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; text-align: center; line-height: 1.6; }

/* ============================
   BLOG ARTÍCULO: CUERPO
   ============================ */
.articulo-layout { display: grid; grid-template-columns: 740px 1fr; gap: 72px; padding-bottom: 80px; align-items: start; }
.articulo-body h2 { font-size: 1.85rem; margin-top: 48px; margin-bottom: 20px; color: var(--black); }
.articulo-body h3 { font-size: 1.35rem; margin-top: 32px; margin-bottom: 14px; color: var(--dark); }
.articulo-body p { font-size: 1.02rem; line-height: 1.85; color: var(--dark); margin-bottom: 20px; }
.articulo-body ul { padding-left: 0; list-style: none; margin-bottom: 24px; display: flex; flex-direction: column; gap: 10px; }
.articulo-body ul li { font-size: 1.02rem; line-height: 1.75; color: var(--dark); padding-left: 20px; position: relative; }
.articulo-body ul li::before { content: '—'; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
.articulo-body strong { font-weight: 600; color: var(--black); }
.articulo-body em { font-style: italic; color: var(--mid); }
.articulo-divider { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.articulo-pie { background: var(--bg-off); border: 1px solid var(--border); padding: 28px 32px; margin-top: 48px; font-size: 0.88rem; font-style: italic; color: var(--mid); line-height: 1.7; }

.cta-articulo { background: var(--black); padding: 36px 40px; margin-top: 48px; }
.cta-articulo p { font-size: 1.05rem; color: rgba(255,255,255,.75); line-height: 1.7; margin-bottom: 20px; }
.cta-articulo p strong { color: var(--white); }
.btn-wa { display: inline-flex; align-items: center; gap: 10px; background: #25D366; color: var(--white); padding: 13px 26px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; transition: background .2s; }
.btn-wa:hover { background: #1eb055; }
.btn-wa svg { width: 18px; height: 18px; fill: #fff; flex-shrink: 0; }

/* ============================
   BLOG ARTÍCULO: SIDEBAR
   ============================ */
.articulo-sidebar { position: sticky; top: 96px; }
.sidebar-box { border: 1px solid var(--border); padding: 28px; margin-bottom: 24px; }
.sidebar-box h4 { font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--light); margin-bottom: 16px; }
.sidebar-autor { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.sidebar-autor img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: top center; }
.sidebar-autor-nombre { font-size: 0.95rem; font-weight: 600; color: var(--black); margin-bottom: 2px; }
.sidebar-autor-cargo { font-size: 0.78rem; color: var(--light); line-height: 1.4; }
.sidebar-box p { font-size: 0.84rem; color: var(--mid); line-height: 1.65; }
.sidebar-categorias { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.sidebar-categorias li a { font-size: 0.82rem; color: var(--mid); transition: color .2s; display: flex; align-items: center; gap: 6px; }
.sidebar-categorias li a:hover { color: var(--black); }
.sidebar-categorias li a::before { content: '→'; color: var(--accent); font-size: 0.75rem; }

/* ============================
   BLOG ARTÍCULO: RELACIONADOS
   ============================ */
.relacionados { padding: 72px 0; background: var(--bg-off); border-top: 1px solid var(--border); }
.relacionados-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 40px; }
.relacionados-header h2 { font-size: 1.8rem; }
.ver-todos { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mid); transition: color .2s; }
.ver-todos:hover { color: var(--black); }
.relacionados-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.rel-card { background: var(--white); border: 1px solid var(--border); overflow: hidden; transition: box-shadow .3s; }
.rel-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.rel-foto { position: relative; overflow: hidden; }
.rel-foto::after { content: ''; display: block; padding-top: 56%; }
.rel-foto-inner { position: absolute; inset: 0; }
.rel-body { padding: 20px 22px 24px; }
.rel-body .card-badge { margin-bottom: 10px; }
.rel-body h3 { font-size: 1.08rem; line-height: 1.35; margin-bottom: 8px; color: var(--black); }
.rel-body h3 a { transition: color .2s; }
.rel-body h3 a:hover { color: var(--accent); }
.rel-meta { font-size: 0.75rem; color: var(--light); margin-top: 12px; }

/* ============================
   FOOTER
   ============================ */
footer {
  background: var(--black);
  color: rgba(255,255,255,.55);
  padding: 60px 0 32px;
  border-top: 3px solid var(--accent);
}
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .logo { color: var(--white); margin-bottom: 16px; }
.footer-brand p { font-size: 0.84rem; line-height: 1.7; max-width: 260px; }
.footer-col h4 { font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.84rem; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; }

/* ============================
   WHATSAPP FLOTANTE
   ============================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 52px; height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  z-index: 200;
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 26px; height: 26px; fill: #fff; }

/* ============================
   WORDPRESS: EDITOR STYLES
   ============================ */
.wp-block-image img { max-width: 100%; height: auto; }
.wp-block-quote { border-left: 3px solid var(--accent); padding: 20px 24px; margin: 28px 0; background: var(--bg-off); font-family: 'EB Garamond', serif; font-size: 1.15rem; font-style: italic; }

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 1100px) {
  .articulo-layout { grid-template-columns: 1fr; gap: 0; }
  .articulo-sidebar { position: static; }
  .relacionados-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-home .container { grid-template-columns: 1fr; }
  .hero-visual { flex-direction: row; flex-wrap: wrap; }
  .hero-stat { flex: 1 1 calc(50% - 8px); }
  .hero-stat-num { font-size: 1.8rem; }
  .intro-grid, .historia-inner, .mision-inner, .cta-inner { grid-template-columns: 1fr; gap: 48px; }
  .cta-final--light .cta-inner { grid-template-columns: 1fr; gap: 48px; }
  .pilares-grid { grid-template-columns: repeat(2, 1fr); }
  .servicios-grid { grid-template-columns: 1fr; }
  .servicios-corp-grid { grid-template-columns: 1fr; }
  .equipo-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonios-grid { grid-template-columns: 1fr; }
  .casos-grid { grid-template-columns: 1fr 1fr; }
  .proceso-steps { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .socio-inner { grid-template-columns: 1fr; }
  .socio-foto { width: 200px; padding-top: 200px; }
  .otras-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .valores-grid { grid-template-columns: 1fr; }
  .dif-grid { grid-template-columns: 1fr 1fr; }
  .fases-grid { grid-template-columns: 1fr; }
  .main-grid { grid-template-columns: 1fr; gap: 40px; }
  .promesa-band .container { flex-direction: column; gap: 16px; align-items: flex-start; }
  .alt-grid { grid-template-columns: 1fr; }
  .articulos-grid { grid-template-columns: repeat(2, 1fr); }
  .destacado-card { grid-template-columns: 1fr; }
  .destacado-foto::after { padding-top: 55%; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .aliados-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar { display: none; }
  .hero { padding: 60px 0; }
  .hero h1 { font-size: 2rem; }
  .hero-bg-text { display: none; }
  .areas-band .container { flex-direction: column; gap: 12px; align-items: center; }
  .areas-band-home .container { flex-direction: column; gap: 16px; align-items: center; }
  .pilares-grid { grid-template-columns: 1fr; }
  .equipo-grid { grid-template-columns: 1fr; }
  .casos-grid { grid-template-columns: 1fr; }
  .proceso-steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .form-col { padding: 32px 24px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .section-title { font-size: 1.9rem; }
  .blog-hero h1 { font-size: 2.4rem; }
  .destacado-body { padding: 28px 24px; }
  .destacado-body h2 { font-size: 1.55rem; }
  .articulos-grid { grid-template-columns: 1fr; }
  .articulo-header h1 { font-size: 2.1rem; }
  .articulo-meta { flex-wrap: wrap; gap: 16px; }
  .meta-sep { display: none; }
  .relacionados-grid { grid-template-columns: 1fr; }
  .dif-grid { grid-template-columns: 1fr; }
  .hero-contact { padding: 50px 0; }
  .hero-contact h1 { font-size: 1.9rem; }
  .container { padding: 0 20px; }
}

@media (max-width: 768px) {
  .topbar { display: none; }
  .areas-band .container,
  .areas-band-home .container { flex-direction: column; gap: 12px; align-items: center; }
}

/* ============================
   TESIS — Hero, layout y visor PDF
   ============================ */
.tesis-hero {
  background: var(--black);
  padding: 72px 0 60px;
  position: relative;
  overflow: hidden;
}
.tesis-hero::before {
  content: 'Tesis';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'EB Garamond', serif;
  font-size: 14rem;
  font-weight: 700;
  color: rgba(255,255,255,.03);
  line-height: 1;
  pointer-events: none;
}
.tesis-hero .container { position: relative; z-index: 1; }
.tesis-hero h1 {
  font-size: 2.6rem;
  color: var(--white);
  line-height: 1.2;
  margin: 16px 0 40px;
  max-width: 780px;
}
.tesis-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 0.82rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 36px;
  align-items: center;
}
.tesis-meta-line strong { color: rgba(255,255,255,.85); font-weight: 500; }
.tesis-meta-sep { color: rgba(255,255,255,.2); }
.tesis-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-tesis-ver {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--white);
  padding: 13px 26px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid var(--accent);
  transition: background .2s, color .2s;
}
.btn-tesis-ver:hover { background: transparent; color: var(--accent); }
.btn-tesis-dl {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  padding: 13px 26px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 2px solid rgba(255,255,255,.3);
  transition: border-color .2s, color .2s;
}
.btn-tesis-dl:hover { border-color: var(--white); }

.tesis-layout {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 64px;
  padding: 80px 0 100px;
  align-items: start;
}
.tesis-body h2 { font-size: 1.6rem; margin-top: 40px; margin-bottom: 16px; }
.tesis-body h3 { font-size: 1.2rem; margin-top: 28px; margin-bottom: 12px; color: var(--dark); }
.tesis-body p { font-size: 0.95rem; line-height: 1.85; color: var(--mid); margin-bottom: 18px; }
.tesis-body ul { list-style: none; padding: 0; margin-bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.tesis-body ul li { font-size: 0.92rem; color: var(--mid); padding-left: 18px; position: relative; line-height: 1.6; }
.tesis-body ul li::before { content: '—'; position: absolute; left: 0; color: var(--accent); font-weight: 600; }
.tesis-toc { background: var(--bg-off); border-left: 3px solid var(--accent); padding: 24px 28px; margin: 32px 0; }
.tesis-toc h4 { font-family: 'Inter', sans-serif; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.tesis-toc ol { padding-left: 16px; display: flex; flex-direction: column; gap: 6px; }
.tesis-toc ol li { font-size: 0.88rem; color: var(--mid); line-height: 1.5; }
.tesis-toc ol li a { color: var(--dark); transition: color .2s; }
.tesis-toc ol li a:hover { color: var(--accent); }

.tesis-visor {
  position: sticky;
  top: 96px;
  text-align: center;
}
.tesis-visor-header {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--light);
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.tesis-visor iframe {
  width: 100%;
  height: 680px;
  border: 1px solid var(--border);
  display: block;
  background: var(--bg-off);
  margin: 0 auto;
}
.tesis-fallback {
  display: none;
  font-size: 0.82rem;
  color: var(--mid);
  margin-top: 16px;
  text-align: center;
  padding: 12px;
  border: 1px solid var(--border);
}
.tesis-dl-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  padding: 15px 32px;
  background: var(--black);
  color: var(--white);
  border: 2px solid var(--black);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: background .2s, color .2s;
  width: 100%;
  box-sizing: border-box;
}
.tesis-dl-link:hover {
  background: var(--white);
  color: var(--black);
}

@media (max-width: 1100px) {
  .tesis-layout { grid-template-columns: 1fr; gap: 48px; }
  .tesis-visor { position: static; max-width: 760px; margin: 0 auto; width: 100%; }
  .tesis-visor iframe { height: 520px; }
  .tesis-visor-header { text-align: center; }
}
@media (max-width: 640px) {
  .tesis-hero h1 { font-size: 1.9rem; }
  .tesis-meta-line { gap: 12px; }
  .tesis-visor iframe { height: 380px; }
  .tesis-layout { padding: 48px 0 64px; }
}
