/* ===================================
   MAGGICO CASINO - DARK THEME STYLES
   Theme Colors:
   - Title/Primary: #3f0072 (Purple)
   - Background: #1b0033 (Dark Purple)
   - Accent: #ff00ff (Bright Magenta)
   =================================== */

/* ===================================
   BASE STYLES & RESET
   =================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color palette */
    --color-primary: #3f0072;
    --color-background: #1b0033;
    --color-background-light: #2a0047;
    --color-text: #ffffff;
    --color-text-muted: #c4a5d8;
    --color-accent: #ff00ff;
    --color-accent-hover: #cc00cc;
    --color-success: #00ff88;
    --color-warning: #ffaa00;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Typography */
    --font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-size-base: 16px;
    --line-height: 1.6;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 20px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(255, 0, 255, 0.3);
    
    /* Transitions */
    --transition: all 0.3s ease;
}

html {
    font-size: var(--font-size-base);
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: var(--line-height);
    overflow-x: hidden;
}

/* ===================================
   TYPOGRAPHY STYLES
   =================================== */

h1, h2, h3, h4, h5, h6 {
    color: #9b6fd9; /* Lighter purple for all headings */
    font-weight: 600; /* Lighter weight for better readability */
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 2.5rem;
    margin-top: var(--spacing-lg);
    color: #a875e3; /* Even lighter purple for main heading */
    font-weight: 600;
}

h2 {
    font-size: 2rem;
    margin-top: var(--spacing-xl);
    border-bottom: 2px solid #9b6fd9; /* Match lighter heading color */
    padding-bottom: var(--spacing-sm);
    color: #9b6fd9; /* Lighter for better readability */
}

h3 {
    font-size: 1.5rem;
    margin-top: var(--spacing-lg);
    color: #9b6fd9; /* Lighter purple for consistency */
}

p {
    margin-bottom: var(--spacing-md);
    color: var(--color-text-muted);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition);
}

a:hover,
a:focus {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

strong {
    color: var(--color-text);
    font-weight: 600;
}

/* ===================================
   LAYOUT CONTAINER
   Container principal con ancho máximo
   =================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

/* ===================================
   HEADER & NAVIGATION
   Navegación principal sticky con logo y menú
   =================================== */

.main-header {
    background: linear-gradient(135deg, var(--color-background) 0%, var(--color-background-light) 100%);
    border-bottom: 2px solid var(--color-primary);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.navigation .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md);
    flex-wrap: wrap;
}

/* Logo container */
.logo-container {
    flex-shrink: 0;
}

.logo {
    height: 50px;
    width: auto;
    display: block;
}

/* Mobile menu toggle button - hidden on desktop, visible on tablet */
.mobile-menu-toggle {
    display: none; /* Hidden by default on desktop (>1024px) */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-text);
    margin: 5px 0;
    transition: var(--transition);
    border-radius: var(--radius-sm);
}

/* Navigation menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-menu a {
    color: var(--color-text);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a:focus {
    background-color: var(--color-primary);
    text-decoration: none;
    transform: translateY(-2px);
}

.nav-menu a[aria-current="page"] {
    background-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

/* Header action buttons */
.header-actions {
    display: flex;
    gap: var(--spacing-sm);
}

/* ===================================
   BUTTONS
   Estilos para todos los botones del sitio
   =================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: var(--color-text);
    border-color: var(--color-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    text-decoration: none;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border-color: var(--color-primary);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: var(--color-primary);
    transform: translateY(-3px);
    text-decoration: none;
}

.btn-cta {
    background: linear-gradient(135deg, #ff00ff 0%, #ff6600 100%);
    color: var(--color-text);
    font-size: 1.25rem;
    padding: 1rem 2rem;
    box-shadow: var(--shadow-md);
    animation: pulse 2s infinite;
}

.btn-cta:hover,
.btn-cta:focus {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 0, 255, 0.5);
    text-decoration: none;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-xl {
    padding: 1.25rem 3rem;
    font-size: 1.5rem;
}

/* Button pulse animation */
@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 0, 255, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 0, 255, 0.8);
    }
}

/* ===================================
   BREADCRUMBS
   Navegación de migas de pan
   =================================== */

.breadcrumbs {
    background-color: var(--color-background-light);
    padding: var(--spacing-sm) 0;
    font-size: 0.875rem;
}

.breadcrumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    align-items: center;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: "›";
    margin-left: var(--spacing-xs);
    color: var(--color-text-muted);
    font-size: 1.2rem;
}

.breadcrumbs a {
    color: var(--color-accent);
}

.breadcrumbs li:last-child span {
    color: var(--color-text-muted);
}

