/* ==========================================
   RESET & VARIABLES
   ========================================== */
:root {
    --bg-dark: #0a0f1e;
    --bg-card: #1e293b;
    --accent-orange: #f97316;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==========================================
   LAYOUT UTILS
   ========================================== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.hidden {
    display: none !important;
}

/* ==========================================
   BOTONES
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: white;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    background-color: #ea580c;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--bg-card);
    color: var(--text-light);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #334155;
}

.btn-text {
    background: transparent;
    color: var(--text-muted);
}

.btn-text:hover {
    color: var(--text-light);
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.1rem;
}

/* ==========================================
   HEADER
   ========================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 15, 30, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
    padding: 15px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    display: block;
}

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

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
}

.lang-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 4px;
    transition: color 0.2s;
}

.lang-btn:hover,
.lang-btn.active {
    color: var(--accent-orange);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    padding: 160px 0 80px 0;
    /* padding-top para compensar el header fixed */
    text-align: center;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 800px;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 40px;
}

.hero-ctas {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-subtext {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================
   COOKIE BANNER
   ========================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
    padding: 20px;
    z-index: 1000;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
}

.cookie-content {
    max-width: 900px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    flex: 1;
    min-width: 250px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
}

/* Responsive básico */
@media (max-width: 768px) {
    .header-actions {
        gap: 10px;
    }

    .btn-text {
        display: none;
        /* Ocultar "Entrar" en móvil para ahorrar espacio */
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }

    .hero-ctas .btn {
        width: 100%;
    }
}

/* ==========================================
   DEMO SECTION
   ========================================== */
.demo-section {
    padding: 100px 0;
    /* Más espacio arriba y abajo */
    background: #151e33;
    /* Un tono un poco más claro que el fondo general, pero más oscuro que el bg-card */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.demo-container {
    text-align: center;
    max-width: 800px;
}

.demo-container h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    color: var(--text-light);
    /* Añadimos un truco para que el fondo no pise el texto */
    position: relative;
    z-index: 1;
}

.demo-subtitle {
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Mesa de la demo */
#demo-table-wrapper {
    position: relative;
    max-width: 700px;
    margin: 40px auto 0 auto;
    /* Un poco de margen superior para que respire */
    width: 100%;
}

#demo-table-container {
    position: relative;
    /* Crucial: no absolute */
    width: 100%;
    aspect-ratio: 700 / 380;
    background: radial-gradient(ellipse at center, #2a7a4d 0%, var(--table-green, #1a5c3a) 60%, #0f3d24 100%);
    border: 8px solid #3d2b1f;
    border-radius: 50%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    margin-bottom: 20px;
}

#demo-timer {
    font-size: 2rem;
    font-weight: 800;
    margin: 10px 0;
}

#demo-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 15px;
}

#demo-actions button {
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 700;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.15s;
    min-width: 80px;
    background: #334155;
    color: white;
}

#demo-actions button:hover {
    transform: translateY(-2px);
    filter: brightness(1.2);
}

#demo-actions button[data-action="fold"] {
    background: #dc2626;
}

#demo-actions button[data-action="call"] {
    background: #2563eb;
}

#demo-actions button[data-action="raise"] {
    background: var(--accent-orange);
}

#demo-actions button[data-action="allin"] {
    background: #7c3aed;
}

#demo-feedback {
    min-height: 100px;
    /* Espacio reservado para el feedback */
    margin-top: 20px;
    font-size: 0.95rem;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

#demo-feedback p {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
}

#demo-feedback .correct {
    color: #4ade80;
}

#demo-feedback .incorrect {
    color: #f87171;
}

#demo-feedback .timeout {
    color: #fbbf24;
}

/* Overlay de resultado */
#demo-result-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 30, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    /* Mantiene la forma de la mesa */
    z-index: 10;
}

.result-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid var(--accent-orange);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.2);
    text-align: center;
    max-width: 500px;
}

.result-card h3 {
    font-size: 2rem;
    color: var(--accent-orange);
    margin-bottom: 10px;
}

