/* ============================================================
   MARÍA ISABEL SIERRA — LIGHT LUXURY REAL ESTATE
   Design: Christie's / Sotheby's aesthetic
   Colors: White, Navy #1B2B4B, Gold #C4973A
   Fonts: Cormorant Garamond + Inter
   ============================================================ */

/* ── IMPORTS ───────────────────────────────────────────────── */

/* ── CUSTOM PROPERTIES ─────────────────────────────────────── */
:root {
  --navy:       #1B2B4B;
  --navy-light: #243659;
  --gold:       #C4973A;
  --gold-light: #D4A84B;
  --white:      #FFFFFF;
  --bg-soft:    #F8F8F6;
  --bg-grey:    #F2F1EE;
  --text-dark:  #1B2B4B;
  --text-body:  #4A4A5A;
  --text-muted: #5E6272;
  --border:     #E2E0DC;

  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans:  'Inter', system-ui, sans-serif;

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;

  --shadow-sm:  0 2px 12px rgba(27,43,75,0.06);
  --shadow-md:  0 8px 32px rgba(27,43,75,0.10);
  --shadow-lg:  0 20px 60px rgba(27,43,75,0.12);

  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);
  --nav-h:      72px;
}

/* ── RESET ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  color: var(--text-body);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--navy); border-radius: 3px; }

/* ── CONTAINER ─────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── SECTION PADDING ───────────────────────────────────────── */
.section { padding: 96px 0; }

/* ── SECTION LABEL ─────────────────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.section-label::before {
  content: '';
  display: block;
  width: 36px;
  height: 1.5px;
  background: var(--gold);
  flex-shrink: 0;
}

/* ── SECTION TITLE ─────────────────────────────────────────── */
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.section-title em {
  font-style: italic;
  color: var(--gold);
}
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 14px;
  max-width: 540px;
  line-height: 1.7;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 14px 32px;
  border-radius: 50px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: 2px solid var(--navy);
}
.btn-primary:hover {
  background: var(--navy-light);
  box-shadow: 0 8px 24px rgba(27,43,75,0.24);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--navy);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 13px 30px;
  border-radius: 50px;
  border: 2px solid var(--navy);
  transition: all var(--transition);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-gold-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--gold);
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 13px 30px;
  border-radius: 50px;
  border: 2px solid var(--gold);
  transition: all var(--transition);
}
.btn-gold-outline:hover {
  background: var(--gold);
  color: var(--white);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: box-shadow var(--transition);
}
.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(27,43,75,0.10);
  border-bottom-color: transparent;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.nav-logo-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.03em;
}
.nav-logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dark);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.nav-badge span {
  font-weight: 600;
  color: var(--navy);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ══════════════════════════════════════════════════════════════
   HERO — Split layout: left=photo, right=content
══════════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  background: var(--bg-soft);
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: var(--nav-h);
  overflow: hidden;
}

/* Left column: photo */
.hero-photo {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - var(--nav-h));
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 8s ease;
}
.hero-photo:hover img { transform: scale(1.03); }

.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    transparent 70%,
    var(--bg-soft) 100%
  );
  pointer-events: none;
}

.hero-photo-badge {
  position: absolute;
  bottom: 40px;
  left: 32px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(8px);
}
.hero-photo-badge .badge-icon {
  width: 36px;
  height: 36px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1rem;
  flex-shrink: 0;
}
.hero-photo-badge .badge-text {
  display: flex;
  flex-direction: column;
}
.hero-photo-badge .badge-text strong {
  font-size: 0.8rem;
  color: var(--navy);
  font-weight: 600;
}
.hero-photo-badge .badge-text span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Right column: content */
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 64px 64px 56px;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 36px;
  height: 1.5px;
  background: var(--gold);
}

