/* ===================================================================
   Goldspin Casino — landing template
   Paleta oro / negro cálido. Mobile-first, sin dependencias externas.
   =================================================================== */

/* ---------- Poppins (self-hosted, subconjunto latino) ---------- */
@font-face {
    font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap;
    src: url(../fonts/poppins-400.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap;
    src: url(../fonts/poppins-500.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap;
    src: url(../fonts/poppins-600.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap;
    src: url(../fonts/poppins-700.woff2) format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --bg: #0b0805;
    --bg-header: #050403;
    --bg-elev: #120e08;
    --bg-card: #17120b;
    --bg-card-2: #1e180f;

    --line: rgba(214, 175, 95, .14);
    --line-strong: rgba(214, 175, 95, .32);

    --gold-1: #f8e9b6;
    --gold-2: #e7c974;
    --gold-3: #d3a94f;
    --gold-grad: linear-gradient(180deg, #f8e9b6 0%, #e7c974 48%, #d3a94f 100%);
    --gold-text: #e7c974;

    --text: #ffffff;
    --muted: #b3a89a;
    --muted-2: #8a8175;
    --footer-link: #b7b7e0;

    --radius: 12px;
    --radius-sm: 9px;
    --maxw: 1200px;
    --header-h: 68px;

    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
    --font: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

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

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .2px;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
}
.btn-gold {
    background: var(--gold-grad);
    color: #2a1e08;
    box-shadow: 0 6px 16px rgba(211, 169, 79, .28);
}
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(211, 169, 79, .42); }
.btn-outline {
    background: transparent;
    color: var(--gold-text);
    border-color: var(--line-strong);
}
.btn-outline:hover { border-color: var(--gold-2); background: rgba(231, 201, 116, .08); }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border-radius: 8px;
    background: transparent;
    color: var(--text);
    border: none;
    cursor: pointer;
    transition: color .15s ease, background .15s ease;
}
.icon-btn:hover { color: var(--gold-2); background: rgba(255, 255, 255, .05); }

/* ===================================================================
   HEADER
   =================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: var(--bg-header);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    height: var(--header-h);
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    margin-left: -6px;
    background: transparent;
    border: none;
    color: var(--text);
    cursor: pointer;
    border-radius: 8px;
}
.menu-btn:hover { color: var(--gold-2); }

.main-nav { display: flex; align-items: center; gap: 20px; }
.main-nav a {
    font-size: 14px;
    font-weight: 500;
    color: #e9e4dc;
    position: relative;
    padding: 6px 0;
    transition: color .15s ease;
}
.main-nav a:hover { color: #fff; }
.main-nav a.active { color: #fff; }
.main-nav a.active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 2px;
    background: var(--gold-grad);
    border-radius: 2px;
}

.header-left { display: flex; align-items: center; gap: 16px; }

/* Logo — centrado absoluto en escritorio */
.logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
}
.logo img { height: 34px; width: auto; display: block; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 55;
    opacity: 0;
    transition: opacity .2s ease;
}
.nav-overlay.show { opacity: 1; }

/* Drawer del botón hamburguesa — funciona en todas las resoluciones */
.drawer {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 280px;
    max-width: 84vw;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: calc(var(--header-h) + 16px) 16px 24px;
    background: #0a0704;
    border-right: 1px solid var(--line);
    transform: translateX(-100%);
    transition: transform .25s ease;
    z-index: 58;
    overflow-y: auto;
}
.drawer.open { transform: translateX(0); }
.drawer a:not(.btn) {
    padding: 13px 12px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #e9e4dc;
    transition: background .15s ease, color .15s ease;
}
.drawer a:not(.btn):hover { background: rgba(255, 255, 255, .05); color: #fff; }
.drawer a.active:not(.btn) { color: var(--gold-2); }
.drawer-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.drawer-actions .btn { width: 100%; height: 44px; }
body.nav-open { overflow: hidden; }

/* ===================================================================
   HERO / BANNER
   =================================================================== */
.hero {
    display: block;
    width: 100%;
    line-height: 0;
    background: #0d0a06;
}
.hero img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: filter .2s ease;
}
.hero:hover img { filter: brightness(1.04); }

/* Contenedor genérico de secciones */
/* Bloques de texto: ancho legible y centrado */
.seo-inner,
.faq-inner,
.reviews-inner {
    max-width: var(--maxw);
    margin-left: auto;
    margin-right: auto;
    padding-left: 18px;
    padding-right: 18px;
}
/* Slots: a todo el ancho (full-bleed) como en goldspin -> tarjetas grandes */
.section-head,
.slots-grid,
.slots-dots {
    max-width: none;
    padding-left: clamp(16px, 3vw, 44px);
    padding-right: clamp(16px, 3vw, 44px);
}

.section-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    margin: 0;
}
.star-ic { color: var(--gold-2); flex: none; }

/* ===================================================================
   SLOTS
   =================================================================== */
