/* Casino Fiesta - Spanish Social Casino */
/* Vibrant and dynamic design with Spanish flair */

/* CSS Variables */
:root {
    --rojo-espanol: #C60B1E;
    --amarillo-espanol: #FFC400;
    --naranja-vibrante: #FF6B35;
    --azul-mediterraneo: #0066CC;
    --verde-andaluz: #00A859;
    --blanco: #FFFFFF;
    --negro: #1A1A1A;
    --gris-claro: #F5F5F5;
    --gris-medio: #E0E0E0;
    --sombra: 0 4px 6px rgba(0, 0, 0, 0.1);
    --sombra-fuerte: 0 8px 16px rgba(0, 0, 0, 0.2);
    --sombra-color: 0 4px 12px rgba(198, 11, 30, 0.3);
    --transicion: all 0.3s ease;
}

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

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--gris-claro);
    color: var(--negro);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--negro);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--rojo-espanol);
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--negro);
    margin-bottom: 3rem;
    font-style: italic;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    transition: var(--transicion);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--rojo-espanol), var(--naranja-vibrante));
    color: var(--blanco);
    box-shadow: var(--sombra-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(198, 11, 30, 0.4);
}

.btn-secondary {
    background: var(--gris-medio);
    color: var(--negro);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.2rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Age Verification Popup */
.age-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.age-popup.active {
    opacity: 1;
    visibility: visible;
}

.age-popup-content {
    background: var(--blanco);
    padding: 3rem;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    box-shadow: var(--sombra-fuerte);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.age-popup.active .age-popup-content {
    transform: scale(1);
}

.age-popup h2 {
    color: var(--rojo-espanol);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.age-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--negro);
    color: var(--blanco);
    padding: 1rem 0;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.cookie-consent.active {
    transform: translateY(0);
}

.cookie-consent .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Header */
.main-header {
    background: var(--blanco);
    box-shadow: var(--sombra);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--rojo-espanol);
}

.logo-icon {
    font-size: 2rem;
    margin-right: 0.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--negro);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--amarillo-espanol);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-nav {
    background: var(--amarillo-espanol);
    color: var(--negro);
    padding: 10px 20px;
    border-radius: 25px;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    display: none; /* Hidden by default on desktop */
    flex-direction: column;
    gap: 4px;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex; /* Show only on mobile */
    }
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--rojo-espanol);
    transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100%;
    background: var(--blanco);
    box-shadow: -4px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-content {
    padding: 2rem;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--rojo-espanol);
    margin-bottom: 2rem;
}

.mobile-menu ul {
    list-style: none;
}

.mobile-menu li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--gris-medio);
}

.mobile-menu a {
    text-decoration: none;
    color: var(--negro);
    font-weight: 500;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--rojo-espanol), var(--naranja-vibrante));
    color: var(--blanco);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    transform: rotate(45deg);
    animation: move-grid 20s linear infinite;
}

@keyframes move-grid {
    0% { transform: rotate(45deg) translate(0, 0); }
    100% { transform: rotate(45deg) translate(20px, 20px); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: slideInDown 0.8s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: slideInUp 0.8s ease 0.2s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: fadeIn 0.8s ease 0.4s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.hero-cta {
    animation: fadeIn 0.8s ease 0.6s both;
}

.hero-disclaimer {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.hero-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.emoji-float {
    position: absolute;
    font-size: 3rem;
    animation: float 10s ease-in-out infinite;
    opacity: 0.3;
}

.emoji-float:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.emoji-float:nth-child(2) { top: 20%; right: 15%; animation-delay: 2s; }
.emoji-float:nth-child(3) { bottom: 20%; left: 20%; animation-delay: 4s; }
.emoji-float:nth-child(4) { bottom: 10%; right: 10%; animation-delay: 6s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Legal Notice */
.legal-notice {
    background: var(--amarillo-espanol);
    padding: 2rem 0;
}

.notice-box {
    background: var(--blanco);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--sombra);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.notice-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: var(--rojo-espanol);
}

.notice-box h2 {
    color: var(--rojo-espanol);
    margin-bottom: 1rem;
}

.age-notice {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--rojo-espanol);
    margin-top: 1rem;
}

/* Features Section */
.features {
    padding: 4rem 0;
    background: var(--blanco);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--gris-claro);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transicion);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--rojo-espanol), var(--amarillo-espanol));
    transform: translateX(-100%);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: translateX(0);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-fuerte);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.feature-card h3 {
    color: var(--rojo-espanol);
    margin-bottom: 1rem;
}

