/* /broker/assets/style.css - V5 (CONTRASTE MEJORADO 100%) */

:root {
    --primary: #1e3a8a;
    --accent: #1d4ed8;
    --cta-color: #d97706;
    --cta-hover: #b45309;
    --success: #047857;
    --bg-light: #f8fafc;
    --text-main: #334155; /* Texto oscuro base */
    --card-bg: #ffffff;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    margin: 0; padding: 0;
    line-height: 1.6;
}

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

/* HEADER */
header {
    background: white; padding: 12px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05); margin-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}
.header-flex { display: flex; justify-content: space-between; align-items: center; }
.logo-img { max-width: 180px; height: auto; display: block; }

/* BREADCRUMB OSCURECIDO */
.breadcrumb { font-size: 0.9rem; color: #4b5563; margin: 15px 0; }
.breadcrumb a { text-decoration: none; color: #4b5563; font-weight:600; }
.breadcrumb a:hover { color: var(--primary); text-decoration:underline; }
.breadcrumb span { margin: 0 5px; color: #1f2937; }

/* MAIN CARD */
.main-card {
    background: var(--card-bg); border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0; margin-bottom: 20px;
}

h1 { color: var(--primary); font-size: 1.7rem; margin-top: 0; line-height: 1.25; }
h2 { color: #1e293b; font-size: 1.4rem; margin-top: 25px; } /* Más oscuro */
h3 { color: var(--primary); font-size: 1.2rem; margin-bottom: 10px; }

/* HIGHLIGHT BOX */
.highlight-box {
    background: #fffbeb; border: 1px solid #fcd34d; border-left: 5px solid #f59e0b;
    padding: 15px; margin: 20px 0; border-radius: 6px;
    display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap;
}
.rate-big { font-size: 2rem; font-weight: 800; color: #9a3412; line-height:1; } /* Color sólido AAA */
.rate-label { font-size: 0.8rem; text-transform:uppercase; color:#7c2d12; font-weight:700; }

/* QUIZ */
.quiz-container {
    background: #ffffff; border: 2px solid var(--accent);
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.1);
    border-radius: 12px; padding: 25px; margin: 25px 0; position: relative;
}
.quiz-progress { height:6px; background:#eff6ff; margin-bottom:15px; border-radius:3px; overflow:hidden; display:none; }
.quiz-bar { height:100%; background:var(--accent); width:20%; }
.quiz-step { display: none; animation: fadeIn 0.4s ease-in-out; }
.quiz-step.active { display: block; }
.quiz-question { font-size: 1.15rem; font-weight: 700; color: var(--primary); margin-bottom: 15px; }

/* BOTONES OPCION */
.btn-option {
    display: block; width: 100%;
    background: white; border: 1px solid #94a3b8;
    padding: 14px 15px; margin-bottom: 10px; border-radius: 8px;
    color: #334155; font-weight: 600; font-size: 1rem;
    text-align: left; cursor: pointer; transition: all 0.2s; position: relative;
}
.btn-option:hover {
    border-color: var(--accent); background: #eff6ff; color: var(--accent); transform: translateX(4px);
}
.btn-option::before { content: '👉'; margin-right:8px; opacity:1; } /* Opacidad quitada */

/* CTA FINAL */
.final-cta {
    display: block; width: 100%;
    background: var(--cta-color); color: white;
    text-shadow: 0 1px 1px rgba(0,0,0,0.3);
    padding: 18px; border: none; border-radius: 50px;
    font-weight: 800; font-size: 1.15rem; text-transform: uppercase;
    cursor: pointer; box-shadow: 0 4px 6px rgba(245, 158, 11, 0.4);
    margin-top: 15px; transition: 0.1s;
}
.final-cta:hover { background: var(--cta-hover); transform: translateY(-2px); }

/* IMAGENES */
.city-image { 
    width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; 
    border-radius: 8px; margin: 20px 0 10px 0; border:1px solid #cbd5e1;
}
#map-container { height: 320px; border-radius: 8px; z-index: 0; border: 1px solid #cbd5e1; }

/* FORM Y TABLAS */
.mail-input { width: 100%; padding: 14px; border: 2px solid #94a3b8; border-radius: 8px; margin: 10px 0; font-size: 1rem; box-sizing: border-box; color:#1e293b; }
.seo-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.9rem; background: white; border-radius: 8px; border:1px solid #cbd5e1; overflow: hidden; }
.seo-table th { background: #f1f5f9; color: var(--primary); padding: 12px; text-align: left; font-weight:700;}
.seo-table td { padding: 12px; border-top: 1px solid #cbd5e1; color:#334155; }
.seo-table tr:last-child td { font-weight: bold; background: #ecfdf5; color: #064e3b; }

/* FAQ */
details { background: white; border: 1px solid #cbd5e1; border-radius: 8px; margin-bottom: 10px; overflow:hidden; }
details summary { padding: 15px; font-weight: 700; cursor: pointer; background: #f8fafc; color:#1e293b; } /* Texto oscuro */
details div { padding: 15px; border-top: 1px solid #e2e8f0; color: #334155; font-size: 0.95rem; }

/* FOOTER OSCURO TOTALMENTE */
footer { background: #fff; border-top: 1px solid #cbd5e1; padding: 40px 0; text-align: center; margin-top: 50px; color: #374151; font-size: 0.9rem; }
footer a { color: var(--primary); text-decoration: none; margin: 0 10px; font-weight:700; }

.ads-space { margin: 30px 0; min-height: 100px; text-align: center; }
.spinner { border: 4px solid #e2e8f0; border-top: 4px solid var(--cta-color); border-radius: 50%; width: 40px; height: 40px; animation: spin 0.8s linear infinite; margin: 0 auto 15px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 600px) { .highlight-box { display: block; text-align: center; } }