/* ===================================
   HERO CTA SECTION
   Sección de bienvenida con CTA (sin imagen de fondo)
   =================================== */

.hero-banner {
    position: relative;
    width: 100%;
    height: 300px; /* Reduced height since no background image */
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-background) 0%, var(--color-background-light) 100%);
}

/* Banner image removed - no longer needed */
/*
.banner-image {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 1;
}
*/

.banner-overlay {
    position: relative; /* Changed from absolute since no image background */
    top: auto;
    left: auto;
    transform: none;
    background: linear-gradient(135deg, var(--color-primary) 0%, #7c3aed 100%);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xl) var(--spacing-xxl);
    text-align: center;
    border: 3px solid #a855f7;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(168, 85, 247, 0.5);
    max-width: 600px;
    width: 90%;
    animation: bannerFloat 3s ease-in-out infinite;
}

@keyframes bannerFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

.banner-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.banner-title {
    font-size: 2.5rem;
    color: #a366d9;
    margin: 0;
    text-shadow: 0 0 20px rgba(255, 0, 255, 0.8), 0 0 40px rgba(163, 102, 217, 0.5);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.banner-text {
    font-size: 1.5rem;
    color: var(--color-text);
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 400;
}

/* ===================================
   POPULAR SLOTS SECTION
   Sección de slots populares debajo del banner
   =================================== */

.popular-slots {
    padding: var(--spacing-xxl) 0;
    background: linear-gradient(180deg, var(--color-background) 0%, var(--color-background-light) 100%);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #a875e3; /* Lighter purple for better readability */
    margin-bottom: var(--spacing-sm);
    font-weight: 600;
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: #c4a5d8; /* Slightly lighter for better contrast */
    margin-bottom: var(--spacing-xl);
}

/* Slots grid - 6 images per row on desktop, responsive on mobile */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.slot-item {
    position: relative;
    border-radius: 16px; /* Nicely rounded corners */
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    aspect-ratio: 1 / 1; /* Square aspect ratio for grid layout */
}

.slot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.slot-item:hover,
.slot-item:focus-within {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 24px rgba(255, 0, 255, 0.4), 0 0 30px rgba(255, 0, 255, 0.3);
    z-index: 10;
}

.slot-item:hover img,
.slot-item:focus-within img {
    transform: scale(1.15);
    filter: brightness(1.1);
}

/* Overlay with play icon */
.slot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(63, 0, 114, 0.85) 0%, rgba(255, 0, 255, 0.75) 100%);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.slot-item:hover .slot-overlay,
.slot-item:focus-within .slot-overlay {
    opacity: 1;
}

.play-icon {
    font-size: 3rem;
    color: var(--color-text);
    text-shadow: 0 0 20px rgba(255, 0, 255, 1), 0 0 10px rgba(255, 255, 255, 0.8);
    animation: playIconPulse 1.5s infinite;
}

@keyframes playIconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.text-center {
    text-align: center;
}

/* ===================================
   MAIN CONTENT
   Área principal de contenido del artículo
   =================================== */

.main-content {
    padding: var(--spacing-xxl) 0;
}

.content-article {
    background-color: var(--color-background-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-md);
}

/* ===================================
   TABLES
   Tablas responsivas con diseño adaptativo
   =================================== */

.table-wrapper {
    overflow-x: auto;
    margin: var(--spacing-lg) 0;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    background-color: var(--color-background);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

caption {
    padding: var(--spacing-md);
    font-size: 1.25rem;
    font-weight: 600;
    color: #a875e3; /* Lighter purple for better readability */
    text-align: left;
    background-color: var(--color-background-light);
}

thead {
    background: linear-gradient(135deg, #7d4ba8 0%, #d946ef 100%); /* Lighter gradient for better readability */
}

th {
    padding: var(--spacing-md);
    text-align: left;
    color: #ffffff; /* Keep white for contrast on gradient background */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

tbody tr {
    border-bottom: 1px solid var(--color-background-light);
    transition: var(--transition);
}

tbody tr:hover {
    background-color: var(--color-background-light);
}

tbody tr:last-child {
    border-bottom: none;
}

td {
    padding: var(--spacing-md);
    color: var(--color-text-muted);
}

td strong {
    color: var(--color-success);
    font-size: 1.1rem;
}

/* Hide data labels on desktop */
td::before {
    display: none;
}

/* ===================================
   CTA BOX
   Caja de llamada a la acción destacada
   =================================== */

.cta-box {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xxl);
    text-align: center;
    margin: var(--spacing-xxl) 0;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border: 3px solid var(--color-accent);
}

.cta-box h3 {
    color: #ffffff; /* White for maximum contrast on gradient background */
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.cta-box p {
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: var(--spacing-lg);
}

.cta-box .disclaimer {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: var(--spacing-md);
    margin-bottom: 0;
}

/* ===================================
   FOOTER
   Pie de página con métodos de pago e información
   =================================== */

.main-footer {
    background: linear-gradient(180deg, var(--color-background-light) 0%, var(--color-background) 100%);
    border-top: 2px solid var(--color-primary);
    padding: var(--spacing-xxl) 0 var(--spacing-md);
    margin-top: var(--spacing-xxl);
}

/* Payment methods section */
.payment-methods {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxl);
    border-bottom: 1px solid #9b6fd9; /* Lighter border color */
}

.payment-methods h3 {
    color: #a875e3; /* Lighter purple for better readability */
    font-size: 1.75rem;
    margin-bottom: var(--spacing-lg);
    font-weight: 600;
}

.payment-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
}

.payment-logos img {
    height: 40px;
    width: auto;
    filter: brightness(0.9);
    transition: var(--transition);
}

.payment-logos img:hover {
    filter: brightness(1.2);
    transform: scale(1.1);
}

/* Footer content columns */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-column h4 {
    color: #a875e3; /* Lighter purple for better readability */
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
}

.footer-column li {
    margin-bottom: var(--spacing-sm);
}

.footer-column a {
    color: var(--color-text-muted);
    transition: var(--transition);
}

.footer-column a:hover,
.footer-column a:focus {
    color: var(--color-accent);
    padding-left: var(--spacing-xs);
}

/* Footer bottom section */
.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-primary);
}

