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

  :root {
    /* Color variables (--color-gold, --color-black, etc.) are defined inline in the HTML template */
    /* from the user's branding settings. Do NOT define them here or they will override user colors. */
    --color-surface: #FEFEFE;
    --color-dark-surface: #1A1A1A;
    --color-text: #1A1A1A;
    --color-text-muted: #5A5A5A;
    --color-border: #E5E5E5;

    --font-display: 'DM Serif Display', Georgia, serif;
    --font-body: 'Work Sans', -apple-system, system-ui, sans-serif;

    /* Spacing scale (8px base) */
    --space-1: 0.5rem;   /* 8px */
    --space-2: 1rem;     /* 16px */
    --space-3: 1.5rem;   /* 24px */
    --space-4: 2rem;     /* 32px */
    --space-6: 3rem;     /* 48px */
    --space-8: 4rem;     /* 64px */

    /* Animation timing */
    --transition-fast: 0.2s;
    --transition-base: 0.3s;
    --transition-slow: 0.6s;
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      /* User brand colors are inherited from inline styles, only override surface colors for dark mode */
      --color-surface: #0A0A0A;
      --color-dark-surface: #1A1A1A;
      --color-text: #F5F5F5;
      --color-text-muted: #A0A0A0;
      --color-border: #2A2A2A;
    }
  }

  :root[data-theme="dark"] {
    /* User brand colors inherited from inline styles */
    --color-surface: #0A0A0A;
    --color-dark-surface: #1A1A1A;
    --color-text: #F5F5F5;
    --color-text-muted: #A0A0A0;
    --color-border: #2A2A2A;
  }

  body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-surface);
    -webkit-font-smoothing: antialiased;
  }

  /* Header */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: color-mix(in srgb, var(--color-surface) 90%, transparent);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
  }

  .nav {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Botón hamburguesa - oculto en desktop */
  .menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
  }

  .menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-black);
    border-radius: 2px;
    transition: transform 0.3s var(--ease-smooth), opacity 0.2s var(--ease-smooth);
  }

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

  .nav-mobile-cta,
  .nav-mobile-login { display: none; }

  .logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
  }

  .logo-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
  }

  .logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-black);
    letter-spacing: -0.01em;
  }

  .logo-text span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-gold);
    font-family: var(--font-body);
    font-weight: 600;
  }

  .nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
  }

  .nav-links a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
  }

  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-gold);
    transition: width 0.3s;
  }

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

  .nav-links a:hover::after {
    width: 100%;
  }

  .social-links {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-left: 2rem;
  }

  .social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: all 0.3s;
    text-decoration: none;
    border: 1px solid var(--color-border);
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  }

  .social-icon:hover {
    background: var(--color-gold);
    color: var(--color-surface);
    border-color: var(--color-gold);
    transform: translateY(-2px);
  }

  .social-icon svg {
    width: 18px;
    height: 18px;
  }

  .btn-nav {
    background: var(--color-black);
    color: var(--color-surface);
    padding: 0.75rem 1.75rem;
    border-radius: 0;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    margin-left: 1.5rem;
  }

  .btn-nav:hover {
    background: var(--color-gold);
    transform: translateY(-2px);
  }

  /* Hero */
  .hero {
    margin-top: 77px;
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--color-black) 0%, var(--color-black) 100%);
    overflow: hidden;
  }

  .hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image:
      repeating-linear-gradient(0deg, transparent, transparent 49px, var(--color-gold) 49px, var(--color-gold) 50px),
      repeating-linear-gradient(90deg, transparent, transparent 49px, var(--color-gold) 49px, var(--color-gold) 50px);
    animation: blueprintSlide 40s linear infinite;
  }

  @keyframes blueprintSlide {
    from { transform: translate(0, 0); }
    to { transform: translate(50px, 50px); }
  }

  .hero-pattern {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 500px;
    height: 500px;
    opacity: 0.08;
  }

  .hero-pattern-image {
    opacity: 0.15;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-pattern-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1.2);
  }

  .hero-content {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
    animation: fadeInUp 1s ease-out;
  }

  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .hero-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background: color-mix(in srgb, var(--color-gold) 15%, transparent);
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  }

  .hero h1 {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5.5rem);
    color: var(--color-surface);
    margin-bottom: 1.5rem;
    max-width: 900px;
    line-height: 1.1;
    font-weight: 400;
  }

  .hero p {
    font-size: 1.375rem;
    color: var(--color-gold-light);
    max-width: 650px;
    margin-bottom: 3rem;
    line-height: 1.7;
    font-weight: 400;
  }

  .hero-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .btn-primary {
    background: var(--color-gold);
    color: var(--color-surface);
    padding: 1.25rem 3rem;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.0625rem;
    transition: all 0.3s;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    position: relative;
    overflow: hidden;
  }

  .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
  }

  .btn-primary:hover::before {
    left: 100%;
  }

  .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(230, 126, 80, 0.4);
  }

  .btn-secondary {
    background: transparent;
    color: var(--color-surface);
    padding: 1.25rem 3rem;
    border: 2px solid var(--color-gold-light);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.0625rem;
    transition: all 0.3s;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  }

  .btn-secondary:hover {
    background: var(--color-gold-light);
    color: var(--color-black);
    transform: translateY(-3px);
  }

  /* Stats */
  .stats {
    background: var(--color-surface);
    padding: 4rem 2rem;
    border-bottom: 3px solid var(--color-gold);
  }

  .stats-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 4rem;
  }

  .stat {
    text-align: left;
    position: relative;
    padding-left: 1rem;
  }

  .stat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--color-gold);
  }

  .stat-number {
    font-family: var(--font-body);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-black);
    font-variant-numeric: tabular-nums;
    line-height: 1;
    margin-bottom: 0.5rem;
  }

  .stat-label {
    font-size: 1rem;
    color: var(--color-text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
  }

  /* Search Bar */
  .search-section {
    background: var(--color-surface);
    padding: 3rem 2rem;
    border-bottom: 3px solid var(--color-gold);
  }

  .search-container {
    max-width: 1400px;
    margin: 0 auto;
  }

  .search-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    font-weight: 500;
  }

  .search-stats strong {
    color: var(--color-gold);
    font-weight: 700;
  }

  .search-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 1.5rem;
    align-items: end;
  }

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

  .search-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-black);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  .search-select,
  .search-input {
    padding: 0.875rem 1rem;
    border: 2px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
    transition: all 0.3s;
  }

  .search-select:focus,
  .search-input:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
  }

  .btn-search {
    background: var(--color-black);
    color: var(--color-surface);
    padding: 0.875rem 2.5rem;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    white-space: nowrap;
  }

  .btn-search:hover {
    background: var(--color-gold);
    transform: translateY(-2px);
  }

  /* WhatsApp Float Button */
  .whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
  }

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

  .whatsapp-float svg {
    width: 32px;
    height: 32px;
    color: white;
  }

  /* Properties Section */
  .properties {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--color-surface) 0%, color-mix(in srgb, var(--color-dark-surface) 20%, var(--color-surface)) 100%);
  }

  .properties-header {
    max-width: 1400px;
    margin: 0 auto 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .properties-count {
    font-size: 1rem;
    color: var(--color-text-muted);
  }

  .properties-sort {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .sort-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-black);
  }

  .sort-select {
    padding: 0.625rem 1rem;
    border: 2px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 0.875rem;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  }

  .badge-destacadas {
    background: var(--color-gold);
    color: var(--color-black);
    padding: 0.5rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    display: inline-block;
  }

  .section-header {
    max-width: 1400px;
    margin: 0 auto 4rem;
    text-align: center;
  }

  .section-tag {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-black);
    margin-bottom: 1rem;
  }

  .section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-black);
    margin-bottom: 1.5rem;
    font-weight: 400;
    line-height: 1.2;
  }

  .section-header p {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto;
  }

  .carousel-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
  }

  .carousel-container {
    overflow: hidden;
    padding: 0 60px;
  }

  .carousel-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .carousel-card {
    min-width: 260px;
    max-width: calc(25% - 1.5rem);
    flex-shrink: 0;
  }

  /* Property Card - Signature Element */
  .property-card {
    background: var(--color-surface);
    position: relative;
    overflow: visible;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--color-border);
    clip-path: polygon(
      40px 0, 100% 0, 100% calc(100% - 16px),
      calc(100% - 16px) 100%, 0 100%, 0 16px
    );
  }

  .property-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 3;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
  }

  .badge {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  }

  .badge-operation {
    background: var(--color-gold);
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  }

  .badge-operation.arriendo {
    background: var(--color-gold);
  }

  .badge-operation.venta-arriendo {
    background: var(--color-gold);
  }

  .badge-type {
    background: var(--color-surface);
    color: var(--color-black);
    border: 1px solid var(--color-border);
  }

  .badge-estado {
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  }

  /* disponible = 2: Reservada */
  .badge-estado-2 {
    background: #F59E0B;
    color: white;
  }

  /* disponible = 3: Vendida */
  .badge-estado-3 {
    background: #DC2626;
    color: white;
  }

  /* disponible = 4: Arrendada */
  .badge-estado-4 {
    background: #1E40AF;
    color: white;
  }

  .property-card:hover {
    transform: translateY(-8px);
    border-color: var(--color-gold);
    box-shadow: 0 16px 48px rgba(10, 30, 61, 0.15);
  }

  .property-image {
    position: relative;
    width: 100%;
    height: 180px;
    background: var(--color-dark-surface);
    overflow: hidden;
  }

  .property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
  }

  .property-card:hover .property-image img {
    transform: scale(1.08);
  }

  .property-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
  }

  .property-price {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: 0.4rem;
    font-variant-numeric: tabular-nums;
  }

  .property-price-note {
    font-size: 0.78rem;
    color: var(--text-muted, #8a8a8a);
    margin-top: -0.3rem;
    margin-bottom: 0.4rem;
  }

  .property-title {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.6rem;
    line-height: 1.3;
    min-height: 3.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .property-location {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 1.5rem;
  }

  .property-features {
    display: flex;
    gap: 0.875rem;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    padding-top: 0.75rem;
    border-top: 2px solid var(--color-border);
  }

  .feature {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .feature-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-black);
    font-variant-numeric: tabular-nums;
  }

  .feature-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
  }

  .icon {
    width: 20px;
    height: 20px;
    color: var(--color-gold);
  }

  .btn-ver-detalle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 1rem;
    margin-top: auto;
    background: transparent;
    border: 2px solid var(--color-gold);
    color: var(--color-gold);
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    text-decoration: none;
  }

  .btn-ver-detalle:hover {
    background: var(--color-gold);
    color: var(--color-surface);
  }

  .btn-ver-detalle svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
  }

  .btn-ver-detalle:hover svg {
    transform: translateX(4px);
  }

  .property-agent {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-top: 0.75rem;
    margin-top: auto;
    border-top: 1px solid var(--color-border);
  }

  .agent-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-black);
    color: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
  }

  .agent-logo {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    max-width: 40px !important;
    max-height: 40px !important;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    flex-shrink: 0 !important;
    display: block !important;
  }

  .agent-info {
    flex: 1;
  }

  .agent-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 0.125rem;
  }

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

  /* Carousel Controls */
  .carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-black);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 10;
    border: none;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  }

  .carousel-nav:hover {
    background: var(--color-gold);
    transform: translateY(-50%) scale(1.1);
  }

  .carousel-nav svg {
    width: 24px;
    height: 24px;
    color: var(--color-surface);
  }

  .carousel-nav.prev {
    left: 0;
  }

  .carousel-nav.next {
    right: 0;
  }

  .carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 3rem;
  }

  .carousel-dot {
    width: 40px;
    height: 4px;
    background: var(--color-border);
    cursor: pointer;
    transition: all 0.3s;
    clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%);
  }

  .carousel-dot.active {
    background: var(--color-gold);
    width: 60px;
  }

  /* CTA Section */
  .cta-section {
    position: relative;
    padding: 8rem 2rem;
    background: var(--color-black);
    overflow: hidden;
  }

  .cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 50%;
    bottom: 0;
    background: linear-gradient(135deg, var(--color-gold) 0%, var(--color-gold-dark) 100%);
    clip-path: polygon(0 0, 100% 0, calc(100% - 100px) 100%, 0 100%);
  }

  .cta-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
  }

  .cta-section h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--color-surface);
    margin-bottom: 1.5rem;
    font-weight: 400;
  }

  .cta-section p {
    font-size: 1.25rem;
    color: var(--color-gold-light);
    margin-bottom: 3rem;
    line-height: 1.7;
  }

  /* Contact */
  .contact {
    padding: 6rem 2rem;
    background: var(--color-surface);
  }

  .contact-container {
    max-width: 900px;
    margin: 0 auto;
  }

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

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

  .form-input,
  .form-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
    background: var(--color-surface);
    transition: all 0.3s;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  }

  .form-input:focus,
  .form-textarea:focus {
    outline: none;
    border-color: var(--color-gold);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--color-gold) 15%, transparent);
  }

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

  .form-submit {
    background: var(--color-black);
    color: var(--color-surface);
    padding: 1.25rem 3rem;
    border: none;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  }

  .form-submit:hover {
    background: var(--color-gold);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(230, 126, 80, 0.4);
  }

  /* Footer */
  .footer {
    background: var(--color-black);
    color: var(--color-gold-light);
    padding: 4rem 2rem 2rem;
  }

  .footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
  }

  .footer-section h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-surface);
    margin-bottom: 1.5rem;
    font-weight: 400;
  }

  .footer-section p,
  .footer-section a {
    color: var(--color-gold-light);
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.8;
  }

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

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

  .footer-bottom {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid color-mix(in srgb, var(--color-gold-light) 30%, transparent);
    text-align: center;
    color: var(--color-gold-light);
    font-size: 0.9375rem;
  }

  /* Scroll Reveal */
  .scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
  }

  .scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  /* Focus States - Accesibilidad */
  a:focus-visible,
  button:focus-visible,
  input:focus-visible,
  select:focus-visible {
    outline: 3px solid var(--color-gold);
    outline-offset: 3px;
    border-radius: 4px;
  }

  /* Image Loading - Smooth Fade In */
  img {
    opacity: 0;
    animation: fadeIn 0.6s var(--ease-smooth) forwards;
  }

  @keyframes fadeIn {
    to {
      opacity: 1;
    }
  }

  /* Micro-interacciones - Botones */
  button,
  .btn-primary,
  .btn-secondary,
  .btn-search {
    transform: scale(1);
    transition: transform var(--transition-base) var(--ease-smooth);
  }

  button:active,
  .btn-primary:active,
  .btn-secondary:active,
  .btn-search:active {
    transform: scale(0.98);
  }

  /* Responsive */

  /* Tablet landscape */
  @media (max-width: 1200px) {
    .nav {
      padding: 1rem 1.5rem;
    }

    .hero h1 {
      font-size: clamp(2.5rem, 4vw, 3.5rem);
    }

    .hero p {
      font-size: 1.125rem;
    }

    .section-header h2 {
      font-size: clamp(2rem, 3.5vw, 3rem);
    }
  }

  /* Tablet */
  @media (max-width: 1024px) {
    .carousel-card {
      min-width: calc(50% - 1rem);
    }

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

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

  /* Mobile landscape / small tablet */
  @media (max-width: 768px) {
    .nav {
      padding: 1rem;
    }

    .nav-links {
      position: absolute;
      top: 100%;
      left: 0;
      right: 0;
      flex-direction: column;
      align-items: stretch;
      gap: 0;
      background: var(--color-surface);
      border-top: 1px solid rgba(0, 0, 0, 0.08);
      box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
      max-height: 0;
      overflow: hidden;
      opacity: 0;
      visibility: hidden;
      transition: max-height 0.3s var(--ease-smooth), opacity 0.2s var(--ease-smooth);
      z-index: 100;
    }

    .nav-links.mobile-open {
      max-height: 400px;
      opacity: 1;
      visibility: visible;
    }

    .nav-links li {
      width: 100%;
    }

    .nav-links a {
      display: block;
      padding: 1rem 1.5rem;
      border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .nav-links a::after {
      display: none;
    }

    .nav-mobile-cta,
    .nav-mobile-login {
      display: block;
    }

    .nav-mobile-cta a {
      color: var(--color-gold);
      font-weight: 600;
    }

    .nav-mobile-login a {
      color: var(--color-text-muted);
      font-size: 0.875rem;
    }

    .btn-nav {
      display: none;
    }

    .social-links {
      display: none;
    }

    .menu-toggle {
      display: flex;
    }

    .logo-image {
      width: 40px;
      height: 40px;
    }

    .logo-text {
      font-size: 1.25rem;
    }

    .logo-text span {
      font-size: 0.625rem;
    }

    .btn-nav {
      padding: 0.625rem 1.25rem;
      font-size: 0.875rem;
    }

    .hero {
      min-height: 70vh;
      padding: 3rem 0;
    }

    .hero-pattern,
    .hero-pattern-image {
      display: none !important;
    }

    .hero h1 {
      font-size: clamp(2rem, 5vw, 2.5rem);
      margin-bottom: 1rem;
    }

    .hero p {
      font-size: 1rem;
      margin-bottom: 2rem;
    }

    .hero-cta {
      flex-direction: column;
      gap: 1rem;
    }

    .btn-primary,
    .btn-secondary {
      padding: 1.125rem 2rem;
      min-height: 48px;
      width: 100%;
      text-align: center;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }

    .btn-search {
      padding: 1rem 2rem;
      min-height: 48px;
      width: 100%;
    }

    .stats {
      padding: 2rem 1rem;
    }

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

    .stat-number {
      font-size: 2rem;
    }

    .stat-label {
      font-size: 0.75rem;
    }

    .search-section {
      padding: 2rem 1rem;
    }

    .search-stats {
      flex-direction: column;
      gap: 0.5rem;
      margin-bottom: 1.5rem;
      font-size: 0.8rem;
    }

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

    .search-label {
      font-size: 0.75rem;
    }

    .search-select,
    .search-input {
      padding: 0.75rem;
      font-size: 0.9375rem;
    }

    .properties {
      padding: 4rem 1rem;
    }

    .section-header {
      margin-bottom: 2.5rem;
    }

    .carousel-container {
      padding: 0 45px;
    }

    .carousel-card {
      min-width: 100%;
      max-width: 100%;
    }

    .testimonials-track {
      padding: 0 1rem;
    }

    .testimonial-card {
      min-width: 280px;
      max-width: 320px;
    }

    .carousel-nav {
      width: 40px;
      height: 40px;
    }

    .carousel-nav svg {
      width: 20px;
      height: 20px;
    }

    .property-content {
      padding: 1.5rem;
    }

    .property-price {
      font-size: 1.5rem;
    }

    .property-title {
      font-size: 1.25rem;
      min-height: 4.5rem;
    }

    .property-features {
      grid-template-columns: repeat(3, 1fr);
      gap: 0.75rem;
    }

    .feature-value {
      font-size: 1.125rem;
    }

    .cta-section {
      padding: 5rem 1rem;
    }

    .cta-section::before {
      clip-path: polygon(0 0, 100% 0, 100% 80%, 0 100%);
      right: 0;
    }

    .cta-section h2 {
      font-size: clamp(2rem, 4vw, 2.5rem);
    }

    .cta-section p {
      font-size: 1.125rem;
      margin-bottom: 2rem;
    }

    .contact {
      padding: 4rem 1rem;
    }

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

    .footer {
      padding: 2rem 1rem 1rem;
    }

    .footer-content {
      grid-template-columns: 1fr;
      gap: 1.5rem;
      margin-bottom: 1.5rem;
    }

    .footer-section h3 {
      font-size: 1rem;
      margin-bottom: 0.75rem;
    }

    .footer-section p,
    .footer-section a {
      font-size: 0.875rem;
      line-height: 1.6;
    }

    .footer-bottom {
      padding-top: 1rem;
      font-size: 0.75rem;
    }
  }

  /* Mobile portrait */
  @media (max-width: 480px) {
    .hero-tag {
      font-size: 0.75rem;
      padding: 0.375rem 0.75rem;
      margin-bottom: 1rem;
    }

    .hero h1 {
      font-size: 1.875rem;
    }

    .hero p {
      font-size: 0.9375rem;
    }

    .btn-primary,
    .btn-secondary {
      padding: 0.875rem 1.5rem;
      font-size: 0.9375rem;
    }

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

    .stat {
      padding-left: 0;
    }

    .stat-number {
      font-size: 1.75rem;
      text-align: left;
    }

    .stat-label {
      text-align: left;
    }

    .stat::before {
      display: none;
    }

    .stat-number {
      font-size: 2.25rem;
    }

    .section-tag {
      font-size: 0.75rem;
    }

    .section-header h2 {
      font-size: 1.75rem;
    }

    .section-header p {
      font-size: 1rem;
    }

    .carousel-container {
      padding: 0 40px;
    }

    .carousel-nav {
      width: 36px;
      height: 36px;
    }

    .carousel-nav svg {
      width: 18px;
      height: 18px;
    }

    /* Tarjetas de propiedades más compactas en mobile */
    .carousel-card {
      min-width: 280px;
    }

    .property-image {
      height: 180px;
    }

    .property-content {
      padding: 1rem;
    }

    .property-price {
      font-size: 1.25rem;
      margin-bottom: 0.375rem;
    }

    .property-title {
      font-size: 1rem;
      margin-bottom: 0.375rem;
      line-height: 1.3;
      min-height: 3.9rem;
    }

    .property-location {
      font-size: 0.8125rem;
      margin-bottom: 0.75rem;
      min-height: 1.5rem;
    }

    .property-features {
      gap: 0.375rem;
      margin-bottom: 0.75rem;
    }

    .feature-item {
      padding: 0.375rem 0.5rem;
    }

    .feature-value {
      font-size: 0.9375rem;
    }

    .feature-label {
      font-size: 0.625rem;
    }

    .property-agent {
      padding-top: 0.75rem;
      margin-top: 0.75rem;
    }

    .agent-avatar {
      width: 32px;
      height: 32px;
      font-size: 0.75rem;
    }

    .agent-name {
      font-size: 0.8125rem;
    }

    .agent-phone {
      font-size: 0.6875rem;
    }

    .cta-section {
      padding: 4rem 1rem;
    }

    .cta-section h2 {
      font-size: 1.75rem;
      margin-bottom: 1rem;
    }

    .cta-section p {
      font-size: 1rem;
      margin-bottom: 1.5rem;
    }

    .search-section {
      padding: 1.5rem 1rem;
    }

    .search-stats {
      flex-direction: row;
      justify-content: center;
      gap: 1rem;
      margin-bottom: 1.25rem;
      font-size: 0.75rem;
    }

    .search-stats span {
      white-space: nowrap;
    }

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

    .search-label {
      font-size: 0.7rem;
    }

    .search-select,
    .search-input {
      padding: 0.625rem;
      font-size: 0.875rem;
    }

    .btn-search {
      padding: 0.875rem 1.5rem;
      font-size: 0.875rem;
    }

    .contact-container {
      padding: 0;
    }

    .form-input,
    .form-textarea {
      padding: 0.75rem;
      font-size: 0.9375rem;
    }

    .form-submit {
      padding: 1rem 2rem;
      font-size: 0.9375rem;
    }

    .footer {
      padding: 1.5rem 1rem 1rem;
    }

    .footer-content {
      gap: 0.75rem;
      margin-bottom: 1rem;
      text-align: center;
    }

    /* Ocultar todo excepto Contacto y Síguenos */
    .footer-section:first-child p,
    .footer-section:nth-child(2) {
      display: none;
    }

    .footer-logo {
      font-size: 1.25rem;
      margin-bottom: 0.75rem;
    }

    .footer-section h3 {
      font-size: 1rem;
      margin-bottom: 0.5rem;
    }

    .footer-section p,
    .footer-section a {
      font-size: 0.9375rem;
      line-height: 1.5;
      margin-bottom: 0.375rem;
    }

    .footer-section:last-of-type {
      margin-top: 1rem;
    }

    .footer-bottom {
      font-size: 0.8125rem;
      padding-top: 1rem;
      margin-top: 1rem;
      text-align: center;
    }

    .footer-social {
      display: flex;
      flex-direction: row;
      gap: 0.75rem;
      justify-content: center;
      align-items: center;
    }

    .footer-social a {
      width: 44px;
      height: 44px;
      flex-shrink: 0;
    }

    .social-links {
      display: none;
    }

    .header {
      padding: 0.625rem 0.75rem;
    }

    .nav {
      gap: 0.5rem;
    }

    .logo {
      gap: 0.5rem;
      min-width: auto;
    }

    .logo-image {
      width: 40px;
      height: 40px;
      flex-shrink: 0;
    }

    .logo-text {
      font-size: 0.875rem;
      display: flex;
      flex-direction: column;
      line-height: 1.2;
    }

    /* Ocultar la palabra "Propiedades" en mobile */
    .logo-text span {
      display: none;
    }

    .social-links {
      gap: 0.5rem;
      margin-left: auto;
    }

    .social-icon {
      width: 32px;
      height: 32px;
      flex-shrink: 0;
    }

    .social-icon svg {
      width: 16px;
      height: 16px;
    }

    .btn-nav {
      display: none; /* Ocultar botón Contactar en mobile */
    }
  }

  /* Very small screens */
  @media (max-width: 360px) {
    .hero h1 {
      font-size: 1.625rem;
    }

    .btn-primary,
    .btn-secondary {
      padding: 0.75rem 1.25rem;
      font-size: 0.875rem;
    }
  }

  /* Testimonials Section */
  .testimonials {
    padding: 6rem 0;
    background: var(--color-black);
    overflow: hidden;
    position: relative;
  }

  .testimonials::before,
  .testimonials::after {
    content: '';
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
  }

  .testimonials::before {
    left: 0;
    background: linear-gradient(90deg, var(--color-black) 0%, transparent 100%);
  }

  .testimonials::after {
    right: 0;
    background: linear-gradient(270deg, var(--color-black) 0%, transparent 100%);
  }

  .testimonials-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 0 2rem;
  }

  .testimonials-header .section-tag {
    color: var(--color-gold);
  }

  .testimonials-header h2 {
    color: var(--color-surface);
  }

  .testimonials-header p {
    color: var(--color-gold-light);
  }

  .testimonials-track {
    display: flex;
    align-items: stretch;
    gap: 2rem;
    animation: scrollTestimonials 40s linear infinite;
    will-change: transform;
  }

  .testimonials-track:hover {
    animation-play-state: paused;
  }

  @keyframes scrollTestimonials {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(-50%);
    }
  }

  .testimonial-card {
    min-width: 400px;
    max-width: 400px;
    background: var(--color-surface);
    padding: 2.5rem;
    border: 2px solid var(--color-border);
    position: relative;
    clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
  }

  .testimonial-quote {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 1rem;
    position: relative;
    font-style: italic;
    flex-grow: 1;
  }

  .testimonial-quote::before {
    content: '"';
    font-size: 4rem;
    color: var(--color-gold);
    position: absolute;
    top: -1rem;
    left: -1rem;
    font-family: var(--font-display);
    opacity: 0.3;
  }

  .testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--color-gold);
    margin-top: auto;
    flex-shrink: 0;
  }

  .testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--color-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--color-surface);
    font-weight: 600;
    flex-shrink: 0;
  }

  .testimonial-info {
    flex: 1;
  }

  .testimonial-name {
    font-weight: 700;
    color: var(--color-black);
    margin-bottom: 0.25rem;
    font-size: 1.125rem;
  }

  .testimonial-role {
    font-size: 0.875rem;
    color: var(--color-text-muted);
  }

  .testimonial-stars {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
  }

  .star {
    color: var(--color-gold);
    font-size: 1.25rem;
  }

  /* Controles de navegación (ocultos en desktop, visibles en mobile) */
  .testimonials-nav {
    display: none;
  }

  /* Testimonials responsive */
  @media (max-width: 1024px) {
    .testimonial-card {
      min-width: 350px;
      max-width: 350px;
    }
  }

  @media (max-width: 768px) {
    .testimonials {
      padding: 4rem 0;
    }

    .testimonials-header {
      margin-bottom: 3rem;
      padding: 0 1rem;
    }

    .testimonial-card {
      min-width: 300px;
      max-width: 300px;
      padding: 2rem;
    }

    .testimonials::before,
    .testimonials::after {
      width: 80px;
    }

    .testimonial-quote {
      font-size: 1rem;
      margin-bottom: 1.5rem;
    }

    .testimonial-avatar {
      width: 50px;
      height: 50px;
      font-size: 1.25rem;
    }

    .testimonial-name {
      font-size: 1rem;
    }
  }

  @media (max-width: 480px) {
    .testimonials {
      padding: 2.5rem 0;
      position: relative;
    }

    .testimonials-header {
      margin-bottom: 2rem;
    }

    .testimonials-header h2 {
      font-size: 1.75rem;
    }

    .testimonials-header p {
      font-size: 0.9375rem;
    }

    /* En mobile: contenedor fijo que muestra 1 tarjeta a la vez */
    .testimonials {
      position: relative;
      overflow: hidden; /* Ocultar el overflow */
      padding-left: 0;
      padding-right: 0;
    }

    .testimonials-track {
      display: flex;
      transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
      animation: none; /* Sin animación automática en mobile */
      padding: 0 calc((100vw - 260px) / 2); /* Centrar tarjeta actual */
      gap: 1rem;
    }

    .testimonial-card {
      flex: 0 0 260px;
      scroll-snap-align: center;
    }

    .testimonial-card {
      min-width: 260px;
      max-width: 260px;
      padding: 1.25rem;
    }

    .testimonials::before,
    .testimonials::after {
      width: 30px;
    }

    .testimonial-quote {
      font-size: 0.875rem;
      line-height: 1.6;
      margin-bottom: 1rem;
    }

    .testimonial-quote::before {
      font-size: 2.5rem;
      top: -0.5rem;
      left: -0.5rem;
    }

    .testimonial-stars {
      gap: 0.125rem;
      margin-bottom: 0.75rem;
    }

    .star {
      font-size: 1rem;
    }

    .testimonial-author {
      padding-top: 1rem;
      gap: 0.75rem;
    }

    .testimonial-avatar {
      width: 44px;
      height: 44px;
      font-size: 1.125rem;
    }

    .testimonial-name {
      font-size: 0.9375rem;
    }

    .testimonial-role {
      font-size: 0.8125rem;
    }

    /* Controles de navegación solo en mobile */
    .testimonials-nav {
      display: flex !important;
      gap: 0.75rem;
      justify-content: center;
      margin-top: 1.5rem;
    }

    .testimonial-nav-btn {
      width: 44px;
      height: 44px;
      border: 2px solid var(--color-gold);
      background: var(--color-surface);
      color: var(--color-gold);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
      transition: all 0.3s;
    }

    .testimonial-nav-btn:active {
      background: var(--color-gold);
      color: var(--color-surface);
      transform: scale(0.95);
    }

    .testimonial-nav-btn svg {
      width: 20px;
      height: 20px;
    }
  }

  @media (max-width: 360px) {
    .testimonial-card {
      min-width: 260px;
      max-width: 260px;
      padding: 1.25rem;
    }
  }

  /* Mapa y Video Container */
  .map-container {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 1.5rem;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  }

  .video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin-top: 1.5rem;
    border-radius: 8px;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  }

  .video-container iframe,
  .video-container blockquote {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }