/* ==========================================================================
   COLEINSA - CONSULTORA LEGAL E INMOBILIARIA SANTACRUZ
   Design System & Premium Architecture Stylesheet
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Cinzel:wght@500;600;700&display=swap');

:root {
  /* Brand Core Palette */
  --brand-teal: #0a5d7b;
  --brand-teal-light: #147a9f;
  --brand-teal-dark: #064359;
  --brand-cyan: #1ca1d2;
  --brand-cyan-light: #52c2ea;
  --brand-cyan-glow: rgba(28, 161, 210, 0.25);
  
  --brand-gold: #c5a880;
  --brand-gold-light: #e5cdad;
  --brand-gold-glow: rgba(197, 168, 128, 0.2);

  /* Light Theme (Default) */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-glass: rgba(255, 255, 255, 0.85);
  --bg-elevated: #ffffff;
  --bg-muted: #f1f5f9;
  --bg-alt: #edf4f8;

  --text-main: #061922;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-inverse: #ffffff;

  --border-subtle: #e2e8f0;
  --border-glass: rgba(226, 232, 240, 0.8);
  --border-accent: rgba(28, 161, 210, 0.3);

  --shadow-sm: 0 2px 8px rgba(6, 25, 34, 0.04);
  --shadow-md: 0 12px 30px -10px rgba(6, 25, 34, 0.08);
  --shadow-lg: 0 24px 50px -15px rgba(6, 25, 34, 0.12);
  --shadow-glow: 0 0 25px rgba(28, 161, 210, 0.25);

  --nav-bg: rgba(255, 255, 255, 0.9);
  --footer-bg: #04141d;
  --footer-text: #94a3b8;

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'Cinzel', serif;
}

[data-theme="dark"] {
  --bg-body: #030d12;
  --bg-surface: #071822;
  --bg-surface-glass: rgba(7, 24, 34, 0.85);
  --bg-elevated: #0d2330;
  --bg-muted: #0b1e2a;
  --bg-alt: #05141c;

  --text-main: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --text-inverse: #061922;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(28, 161, 210, 0.15);
  --border-accent: rgba(28, 161, 210, 0.35);

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 24px 50px -15px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 30px rgba(28, 161, 210, 0.35);

  --nav-bg: rgba(3, 13, 18, 0.88);
  --footer-bg: #02080c;
  --footer-text: #94a3b8;
}

/* ==========================================================================
   Base & Resets
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  outline: none;
  border: none;
  background: none;
}

button {
  cursor: pointer;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
  background: var(--brand-teal);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-cyan);
}

/* Scroll Progress Indicator */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-teal), var(--brand-cyan), var(--brand-gold));
  z-index: 1000;
  width: 0%;
  transition: width 0.1s ease-out;
}

/* Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.container-wide {
  max-width: 1440px;
}

.container-narrow {
  max-width: 900px;
}

/* Typography Helpers */
.font-serif {
  font-family: var(--font-serif);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-teal-light);
  padding: 0.35rem 0.9rem;
  background: rgba(28, 161, 210, 0.08);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

[data-theme="dark"] .section-tag {
  color: var(--brand-cyan-light);
  background: rgba(28, 161, 210, 0.12);
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 1rem;
  letter-spacing: -0.025em;
}

.section-desc {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 3rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--brand-teal-light), var(--brand-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, var(--brand-gold), #ffdca8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Buttons & CTAs
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-weight: 600;
  font-size: 0.9375rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-teal-light));
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(10, 93, 123, 0.35);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-teal-light), var(--brand-cyan));
  box-shadow: 0 8px 25px rgba(28, 161, 210, 0.45);
  transform: translateY(-2px);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--brand-cyan);
  background: var(--bg-muted);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background: transparent;
  color: var(--text-main);
  border: 1px solid transparent;
}

.btn-ghost:hover {
  background: rgba(28, 161, 210, 0.08);
  color: var(--brand-cyan);
}

.btn-outline {
  border: 1px solid var(--brand-teal);
  color: var(--brand-teal-light);
}

.btn-outline:hover {
  background: var(--brand-teal);
  color: #ffffff;
}

