/* Mobile-First Custom Styles for TxL Estudios */

/* Base Typography - Large for 40-70 age group */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #333;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
}

/* Larger touch targets for mobile */
.btn {
    min-height: 48px;
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
}

.btn-lg {
    min-height: 56px;
    font-size: 1.125rem;
}

/* Color verde oscuro TxL para barra y footer */
.navbar.bg-dark,
footer.bg-dark {
    background-color: #042d20 !important;
}

/* Navigation */
.navbar-brand img {
    height: 40px;
    width: auto;
}

.navbar-nav .nav-link {
    font-size: 1.125rem;
    padding: 0.75rem 1rem;
}

/* Hero Section */
.hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    position: relative;
}

/* Hero con fondo de juegos */
.hero-with-bg {
    background-image: url("../images/juegos-fondo.png");
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.88);
    z-index: 0;
}

.hero .container.position-relative {
    z-index: 1;
}

.hero h1 {
    font-size: 2rem;
}

.hero .lead {
    font-size: 1.25rem;
}

.hero-more-games {
    font-size: 1rem;
    color: #555;
}

/* Botones estilo Store (Google Play / App Store) */
.btn-store {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #000 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    min-height: 56px;
}

.btn-store:hover {
    background: #333 !important;
    color: #fff !important;
    opacity: 0.95;
}

.btn-store-icon {
    flex-shrink: 0;
}

/* Botón Android - verde del icono #95CF00 */
.btn-android,
.btn.btn-android {
    background-color: #95CF00 !important;
    border-color: #95CF00 !important;
    color: #fff !important;
}

.btn-android:hover,
.btn.btn-android:hover {
    background-color: #7db300 !important;
    border-color: #7db300 !important;
    color: #fff !important;
}

/* Iconos en botones de apps */
.store-mini-icon {
    flex-shrink: 0;
}

/* Cards */
.card {
    border-radius: 0.5rem;
    transition: transform 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
}

.card-img-top {
    aspect-ratio: 1;
    object-fit: contain;
    max-height: 200px;
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card-text {
    font-size: 1rem;
    color: #666;
}

/* Accordion */
.accordion-button {
    font-size: 1.125rem;
    padding: 1rem 1.25rem;
}

.accordion-body {
    font-size: 1rem;
    padding: 1.25rem;
}

/* Footer */
footer {
    font-size: 1rem;
}

footer a:hover {
    text-decoration: underline !important;
}

/* Screenshots Gallery */
.screenshot-img {
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Sección beneficios con fondo de juegos */
.section-with-games-bg {
    position: relative;
    background-image: url("../images/juegos-fondo.png");
    background-size: cover;
    background-position: center;
    background-repeat: repeat;
}

.section-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.88);
    z-index: 0;
}

.section-with-games-bg .container.position-relative {
    z-index: 1;
}

/* Feature List */
.feature-list {
    font-size: 1.125rem;
}

.feature-list li {
    margin-bottom: 0.75rem;
}

/* Responsive adjustments */
@media (min-width: 576px) {
    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (min-width: 768px) {
    .hero {
        min-height: 70vh;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero .lead {
        font-size: 1.5rem;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
}

@media (min-width: 992px) {
    .hero h1 {
        font-size: 3.5rem;
    }
}

/* Accessibility */
.btn:focus,
.nav-link:focus,
.accordion-button:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}