.hero-title {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.hero-title em {
  font-style: italic;
  color: var(--gold);
  display: block;
}

.hero-role {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.hero-divider {
  width: 60px;
  height: 1px;
  background: var(--gold);
  margin-bottom: 28px;
}

.hero-desc {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 40px;
}

/* Stats row */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-bottom: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.hero-stat {
  padding: 20px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; }
.hero-stat-value {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat-value sup {
  font-size: 1rem;
  color: var(--gold);
}
.hero-stat-label {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* CTA buttons */
.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* Brand logos */
.hero-brands {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-brands-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.hero-brand-logos {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.remax-logo {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}
.remax-logo .re { color: #003DA5; }
.remax-logo .slash { color: #DC1C2E; }
.remax-logo .max { color: #DC1C2E; }
.brand-acobir {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
}

/* ══════════════════════════════════════════════════════════════
   SOBRE MÍ — White section, two columns
══════════════════════════════════════════════════════════════ */
.sobre-section {
  background: var(--white);
}
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.sobre-body p {
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 16px;
  font-size: 0.97rem;
}
.sobre-body p:last-child { margin-bottom: 0; }
.sobre-highlights {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sobre-highlight-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  transition: box-shadow var(--transition), transform var(--transition);
}
.sobre-highlight-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}
.sobre-highlight-icon {
  width: 44px;
  height: 44px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.sobre-highlight-text h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.sobre-highlight-text p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   PANAMÁ — DARK navy section
══════════════════════════════════════════════════════════════ */
.panama-section {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.panama-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(196,151,58,0.06);
  pointer-events: none;
}
.panama-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(196,151,58,0.04);
  pointer-events: none;
}
.panama-section .section-label { color: var(--gold); }
.panama-section .section-title { color: var(--white); }
.panama-section .section-subtitle { color: rgba(255,255,255,0.65); }

.panama-header {
  text-align: center;
  margin-bottom: 72px;
}
.panama-header .section-label {
  justify-content: center;
}
.panama-header .section-label::before {
  background: var(--gold);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.pillar-card {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
  position: relative;
}
.pillar-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(196,151,58,0.4);
  transform: translateY(-4px);
}
.pillar-number {
  font-family: var(--serif);
  font-size: 4rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.04em;
}
.pillar-number sup {
  font-size: 1.8rem;
}
.pillar-title {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.2;
}
.pillar-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════
   ASESORÍA — Light grey, 4×2 grid
══════════════════════════════════════════════════════════════ */
.asesoria-section {
  background: var(--bg-soft);
}
.asesoria-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
}
.asesoria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.asesoria-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.asesoria-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}
.asesoria-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(196,151,58,0.3);
}
.asesoria-card:hover::after {
  transform: scaleX(1);
}
.asesoria-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  transition: background var(--transition);
}
.asesoria-card:hover .asesoria-icon {
  background: var(--navy);
}
.asesoria-card h3 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.25;
}
.asesoria-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ══════════════════════════════════════════════════════════════
   TIPOS DE INVERSIÓN — White section
══════════════════════════════════════════════════════════════ */
.tipos-section {
  background: var(--white);
}
.tipos-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 56px;
}
.tipo-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  transition: all var(--transition);
  cursor: default;
}
.tipo-card:hover {
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.tipo-card:hover .tipo-icon { background: rgba(255,255,255,0.15); }
.tipo-card:hover .tipo-name { color: var(--white); }
.tipo-card:hover .tipo-tag { background: rgba(196,151,58,0.2); color: var(--gold-light); }
.tipo-card:hover .tipo-desc { color: rgba(255,255,255,0.65); }
.tipo-icon {
  width: 56px;
  height: 56px;
  background: var(--white);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px;
  transition: background var(--transition);
  box-shadow: var(--shadow-sm);
}
.tipo-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.2;
  transition: color var(--transition);
}
.tipo-tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(196,151,58,0.12);
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
  transition: all var(--transition);
}
.tipo-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
  transition: color var(--transition);
}

/* ══════════════════════════════════════════════════════════════
   PROYECTOS — Light grey, filter + 3-col grid
══════════════════════════════════════════════════════════════ */
.proyectos-section {
  background: var(--bg-grey);
}
.proyectos-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  margin-bottom: 40px;
  gap: 24px;
}
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-btn {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Project card */
.proyecto-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.proyecto-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}
.proyecto-card.hidden { display: none; }

/* Image carousel */
.proyecto-carousel {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-grey);
  flex-shrink: 0;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1);
}
.carousel-track img {
  min-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  flex-shrink: 0;
}

/* Price badge over image */
.precio-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 50px;
  z-index: 2;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
}

/* Category tag over image (bottom left) */
.categoria-tag {
  position: absolute;
  bottom: 44px;
  left: 14px;
  background: rgba(27,43,75,0.82);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
  backdrop-filter: blur(4px);
}

/* Carousel dots */
.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}
.carousel-dot.active {
  background: var(--white);
  width: 18px;
  border-radius: 3px;
}

/* Carousel nav arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--navy);
  cursor: pointer;
  z-index: 3;
  opacity: 0;
  transition: opacity var(--transition);
  border: none;
  box-shadow: var(--shadow-sm);
}
.proyecto-carousel:hover .carousel-arrow { opacity: 1; }
.carousel-arrow.prev { left: 10px; }
.carousel-arrow.next { right: 10px; }

/* Card body */
.proyecto-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.proyecto-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.proyecto-location svg,
.proyecto-location span.pin {
  color: var(--gold);
  font-size: 0.8rem;
}
.proyecto-title {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.2;
}
.proyecto-desc {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
.proyecto-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}
.proyecto-tag {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  background: var(--bg-soft);
}
.proyecto-tag.gold {
  border-color: rgba(196,151,58,0.3);
  color: var(--gold);
  background: rgba(196,151,58,0.08);
}
.proyecto-cta {
  width: 100%;
  text-align: center;
  padding: 12px 20px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background var(--transition), box-shadow var(--transition);
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  display: block;
}
.proyecto-cta:hover {
  background: var(--navy-light);
  box-shadow: 0 4px 16px rgba(27,43,75,0.2);
}

/* ══════════════════════════════════════════════════════════════
   RECONOCIMIENTOS — White section
══════════════════════════════════════════════════════════════ */
.reconocimientos-section {
  background: var(--white);
}
.reconocimientos-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
/* Timeline classes are defined in the override section at the bottom of the file */
.award-content h4 {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.award-content p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.reconocimientos-photo {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.reconocimientos-photo img {
  width: 100%;
  border-radius: var(--radius-lg);
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  box-shadow: var(--shadow-lg);
}
.reconocimientos-photo-caption {
  margin-top: 20px;
  padding: 16px 20px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.reconocimientos-photo-caption strong {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--navy);
  display: block;
  margin-bottom: 4px;
}
.reconocimientos-photo-caption span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════════
   CONTACTO — Navy dark section
══════════════════════════════════════════════════════════════ */
.contacto-section {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.contacto-section::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(196,151,58,0.05);
  pointer-events: none;
}
.contacto-section .section-label { color: var(--gold); }
.contacto-section .section-label::before { background: var(--gold); }
.contacto-section .section-title { color: var(--white); }
.contacto-section .section-subtitle { color: rgba(255,255,255,0.65); }

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: start;
}
.contacto-info {
  color: var(--white);
  padding-top: 8px;
}
.contacto-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.contacto-info-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
}
.contacto-info-icon {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(196,151,58,0.4);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--gold);
  flex-shrink: 0;
}
.contacto-info-text strong {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 4px;
}
.contacto-info-text span {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}
.contacto-info-text a {
  color: rgba(255,255,255,0.8);
  transition: color var(--transition);
}
.contacto-info-text a:hover { color: var(--white); }

.form-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 40px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.2);
}

/* ══════════════════════════════════════════════════════════════
   FOOTER — Navy dark
══════════════════════════════════════════════════════════════ */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 48px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand-name {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 6px;
}
.footer-brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}
.footer-brand-desc {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  max-width: 280px;
}
.footer-col-title {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
}
.footer-bottom .remax-logo { font-size: 0.9rem; }
.footer-license {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-license::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

/* ══════════════════════════════════════════════════════════════
   ANIMATIONS
══════════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.animate-in {
  opacity: 0;
  animation: fadeInUp 0.7s cubic-bezier(0.4,0,0.2,1) forwards;
}
.animate-in.delay-1 { animation-delay: 0.1s; }
.animate-in.delay-2 { animation-delay: 0.2s; }
.animate-in.delay-3 { animation-delay: 0.3s; }
.animate-in.delay-4 { animation-delay: 0.4s; }
.animate-in.delay-5 { animation-delay: 0.5s; }

/* Intersection observer driven animations */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}
[data-animate="left"] {
  transform: translateX(-24px);
}
[data-animate="left"].visible {
  transform: translateX(0);
}
[data-animate="right"] {
  transform: translateX(24px);
}
[data-animate="right"].visible {
  transform: translateX(0);
}
[data-animate="scale"] {
  transform: scale(0.95);
}
[data-animate="scale"].visible {
  transform: scale(1);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Tablet (≤1024px)
══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }
  .hero-content { min-width: 0; }
  .hero-photo {
    min-height: 55vw;
    max-height: 500px;
  }
  .hero-photo-overlay {
    background: linear-gradient(
      to bottom,
      transparent 60%,
      var(--bg-soft) 100%
    );
  }
  .hero-content {
    padding: 48px 40px;
  }

  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .asesoria-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tipos-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .proyectos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sobre-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .reconocimientos-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-badge { display: none; }

  /* Mobile nav */
  .mobile-nav {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    display: none;
    flex-direction: column;
    z-index: 999;
    box-shadow: var(--shadow-md);
  }
  .mobile-nav.open { display: flex; }
  .mobile-nav a {
    padding: 12px 32px;
    font-size: 0.88rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dark);
    border-bottom: 1px solid var(--border);
    transition: background var(--transition), color var(--transition);
  }
  .mobile-nav a:last-child { border-bottom: none; }
  .mobile-nav a:hover { background: var(--bg-soft); color: var(--gold); }

  .asesoria-header { grid-template-columns: 1fr; }
  .proyectos-header { grid-template-columns: 1fr; gap: 16px; }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — Mobile (≤640px)
