/*
Theme Name: Optima Properties Landing
Theme URI: https://wa.me/56954142610
Author: Optima Properties
Author URI: https://wa.me/56954142610
Description: Landing page de una sola pagina para Optima Properties, corretaje de propiedades en Arica, Chile. Tema minimalista, sin plantillas adicionales: toda la web vive en esta unica pagina.
Version: 1.0
License: Uso privado
Text Domain: optima-properties
*/

:root {
    --gold: #C9A84C;
    --gold-light: #E8C97A;
    --dark: #0D1117;
    --dark-2: #141A24;
    --dark-3: #1C2433;
    --white: #FAF8F3;
    --gray: #8B929E;
    --green-wa: #25D366;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { font-family: 'DM Sans', sans-serif; background: var(--dark); color: var(--white); overflow-x: hidden; }

  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 20px 5%;
    display: flex; justify-content: space-between; align-items: center;
    background: linear-gradient(to bottom, rgba(13,17,23,0.95), transparent);
    backdrop-filter: blur(8px);
  }
  .logo { font-family: 'Cormorant Garamond', serif; font-size: 1.6rem; font-weight: 600; letter-spacing: 0.08em; }
  .logo span { color: var(--gold); }
  .nav-cta {
    background: var(--gold); color: var(--dark); border: none;
    padding: 10px 22px; font-family: 'DM Sans', sans-serif; font-size: 0.82rem;
    font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
    cursor: pointer; transition: all 0.3s; text-decoration: none; display: inline-block;
  }
  .nav-cta:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: 0 8px 30px rgba(201,168,76,0.4); }

  .hero {
    position: relative; height: 100vh; min-height: 700px;
    display: flex; align-items: center; overflow: hidden;
  }
  .hero-bg {
    position: absolute; inset: 0;
    background:
      linear-gradient(135deg, rgba(13,17,23,0.93) 0%, rgba(13,17,23,0.55) 50%, rgba(13,17,23,0.88) 100%),
      url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?w=1600&q=80') center/cover no-repeat;
    transform: scale(1.05);
    animation: slowZoom 20s ease-in-out infinite alternate;
  }
  @keyframes slowZoom { from { transform: scale(1.05); } to { transform: scale(1.13); } }
  .hero-glow {
    position: absolute; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(201,168,76,0.13) 0%, transparent 70%);
    top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none;
  }
  .hero-content { position: relative; z-index: 2; padding: 0 5%; max-width: 820px; animation: fadeUp 1s ease both; }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: translateY(0); } }
  .hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid rgba(201,168,76,0.4); padding: 7px 16px; margin-bottom: 28px;
    font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
    animation: fadeUp 1s 0.1s ease both;
  }
  .hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--gold); border-radius: 50%; animation: pulse 2s infinite; }
  @keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.5); } }
  .hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3.2rem, 7vw, 5.5rem); font-weight: 300; line-height: 1.08;
    margin-bottom: 24px; animation: fadeUp 1s 0.2s ease both;
  }
  .hero h1 em { font-style: italic; color: var(--gold); }
  .hero p {
    font-size: 1.1rem; color: rgba(250,248,243,0.75); line-height: 1.7;
    max-width: 540px; margin-bottom: 42px; font-weight: 300;
    animation: fadeUp 1s 0.3s ease both;
  }
  .hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; animation: fadeUp 1s 0.4s ease both; }

  .btn-primary {
    display: inline-flex; align-items: center; gap: 12px;
    background: var(--green-wa); color: #fff; padding: 17px 32px;
    font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 600;
    text-decoration: none; transition: all 0.3s; position: relative; overflow: hidden;
  }
  .btn-primary::before { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.15); transform: translateX(-100%); transition: transform 0.4s; }
  .btn-primary:hover::before { transform: translateX(0); }
  .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 40px rgba(37,211,102,0.45); }

  .btn-secondary {
    display: inline-flex; align-items: center; gap: 10px;
    border: 1px solid rgba(201,168,76,0.5); color: var(--gold); padding: 17px 32px;
    font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 500;
    text-decoration: none; transition: all 0.3s; background: transparent; cursor: pointer;
  }
  .btn-secondary:hover { background: rgba(201,168,76,0.1); border-color: var(--gold); transform: translateY(-3px); }

  .wa-svg { width: 22px; height: 22px; fill: white; flex-shrink: 0; }

  .stats-bar {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
    background: rgba(20,26,36,0.85); backdrop-filter: blur(16px);
    border-top: 1px solid rgba(201,168,76,0.2);
    display: flex; justify-content: center;
    animation: fadeUp 1s 0.5s ease both;
  }
  .stats-inner { display: flex; max-width: 900px; width: 100%; padding: 0 5%; }
  .stat { flex: 1; padding: 22px 20px; text-align: center; border-right: 1px solid rgba(201,168,76,0.15); }
  .stat:last-child { border-right: none; }
  .stat-num { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 600; color: var(--gold); display: block; line-height: 1; }
  .stat-label { font-size: 0.75rem; color: var(--gray); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 5px; display: block; }

  section { padding: 100px 5%; }
  .section-tag { display: inline-block; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--gold); padding-bottom: 4px; margin-bottom: 20px; }
  .section-title { font-family: 'Cormorant Garamond', serif; font-size: clamp(2.4rem, 4vw, 3.4rem); font-weight: 300; line-height: 1.15; margin-bottom: 18px; }
  .section-title em { font-style: italic; color: var(--gold); }
  .section-subtitle { color: rgba(250,248,243,0.6); font-size: 1rem; line-height: 1.7; max-width: 520px; font-weight: 300; }

  /* WHY */
  .why { background: var(--dark-2); position: relative; overflow: hidden; }
  .why::before { content: ''; position: absolute; right: -200px; top: -200px; width: 600px; height: 600px; background: radial-gradient(circle, rgba(201,168,76,0.07) 0%, transparent 70%); pointer-events: none; }
  .why-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; max-width: 1200px; margin: 0 auto; }
  .why-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .card { background: var(--dark-3); border: 1px solid rgba(201,168,76,0.12); padding: 28px 24px; transition: all 0.35s; position: relative; overflow: hidden; }
  .card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(201,168,76,0.05), transparent); opacity: 0; transition: opacity 0.35s; }
  .card:hover { border-color: rgba(201,168,76,0.4); transform: translateY(-5px); box-shadow: 0 20px 50px rgba(0,0,0,0.4); }
  .card:hover::after { opacity: 1; }
  .card-icon { font-size: 2rem; margin-bottom: 14px; display: block; }
  .card h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.25rem; font-weight: 600; margin-bottom: 10px; }
  .card p { font-size: 0.88rem; color: var(--gray); line-height: 1.65; font-weight: 300; }

  /* SERVICES */
  .services-wrap { background: var(--dark); }
  .services-inner { max-width: 1200px; margin: 0 auto; }
  .services-header { text-align: center; margin-bottom: 64px; }
  .services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
  .service-item { background: var(--dark-2); padding: 50px 36px; position: relative; overflow: hidden; transition: all 0.4s; cursor: pointer; text-align: center; }
  .service-item::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--gold); transform: scaleX(0); transition: transform 0.4s; transform-origin: left; }
  .service-item:hover::before { transform: scaleX(1); }
  .service-item:hover { background: var(--dark-3); transform: translateY(-8px); }
  .service-num { font-family: 'Cormorant Garamond', serif; font-size: 4rem; font-weight: 300; color: rgba(201,168,76,0.15); line-height: 1; margin-bottom: 16px; display: block; }
  .service-item h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; font-weight: 600; margin-bottom: 14px; }
  .service-item p { font-size: 0.88rem; color: var(--gray); line-height: 1.7; font-weight: 300; }
  .service-cta { display: inline-flex; align-items: center; gap: 8px; color: var(--gold); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-top: 24px; font-weight: 600; opacity: 0; transition: opacity 0.3s; text-decoration: none; }
  .service-item:hover .service-cta { opacity: 1; }

  /* PROCESS */
  .process { background: var(--dark-2); padding: 100px 5%; }
  .process-inner { max-width: 1100px; margin: 0 auto; }
  .process-header { text-align: center; margin-bottom: 72px; }
  .process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
  .process-steps::before { content: ''; position: absolute; top: 36px; left: 12.5%; right: 12.5%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), var(--gold), var(--gold), transparent); opacity: 0.3; }
  .step { text-align: center; padding: 0 20px; }
  .step-circle { width: 72px; height: 72px; border: 1px solid rgba(201,168,76,0.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; background: var(--dark-2); transition: all 0.3s; font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 600; color: var(--gold); }
  .step:hover .step-circle { background: var(--gold); color: var(--dark); box-shadow: 0 0 30px rgba(201,168,76,0.4); }
  .step h4 { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; }
  .step p { font-size: 0.84rem; color: var(--gray); line-height: 1.6; font-weight: 300; }

  /* TESTIMONIALS */
  .testimonials { background: var(--dark); padding: 100px 5%; }
  .testi-inner { max-width: 1100px; margin: 0 auto; }
  .testi-header { text-align: center; margin-bottom: 60px; }
  .testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .testi-card { background: var(--dark-2); border: 1px solid rgba(201,168,76,0.1); padding: 36px 30px; transition: all 0.3s; }
  .testi-card:hover { border-color: rgba(201,168,76,0.3); transform: translateY(-4px); }
  .testi-stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 18px; letter-spacing: 3px; }
  .testi-text { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-style: italic; line-height: 1.7; color: rgba(250,248,243,0.85); margin-bottom: 24px; font-weight: 300; }
  .testi-author { display: flex; align-items: center; gap: 14px; }
  .testi-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-size: 1.1rem; font-weight: 700; color: var(--dark); flex-shrink: 0; }
  .testi-name { font-weight: 600; font-size: 0.9rem; }
  .testi-role { font-size: 0.78rem; color: var(--gray); margin-top: 2px; }

  /* CTA */
  .cta-section { position: relative; overflow: hidden; padding: 0; }
  .cta-bg { position: absolute; inset: 0; background: linear-gradient(rgba(13,17,23,0.88), rgba(13,17,23,0.88)), url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?w=1600&q=80') center/cover; }
  .cta-content { position: relative; z-index: 2; text-align: center; padding: 120px 5%; max-width: 800px; margin: 0 auto; }
  .cta-content .section-title { font-size: clamp(2.6rem, 5vw, 4rem); margin-bottom: 20px; }
  .cta-content > p { color: rgba(250,248,243,0.65); font-size: 1.05rem; line-height: 1.7; margin-bottom: 48px; font-weight: 300; }
  .cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
  .btn-wa-large { display: inline-flex; align-items: center; gap: 14px; background: var(--green-wa); color: #fff; padding: 20px 40px; font-size: 1.1rem; font-weight: 600; text-decoration: none; transition: all 0.3s; border: 2px solid var(--green-wa); position: relative; overflow: hidden; }
  .btn-wa-large::before { content: ''; position: absolute; inset: 0; background: rgba(255,255,255,0.12); transform: translateX(-100%) skewX(-15deg); transition: transform 0.5s; }
  .btn-wa-large:hover::before { transform: translateX(120%) skewX(-15deg); }
  .btn-wa-large:hover { transform: translateY(-4px); box-shadow: 0 20px 60px rgba(37,211,102,0.5); }
  .wa-pulse { display: inline-flex; position: relative; }
  .wa-pulse::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--green-wa); animation: ringPulse 2s infinite; }
  @keyframes ringPulse { 0% { transform: scale(0.9); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }

  /* FOOTER */
  footer { background: var(--dark-2); border-top: 1px solid rgba(201,168,76,0.15); padding: 50px 5%; }
  .footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px; }
  .footer-logo { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600; }
  .footer-logo span { color: var(--gold); }
  .footer-info { color: var(--gray); font-size: 0.85rem; line-height: 1.7; text-align: center; }
  .footer-copy { font-size: 0.8rem; color: rgba(139,146,158,0.6); text-align: right; }

  /* FLOATING WA */
  .floating-wa { position: fixed; bottom: 32px; right: 32px; z-index: 200; width: 62px; height: 62px; background: var(--green-wa); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 30px rgba(37,211,102,0.5); animation: floatBounce 3s ease-in-out infinite; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
  .floating-wa:hover { transform: scale(1.12) translateY(-4px); box-shadow: 0 15px 50px rgba(37,211,102,0.65); }
  .floating-wa svg { width: 32px; height: 32px; fill: white; }
  .floating-wa-ring { position: fixed; bottom: 24px; right: 24px; z-index: 199; width: 78px; height: 78px; border: 2px solid rgba(37,211,102,0.5); border-radius: 50%; animation: expandRing 2.5s ease-out infinite; pointer-events: none; }
  @keyframes expandRing { 0% { transform: scale(0.9); opacity: 1; } 100% { transform: scale(1.7); opacity: 0; } }
  @keyframes floatBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
  .floating-tooltip { position: fixed; bottom: 108px; right: 32px; z-index: 200; background: var(--dark-3); border: 1px solid rgba(201,168,76,0.3); color: var(--white); padding: 10px 16px; font-size: 0.82rem; white-space: nowrap; pointer-events: none; animation: tooltipFade 5s 2s ease both infinite; }
  .floating-tooltip::after { content: ''; position: absolute; bottom: -8px; right: 28px; border: 4px solid transparent; border-top-color: rgba(201,168,76,0.3); }
  @keyframes tooltipFade { 0%, 10% { opacity: 0; transform: translateY(8px); } 20%, 80% { opacity: 1; transform: translateY(0); } 90%, 100% { opacity: 0; transform: translateY(8px); } }

  @media (max-width: 900px) {
    .why-layout { grid-template-columns: 1fr; gap: 50px; }
    .services-grid { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr 1fr; }
    .process-steps::before { display: none; }
    .testi-grid { grid-template-columns: 1fr; }
    .stats-inner { flex-wrap: wrap; }
    .stat { min-width: 50%; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-copy { text-align: center; }
  }
  @media (max-width: 600px) {
    .why-cards { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.8rem; }
    .hero-buttons, .cta-buttons { flex-direction: column; align-items: flex-start; }
    .cta-buttons { align-items: center; }
    .floating-wa { bottom: 20px; right: 20px; }
    .floating-wa-ring { bottom: 12px; right: 12px; }
    .floating-tooltip { right: 10px; font-size: 0.75rem; }
  }