.btn-gold {
  background: linear-gradient(135deg, var(--brand-gold), #b39266);
  color: #04141d;
  font-weight: 700;
  box-shadow: 0 4px 18px var(--brand-gold-glow);
}

.btn-gold:hover {
  background: linear-gradient(135deg, var(--brand-gold-light), var(--brand-gold));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(197, 168, 128, 0.4);
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  transition: all var(--transition-normal);
  padding: 1.25rem 0;
}

.site-header.scrolled {
  padding: 0.75rem 0;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 950;
}

.brand-logo img {
  height: 46px;
  width: auto;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(10, 93, 123, 0.2);
  transition: transform var(--transition-fast);
}

.brand-logo:hover img {
  transform: scale(1.05);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-main);
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-teal-light);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.4rem 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-cyan);
  transition: width var(--transition-normal);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-main);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-muted);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--brand-cyan);
  border-color: var(--brand-cyan);
  transform: rotate(15deg);
}

.theme-toggle-btn .sun-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle-btn .sun-icon {
  display: block;
}

[data-theme="dark"] .theme-toggle-btn .moon-icon {
  display: none;
}

/* Mobile Hamburger */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  z-index: 950;
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
  overflow: hidden;
}

.hero-bg-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-bg-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
  transition: transform 10s ease-out;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(3, 13, 18, 0.75) 0%,
    rgba(3, 13, 18, 0.6) 40%,
    rgba(3, 13, 18, 0.95) 100%
  );
}

[data-theme="light"] .hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.7) 40%,
    rgba(248, 250, 252, 0.98) 100%
  );
}

.hero-content {
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  background: rgba(10, 93, 123, 0.2);
  border: 1px solid rgba(28, 161, 210, 0.4);
  backdrop-filter: blur(10px);
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand-cyan);
}

.hero-badge .pulse-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
  100% { transform: scale(0.95); opacity: 1; }
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  color: var(--text-body);
  margin-bottom: 2.5rem;
  max-width: 700px;
  line-height: 1.6;
}

[data-theme="dark"] .hero-subtitle {
  color: #cbd5e1;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

/* Video Teaser Reserved Box */
.video-teaser-card {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 1.25rem 0.6rem 0.6rem;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.video-teaser-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-cyan);
  box-shadow: var(--shadow-glow);
}

.video-play-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(28, 161, 210, 0.4);
}

.video-info {
  display: flex;
  flex-direction: column;
}

.video-info strong {
  font-size: 0.875rem;
  color: var(--text-main);
}

.video-info span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Quick Search / Filter Bar (Unified Glass Panel) */
.hero-search-box {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  box-shadow: 0 25px 60px -15px rgba(6, 25, 34, 0.16), 0 0 0 1px rgba(226, 232, 240, 0.8);
  width: 100%;
  max-width: 1180px;
  margin-top: 3rem;
  position: relative;
  z-index: 20;
}

[data-theme="dark"] .hero-search-box {
  background: rgba(7, 24, 34, 0.94);
  border: 1px solid rgba(28, 161, 210, 0.28);
  box-shadow: 0 30px 70px -15px rgba(0, 0, 0, 0.8), 0 0 35px rgba(28, 161, 210, 0.15), 0 0 0 1px rgba(28, 161, 210, 0.2);
}

.search-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 1.25rem;
}

.search-tab {
  padding: 0.6rem 1.4rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  cursor: pointer;
  white-space: nowrap;
}

.search-tab:hover {
  color: var(--text-main);
  border-color: var(--brand-cyan);
  transform: translateY(-1px);
}

.search-tab.active {
  background: var(--brand-teal);
  color: #ffffff;
  border-color: var(--brand-teal);
  box-shadow: 0 4px 14px rgba(10, 93, 123, 0.35);
}

[data-theme="dark"] .search-tab.active {
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-cyan));
  box-shadow: 0 4px 16px rgba(28, 161, 210, 0.4);
}

.search-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 56px;
  gap: 1.25rem;
  align-items: flex-end;
}

.search-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.search-field label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.search-field select,
.search-field input {
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.9375rem;
  height: 50px;
  width: 100%;
  transition: all var(--transition-fast);
}

.search-field select:focus,
.search-field input:focus {
  border-color: var(--brand-cyan);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--brand-cyan-glow);
}