══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }

  .hero-content { padding: 36px 20px 48px; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .hero-stat-value { font-size: 1.5rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    width: 100%;
    justify-content: center;
  }

  .pillars-grid { grid-template-columns: 1fr; }
  .asesoria-grid { grid-template-columns: 1fr 1fr; }
  .tipos-grid { grid-template-columns: 1fr 1fr; }
  .proyectos-grid { grid-template-columns: 1fr; }
  .filter-bar { justify-content: flex-start; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .form-card { padding: 24px 20px; }
  .hero-photo-badge { display: none; }
}

/* ── ADDITIONAL ALIASES & MISSING CLASSES ──────────────────── */

/* Carousel: aliases for .dot → .carousel-dot */
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  border: none; cursor: pointer; padding: 0;
  transition: all 0.3s ease;
}
.dot.active { background: #fff; width: 20px; border-radius: 3px; }
.dot:hover { background: rgba(255,255,255,0.9); }

/* .carousel inside .proyecto-img-wrap */
.proyecto-img-wrap .carousel {
  position: relative; overflow: hidden;
  width: 100%; height: 100%;
}
.proyecto-img-wrap { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-grey); }
.proyecto-img-wrap .carousel-track { display: flex; height: 100%; transition: transform 0.42s cubic-bezier(0.4,0,0.2,1); }
.proyecto-img-wrap .carousel-track img { min-width: 100%; height: 100%; object-fit: cover; object-position: center; flex-shrink: 0; }
.proyecto-img-wrap .carousel-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; z-index: 3; }

/* ROI badge (top-right) */
.roi-badge {
  position: absolute; top: 14px; right: 14px;
  background: var(--gold); color: #fff;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 20px; z-index: 2;
}

/* Category tag alias */
.cat-tag {
  position: absolute; bottom: 42px; left: 14px;
  background: rgba(27,43,75,0.85); color: #fff;
  font-size: 0.65rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 4px; z-index: 2;
  backdrop-filter: blur(4px);
}

/* Featured ribbon */
.proyecto-featured-ribbon {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), #a87920);
  color: #fff; font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 20px; z-index: 4;
  box-shadow: 0 2px 12px rgba(196,151,58,0.35);
  white-space: nowrap;
}

/* Scroll animation classes */
.animate-on-scroll {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.animate-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

/* Hero-acobir note */
.hero-acobir {
  font-size: 0.72rem; color: var(--text-muted);
  letter-spacing: 0.04em; margin-top: 20px;
}

/* Sobre awards strip */
.sobre-awards-strip {
  display: flex; align-items: center; gap: 0;
  background: var(--navy); border-radius: 8px;
  padding: 14px 20px; margin-top: 20px;
}
.sa-item { display: flex; flex-direction: column; gap: 2px; flex: 1; text-align: center; }
.sa-year { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; color: var(--gold); }
.sa-award { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.7); }
.sa-sep { width: 1px; height: 36px; background: rgba(255,255,255,0.2); margin: 0 16px; }

/* Sobre img */
.sobre-img-wrap { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 3/4; }
.sobre-img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.6s ease; }
.sobre-img-wrap:hover .sobre-img { transform: scale(1.03); }

/* Filosofia block */
.filosofia-block {
  display: flex; gap: 18px; align-items: flex-start;
  margin: 28px 0; padding: 20px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.filosofia-bar { width: 3px; flex-shrink: 0; background: linear-gradient(to bottom, var(--gold), transparent); border-radius: 2px; min-height: 60px; }
.filosofia-quote { font-family: var(--serif); font-size: 1.45rem; font-style: italic; color: var(--navy); line-height: 1.35; margin-bottom: 8px; }
.filosofia-sub { font-size: 0.88rem; color: var(--text-body); line-height: 1.7; }

/* Por qué list */
.porque-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.porque-item { display: flex; align-items: flex-start; gap: 8px; font-size: 0.87rem; color: var(--text-body); line-height: 1.5; }
.pq-check { width: 14px; height: 14px; color: var(--gold); margin-top: 3px; flex-shrink: 0; }

/* Panama section */
.panama-section { position: relative; padding: 100px 0; overflow: hidden; }
.panama-bg { position: absolute; inset: 0; z-index: 0; }
.panama-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.2) saturate(0.6); }
.panama-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(27,43,75,0.92) 0%, rgba(27,43,75,0.82) 100%); z-index: 1; }
.panama-section .container { position: relative; z-index: 2; }
.panama-intro { font-size: 1rem; color: rgba(255,255,255,0.75); max-width: 680px; line-height: 1.8; margin-bottom: 56px; }
.panama-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillar-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: 32px 28px; transition: background 0.3s, border-color 0.3s; }
.pillar-card:hover { background: rgba(255,255,255,0.1); }
.pillar-num { font-family: var(--serif); font-size: 2.5rem; font-weight: 300; color: var(--gold); opacity: 0.6; line-height: 1; margin-bottom: 14px; }
.pillar-card h3 { font-family: var(--serif); font-size: 1.15rem; font-weight: 500; color: #fff; margin-bottom: 8px; }
.pillar-card p { font-size: 0.85rem; color: rgba(255,255,255,0.65); line-height: 1.7; }

/* Feature tags in project cards */
.ftag {
  display: inline-block;
  font-size: 0.68rem; font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 4px;
}

/* Acobir card */
.acobir-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 10px; padding: 18px 20px; margin-top: 28px;
}
.acobir-logo-circle {
  width: 56px; height: 56px; border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem; font-weight: 800; letter-spacing: 0.08em;
  color: var(--gold); flex-shrink: 0; text-align: center;
}
.acobir-card-text { display: flex; flex-direction: column; gap: 2px; }
.acobir-card-text strong { font-size: 0.88rem; color: var(--text-dark); font-weight: 600; }
.acobir-card-text span { font-size: 0.78rem; color: var(--text-muted); }
.lic-number { color: var(--gold) !important; font-weight: 600 !important; }

