/* =========================================
   1. ESTILOS GENERALES Y MODAL (Legacy)
   ========================================= */
body {
    padding-left: 30px; 
    padding-right: 30px;
    box-sizing: border-box; 
    background-color: #f8f9fa; /* Fondo suave general */
}

@media (max-width: 768px) {
    body {
        padding-left: 15px; 
        padding-right: 15px;
    }
}

/* Modal Popup Styles */
#overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7); z-index: 100; display: none;
}
.popup {
    display: none; position: fixed; top: 50%; left: 50%;
    transform: translate(-50%, -50%); z-index: 101;
    text-align: center; max-width: 90%; width: 100%;
}
.cnt223 {
    background: #ffffff; padding: 20px; border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); text-align: center; overflow: hidden;
}
.cnt223 p {
    color: #333333; font-size: 16px; font-family: 'Arial', sans-serif; margin-bottom: 15px;
}
.cnt223 a#MyButton {
    color: #ffffff; background-color: #28a745; padding: 12px 25px;
    font-size: 18px; text-decoration: none; border-radius: 10px;
    font-weight: bold; display: inline-block; margin-top: 10px;
}
.cnt223 a#MyButton:hover { background-color: #218838; cursor: pointer; }
.cnt223 .x {
    position: absolute; top: 10px; right: 10px; font-size: 24px; color: #555;
}
.cnt223 .x:hover { cursor: pointer; color: #ff0000; }

/* Modal Games Grid */
.modal-row {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 20px; justify-items: center;
}
.modal-column { text-align: center; }
.modal-column img {
    width: 100%; max-width: 200px; height: 150px; object-fit: contain;
    border-radius: 10px; box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.modal-column img:hover { transform: scale(1.05); box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3); }
.modal-game-name {
    font-size: 14px; text-transform: uppercase; font-family: 'Press Start 2P', cursive;
    color: #28a745; font-weight: bold; margin-top: 10px; display: block;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.modal-game-name:hover { color: #218838; }

@media (max-width: 1200px) {
    .modal-row { grid-template-columns: repeat(3, 1fr); }
    .modal-column img { height: 150px; }
    .modal-game-name { font-size: 12px; }
}
@media (max-width: 900px) {
    .modal-row { grid-template-columns: repeat(3, 1fr); }
    .modal-column img { height: 120px; }
    .modal-game-name { font-size: 12px; }
}
@media (max-width: 600px) {
    .modal-row { grid-template-columns: repeat(3, 1fr); }
    .modal-column img { height: 100px; }
    .modal-game-name { font-size: 10px; }
    .cnt223 p { font-size: 14px; }
    .cnt223 a#MyButton { padding: 10px 20px; font-size: 16px; }
}

/* =========================================
   2. BOTONES DE ACCIÓN & CTA
   ========================================= */
.blossom-cta-group-container { margin-top: 25px; }
.blossom-cta-buttons-wrapper { display: flex; gap: 15px; margin: 0 10px; justify-content: center; }
.blossom-cta-button {
    display: flex; align-items: center; justify-content: center; 
    padding: 12px 25px; border: none; border-radius: 8px; 
    cursor: pointer; font-size: 1.1em; font-weight: bold; 
    text-decoration: none; color: white; 
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2); transition: all 0.3s ease;
}
.blossom-cta-button span { margin-right: 8px; }
.blossom-cta-button--primary { background-color: #007bff; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); color: white; }
.blossom-cta-button--primary:hover { background-color: #0056b3; transform: translateY(-2px); box-shadow: 0 8px 10px rgba(0, 0, 0, 0.3); }
.blossom-cta-button--secondary { background-color: #ffc107; color: #333; box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15); }
.blossom-cta-button--secondary:hover { background-color: #e0a800; transform: translateY(-2px); box-shadow: 0 8px 10px rgba(0, 0, 0, 0.25); }

/* Botones estilo Pill y Circle (Sección Hero) */
.btn-pill-yellow {
    display: inline-flex; align-items: center; background-color: #ffc107; color: #212529;
    padding: 12px 35px; border-radius: 50px; text-decoration: none; font-weight: 700;
    font-size: 18px; transition: all 0.3s ease; box-shadow: 0 4px 6px rgba(0,0,0,0.1); border: none;
}
.btn-pill-yellow:hover {
    background-color: #e0a800; transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15); color: #212529;
}
.btn-pill-yellow .arrow { margin-left: 10px; font-size: 20px; }

.btn-circle-play {
    display: inline-flex; align-items: center; justify-content: center;
    width: 55px; height: 55px; border: 2px solid #ffc107; border-radius: 50%;
    text-decoration: none; color: #ffc107; font-size: 24px; transition: all 0.3s ease;
    background: transparent;
}
.btn-circle-play:hover {
    background-color: #ffc107; color: white; transform: scale(1.1);
}
.btn-circle-play .play-icon { margin-left: 4px; }

/* Action Buttons Wrapper Responsive */
.action-buttons-wrapper {
    margin-top: 25px; display: flex; justify-content: center; align-items: center; gap: 15px;
}
@media (max-width: 768px) {
    .action-buttons-wrapper { flex-direction: column; gap: 20px; }
    .btn-pill-yellow { width: 80%; justify-content: center; }
}

/* =========================================
   3. FAQ STYLES (Blossom Style)
   ========================================= */
.blossom-faq-grid {
    display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; width: 100%;
}
.faq-column { flex: 1 1 45%; min-width: 300px; }
.blossom-faq-item {
    background: transparent; border-bottom: 1px solid #eee; margin-bottom: 8px; overflow: hidden;
}
.faq-question {
    padding: 18px 10px; font-weight: 700; font-size: 16px; color: #333;
    cursor: pointer; position: relative; padding-right: 30px; 
    transition: all 0.3s ease; border-radius: 8px;
}
.faq-question::after {
    content: ''; position: absolute; right: 15px; top: 50%;
    transform: translateY(-50%) rotate(45deg); width: 8px; height: 8px;
    border-right: 2px solid #999; border-bottom: 2px solid #999; transition: all 0.3s ease;
}
.faq-answer {
    max-height: 0; overflow: hidden; padding: 0 15px; color: #555;
    font-size: 15px; line-height: 1.6; opacity: 0; transition: all 0.3s ease;
    background-color: #fff8e1; border-radius: 0 0 8px 8px;
}
/* Active State FAQ */
.blossom-faq-item.active .faq-question {
    color: #d68c00; background-color: #fff8e1; border-radius: 8px 8px 0 0;
}
.blossom-faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(225deg); border-color: #d68c00;
}
.blossom-faq-item.active .faq-answer {
    max-height: 300px; padding: 10px 15px 25px 15px; opacity: 1;
}
@media (max-width: 768px) {
    .blossom-faq-grid { flex-direction: column; gap: 10px; }
}

/* =========================================
   4. PWA INSTALLER
   ========================================= */
#instalarContainer { display: flex; flex-direction: column; justify-content: center; align-items: center; }
#mainContainer { padding: 12px; }

/* =========================================
   5. TOOLBAR DE JUEGO (Solver & Archive)
   ========================================= */
.game-toolbar-container {
    max-width: 750px;
    margin: 15px auto 40px auto; /* Margen superior pequeño para pegarlo al juego */
    display: flex;
    gap: 15px;
    padding: 0 10px;
    justify-content: center;
}

.toolbar-btn {
    flex: 1; /* Ocupan el 50% cada uno */
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-radius: 16px;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(0,0,0,0.05);
    min-width: 250px; /* Ancho mínimo para que no se aplasten */
}

.toolbar-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Estilo Botón Solver (Azul) */
.solver-btn {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-color: #90caf9;
}
.solver-btn:hover { border-color: #2196f3; }

/* Estilo Botón Archive (Naranja/Amarillo) */
.archive-btn {
    background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
    border-color: #ffe082;
}
.archive-btn:hover { border-color: #ffc107; }

/* Iconos */
.tb-icon {
    font-size: 28px;
    margin-right: 15px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Textos */
.tb-text { display: flex; flex-direction: column; text-align: left; }

.tb-title {
    font-weight: 800;
    font-size: 18px;
    color: #37474f;
    line-height: 1.1;
}

.tb-desc {
    font-size: 13px;
    color: #546e7a;
    font-weight: 500;
    margin-top: 2px;
}

/* Responsive Móvil */
@media (max-width: 600px) {
    .game-toolbar-container {
        flex-direction: column; /* Uno debajo del otro en móviles pequeños */
        gap: 10px;
    }
    .toolbar-btn {
        min-width: auto; /* Ancho completo */
        justify-content: center; /* Centrar contenido */
    }
    .tb-text { text-align: left; } /* Mantener texto alineado a la izquierda */
}

/* =========================================
   6. SECCIÓN CTA (App Install & Share)
   ========================================= */
.cta-share-section {
    margin: 60px auto;
    max-width: 800px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #e0f7fa 0%, #f1f8e9 100%); /* Fondo degradado suave */
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Decoración de fondo (opcional, puntos sutiles) */
.cta-share-section::before {
    content: '';
    position: absolute; top: -50px; left: -50px; width: 150px; height: 150px;
    background: radial-gradient(circle, rgba(76,175,80,0.1) 20%, transparent 20%);
    background-size: 20px 20px; opacity: 0.5; z-index: 0;
}

/* --- Bloque de Instalación PWA --- */
.pwa-install-block {
    position: relative; z-index: 1;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px dashed #c8e6c9; /* Separador sutil */
}

.pwa-icon {
    width: 90px; height: auto;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}
.pwa-install-block:hover .pwa-icon { transform: scale(1.05) rotate(-5deg); }

.pwa-title {
    font-size: 26px; font-weight: 800; color: #2e7d32; margin-bottom: 5px;
}
.pwa-subtitle {
    font-size: 16px; color: #558b2f; margin-bottom: 20px; font-weight: 500;
}

.install-btn-large {
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(45deg, #43a047, #66bb6a);
    color: white; font-size: 20px; font-weight: 700;
    padding: 15px 40px; border-radius: 50px; border: none;
    cursor: pointer; box-shadow: 0 6px 15px rgba(76,175,80,0.3);
    transition: all 0.2s ease; text-decoration: none;
}
.install-btn-large:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76,175,80,0.5);
    background: linear-gradient(45deg, #388e3c, #4caf50);
    color: white;
}
.install-btn-icon { width: 28px; height: 28px; margin-right: 10px; }
.pwa-rating {
    margin-top: 12px; font-size: 14px; color: #666; font-weight: 600;
}
.rating-star { color: #ffc107; font-size: 18px; }

/* --- Bloque de Compartir Social --- */
.social-share-block { position: relative; z-index: 1; }

.share-title {
    font-size: 20px; font-weight: 700; color: #37474f; margin-bottom: 20px;
}
.share-stats {
    display: inline-block; background: #fff; padding: 5px 15px;
    border-radius: 20px; font-size: 13px; color: #546e7a; font-weight: 600;
    margin-bottom: 25px; box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.social-buttons-grid {
    display: flex; justify-content: center; gap: 15px; flex-wrap: wrap;
}

.social-btn-circle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 55px; height: 55px; border-radius: 50%;
    color: white; font-size: 24px; text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}
.social-btn-circle:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 15px rgba(0,0,0,0.25);
    color: white;
}
.social-btn-circle img { width: 24px; height: 24px; }

/* Colores de Marca */
.btn-fb { background: linear-gradient(135deg, #4267B2, #365899); }
.btn-x { background: linear-gradient(135deg, #000000, #333333); }
.btn-reddit { background: linear-gradient(135deg, #ff4500, #e03d00); }
.btn-whatsapp { background: linear-gradient(135deg, #25d366, #128c7e); }

/* Texto Footer */
.share-footer-text {
    margin-top: 30px; font-size: 14px; color: #78909c; max-width: 600px; margin-left: auto; margin-right: auto;
}

/* --- Estilos para Estrellas Reales (4.7) --- */
.pwa-rating {
    margin-top: 15px;
    font-size: 15px; 
    color: #555; 
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Contenedor de estrellas grises (Fondo) */
.stars-outer {
    position: relative;
    display: inline-block;
    color: #e0e0e0; /* Color gris suave */
    font-family: "Times New Roman", Times, serif; /* Fuente segura para estrellas */
    font-size: 22px;
    line-height: 1;
}

.stars-outer::before {
    content: "★★★★★";
}

/* Contenedor de estrellas amarillas (Relleno) */
.stars-inner {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    overflow: hidden;
    width: 0; /* Se define en el HTML */
    color: #ffc107; /* Amarillo/Dorado */
}

.stars-inner::before {
    content: "★★★★★";
}