/* ============================================================
   HiPay Casino ES — Hoja de estilos principal
   hipay-mejor-casino-online-acepta.es
   ============================================================ */

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

:root {
  --c-bg:           #fafafa;
  --c-white:        #ffffff;
  --c-text:         #1a1a1a;
  --c-text-sec:     #4a4a4a;
  --c-muted:        #767676;
  --c-border:       #e2e2e2;
  --c-border-light: #f0f0f0;
  --c-accent:       #1c1c1e;
  --c-accent-h:     #3a3a3c;
  --c-star:         #e6aa2c;
  --c-gold:         #c9a84c;
  --c-green:        #16a34a;
  --c-red:          #dc2626;
  --c-blue:         #3b82f6;
  --c-highlight:    #f4f4f5;
  --shadow-sm:  0 1px 4px rgba(0,0,0,0.07);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.1);
  --radius-sm:  4px;
  --radius:     8px;
  --radius-lg:  12px;
  --font:       -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max-w:      1100px;
  --tr:         0.2s ease;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--c-accent);
  text-decoration: none;
  transition: color var(--tr);
}
a:hover { color: var(--c-accent-h); text-decoration: underline; }

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--c-text);
}
h1 { font-size: clamp(1.55rem, 4vw, 2.2rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.25rem, 3vw, 1.7rem); margin-top: 2.5rem; margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.05rem, 2.5vw, 1.3rem); margin-top: 1.75rem; margin-bottom: 0.5rem; }
p  { margin-bottom: 1rem; }

ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: 0.3rem; }

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 768px) { .container { padding: 0 1.5rem; } }

.section { padding: 2.5rem 0; }

/* ---- Header / Nav ---- */
.site-header {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
  gap: 1rem;
}

.logo {
  font-weight: 800;
  font-size: 1rem;
  color: var(--c-text);
  white-space: nowrap;
  letter-spacing: -0.02em;
}
.logo:hover { text-decoration: none; color: var(--c-text); }
.logo-accent { color: var(--c-gold); }

.main-nav {
  display: none;
  gap: 1.4rem;
}
.main-nav a {
  font-size: 0.875rem;
  color: var(--c-text-sec);
  font-weight: 500;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--tr), color var(--tr);
  text-decoration: none;
}
.main-nav a:hover,
.main-nav a.active {
  color: var(--c-accent);
  border-bottom-color: var(--c-accent);
  text-decoration: none;
}

.nav-toggle {
  background: none;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  font-size: 1.15rem;
  color: var(--c-text);
  line-height: 1;
}

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  padding: 1rem;
  gap: 0;
  box-shadow: var(--shadow-md);
  position: absolute;
  top: 62px;
  left: 0;
  right: 0;
  z-index: 999;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  color: var(--c-text-sec);
  font-size: 0.9rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--c-border-light);
  text-decoration: none;
  font-weight: 500;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a.active { color: var(--c-accent); font-weight: 700; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .main-nav { display: flex; }
  .mobile-nav { display: none !important; }
}

/* ---- Hero ---- */
.hero {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  padding: 2rem 0 2.5rem;
}
.hero__eyebrow {
  font-size: 0.75rem;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
  font-weight: 600;
}
.hero__intro {
  color: var(--c-text-sec);
  font-size: 1rem;
  max-width: 700px;
  margin-bottom: 0;
}

/* ---- Top-5 Widget ---- */
.widget-wrap {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--c-border);
}
.widget-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-muted);
  margin-bottom: 0.75rem;
  font-weight: 700;
}
.casino-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 540px) {
  .casino-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .casino-cards { grid-template-columns: repeat(5, 1fr); }
}