/* Games Section */
.games {
    padding: 4rem 0;
    background: var(--gris-claro);
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.game-card {
    background: var(--blanco);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--sombra);
    transition: var(--transicion);
    position: relative;
}

.game-card:hover {
    transform: translateY(-10px) rotate(1deg);
    box-shadow: var(--sombra-fuerte);
}

.game-image {
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--amarillo-espanol), var(--naranja-vibrante));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.game-image img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.game-card:hover .game-image img {
    transform: scale(1.1) rotate(-5deg);
}

.game-info {
    padding: 1.5rem;
}

.game-info h3 {
    color: var(--rojo-espanol);
    margin-bottom: 0.5rem;
}

.game-rating {
    margin-bottom: 1rem;
    color: var(--amarillo-espanol);
}

.game-play-btn {
    width: 100%;
    margin-top: 1rem;
    background: linear-gradient(135deg, var(--verde-andaluz), var(--azul-mediterraneo));
    color: var(--blanco);
    font-weight: bold;
    transition: all 0.3s ease;
}

.game-play-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 102, 204, 0.4);
}

/* Reviews Section */
.reviews {
    padding: 4rem 0;
    background: var(--blanco);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.review-card {
    background: var(--gris-claro);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    position: relative;
    transition: var(--transicion);
}

.review-card:hover {
    transform: scale(1.05);
    box-shadow: var(--sombra-fuerte);
}

.review-stars {
    font-size: 1.5rem;
    color: var(--amarillo-espanol);
    margin-bottom: 1rem;
}

.review-text {
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.review-author {
    font-weight: bold;
    color: var(--rojo-espanol);
}

/* FAQ Section */
.faq {
    padding: 4rem 0;
    background: var(--gris-claro);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--blanco);
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--sombra);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: var(--gris-claro);
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 1.5rem 1.5rem;
}

/* Leaderboard */
.leaderboard {
    padding: 4rem 0;
    background: var(--blanco);
}

.leaderboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.leaderboard-card {
    background: var(--gris-claro);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    position: relative;
    transition: var(--transicion);
}

.leaderboard-card.gold {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: var(--blanco);
}

.leaderboard-card.silver {
    background: linear-gradient(135deg, #C0C0C0, #808080);
    color: var(--blanco);
}

.leaderboard-card.bronze {
    background: linear-gradient(135deg, #CD7F32, #8B4513);
    color: var(--blanco);
}

.rank {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.player-info h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

/* Responsible Gaming */
.responsible-gaming {
    padding: 4rem 0;
    background: var(--gris-claro);
}

.responsible-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.help-resources {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 2rem 0;
}

.resource-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--blanco);
    border-radius: 10px;
    text-decoration: none;
    color: var(--negro);
    transition: var(--transicion);
    box-shadow: var(--sombra);
}

.resource-link:hover {
    transform: translateY(-3px);
    box-shadow: var(--sombra-fuerte);
    background: var(--amarillo-espanol);
}

.helpline {
    background: var(--rojo-espanol);
    color: var(--blanco);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.helpline h3 {
    font-size: 2rem;
    margin: 1rem 0;
    color: var(--blanco);
}

.helpline-hours {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--rojo-espanol), var(--naranja-vibrante));
    color: var(--blanco);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '🎉';
    position: absolute;
    font-size: 10rem;
    opacity: 0.1;
    top: -2rem;
    left: -2rem;
    animation: float 10s ease-in-out infinite;
}

.cta::after {
    content: '🎰';
    position: absolute;
    font-size: 10rem;
    opacity: 0.1;
    bottom: -2rem;
    right: -2rem;
    animation: float 10s ease-in-out infinite reverse;
}

.cta h2 {
    color: var(--blanco);
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Disclaimer Section */
.disclaimer {
    background: var(--negro);
    color: var(--blanco);
    padding: 3rem 0;
}

.disclaimer-content {
    text-align: center;
}

.disclaimer h3 {
    color: var(--amarillo-espanol);
    margin-bottom: 1rem;
}

.compliance-logos {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.compliance-logos a {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.compliance-logos a:hover {
    transform: scale(1.1);
}

.compliance-logo {
    height: 50px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.compliance-logo:hover {
    opacity: 1;
}

.age-badge {
    background: var(--rojo-espanol);
    color: var(--blanco);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Footer */
.main-footer {
    background: var(--negro);
    color: var(--blanco);
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--amarillo-espanol);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--blanco);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--amarillo-espanol);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Game Modal */
.game-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.game-modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 90vh;
    background: var(--negro);
    border-radius: 10px;
    overflow: hidden;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--rojo-espanol);
    color: var(--blanco);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.3s ease;
}

.modal-close:hover {
    transform: rotate(90deg);
}

.game-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .features-grid,
    .games-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        display: none;
    }
    
    .cookie-consent .container {
        text-align: center;
    }
    
    .help-resources {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .compliance-logos {
        flex-direction: column;
    }
    
    /* Timeline mobile */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start !important;
        padding-left: 40px;
    }
    
    .timeline-item:nth-child(even) {
        flex-direction: column !important;
    }
    
    .timeline-date {
        text-align: left !important;
        padding: 0 0 1rem 0 !important;
    }
    
    .timeline-content::before {
        left: -25px !important;
        right: auto !important;
    }
    
    .team-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