.slots { padding: 34px 0 8px; }
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.see-all {
    font-size: 14px;
    font-weight: 600;
    color: #e9e4dc;
    white-space: nowrap;
    transition: color .15s ease;
}
.see-all:hover { color: var(--gold-2); }

.slots-grid {
    display: grid;
    /* 6 por fila en escritorio (como goldspin), a todo el ancho; menos columnas al encoger */
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.game-card {
    position: relative;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--line);
    transition: transform .14s ease, box-shadow .18s ease, border-color .18s ease;
}
.game-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow);
}
.game-badge {
    position: absolute;
    top: 8px; left: 8px;
    z-index: 2;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    color: #f4ecd7;
    background: rgba(10, 8, 5, .72);
    backdrop-filter: blur(2px);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid var(--line);
}
.game-thumb {
    width: 100%;
    height: auto;          /* deja que aspect-ratio mande (si no, el height="300" del <img> lo deforma y recorta) */
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}
.game-title {
    display: block;
    padding: 9px 10px;
    font-size: 13px;
    font-weight: 500;
    color: #eae5dd;
    text-align: center;
    background: var(--bg-card-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slots-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding-top: 20px;
    padding-bottom: 6px;
}
.slots-dots .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(231, 201, 116, .28);
    transition: background .15s ease, width .15s ease;
}
.slots-dots .dot.active { background: var(--gold-2); width: 20px; border-radius: 5px; }

/* ===================================================================
   SEO BLOCK
   =================================================================== */
.seo { padding: 30px 0 10px; }
.seo-inner { font-size: 16px; color: #d8d2c8; }
.seo-inner h1 {
    font-size: 27px;
    line-height: 1.25;
    color: #fff;
    margin: 8px 0 16px;
}
.seo-inner h2 {
    font-size: 20px;
    color: var(--gold-text);
    margin: 30px 0 12px;
}
.seo-inner p { margin: 0 0 14px; }
.seo-inner strong { color: #fff; }

.seo-figure {
    margin: 6px 0 14px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-card);
    max-width: 480px;
}
.seo-figure img { width: 100%; height: auto; }
.seo-figure figcaption {
    padding: 8px 12px;
    font-size: 12.5px;
    color: var(--muted-2);
    background: var(--bg-card-2);
}
.seo-figure.right { float: right; margin-left: 26px; }
.seo-figure.left { float: left; margin-right: 26px; }

.table-wrap { overflow-x: auto; margin: 0 0 18px; -webkit-overflow-scrolling: touch; }
.seo-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 460px;
    font-size: 14.5px;
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.seo-table caption {
    caption-side: top;
    text-align: left;
    font-size: 13px;
    color: var(--muted-2);
    padding: 0 0 8px;
}
.seo-table th, .seo-table td {
    padding: 11px 14px;
    text-align: left;
    border-bottom: 1px solid var(--line);
}
.seo-table thead th {
    background: rgba(231, 201, 116, .10);
    color: var(--gold-text);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.seo-table tbody tr:last-child td { border-bottom: none; }
.seo-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, .015); }
.seo-table tbody tr:last-child { background: rgba(231, 201, 116, .06); }