.search-btn-col {
  display: flex;
  align-items: flex-end;
  height: 100%;
}

.search-icon-btn {
  width: 56px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand-teal), var(--brand-cyan));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(10, 93, 123, 0.35);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  padding: 0;
  flex-shrink: 0;
}

.search-icon-btn:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 10px 25px rgba(28, 161, 210, 0.5);
  background: linear-gradient(135deg, var(--brand-teal-light), var(--brand-cyan));
}

.search-icon-btn svg {
  transition: transform var(--transition-fast);
}

.search-icon-btn:hover svg {
  transform: scale(1.15);
}

.search-btn-label {
  display: none;
}

.btn-catalog-all {
  padding: 1.1rem 2.8rem;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

/* ==========================================================================
   Metrics & Counter Bar
   ========================================================================== */

.metrics-strip {
  position: relative;
  margin-top: -3rem;
  z-index: 10;
  padding-bottom: 3rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: var(--bg-surface-glass);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.5rem;
  box-shadow: var(--shadow-lg);
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
}

.metric-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: var(--border-subtle);
}

.metric-value-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  margin-bottom: 0.4rem;
}

.metric-number {
  font-size: clamp(2.2rem, 3vw, 3rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.metric-suffix {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brand-cyan);
}

.metric-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.metric-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Section: Compromiso & Identidad (About / Heritage)
   ========================================================================== */

.section-about {
  padding: 6rem 0;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4.5rem;
  align-items: center;
}

.about-images-composition {
  position: relative;
}

.about-img-main {
  width: 90%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  height: 480px;
}

.about-img-floating {
  position: absolute;
  bottom: -30px;
  right: 0;
  width: 55%;
  height: 280px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 6px solid var(--bg-surface);
  box-shadow: var(--shadow-lg);
}

.about-badge-seal {
  position: absolute;
  top: -20px;
  left: -20px;
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.seal-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(197, 168, 128, 0.15);
  color: var(--brand-gold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.seal-text strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--text-main);
}

.seal-text span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.about-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
  width: 100%;
}

.highlight-box {
  padding: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.highlight-box:hover {
  border-color: var(--brand-cyan);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.highlight-icon {
  color: var(--brand-teal-light);
  margin-bottom: 0.75rem;
}

.highlight-box h4 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.highlight-box p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.about-actions-group {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.legal-actions-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   Section: Servicios Inmobiliarios Integrales
   ========================================================================== */

.section-services {
  padding: 6rem 0;
  background: var(--bg-alt);
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
}

.service-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg);
}

.service-img-wrap {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.service-card:hover .service-img-wrap img {
  transform: scale(1.08);
}

.service-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(6, 25, 34, 0.75);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.service-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-icon-pill {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(28, 161, 210, 0.1);
  color: var(--brand-teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all var(--transition-fast);
}

.service-card:hover .service-icon-pill {
  background: var(--brand-teal);
  color: #ffffff;
}

.service-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-features-list {
  list-style: none;
  margin-bottom: 1.5rem;
}

.service-features-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--text-body);
  margin-bottom: 0.4rem;
}

.service-features-list li svg {
  color: var(--brand-cyan);
  flex-shrink: 0;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--brand-teal-light);
  transition: gap var(--transition-fast);
}

.service-card:hover .service-link {
  color: var(--brand-cyan);
  gap: 0.75rem;
}