.casino-card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--tr), transform var(--tr);
}
.casino-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.casino-card.top1 {
  border-color: var(--c-gold);
  border-width: 2px;
}
.casino-card__rank {
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.casino-card.top1 .casino-card__rank { color: var(--c-gold); }

.casino-card__logo {
  width: 100%;
  height: 92px;
  object-fit: cover;
  background: var(--c-highlight);
  border-radius: var(--radius-sm);
}
.casino-card__name { font-weight: 700; font-size: 0.92rem; }
.casino-card__stars { color: var(--c-star); font-size: 0.82rem; letter-spacing: 1px; }
.casino-card__bonus { font-size: 0.8rem; color: var(--c-text-sec); line-height: 1.4; }
.casino-card__bonus strong { color: var(--c-text); font-size: 0.88rem; display: block; }
.casino-card__min { font-size: 0.72rem; color: var(--c-muted); }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  text-align: center;
  text-decoration: none;
  transition: background var(--tr), color var(--tr), opacity var(--tr);
  white-space: nowrap;
  line-height: 1.4;
}
.btn-dark  { background: var(--c-accent); color: #fff; }
.btn-dark:hover { background: var(--c-accent-h); color: #fff; text-decoration: none; }
.btn-gold  { background: var(--c-gold); color: #fff; }
.btn-gold:hover { background: #b8923e; color: #fff; text-decoration: none; }
.btn-outline { background: transparent; color: var(--c-accent); border: 1.5px solid var(--c-accent); }
.btn-outline:hover { background: var(--c-accent); color: #fff; text-decoration: none; }
.btn-full  { width: 100%; display: block; }
.btn-sm    { padding: 0.4rem 0.9rem; font-size: 0.8rem; }

/* ---- Content layout ---- */
.content-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
  padding: 2rem 0 3rem;
}
@media (min-width: 1000px) {
  .content-wrap { grid-template-columns: 1fr 270px; }
}
@media (max-width:500px) {
    .content-wrap {
        display: block;
    }
    .casino-review {
        padding: 1rem;
    }
}


/* ---- Article ---- */
.article-body { font-size: 1rem; line-height: 1.8; }
.article-body h2 {
  border-bottom: 2px solid var(--c-border);
  padding-bottom: 0.4rem;
}
.article-body h3 { color: var(--c-accent); }

/* ---- Tables ---- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
}
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
thead { background: var(--c-accent); color: #fff; }
thead th {
  padding: 0.65rem 0.85rem;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}
tbody tr:nth-child(even) { background: var(--c-highlight); }
tbody td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--c-border-light);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
.td-ok  { color: var(--c-green); font-weight: 600; }
.td-no  { color: var(--c-red); font-weight: 600; }
.td-num { font-weight: 700; }

/* ---- Casino review blocks ---- */
.casino-review {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-sm);
}
.casino-review__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.casino-review__logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  background: var(--c-highlight);
  border-radius: var(--radius-sm);
  padding: 0.3rem;
  flex-shrink: 0;
}
.casino-review__info { flex: 1; min-width: 180px; }
.casino-review__name { font-size: 1.15rem; font-weight: 800; margin-bottom: 0.2rem; }
.casino-review__rating {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.stars { color: var(--c-star); letter-spacing: 2px; font-size: 0.9rem; }
.rating-num { font-weight: 700; font-size: 0.9rem; }
.badge {
  padding: 0.2rem 0.7rem;
  background: var(--c-highlight);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--c-text-sec);
  white-space: nowrap;
}
.badge-gold { background: #fef9ec; color: var(--c-gold); border: 1px solid #f5dfa0; }

/* ---- Pros / Cons ---- */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1rem 0;
}
@media (max-width: 560px) { .pros-cons { grid-template-columns: 1fr; } }
.pros-box, .cons-box {
  border-radius: var(--radius);
  padding: 1rem;
}
.pros-box { background: #f0fdf4; border: 1px solid #bbf7d0; }
.cons-box { background: #fff7f7; border: 1px solid #fecaca; }
.pros-box h4 { color: var(--c-green); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.cons-box h4 { color: var(--c-red); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.pros-box ul, .cons-box ul { margin: 0; padding-left: 1.2rem; }
.pros-box li, .cons-box li { font-size: 0.85rem; margin-bottom: 0.25rem; line-height: 1.5; }

/* ---- Notice boxes ---- */
.notice {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
  border-left: 4px solid var(--c-accent);
  background: var(--c-highlight);
}
.notice--info    { border-left-color: var(--c-blue); background: #eff6ff; }
.notice--warning { border-left-color: var(--c-star); background: #fffbeb; }
.notice--tip     { border-left-color: var(--c-green); background: #f0fdf4; }
.notice__title   { font-weight: 700; margin-bottom: 0.25rem; font-size: 0.875rem; }

/* ---- Steps ---- */
.steps {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  counter-reset: step;
}
.step-item {
  counter-increment: step;
  display: flex;
  gap: 1rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--c-border-light);
}
.step-item:last-child { border-bottom: none; }
.step-item::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--c-accent);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.step-content strong { display: block; font-size: 0.95rem; margin-bottom: 0.2rem; }
.step-content span { font-size: 0.875rem; color: var(--c-text-sec); }

/* ---- FAQ ---- */
.faq-section { margin: 2.5rem 0; }
.faq-item {
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  margin-bottom: 0.65rem;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  background: var(--c-white);
  border: none;
  padding: 0.9rem 1.1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  color: var(--c-text);
  transition: background var(--tr);
  line-height: 1.4;
}
.faq-question:hover { background: var(--c-highlight); }
.faq-question.open  { background: var(--c-accent); color: #fff; }
.faq-icon {
  font-size: 1.3rem;
  font-weight: 300;
  flex-shrink: 0;
  transition: transform var(--tr);
  line-height: 1;
}
.faq-question.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  display: none;
  padding: 1rem 1.1rem;
  font-size: 0.875rem;
  color: var(--c-text-sec);
  line-height: 1.7;
  border-top: 1px solid var(--c-border);
  background: var(--c-white);
}
.faq-answer.open { display: block; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ---- Sidebar ---- */
.sidebar { position: sticky; top: 80px; }
.sidebar-box {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.25rem;
}
.sidebar-box__title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  margin-bottom: 0.85rem;
  font-weight: 700;
}
.sidebar-casino {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--c-border-light);
}
.sidebar-casino:last-child { border-bottom: none; }
.sidebar-casino__num { font-weight: 800; font-size: 0.8rem; color: var(--c-muted); width: 1.2rem; flex-shrink: 0; }
.sidebar-casino__name { flex: 1; font-size: 0.85rem; font-weight: 600; }
.sidebar-casino__stars { color: var(--c-star); font-size: 0.7rem; }

/* ---- Author box ---- */
.author-box {
  display: flex;
  gap: 1rem;
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin: 1.5rem 0 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.author-box__avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--c-highlight);
  flex-shrink: 0;
  object-fit: cover;
}
.author-box__name  { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.1rem; }
.author-box__title { font-size: 0.78rem; color: var(--c-muted); margin-bottom: 0.4rem; }
.author-box__bio   { font-size: 0.85rem; color: var(--c-text-sec); line-height: 1.6; margin: 0; }

/* ---- Breadcrumb ---- */
.breadcrumb {
  font-size: 0.78rem;
  color: var(--c-muted);
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--c-border-light);
  margin-bottom: 0;
}
.breadcrumb a { color: var(--c-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-text); text-decoration: underline; }
.breadcrumb span { margin: 0 0.35rem; }

/* ---- Page hero (inner pages) ---- */
.page-hero {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  padding: 2rem 0 1.75rem;
}
.page-hero h1 { margin-bottom: 0.5rem; }
.page-hero p  { color: var(--c-text-sec); max-width: 680px; margin: 0; }

/* ---- Contact page ---- */
.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (min-width: 540px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }

.info-box {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.info-box__icon  { font-size: 1.4rem; margin-bottom: 0.65rem; }
.info-box__title { font-weight: 700; font-size: 0.95rem; margin-bottom: 0.25rem; }
.info-box__text  { font-size: 0.85rem; color: var(--c-text-sec); margin: 0; line-height: 1.6; }

.contact-form {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--c-text-sec);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  transition: border-color var(--tr);
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { outline: none; border-color: var(--c-accent); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ---- Footer ---- */
.site-footer {
  background: var(--c-accent);
  color: #bbb;
  padding: 2.5rem 0 1.5rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.footer-logo {
  font-weight: 800;
  color: #fff;
  font-size: 1rem;
  display: block;
  margin-bottom: 0.65rem;
  letter-spacing: -0.02em;
}
.footer-desc { font-size: 0.78rem; color: #888; line-height: 1.6; }
.footer-nav-title { color: #fff; font-size: 0.82rem; font-weight: 700; margin-bottom: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-nav ul { list-style: none; padding: 0; margin: 0; }
.footer-nav li { margin-bottom: 0.4rem; }
.footer-nav a { color: #888; font-size: 0.8rem; text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: 0.73rem;
  color: #666;
  text-align: center;
  line-height: 1.7;
}
.footer-bottom a { color: #888; text-decoration: underline; }

.age-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8rem;
  height: 1.8rem;
  border: 1.5px solid #555;
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 800;
  color: #888;
  vertical-align: middle;
  margin-right: 0.3rem;
}

/* ---- Responsible gaming bar ---- */
.resp-bar {
  background: var(--c-highlight);
  border-top: 1px solid var(--c-border);
  padding: 0.55rem 0;
  font-size: 0.72rem;
  color: var(--c-muted);
  text-align: center;
}
.resp-bar a { color: var(--c-muted); text-decoration: underline; }

/* ---- Utilities ---- */
.text-muted    { color: var(--c-muted); }
.text-small    { font-size: 0.85rem; }
.text-center   { text-align: center; }
.mb-0 { margin-bottom: 0 !important; }
.mt-0 { margin-top: 0 !important; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

.divider { border: none; border-top: 1px solid var(--c-border); margin: 2rem 0; }

.update-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--c-muted);
  background: var(--c-highlight);
  border-radius: 100px;
  padding: 0.18rem 0.6rem;
  margin-bottom: 0.6rem;
  font-weight: 600;
}

/* ---- Inner pages: content ---- */
.inner-content {
  max-width: 820px;
  padding: 2rem 0 3rem;
}
.inner-content h2 {
  border-bottom: 2px solid var(--c-border);
  padding-bottom: 0.4rem;
  margin-top: 2.5rem;
}
.inner-content h2:first-child { margin-top: 0; }

/* ---- Legal warning block ---- */
.legal-block {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius);
  padding: 1.25rem;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--c-text-sec);
  margin: 1.5rem 0;
}
.legal-block strong { color: var(--c-text); }