.seo-list { list-style: none; padding: 0; margin: 0 0 16px; }
.seo-list li {
    position: relative;
    padding: 4px 0 4px 30px;
}
.seo-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 10px;
    width: 18px; height: 18px;
    background:
        linear-gradient(180deg, #f8e9b6, #d3a94f);
    border-radius: 50%;
    box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .18);
}
.seo-list li::after {
    content: "";
    position: absolute;
    left: 6px; top: 14px;
    width: 5px; height: 8px;
    border: solid #2a1e08;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.seo-list.two-col { columns: 2; column-gap: 30px; }

.seo-steps { margin: 0 0 16px; padding-left: 20px; }
.seo-steps li { padding: 4px 0 4px 6px; margin-bottom: 4px; }
.seo-steps li::marker { color: var(--gold-2); font-weight: 700; }

.seo-inner::after { content: ""; display: block; clear: both; }

/* ---- Prosa SEO por etiqueta (para HTML pegado: h3, listas, tablas) ---- */
.seo-inner h3 { font-size: 17px; color: #f2ede4; margin: 26px 0 10px; }
.seo-inner ul { list-style: none; padding: 0; margin: 4px 0 16px; }
.seo-inner ul li { position: relative; padding: 5px 0 5px 22px; }
.seo-inner ul li::before {
    content: ""; position: absolute; left: 3px; top: 13px;
    width: 6px; height: 6px; border-radius: 50%; background: var(--gold-2);
}
.seo-inner ol { list-style: none; counter-reset: seo; padding: 0; margin: 4px 0 16px; }
.seo-inner ol li { position: relative; counter-increment: seo; padding: 6px 0 6px 34px; }
.seo-inner ol li::before {
    content: counter(seo); position: absolute; left: 0; top: 5px;
    width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 700; color: #2a1e08;
    background: var(--gold-grad); border-radius: 6px;
}
.seo-inner table {
    width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14.5px;
    background: var(--bg-card); border: 1px solid var(--line);
}
.seo-inner th, .seo-inner td {
    padding: 10px 14px; text-align: left; vertical-align: top;
    border-bottom: 1px solid var(--line);
}
.seo-inner thead th {
    background: rgba(231, 201, 116, .10); color: var(--gold-text);
    font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .3px;
}
.seo-inner tbody tr:last-child td { border-bottom: none; }
.seo-inner tbody tr:nth-child(even) { background: rgba(255, 255, 255, .015); }
.seo-inner td:first-child { color: #ece5d9; font-weight: 500; }

/* Capturas/ilustraciones dentro del artículo SEO */
.seo-shot { margin: 18px auto 24px; max-width: 760px; }
.seo-shot img {
    width: 100%; height: auto; display: block;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    background: var(--bg-card);
}
.seo-shot figcaption {
    margin-top: 9px; font-size: 12.5px; color: var(--muted-2); text-align: center;
}

/* ===================================================================
   FAQ
   =================================================================== */
.faq { padding: 34px 0 20px; }
.faq-inner h2, .reviews-inner h2 {
    font-size: 26px;
    color: #fff;
    margin: 0 0 20px;
    text-align: center;
}
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 16px 52px 16px 18px;
    font-size: 16px;
    font-weight: 600;
    color: #f2ede4;
    position: relative;
    user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "";
    position: absolute;
    right: 20px; top: 50%;
    width: 9px; height: 9px;
    border-right: 2px solid var(--gold-2);
    border-bottom: 2px solid var(--gold-2);
    transform: translateY(-70%) rotate(45deg);
    transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item[open] summary { color: var(--gold-text); }
.faq-answer { padding: 0 18px 16px; color: var(--muted); font-size: 15px; }
.faq-answer p { margin: 0; }

/* ===================================================================
   REVIEWS
   =================================================================== */
.reviews { padding: 20px 0 44px; }
.reviews-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.review {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
}
.reviews-list .review:nth-child(n+6) { display: none; }
.reviews-list.is-expanded .review:nth-child(n+6) { display: block; }
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-avatar {
    flex: none;
    width: 42px; height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #2a1e08;
    background: var(--gold-grad);
}
.review-meta { display: flex; flex-direction: column; margin-right: auto; }
.review-name { font-weight: 600; color: #fff; font-size: 15px; }
.review-date { font-size: 12.5px; color: var(--muted-2); }
.review-text { margin: 0; color: var(--muted); font-size: 14.5px; }

.reviews-toggle {
    display: block;
    margin: 26px auto 0;
    padding: 12px 30px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    color: var(--gold-text);
    background: transparent;
    border: 1px solid var(--line-strong);
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.reviews-toggle:hover { background: rgba(231, 201, 116, .08); border-color: var(--gold-2); transform: translateY(-1px); }

/* ===================================================================
   FOOTER
   =================================================================== */
.site-footer {
    background: var(--bg-header);
    border-top: 1px solid var(--line);
    margin-top: 20px;
}
.footer-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 40px 18px 26px;
    display: grid;
    grid-template-columns: 1fr 1fr 1.6fr;
    gap: 30px;
}
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col a { color: var(--footer-link); font-size: 15px; width: fit-content; transition: color .15s ease; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-info p { margin: 0 0 14px; color: var(--muted-2); font-size: 14px; line-height: 1.7; }
.footer-info a { color: var(--footer-link); }
.footer-badges { display: flex; align-items: center; gap: 12px; margin-top: 4px; }
.badge-18 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 2px solid var(--muted-2);
    color: var(--muted);
    font-weight: 700;
    font-size: 12px;
}
.badge-gamble { color: var(--muted); font-size: 14px; }
.badge-gamble strong { color: #cfc8bc; }

.footer-bottom {
    border-top: 1px solid var(--line);
    text-align: center;
    padding: 18px;
    color: var(--muted-2);
    font-size: 13.5px;
}
.footer-bottom p { margin: 0; }

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (max-width: 1120px) {
    .logo { position: static; transform: none; }
    .main-nav { display: none; }   /* la navegación pasa al drawer del botón hamburguesa */
}

/* Slots: mismas columnas que goldspin — 6 (escritorio) / 5 (tablet) / 3 (móvil) */
@media (max-width: 1023px) {
    .slots-grid { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 639px) {
    .slots-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

@media (max-width: 768px) {
    .seo-inner h1 { font-size: 23px; }
    .seo-figure.right, .seo-figure.left { float: none; margin: 0 0 16px; max-width: 100%; }
    .reviews-list { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-info { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    :root { --header-h: 60px; }
    .header-actions .btn-outline { display: none; }
    .section-title { font-size: 19px; }
    .seo-list.two-col { columns: 1; }
}

@media (max-width: 460px) {
    .header-inner { padding: 0 12px; gap: 8px; }
    .btn { height: 36px; padding: 0 15px; font-size: 13px; }
}