/* Service Legal Callout Banner */
.legal-banner {
  margin-top: 4rem;
  background: linear-gradient(135deg, #052636, #093f54);
  border-radius: var(--radius-lg);
  padding: 3rem;
  color: #ffffff;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3rem;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.legal-banner::before {
  content: '';
  position: absolute;
  right: -50px;
  bottom: -50px;
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(28, 161, 210, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.legal-content h3 {
  color: #ffffff;
  font-size: 1.85rem;
  margin-bottom: 1rem;
}

.legal-content p {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.legal-stats {
  display: flex;
  gap: 2rem;
}

.legal-stat-box {
  border-left: 2px solid var(--brand-gold);
  padding-left: 1rem;
}

.legal-stat-box strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand-gold-light);
}

.legal-stat-box span {
  font-size: 0.8125rem;
  color: #94a3b8;
}

/* ==========================================================================
   Section: Portafolio / Propiedades Destacadas
   ========================================================================== */

.section-portfolio {
  padding: 6rem 0;
  position: relative;
}

.portfolio-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
}

.portfolio-filters {
  display: flex;
  gap: 0.5rem;
  background: var(--bg-muted);
  padding: 0.35rem;
  border-radius: var(--radius-full);
}

.filter-btn {
  padding: 0.45rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.filter-btn.active {
  background: var(--bg-surface);
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.property-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.property-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg);
}

.property-media {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.property-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.property-card:hover .property-media img {
  transform: scale(1.06);
}

.prop-badge-type {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.badge-venta {
  background: rgba(10, 93, 123, 0.9);
}

.badge-renta {
  background: rgba(197, 168, 128, 0.9);
  color: #04141d;
}

.prop-badge-featured {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(6, 25, 34, 0.8);
  color: #ffffff;
  backdrop-filter: blur(8px);
}

.property-details {
  padding: 1.5rem;
}

.prop-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.prop-location svg {
  color: var(--brand-cyan);
}

.prop-title {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.prop-features {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 0;
  margin: 1rem 0;
  font-size: 0.8125rem;
  color: var(--text-body);
}

.prop-feat-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.prop-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.prop-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--brand-teal-light);
}

[data-theme="dark"] .prop-price {
  color: var(--brand-cyan-light);
}

/* ==========================================================================
   Section: Por qué elegirnos (Diferenciales)
   ========================================================================== */

.section-differentials {
  padding: 6rem 0;
  background: var(--bg-alt);
  position: relative;
}

.differentials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.diff-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.diff-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-teal), var(--brand-cyan));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.diff-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg);
}

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

.diff-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: rgba(10, 93, 123, 0.1);
  color: var(--brand-teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.diff-card:hover .diff-icon-wrap {
  background: var(--brand-teal);
  color: #ffffff;
}

.diff-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.diff-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ==========================================================================
   Section: Equipo de Asesores (Coleinsa Team)
   ========================================================================== */

.section-team {
  padding: 6rem 0;
  position: relative;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.team-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  text-align: center;
}

.team-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-lg);
}

.team-photo-wrap {
  position: relative;
  height: 320px;
  overflow: hidden;
  background: var(--bg-muted);
}

.team-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform var(--transition-slow);
}

.team-card:hover .team-photo-wrap img {
  transform: scale(1.05);
}

.team-info {
  padding: 1.5rem;
}

.team-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.84rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-teal-light);
  margin-bottom: 1rem;
}

[data-theme="dark"] .team-role {
  color: var(--brand-cyan-light);
}

.team-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-full);
  background: var(--bg-muted);
  color: var(--text-main);
  transition: all var(--transition-fast);
}

.team-contact-btn:hover {
  background: var(--brand-teal);
  color: #ffffff;
}

/* ==========================================================================
   Section: Calculadora / Estimador Patrimonial
   ========================================================================== */

.section-calc {
  padding: 6rem 0;
  background: var(--bg-alt);
  position: relative;
}

.calc-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.calc-form-group {
  margin-bottom: 1.5rem;
}

.calc-form-group label {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.calc-slider {
  width: 100%;
  height: 6px;
  background: var(--bg-muted);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
}

.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px var(--brand-cyan);
}

.calc-results-box {
  background: linear-gradient(135deg, #052636, #093f54);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-result-number {
  font-size: clamp(2.5rem, 3.5vw, 3.25rem);
  font-weight: 800;
  color: #ffffff;
  margin: 0.5rem 0 1.5rem;
}

/* ==========================================================================
   Section: FAQ (Preguntas Frecuentes)
   ========================================================================== */

.section-faq {
  padding: 6rem 0;
  position: relative;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item.active {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: left;
}

.faq-chevron {
  transition: transform var(--transition-fast);
  color: var(--brand-cyan);
  flex-shrink: 0;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal);
  padding: 0 2rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding-bottom: 1.5rem;
}

/* ==========================================================================
   Section: Contacto & Sucursal
   ========================================================================== */

.section-contact {
  padding: 6rem 0;
  background: var(--bg-alt);
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: flex-start;
}

.contact-card-info {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  margin: 2rem 0;
}

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

.contact-icon-wrap {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: rgba(10, 93, 123, 0.1);
  color: var(--brand-teal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-text-wrap strong {
  display: block;
  font-size: 1rem;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.contact-text-wrap span,
.contact-text-wrap a {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-text-wrap a:hover {
  color: var(--brand-cyan);
}

.contact-form-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}

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

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: var(--bg-muted);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  color: var(--text-main);
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--brand-cyan);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--brand-cyan-glow);
}

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

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 3.5rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin: 1.25rem 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: #94a3b8;
  transition: all var(--transition-fast);
}

