/* Implementación de propiedades · Miss Styles (colores de Continental Real Estate) */
.st-page { --bg:#0b1320; --bg2:#070c14; --card:#111c30; --card2:#0f1a2e; --line:#1e2d4a; --gold:#d4af37; --gold2:#f0d77a; --mut:#94a3b8; --soft:#cbd5e1; }
.st-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.st-loading { text-align: center; color: var(--mut); padding: 120px 20px; }
.st-sec { padding: 64px 0; }
.st-sec.alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.st-eyebrow { display: block; color: var(--gold); letter-spacing: 4px; font-size: 12px; font-weight: 700; text-transform: uppercase; margin-bottom: 10px; }
.st-h2 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(26px, 3.4vw, 38px); color: #fff; margin: 0 0 12px; }
.st-lead { color: var(--soft); max-width: 720px; line-height: 1.7; margin: 0 0 28px; }
.st-center { text-align: center; }
.st-center .st-lead { margin-left: auto; margin-right: auto; }

/* Hero */
.st-hero { background: radial-gradient(1000px 500px at 80% 20%, rgba(212,175,55,.10), transparent 60%), linear-gradient(180deg, #0d1626, #0b1320); padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.st-hero .st-wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 30px; align-items: center; }
.st-hero h1 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.12; color: #fff; margin: 0 0 16px; }
.st-hero h1 em { color: var(--gold); font-style: italic; }
.st-hero p { color: var(--soft); font-size: 17px; line-height: 1.7; max-width: 560px; margin: 0 0 26px; }
.st-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.st-btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 24px; border-radius: 4px; font: 700 13px 'Plus Jakarta Sans', sans-serif; letter-spacing: 1.2px; text-transform: uppercase; cursor: pointer; border: 1px solid var(--gold); background: linear-gradient(135deg, #e6c75a, var(--gold)); color: #0b1320; text-decoration: none; }
.st-btn:hover { filter: brightness(1.08); }
.st-btn.ghost { background: transparent; color: var(--gold); }
.st-btn.ghost:hover { background: rgba(212,175,55,.12); }
.st-btn.sm { padding: 10px 16px; font-size: 12px; }
.st-hero-img { text-align: center; position: relative; }
.st-hero-img img { max-height: 430px; width: auto; max-width: 100%; filter: drop-shadow(0 20px 40px rgba(0,0,0,.45)); }
.st-hero-img .st-tag { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); background: rgba(11,19,32,.92); border: 1px solid var(--gold); color: var(--soft); border-radius: 999px; padding: 8px 18px; font-size: 13px; white-space: nowrap; }
.st-hero-img .st-tag b { color: var(--gold); }

/* Servicios */
.st-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.st-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.st-card i.ic { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(212,175,55,.12); color: var(--gold); font-size: 20px; margin-bottom: 14px; }
.st-card h3 { margin: 0 0 8px; font-size: 18px; color: #fff; font-family: 'Playfair Display', serif; }
.st-card p { margin: 0; color: var(--soft); line-height: 1.6; font-size: 14.5px; }

/* Pasos */
.st-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; counter-reset: s; }
.st-step { position: relative; padding: 22px 22px 22px 22px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.st-step::before { counter-increment: s; content: counter(s); display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: #0b1320; font-weight: 800; margin-bottom: 12px; }
.st-step h3 { margin: 0 0 6px; font-size: 16px; color: #fff; }
.st-step p { margin: 0; color: var(--soft); font-size: 14px; line-height: 1.6; }

/* Nuestros trabajos + ruleta */
.st-works { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 24px; }
.st-work { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.st-car { position: relative; aspect-ratio: 4/3; background: #070c14; overflow: hidden; touch-action: pan-y; }
.st-track { display: flex; height: 100%; transition: transform .35s ease; }
.st-track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; display: block; }
.st-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(11,19,32,.78); color: #fff; font-size: 15px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.st-nav:hover { background: var(--gold); color: #0b1320; }
.st-nav.prev { left: 10px; } .st-nav.next { right: 10px; }
.st-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; gap: 6px; justify-content: center; }
.st-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(255,255,255,.5); cursor: pointer; }
.st-dots button.on { background: var(--gold); width: 20px; border-radius: 6px; }
.st-count { position: absolute; top: 10px; right: 10px; background: rgba(11,19,32,.8); color: #fff; border-radius: 999px; padding: 3px 10px; font-size: 12px; }
.st-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.st-body h3 { margin: 0; font-family: 'Playfair Display', serif; font-size: 20px; color: #fff; }
.st-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.st-meta span { background: rgba(212,175,55,.12); color: var(--gold2); border-radius: 999px; padding: 4px 12px; font-size: 12.5px; font-weight: 600; }
.st-body p { margin: 0; color: var(--soft); font-size: 14.5px; line-height: 1.65; white-space: pre-line; }
.st-body .st-btn { margin-top: auto; justify-content: center; }
.st-empty { text-align: center; color: var(--mut); padding: 30px; border: 1px dashed var(--line); border-radius: 12px; }

/* Equipo */
.st-team { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.st-member { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px 16px; }
.st-member img, .st-member .ph { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; background: #0b1320; color: var(--gold); font-size: 30px; }
.st-member b { color: #fff; display: block; }
.st-member small { color: var(--mut); }

/* Tarifa */
.st-cta { background: linear-gradient(135deg, #14233b, #0f1a2e); border: 1px solid var(--gold); border-radius: 16px; padding: 38px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.st-cta h2 { font-family: 'Playfair Display', serif; color: #fff; margin: 0 0 8px; font-size: 28px; }
.st-cta p { margin: 0; color: var(--soft); line-height: 1.7; }

/* FAQ */
.st-faq { display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.st-faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; }
.st-faq summary { cursor: pointer; font-weight: 700; color: #fff; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.st-faq summary::after { content: "+"; color: var(--gold); font-size: 20px; line-height: 1; }
.st-faq details[open] summary::after { content: "–"; }
.st-faq p { margin: 10px 0 0; color: var(--soft); line-height: 1.65; }

/* Modal de tarifa */
.st-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(3,7,14,.78); display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.st-modal[hidden] { display: none; }
.st-modal-box { position: relative; background: var(--bg); border: 1px solid var(--gold); border-radius: 16px; padding: 28px; width: 100%; max-width: 520px; max-height: 94vh; overflow-y: auto; color: var(--soft); }
.st-x { position: absolute; top: 10px; right: 14px; background: transparent; border: 0; color: var(--soft); font-size: 28px; cursor: pointer; }
.st-modal h3 { font-family: 'Playfair Display', serif; color: #fff; margin: 0 0 8px; font-size: 24px; }
.st-modal p { line-height: 1.65; margin: 0 0 14px; }
.st-modal .st-actions { margin-top: 6px; }
.st-form { display: grid; gap: 12px; }
.st-form label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--soft); }
.st-form input, .st-form select, .st-form textarea { background: var(--card); border: 1px solid var(--line); color: #fff; border-radius: 8px; padding: 11px 12px; font: inherit; font-size: 14px; }
.st-form input:focus, .st-form select:focus, .st-form textarea:focus { outline: none; border-color: var(--gold); }
.st-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.st-form .opt { color: var(--mut); font-weight: 400; }
.st-err { color: #fca5a5; font-size: 13px; min-height: 18px; }
.st-ok { text-align: center; }
.st-ok i { font-size: 44px; color: #4ade80; margin-bottom: 10px; }

/* Miss Styles (chat flotante) */
.ms-fab { position: fixed; right: 22px; bottom: 22px; z-index: 960; display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--gold); border-radius: 999px; padding: 6px 20px 6px 6px; cursor: pointer; color: #fff; font: inherit; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.ms-fab img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; background: #0b1320; border: 2px solid var(--gold); }
.ms-fab span { text-align: left; line-height: 1.25; font-size: 13px; color: var(--soft); }
.ms-fab b { display: block; color: var(--gold); font-size: 14px; }
.ms-panel { position: fixed; right: 22px; bottom: 22px; z-index: 970; width: 380px; max-width: calc(100vw - 24px); height: min(620px, calc(100vh - 44px)); background: var(--bg); border: 1px solid var(--gold); border-radius: 18px; display: none; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.ms-panel.open { display: flex; }
.ms-top { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); border-bottom: 1px solid var(--line); }
.ms-top img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.ms-top b { display: block; font-size: 15px; color: var(--gold); }
.ms-top small { color: var(--mut); font-size: 12px; }
.ms-top button { margin-left: auto; background: transparent; border: 0; color: var(--soft); font-size: 22px; cursor: pointer; }
.ms-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.ms-m { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; word-wrap: break-word; }
.ms-m.bot { background: var(--card); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; color: var(--soft); }
.ms-m.me { background: var(--gold); color: #0b1320; align-self: flex-end; border-bottom-right-radius: 4px; font-weight: 600; }
.ms-m a { color: var(--gold); text-decoration: underline; }
.ms-q { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 14px 8px; }
.ms-q button { border: 1px solid var(--line); background: var(--card2); color: var(--soft); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 12.5px; cursor: pointer; }
.ms-q button:hover { border-color: var(--gold); color: #fff; }
.ms-foot { text-align: center; padding: 0 0 8px; }
.ms-foot button { background: transparent; border: 0; color: var(--gold); font: inherit; font-size: 12.5px; text-decoration: underline; cursor: pointer; }
.ms-in { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: var(--card); }
.ms-in input { flex: 1; background: var(--bg); border: 1px solid var(--line); color: #fff; border-radius: 999px; padding: 11px 16px; font: inherit; font-size: 14px; outline: none; }
.ms-in input:focus { border-color: var(--gold); }
.ms-in button { width: 44px; border: 0; border-radius: 50%; background: var(--gold); color: #0b1320; cursor: pointer; font-size: 16px; }

@media (max-width: 860px) {
  .st-hero .st-wrap { grid-template-columns: 1fr; text-align: center; }
  .st-hero p { margin-left: auto; margin-right: auto; }
  .st-actions { justify-content: center; }
  .st-hero-img img { max-height: 300px; }
  .st-cta { grid-template-columns: 1fr; text-align: center; padding: 28px 20px; }
  .st-sec { padding: 46px 0; }
  .st-works { grid-template-columns: 1fr; }
  .ms-fab span { display: none; } .ms-fab { padding: 6px; }
}