/* Animations */
@keyframes shimmer {
    0% { background-position: -1000px 0; }
    100% { background-position: 1000px 0; }
}

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Page Hero */
.page-hero {
    background: linear-gradient(135deg, var(--rojo-espanol), var(--naranja-vibrante));
    color: var(--blanco);
    padding: 3rem 0;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--blanco);
}

/* About Page Styles */
.about-content {
    padding: 4rem 0;
}

.about-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.lead {
    font-size: 1.3rem;
    color: var(--negro);
    margin-bottom: 2rem;
}

.story-section,
.timeline-section,
.values-section,
.team-section,
.awards-section,
.contact-section {
    margin-bottom: 4rem;
}

.mission-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.mission-card {
    background: var(--gris-claro);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    transition: var(--transicion);
}

.mission-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-fuerte);
}

.mission-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

/* Timeline */
.timeline {
    position: relative;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--amarillo-espanol);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 3rem;
    align-items: center;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-date {
    flex: 1;
    text-align: right;
    padding-right: 2rem;
    font-weight: bold;
    color: var(--rojo-espanol);
}

.timeline-item:nth-child(even) .timeline-date {
    text-align: left;
    padding-left: 2rem;
    padding-right: 0;
}

.timeline-content {
    flex: 1;
    background: var(--blanco);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--sombra);
    position: relative;
}

.timeline-content::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--amarillo-espanol);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.timeline-item .timeline-content::before {
    right: -40px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    left: -40px;
    right: auto;
}

/* Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.value-card {
    background: var(--blanco);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--sombra);
    border-top: 5px solid var(--rojo-espanol);
    transition: var(--transicion);
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--sombra-fuerte);
}

/* Team Stats */
.team-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.team-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    color: var(--rojo-espanol);
}

.stat-label {
    font-size: 1.1rem;
    color: var(--negro);
}

/* Awards */
.awards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.award {
    text-align: center;
    padding: 2rem;
    background: var(--gris-claro);
    border-radius: 15px;
    transition: var(--transicion);
}

.award:hover {
    transform: scale(1.05);
}

.award-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.contact-section {
    text-align: center;
    background: var(--gris-claro);
    padding: 3rem;
    border-radius: 20px;
}

/* Account Page Styles */
.account-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 1rem 2rem;
    background: var(--gris-medio);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: var(--transicion);
}

.tab-btn.active {
    background: var(--rojo-espanol);
    color: var(--blanco);
}

.tab-content {
    display: none;
    max-width: 600px;
    margin: 0 auto;
}

.tab-content.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gris-medio);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--rojo-espanol);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-submit {
    width: 100%;
    margin-top: 2rem;
}

.social-login {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gris-medio);
}

.social-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.social-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    color: var(--blanco);
    transition: var(--transicion);
}

.social-google {
    background: #4285F4;
}

.social-facebook {
    background: #1877F2;
}

/* Responsible Play Page */
.responsible-page {
    padding: 4rem 0;
}

.responsible-content {
    max-width: 800px;
    margin: 0 auto;
}

.responsible-section {
    margin-bottom: 3rem;
}

.helpline-numbers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.helpline-item {
    text-align: center;
}

.helpline-item h4 {
    color: var(--blanco);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

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

.tip-card {
    background: var(--blanco);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--sombra);
    border-left: 5px solid var(--verde-andaluz);
}

.warning-box {
    background: var(--amarillo-espanol);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    text-align: center;
}

.warning-box h3 {
    color: var(--negro);
    margin-bottom: 1rem;
}

/* Privacy Policy and Terms */
.legal-page {
    padding: 4rem 0;
    background: var(--gris-claro);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--blanco);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--sombra);
}

.legal-content h2 {
    color: var(--rojo-espanol);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-content h3 {
    color: var(--negro);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--gris-medio);
    border-radius: 50%;
    border-top-color: var(--rojo-espanol);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}