/* Reconocimientos */
.reconoc-grid { display: grid; grid-template-columns: 1fr 380px; gap: 72px; align-items: start; }
.reconoc-text { font-size: 0.97rem; color: var(--text-body); line-height: 1.8; margin-bottom: 36px; }
.awards-timeline { display: flex; flex-direction: column; }
.award-item { display: flex; align-items: center; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--border); transition: padding-left 0.3s; }
.award-item:last-child { border-bottom: none; }
.award-item:hover { padding-left: 8px; }
.award-year { font-family: var(--serif); font-size: 1.4rem; font-weight: 300; color: var(--text-muted); min-width: 52px; }
.award-item.highlight .award-year { color: var(--gold); font-weight: 500; }
.award-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-muted);
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.award-item.highlight .award-icon-wrap {
  background: rgba(196, 151, 58, 0.1);
  border-color: rgba(196, 151, 58, 0.3);
  color: var(--gold);
}
.award-icon {
  width: 18px;
  height: 18px;
}
.award-info h4 { font-family: var(--serif); font-size: 1.1rem; font-weight: 500; color: var(--text-dark); }
.award-item.highlight .award-info h4 { color: var(--navy); }
.award-info span { font-size: 0.78rem; color: var(--text-muted); }
.reconoc-photo-col {}
.reconoc-photo-frame { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); position: relative; }
.reconoc-photo { width: 100%; height: 480px; object-fit: cover; object-position: top center; }
.reconoc-photo-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 24px; background: linear-gradient(to top, rgba(27,43,75,0.9), transparent); display: flex; flex-direction: column; gap: 4px; }
.rpo-name { font-size: 1rem; font-weight: 600; color: #fff; }
.rpo-award { font-size: 0.78rem; color: var(--gold); }

/* Contacto section */
.contacto-section { background: var(--navy); }
.contacto-grid { display: grid; grid-template-columns: 1fr 520px; gap: 72px; align-items: start; }
.contacto-desc { font-size: 1rem; color: rgba(255,255,255,0.75); line-height: 1.8; margin-bottom: 32px; }
.contacto-highlights { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.ch-item { display: flex; align-items: center; gap: 12px; font-size: 0.92rem; color: rgba(255,255,255,0.85); }
.ch-item svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }
.contacto-foto { display: flex; align-items: center; gap: 14px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); }
.contacto-advisor-img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--gold); flex-shrink: 0; }
.contacto-advisor-info { display: flex; flex-direction: column; gap: 2px; }
.contacto-advisor-info strong { font-size: 0.9rem; color: #fff; }
.contacto-advisor-info span { font-size: 0.78rem; color: rgba(255,255,255,0.6); }
.form-card { background: #fff; border-radius: var(--radius-lg); padding: 36px; }
.form-title { font-family: var(--serif); font-size: 1.5rem; font-weight: 500; color: var(--navy); margin-bottom: 6px; }
.form-sub { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 20px; }
.form-wrap { width: 100%; }

/* Footer extras */
.footer-remax-logo { display: flex; align-items: baseline; gap: 0; font-family: var(--sans); font-size: 1.4rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.footer-remax-logo .fr { color: var(--white); }
.footer-remax-logo .fs { color: var(--white); font-weight: 900; margin: 0 1px; }
.footer-remax-logo .fm { color: var(--white); }
.footer-name { font-family: var(--serif); font-size: 1.2rem; font-weight: 500; color: rgba(255,255,255,0.95); margin-bottom: 2px; }
.footer-role { font-size: 0.72rem; color: var(--gold); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
.footer-desc { font-size: 0.82rem; color: rgba(255,255,255,0.5); line-height: 1.7; margin-bottom: 12px; }
.footer-lic { font-size: 0.72rem; color: var(--gold); font-weight: 500; letter-spacing: 0.04em; }
.footer-location { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.footer-location svg { width: 14px; height: 14px; color: var(--gold); flex-shrink: 0; }
.footer-cta-btn { display: inline-block; background: var(--gold); color: #fff; font-size: 0.82rem; font-weight: 700; padding: 10px 20px; border-radius: 4px; letter-spacing: 0.04em; transition: all 0.3s; }
.footer-cta-btn:hover { background: var(--gold-light); transform: translateY(-1px); }

/* Active nav link */
.nav-link.active-link { color: var(--gold); }

/* Responsive patches */
@media (max-width: 1024px) {
  .reconoc-grid { grid-template-columns: 1fr 300px; gap: 48px; }
  .contacto-grid { grid-template-columns: 1fr 440px; gap: 48px; }
  .panama-pillars { grid-template-columns: repeat(2, 1fr); }
  .porque-list { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .reconoc-grid { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; }
  .porque-list { grid-template-columns: 1fr 1fr; }
  .pillar-card { padding: 24px 20px; }
}
@media (max-width: 640px) {
  .panama-pillars { grid-template-columns: 1fr; }
  .sobre-awards-strip { flex-direction: column; align-items: flex-start; gap: 10px; }
  .sa-sep { display: none; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ═══════════════════════════════════════════════════════════════
   QA FIX PATCH — v2
   Fixes: navbar, buttons, sobre-mi, panama, proyectos, footer
═══════════════════════════════════════════════════════════════ */

/* ── NAVBAR OVERHAUL ─────────────────────────────────────────── */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
}
.remax-text-logo {
  display: flex;
  align-items: baseline;
  gap: 0;
  font-family: var(--sans);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  line-height: 1;
}
.remax-text-logo .r { color: var(--navy); }
.remax-text-logo .slash { color: var(--navy); font-weight: 900; }
.remax-text-logo .max { color: var(--navy); }
.remax-sub {
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-left: 8px;
  align-self: center;
}
/* nav-links override: proper layout, remove the old .container usage */
.navbar .nav-inner .nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links li { list-style: none; }
.nav-links .nav-link {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
  text-decoration: none;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.25s;
}
.nav-links .nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1.5px;
  background: var(--gold);
  transition: width 0.25s;
}
.nav-links .nav-link:hover { color: var(--gold); }
.nav-links .nav-link:hover::after { width: 100%; }
/* CTA button in nav */
.nav-links .nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 0.72rem !important;
  letter-spacing: 0.06em;
  transition: background 0.25s, box-shadow 0.25s;
  text-transform: uppercase;
  font-weight: 600;
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { background: var(--navy-light); box-shadow: 0 4px 12px rgba(27,43,75,0.22); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 1px;
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO BUTTONS — Smaller, more refined ────────────────────── */
.hero-actions .btn-primary,
.hero-actions .btn.btn-primary {
  font-size: 0.78rem !important;
  padding: 11px 24px !important;
  letter-spacing: 0.08em !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
}
.hero-actions .btn-outline,
.hero-actions .btn.btn-outline {
  font-size: 0.78rem !important;
  padding: 10px 22px !important;
  letter-spacing: 0.08em !important;
  border-radius: 4px !important;
  font-weight: 500 !important;
}
.hero-actions .btn svg {
  width: 14px !important;
  height: 14px !important;
}

/* ── SOBRE MÍ — Simplified, more spacious ────────────────────── */
.sobre-text p:nth-child(2),
.sobre-text p:nth-child(3) {
  display: none; /* hide paragraphs 2 & 3 — simplified */
}
.sobre-text p:first-child {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-body);
}
.sobre-broker-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--gold);
  padding: 10px 16px;
  border-radius: 6px;
  margin: 20px 0;
  font-size: 0.82rem;
  color: var(--text-dark);
  font-weight: 500;
}
.sobre-broker-badge span.badge-title {
  font-weight: 700;
  color: var(--navy);
}

/* ── PANAMÁ SECTION — More luxury & dynamic ──────────────────── */
.panama-section .container {
  position: relative; z-index: 2;
}
/* numbered stat grid replacing simple pillar cards */
.panama-stats-row {
  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);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 48px;
}
.panama-stat-item {
  padding: 28px 24px;
  text-align: center;
  background: rgba(255,255,255,0.03);
  transition: background 0.3s;
}
.panama-stat-item:hover { background: rgba(255,255,255,0.07); }
.panama-stat-val {
  font-family: var(--serif);
  font-size: 2.6rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}
.panama-stat-desc {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
/* pillar cards — refined */
.pillar-card {
  position: relative;
  overflow: hidden;
  border-left: 2px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.pillar-card:hover { border-left-color: var(--gold); }
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(196,151,58,0.4), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.pillar-card:hover::before { opacity: 1; }

/* ── PROYECTOS — Spacing & location icon fix ─────────────────── */
.proyectos-section .section-label { margin-bottom: 12px; }
.proyectos-section .section-title { margin-bottom: 8px; }

/* section-intro shared style */
.section-intro {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 36px;
}

/* filter bar */
.proyectos-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* Fix location SVG size — was rendering too large */
.proyecto-location svg {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px;
  color: var(--gold) !important;
  flex-shrink: 0;
}
.proyecto-location span {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Card image area with proper aspect ratio */
.proyecto-img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-grey);
}
.proyecto-img-wrap .carousel {
  position: absolute;
  inset: 0;
}

/* Arrow buttons on carousel — always show subtle, full reveal on hover */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  opacity: 0;
  transition: opacity 0.25s, background 0.2s;
}
.carousel-btn svg { width: 14px; height: 14px; }
.proyecto-img-wrap:hover .carousel-btn { opacity: 1; }
.carousel-btn:hover { background: white; }
.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* project features tags fix */
.proyecto-features {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

/* btn-proyecto fix */
.btn-proyecto {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px 16px;
  background: var(--navy);
  color: var(--white);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: background 0.25s, box-shadow 0.25s;
  margin-top: auto;
}
.btn-proyecto:hover {
  background: var(--navy-light);
  box-shadow: 0 4px 14px rgba(27,43,75,0.2);
}

/* proyecto-body spacing */
.proyecto-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
}
.proyecto-title {
  font-size: 1.1rem;
  margin-bottom: 8px;
  line-height: 1.25;
}
.proyecto-desc {
  font-size: 0.8rem;
  line-height: 1.6;
  margin-bottom: 12px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.proyecto-location { margin-bottom: 8px; }

/* featured ribbon fix position */
.proyecto-featured-ribbon {
  top: 10px !important;
  font-size: 0.6rem !important;
}

/* ── FOOTER FIX — Proper grid layout ─────────────────────────── */
.footer .container { width: 100%; max-width: 1200px; }
.footer-grid {
  display: grid !important;
  grid-template-columns: 2fr 1fr 1fr 1fr !important;
  gap: 48px !important;
  margin-bottom: 40px;
  align-items: start;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-col ul li a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
  text-decoration: none;
}
.footer-col ul li a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
}
.footer-legal {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.3);
}

/* ── MOBILE NAV ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-inner .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 32px;
    gap: 20px;
    box-shadow: 0 8px 32px rgba(27,43,75,0.1);
    transform: translateY(-120%);
    transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
    z-index: 999;
  }
  .nav-inner .nav-links.open { transform: translateY(0); }
  .nav-links .nav-link { font-size: 0.85rem; }
  .nav-links .nav-cta { padding: 10px 20px !important; }
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
  }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr !important; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
}


/* ── STACKED BADGES SYSTEM — Luxury QA ────────────────────── */
.proyecto-badges-top {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  z-index: 10;
}
.proyecto-badges-top > * {
  position: static !important;
  transform: none !important;
  margin: 0 !important;
}
.proyecto-badges-top .precio-badge {
  font-size: 0.82rem;
  padding: 5px 12px;
}
.proyecto-badges-top .roi-badge {
  font-size: 0.65rem;
  padding: 4px 10px;
}
.proyecto-badges-top .proyecto-featured-ribbon {
  display: inline-block;
  background: linear-gradient(135deg, var(--gold), #a87920);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(196,151,58,0.3);
  white-space: nowrap;
}

/* ── CRO: nota bajo el CTA del hero ───────────────────────── */
.hero-note {
  margin-top: 14px;
  font-size: .875rem;
  color: var(--text-muted);
}

/* ── CRO: barra fija en móvil ─────────────────────────────── */
.sticky-cta { display: none; }

@media (max-width: 640px) {
  /* Primera pantalla: foto más baja y el botón antes que las cifras */
  /* Foto con torso visible y solo un fundido corto al final */
  .hero-photo { min-height: 0; height: 50vh; max-height: 420px; }
  .hero-photo img { object-position: center 12%; }
  .hero-photo-overlay { background: linear-gradient(to bottom, transparent 82%, var(--bg-soft) 100%); }
  .hero-content { padding-top: 24px; }
  .hero-divider, .hero-acobir { display: none; }
  .hero-desc { margin-bottom: 20px; }
  .hero-actions { order: 1; margin-bottom: 0; }
  .hero-note { order: 2; }
  .hero-stats { order: 3; margin: 28px 0 0; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-stat { min-width: 0; padding-left: 8px; padding-right: 8px; }
  .hero-stat-value { font-size: 1.25rem; }

  .panama-stats-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .panama-stat-item { min-width: 0; padding: 20px 8px; }

  .sticky-cta {
    display: block;
    position: fixed;
    inset: auto 0 0 0;
    z-index: 900;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid var(--border);
    transform: translateY(110%);
    transition: transform .35s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .sticky-cta.is-visible { transform: none; }
  .sticky-cta .btn { width: 100%; justify-content: center; }
  .footer { padding-bottom: 96px; }
}

/* ── CRO: proyectos más limpios y estructura más corta ───── */
.proyecto-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: none;
}

/* Desktop: los dos proyectos premium en una tarjeta ancha (3 + 1/2 + 2/1, sin huecos) */
@media (min-width: 1025px) {
  .proyecto-featured { grid-column: span 2; flex-direction: row; }
  .proyecto-featured .proyecto-img-wrap { flex: 0 0 58%; aspect-ratio: auto; min-height: 320px; }
  .proyecto-featured .proyecto-body { justify-content: center; padding: 32px; }
}

@media (max-width: 1024px) and (min-width: 641px) {
  .panama-pillars { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .proyectos-grid { gap: 16px; }
  .proyecto-body { padding: 16px 18px 18px; }
}

/* ── CRO: header con logo oficial y un solo CTA ───────────── */
.nav-logo-img { width: auto; height: 42px; }
.nav-solo-cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-size: .875rem;
  font-weight: 600;
  transition: background var(--transition);
}
.nav-solo-cta:hover { background: var(--navy-light); }

/* ── CRO: titular de beneficio ────────────────────────────── */
.hero-title { font-size: clamp(2.2rem, 3.6vw, 3.4rem); max-width: 15ch; }
.hero-title em { font-style: normal; color: var(--gold); display: inline; }
.hero-role { font-style: normal; font-family: var(--sans); font-size: .95rem; font-weight: 500; color: var(--navy); }

/* ── CRO: CTA al final de una sección ─────────────────────── */
.section-cta { margin-top: 40px; text-align: center; }

/* ── CRO: preguntas frecuentes ────────────────────────────── */
.faq-section { background: var(--white); }
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: start;
}
.faq-list details { border-top: 1px solid var(--border); }
.faq-list details:last-child { border-bottom: 1px solid var(--border); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--navy);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .3s ease;
}
.faq-list details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq-list details p { padding: 0 0 22px; color: var(--text-body); line-height: 1.7; max-width: 62ch; }

.footer-logo-img { width: auto; height: 48px; margin-bottom: 10px; }

@media (max-width: 900px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 640px) {
  .nav-logo-img { height: 34px; }
  .nav-solo-cta { min-height: 38px; padding: 0 14px; font-size: .8125rem; }
  .hero-title { font-size: 1.9rem; }
  .hero-badge { margin-bottom: 12px; }
}

/* ══════════════════════════════════════════════════════════════
   CRO de estructura (sin cambios de texto)
══════════════════════════════════════════════════════════════ */

/* Hero: botones antes de las cifras en todos los tamaños */
.hero-actions { order: 1; margin-bottom: 0; }
.hero-note { order: 2; }
.hero-stats { order: 3; margin: 32px 0 0; }

/* Desktop: texto a la izquierda (se lee primero), foto a la derecha */
@media (min-width: 1025px) {
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .hero-photo { order: 2; }
  .hero-content { order: 1; padding: 64px 56px 64px max(40px, calc((100vw - 1200px) / 2)); }
  .hero-photo-overlay { background: linear-gradient(to right, var(--bg-soft) 0%, transparent 22%); }
}

/* Sobre mí más compacto */
@media (min-width: 1025px) {
  .sobre-grid { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 64px; align-items: center; }
}

@media (max-width: 640px) {
  /* Proyectos: fila deslizable con la siguiente tarjeta asomándose */
  .proyectos-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -20px;
    padding: 4px 20px 16px;
    scrollbar-width: none;
  }
  .proyectos-grid::-webkit-scrollbar { display: none; }
  .proyecto-card { flex: 0 0 84%; scroll-snap-align: center; }
  /* Las tarjetas que se asoman por el costado no deben quedar invisibles */
  .proyectos-grid .animate-on-scroll { opacity: 1; transform: none; }
  .proyecto-img-wrap .carousel-btn,
  .proyecto-img-wrap .carousel-dots { display: none; }

  /* Sobre mí: foto horizontal para no ocupar una pantalla entera */
  .sobre-img-wrap { aspect-ratio: 4 / 3; }

  /* Contacto: el formulario va primero */
  .contacto-form-col { order: -1; }
  .contacto-grid { display: flex; flex-direction: column; gap: 32px; }
}