.footer-bottom .disclaimer {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.footer-bottom .copyright {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.footer-bottom a {
    color: var(--color-accent);
}

/* ===================================
   SCROLL TO TOP BUTTON
   Botón flotante para volver arriba
   =================================== */

.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    color: var(--color-text);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 999;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.scroll-top-btn:hover,
.scroll-top-btn:focus {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

/* ===================================
   RESPONSIVE DESIGN - TABLET
   Adaptaciones para tablets (768px - 1024px)
   =================================== */

@media (max-width: 1024px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Banner styles for tablet */
    .hero-banner {
        height: 250px; /* Reduced height for tablet */
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-text {
        font-size: 1.25rem;
    }
    
    /* Slots grid tablet - 4 columns */
    .slots-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-sm);
    }
    
    /* Show hamburger menu on tablet */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Tablet navigation menu - slide out from left */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 70%;
        height: 100vh;
        background-color: var(--color-background);
        flex-direction: column;
        padding: var(--spacing-xxl) var(--spacing-lg);
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        overflow-y: auto;
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu a {
        width: 100%;
        padding: var(--spacing-md);
        text-align: center;
        font-size: 1.125rem;
    }
}

/* ===================================
   RESPONSIVE DESIGN - MOBILE
   Adaptaciones para móviles (<768px)
   =================================== */

@media (max-width: 768px) {
    /* Prevent horizontal panning on mobile */
    html,
    body {
        max-width: 100vw;
        overflow-x: hidden;
        overscroll-behavior-x: none;
    }

    /* Typography adjustments */
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    /* Mobile navigation - logo left, buttons right */
    .mobile-menu-toggle {
        display: none; /* Hide hamburger menu on mobile (no navigation needed) */
    }
    
    .logo-container {
        display: block; /* Show logo on mobile */
        flex-shrink: 0;
    }
    
    .logo {
        height: 35px; /* Smaller logo for mobile */
    }
    
    .nav-menu {
        display: none; /* Hide navigation menu completely on mobile */
    }
    
    /* Mobile header - logo left, buttons right */
    .main-header {
        padding: var(--spacing-xs) 0;
    }
    
    /* Header actions on mobile - smaller buttons on the right */
    .header-actions {
        display: flex;
        justify-content: flex-end;
        gap: var(--spacing-xs);
        margin: 0;
    }
    
    .header-actions .btn {
        font-size: 0.875rem;
        padding: 0.5rem 0.875rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .navigation .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: var(--spacing-xs) var(--spacing-sm);
        flex-wrap: nowrap;
    }
    
    /* Banner styles for mobile */
    .hero-banner {
        height: 200px; /* Reduced height for mobile */
    }
    
    .banner-overlay {
        padding: var(--spacing-md) var(--spacing-lg);
        max-width: 95%;
        width: 95%;
        border: 2px solid #a855f7;
    }
    
    .banner-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .banner-text {
        font-size: 1rem;
        line-height: 1.4;
    }
    
    /* Slots grid mobile - 3 columns */
    .slots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--spacing-xs);
    }
    
    /* Content article mobile */
    .content-article {
        padding: var(--spacing-md);
    }
    
    /* Tables mobile - card layout */
    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
    }
    
    thead tr {
        position: absolute;
        top: -9999px;
        left: -9999px;
    }
    
    tbody tr {
        margin-bottom: var(--spacing-md);
        border: 2px solid #9b6fd9; /* Lighter border for mobile table cards */
        border-radius: var(--radius-md);
        padding: var(--spacing-md);
        background-color: var(--color-background-light);
    }
    
    tbody tr:hover {
        background-color: var(--color-background);
    }
    
    td {
        border: none;
        position: relative;
        padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-sm) 50%;
        text-align: right;
    }
    
    td::before {
        content: attr(data-label);
        position: absolute;
        left: var(--spacing-sm);
        top: var(--spacing-sm);
        width: 45%;
        padding-right: var(--spacing-sm);
        white-space: nowrap;
        font-weight: 600;
        color: #a875e3; /* Lighter purple for mobile table labels */
        text-align: left;
        display: block;
    }
    
    /* Ensure table and header/caption widths match and no horizontal scroll */
    .table-wrapper {
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
    }

    table {
        width: 100%;
        max-width: 100%;
        table-layout: fixed; /* Prevents intrinsic widening */
        word-wrap: break-word;
    }

    caption {
        display: block;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin: 0;
        border-top-left-radius: var(--radius-md);
        border-top-right-radius: var(--radius-md);
    }

    td,
    th {
        overflow-wrap: anywhere;
        word-break: break-word;
        white-space: normal;
    }

    /* CTA box mobile */
    .cta-box {
        padding: var(--spacing-lg);
    }
    
    .cta-box h3 {
        font-size: 1.5rem;
    }
    
    .cta-box p {
        font-size: 1rem;
    }
    
    /* Footer mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .payment-logos {
        gap: var(--spacing-sm);
    }
    
    .payment-logos img {
        height: 30px;
    }
    
    /* Buttons mobile */
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .btn-xl {
        padding: 1rem 2rem;
        font-size: 1.25rem;
    }
    
    /* Scroll to top button mobile */
    .scroll-top-btn {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 1.25rem;
    }
}