.result-ctas {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* ==========================================
   ESTILOS IMPORTADOS DE LA APP (Para la demo)
   ========================================== */
#demo-table-container .seat {
    background: #1e293b;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

#demo-table-container .seat.hero {
    border: 2px solid #f97316;
    background: #1e2b3c;
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.3);
}

#demo-table-container .seat.folded {
    opacity: 0.4;
    filter: grayscale(80%);
}

#demo-table-container .seat.limped {
    background: #14532d;
    border: 2px solid #22c55e;
}

#demo-table-container .seat.raised {
    background: #78350f;
    border: 2px solid #facc15;
}

#demo-table-container .seat.allin {
    background: #7f1d1d;
    border: 2px solid #ef4444;
}

#demo-table-container .position {
    font-weight: 700;
    font-size: 0.85rem;
    color: #f97316;
}

#demo-table-container .stack {
    font-size: 0.9rem;
    color: #cbd5e1;
    background: rgba(0, 0, 0, 0.3);
    padding: 4px 8px;
    border-radius: 20px;
}

#demo-table-container .cards {
    display: flex;
    gap: 6px;
}

#demo-table-container .card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 54px;
    background: #fefefe;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1e293b;
}

#demo-table-container .card.back {
    background: #334155;
    color: transparent;
}

#demo-table-container .card[data-suit="hearts"],
#demo-table-container .card[data-suit="diamonds"] {
    color: #dc2626;
}

#demo-table-container .action-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 2px 6px;
    border-radius: 4px;
    margin-top: 4px;
}

/* ==========================================
   UTILS GENERALES
   ========================================== */
.text-center {
    text-align: center;
}

section {
    padding: 80px 0;
}

section h2 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 40px;
}

/* ==========================================
   CÓMO FUNCIONA
   ========================================== */
.how-section {
    background: var(--bg-dark);
}

.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.how-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.how-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.how-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--accent-orange);
}

.how-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================
   FEATURES GRID
   ========================================== */
.features-section {
    background: #151e33;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.feature-card {
    background: var(--bg-dark);
    padding: 25px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.feature-icon {
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================
   FREEROLL
   ========================================== */
.freeroll-section {
    background: var(--bg-dark);
}

.freeroll-subtitle {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px auto;
    font-size: 1.1rem;
}

.freeroll-table-container {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.freeroll-table {
    width: 100%;
    border-collapse: collapse;
}

.freeroll-table th,
.freeroll-table td {
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.freeroll-table th {
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-orange);
    font-weight: 800;
}

.freeroll-table tr:last-child td {
    border-bottom: none;
    font-weight: 800;
    color: var(--accent-orange);
}

.legal-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 20px auto 0 auto;
}

/* ==========================================
   PRICING
   ========================================== */
.pricing-section {
    background: #151e33;
}

.pricing-card {
    max-width: 450px;
    margin: 0 auto;
    background: var(--bg-dark);
    padding: 40px;
    border-radius: 20px;
    border: 2px solid var(--accent-orange);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.1);
}

.pricing-card h2 {
    margin-bottom: 20px;
}

.price {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.price-amount {
    font-size: 2rem;
    font-weight: 800;
}

.price-sep {
    color: var(--text-muted);
}

.tax-note,
.trial-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.trial-note {
    color: #4ade80;
    margin-bottom: 30px;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
}

.pricing-features li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.pricing-features li::before {
    content: "✓";
    color: var(--accent-orange);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* ==========================================
   FAQ
   ========================================== */
.faq-section {
    background: var(--bg-dark);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-light);
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    background: #0f172a;
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-light);
}

/* ==========================================
   MASCOTA
   ========================================== */
.mascot-container {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mascot-img {
    height: 120px;
    /* Ajusta este tamaño según cómo sea tu mascota */
    width: auto;
    /* Efecto de flotación */
    animation: float 3s ease-in-out infinite;
    /* Sombra suave para que destaque del fondo oscuro */
    filter: drop-shadow(0 10px 15px rgba(249, 115, 22, 0.2));
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}