.footer-links a:hover {
  color: var(--brand-cyan);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  font-size: 0.875rem;
}

/* Floating Quick Actions */
.floating-actions {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 850;
}

.floating-whatsapp {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.45);
  transition: all var(--transition-fast);
  position: relative;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp .tooltip {
  position: absolute;
  right: 68px;
  background: var(--bg-surface);
  color: var(--text-main);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-subtle);
  opacity: 0;
  pointer-events: none;
  transform: translateX(10px);
  transition: all var(--transition-fast);
}

.floating-whatsapp:hover .tooltip {
  opacity: 1;
  transform: translateX(0);
}

.btn-scroll-top {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all var(--transition-fast);
}

.btn-scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.btn-scroll-top:hover {
  background: var(--brand-teal);
  color: #ffffff;
  border-color: var(--brand-teal);
}

/* ==========================================================================
   Video Modal (Reserved Video Placeholder)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 13, 18, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 1.5rem;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  width: 100%;
  max-width: 800px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-backdrop.open .modal-container {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: background var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.video-placeholder-inner {
  height: 450px;
  background: #020b0f;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  color: #ffffff;
  position: relative;
}

.video-placeholder-inner .icon-box {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(28, 161, 210, 0.15);
  border: 2px solid var(--brand-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-cyan);
  margin-bottom: 1.5rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(28, 161, 210, 0.5); }
  70% { box-shadow: 0 0 0 20px rgba(28, 161, 210, 0); }
  100% { box-shadow: 0 0 0 0 rgba(28, 161, 210, 0); }
}

/* ==========================================================================
   Subtle Scroll Animations (Reveal on scroll)
   ========================================================================== */

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.appeared {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-left.appeared {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-right.appeared {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

@media (max-width: 1024px) {
  .about-grid,
  .calc-card,
  .contact-grid,
  .legal-banner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .services-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .properties-grid,
  .differentials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .metric-item:nth-child(2)::after {
    display: none;
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }

  /* Catalog Portfolio Header Block Stacking */
  .portfolio-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .portfolio-filters {
    width: 100%;
    max-width: 100%;
  }

  .search-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .search-btn-col {
    grid-column: 1 / -1;
  }
  .search-icon-btn {
    width: 100%;
    gap: 0.65rem;
  }
  .search-btn-label {
    display: inline;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-surface);
    flex-direction: column;
    align-items: flex-start;
    padding: 6rem 2rem 2rem;
    box-shadow: var(--shadow-lg);
    transform: translateX(100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform var(--transition-normal), visibility var(--transition-normal);
    z-index: 920;
    gap: 1.5rem;
  }

  .nav-menu.open {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-actions .btn-primary {
    display: none;
  }

  .container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
    max-width: 100%;
  }

  /* Prevent lateral animation overflow on mobile screens */
  .fade-in-left,
  .fade-in-right {
    transform: translateY(20px);
  }

  .fade-in-left.appeared,
  .fade-in-right.appeared {
    transform: translateY(0);
  }

  /* Hero Section Block Adjustments */
  .hero-section {
    padding: 6rem 0 3rem;
    min-height: auto;
  }

  .hero-badge {
    white-space: normal;
    font-size: 0.75rem;
    padding: 0.45rem 0.85rem;
    line-height: 1.35;
    max-width: 100%;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: flex-start;
    word-break: break-word;
  }

  .hero-badge .pulse-dot {
    margin-top: 4px;
    flex-shrink: 0;
  }

  .hero-title {
    font-size: clamp(1.85rem, 6.8vw, 2.35rem);
    line-height: 1.16;
    margin-bottom: 1.15rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero-subtitle {
    font-size: 0.9375rem;
    line-height: 1.55;
    margin-bottom: 1.75rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .video-teaser-card {
    width: 100%;
    justify-content: center;
  }

  /* Hero Search Box Mobile Block Optimization */
  .hero-search-box {
    padding: 1.25rem 1rem;
    margin-top: 1.25rem;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 100%;
  }

  .search-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-subtle);
  }

  .search-tab {
    width: 100%;
    padding: 0.65rem 0.4rem;
    font-size: 0.8125rem;
    text-align: center;
    border-radius: var(--radius-sm);
    white-space: normal;
    line-height: 1.25;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
  }

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

  .search-field {
    width: 100%;
  }

  .search-field label {
    font-size: 0.72rem;
    margin-bottom: 0.25rem;
  }

  .search-field select,
  .search-field input {
    height: 48px;
    font-size: 0.9375rem;
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    width: 100%;
  }

  .search-btn-col {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 0.35rem;
  }

  .search-icon-btn {
    width: 100%;
    height: 52px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    box-shadow: 0 4px 16px rgba(10, 93, 123, 0.4);
  }

  .search-btn-label {
    display: inline;
    font-size: 0.95rem;
    font-weight: 700;
  }

  /* Catalog Portfolio Header & Filter Blocks */
  .portfolio-header {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .portfolio-filters {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--bg-muted);
    padding: 0.35rem;
    border-radius: var(--radius-sm);
    gap: 0.25rem;
  }

  .filter-btn {
    width: 100%;
    padding: 0.6rem 0.25rem;
    font-size: 0.8rem;
    text-align: center;
    border-radius: var(--radius-xs);
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
  }

  .btn-catalog-all {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 0.9375rem;
    justify-content: center;
    text-align: center;
  }

  .services-grid,
  .team-grid,
  .properties-grid,
  .differentials-grid {
    grid-template-columns: 1fr;
  }

  .property-media {
    height: 230px;
  }

  .property-details {
    padding: 1.25rem;
  }

  .prop-title {
    font-size: 1.15rem;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.75rem;
  }

  .metric-item::after {
    display: none !important;
  }

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

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  /* Section About / Nuestro Compromiso - Mobile Block Stacking */
  .section-about {
    padding: 3.5rem 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    width: 100%;
    min-width: 0;
  }

  .about-images-composition {
    width: 100%;
    position: relative;
  }

  .about-img-floating {
    display: none;
  }

  .about-img-main {
    width: 100%;
    height: 280px;
    border-radius: var(--radius-md);
  }

  .about-badge-seal {
    position: static;
    margin-top: 1rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
  }

  .about-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .about-content .section-title {
    font-size: clamp(1.65rem, 6.5vw, 2.1rem);
    line-height: 1.2;
    margin-bottom: 1.15rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .about-content .section-desc {
    font-size: 0.9375rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .about-content p {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .about-highlights {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1.5rem 0;
    width: 100%;
  }

  .highlight-box {
    padding: 1.15rem 1rem;
    width: 100%;
    box-sizing: border-box;
  }

  .highlight-box h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    word-break: break-word;
  }

  .highlight-box p {
    font-size: 0.85rem;
    line-height: 1.5;
    word-break: break-word;
  }

  .about-actions-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
  }

  .about-actions-group .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.85rem 1.25rem;
  }

  /* Legal Banner Stack on Mobile */
  .legal-banner {
    padding: 2rem 1.25rem;
    grid-template-columns: 1fr;
    gap: 1.75rem;
    margin-top: 2.5rem;
    border-radius: var(--radius-md);
  }

  .legal-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .legal-actions-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    width: 100%;
  }

  .legal-actions-group .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 0.85rem 1.25rem;
    font-size: 0.9rem;
  }

  .calc-card {
    padding: 2rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.85rem;
    line-height: 1.15;
  }

  .portfolio-filters {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.35rem;
    padding: 0.35rem;
  }

  .filter-btn {
    padding: 0.65rem 0.45rem;
    font-size: 0.84rem;
    font-weight: 600;
    min-height: 44px;
  }

  .search-tabs {
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
  }

  .search-tab {
    padding: 0.55rem 0.3rem;
    font-size: 0.75rem;
  }
}