/* ===================================
   RESPONSIVE DESIGN - SMALL MOBILE
   Adaptaciones para móviles pequeños (<480px)
   =================================== */

@media (max-width: 480px) {
    :root {
        --font-size-base: 14px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    /* Banner styles for small mobile */
    .hero-banner {
        height: 180px; /* Reduced height for small mobile */
    }
    
    .banner-overlay {
        padding: var(--spacing-sm) var(--spacing-md);
        max-width: 95%;
        width: 95%;
    }
    
    .banner-title {
        font-size: 1.25rem;
        line-height: 1.2;
    }
    
    .banner-text {
        font-size: 0.9rem;
        line-height: 1.3;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Keep 3 columns even on very small screens */
    .slots-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.25rem;
    }
    
    /* Header actions on very small screens - maintain logo left, smaller buttons right */
    .logo {
        height: 30px; /* Even smaller logo for very small screens */
    }
    
    .header-actions {
        display: flex;
        justify-content: flex-end;
        gap: 0.25rem;
        flex-wrap: nowrap;
    }
    
    .header-actions .btn {
        font-size: 0.75rem;
        padding: 0.375rem 0.625rem;
        min-width: 0;
        flex-shrink: 0;
    }
}

/* ===================================
   ACCESSIBILITY IMPROVEMENTS
   Mejoras de accesibilidad
   =================================== */

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* Skip to main content link for screen readers */
.skip-to-main {
    position: absolute;
    left: -9999px;
    z-index: 999;
    padding: var(--spacing-sm);
    background-color: var(--color-primary);
    color: var(--color-text);
}

.skip-to-main:focus {
    left: 50%;
    transform: translateX(-50%);
    top: var(--spacing-sm);
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --color-primary: #8000ff;
        --color-background: #000000;
        --color-text: #ffffff;
    }
}

/* ===================================
   PRINT STYLES
   Estilos para impresión
   =================================== */

@media print {
    .main-header,
    .breadcrumbs,
    .hero-banner,
    .popular-slots,
    .cta-box,
    .main-footer,
    .scroll-top-btn,
    .mobile-menu-toggle {
        display: none;
    }
    
    body {
        background-color: white;
        color: black;
    }
    
    .content-article {
        box-shadow: none;
    }
    
    a {
        text-decoration: underline;
    }
}

/* ===================================
   LOADING STATES
   Estados de carga para imágenes
   =================================== */

img[loading="lazy"] {
    background: linear-gradient(90deg, var(--color-background-light) 25%, var(--color-background) 50%, var(--color-background-light) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

