/* MoralesCasino.cl — content pages stylesheet (mobile-first, D-20 compliant) */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary-blue: #0066cc;
  --secondary-blue: #004f99;
  --accent-gold: #f4c430;
  --dark-gold: #d4a420;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --text-dark: #1a1a1a;
  --text-gray: #4a5568;
  --border-color: #e2e8f0;
  --shadow: 0 4px 6px rgba(0,0,0,.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,.15);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.7;
  color: var(--text-dark);
  background: var(--bg-light);
}

/* Header / nav */
.site-header { background: var(--bg-white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000; }
.nav-container { max-width: 1100px; margin: 0 auto; padding: .9rem 1.2rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; }
.logo { font-size: 1.35rem; font-weight: 700; color: var(--primary-blue); text-decoration: none; display: inline-flex; align-items: center; }
.logo img { height: 48px; width: auto; display: block; }
.nav-menu { display: flex; list-style: none; gap: 1.75rem; flex-wrap: wrap; align-items: center; }
.nav-menu a { text-decoration: none; color: var(--text-dark); font-weight: 600; font-size: .95rem; letter-spacing: .03em; padding: .5rem 0; display: inline-block; min-height: 44px; line-height: 34px; position: relative; transition: color .25s ease; }
.nav-menu a::after { content: ""; position: absolute; left: 0; bottom: 6px; width: 0; height: 2px; background: var(--accent-gold); transition: width .25s ease; }
.nav-menu a:hover { color: var(--primary-blue); }
.nav-menu a:hover::after { width: 100%; }
.nav-cta { display: inline-block; background: linear-gradient(135deg, var(--accent-gold), var(--dark-gold)); color: #1a1a1a !important; padding: .55rem 1.3rem !important; border-radius: 8px; font-weight: 800 !important; font-size: .95rem; letter-spacing: .04em; min-height: 0 !important; line-height: 1.2 !important; box-shadow: 0 2px 8px rgba(212,164,32,.35); }
.nav-cta::after { display: none !important; }
.nav-cta:hover { transform: translateY(-1px); filter: brightness(1.05); color: #1a1a1a !important; }

/* Article container */
article { max-width: 820px; margin: 0 auto; padding: 2rem 1.2rem 3rem; background: var(--bg-white); }
article h1 { font-size: 2rem; line-height: 1.25; margin-bottom: 1.2rem; color: var(--text-dark); }
article h2 { font-size: 1.5rem; margin: 2rem 0 .8rem; color: var(--secondary-blue); }
article h3 { font-size: 1.2rem; margin: 1.4rem 0 .6rem; color: var(--text-dark); }
article p { margin-bottom: 1rem; color: var(--text-gray); }
article ul { margin: 0 0 1rem 1.4rem; color: var(--text-gray); }
article li { margin-bottom: .4rem; }
article a { color: var(--primary-blue); }

.intro { font-size: 1.05rem; }

/* Specs / tables */
.specs-box { background: var(--bg-light); border-radius: 12px; padding: 1.5rem; margin: 1.5rem 0; border-left: 4px solid var(--accent-gold); }
table { width: 100%; border-collapse: collapse; }
table td { padding: .55rem .4rem; border-bottom: 1px solid var(--border-color); vertical-align: top; }
table td:first-child { width: 45%; }

/* CTA box + button */
.cta-box { background: linear-gradient(135deg, var(--primary-blue) 0%, var(--secondary-blue) 100%); color: #fff; border-radius: 14px; padding: 2rem 1.5rem; margin: 2.5rem 0; text-align: center; }
.cta-box h3 { color: #fff; margin-bottom: .8rem; font-size: 1.35rem; }
.cta-box p { color: rgba(255,255,255,.92); margin-bottom: 1.2rem; }
.cta-button {
  display: inline-block; background: var(--accent-gold); color: var(--text-dark);
  padding: 1rem 2.4rem; border-radius: 8px; text-decoration: none; font-weight: 700;
  font-size: 1.1rem; min-height: 44px; line-height: 1.4; transition: all .25s ease; box-shadow: var(--shadow);
}
.cta-button:hover { background: var(--dark-gold); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* Related links (internal linking) */
.related { max-width: 820px; margin: 0 auto 2rem; padding: 1.5rem 1.2rem; background: var(--bg-white); border-top: 1px solid var(--border-color); }
.related h2 { font-size: 1.3rem; margin-bottom: 1rem; color: var(--secondary-blue); }
.related ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .6rem; margin: 0; }
.related li { margin: 0; }
.related a { display: block; padding: .8rem 1rem; background: var(--bg-light); border-radius: 8px; text-decoration: none; color: var(--primary-blue); font-weight: 600; border-left: 3px solid var(--accent-gold); min-height: 44px; }
.related a:hover { background: #eef4fb; }

/* Footer */
.site-footer { background: var(--text-dark); color: rgba(255,255,255,.8); padding: 2.5rem 1.2rem 1.5rem; margin-top: 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; text-align: center; font-size: .85rem; }
.site-footer a { color: var(--accent-gold); text-decoration: none; }
article footer { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--border-color); color: var(--text-gray); }

/* Mobile-first responsive (D-20: 768 / 480) */
@media (max-width: 768px) {
  article h1 { font-size: 1.6rem; }
  article h2 { font-size: 1.3rem; }
  .nav-menu { gap: 1rem; font-size: .95rem; }
}
@media (max-width: 480px) {
  .nav-container { flex-direction: column; align-items: flex-start; }
  article { padding: 1.4rem 1rem 2.4rem; }
  .cta-button { width: 100%; padding: 1rem; }
  table td:first-child { width: 50%; }
}
