:root {
    --primary-color: #388e3c;
    --secondary-color: #f1f8e9;
    --accent-color: #ffb300;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), #4caf50);
    --gradient-secondary: linear-gradient(135deg, var(--accent-color), #ffc107);
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 30px rgba(0,0,0,0.25);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1rem; }

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    font-size: 16px;
    text-align: center;
    min-width: 140px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Age Verification Modal */
.age-modal {
    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;
}

.age-modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
    text-align: center;
    max-width: 500px;
    margin: 20px;
    box-shadow: var(--shadow-heavy);
}

.age-modal h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.age-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 30px 0;
    flex-wrap: wrap;
}

.responsible-gaming-notice {
    background: var(--secondary-color);
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-light);
    margin-top: 20px;
}

/* Cookie Consent */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--text-dark);
    color: var(--white);
    padding: 20px;
    z-index: 9999;
    display: none;
}

.cookie-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-buttons a {
    color: var(--accent-color);
    text-decoration: underline;
    font-size: 14px;
}

/* Header */
.header {
    background: var(--white);
    box-shadow: var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    margin: 0;
}

.tagline {
    color: var(--text-light);
    font-size: 0.9rem;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h2 {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s ease;
}

.hero-text p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-image {
    display: flex;
    justify-content: center;
    animation: fadeIn 1s ease 0.6s both;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
}

/* Casino Section */
.casinos-section {
    padding: 80px 0;
    background: var(--secondary-color);
}

.section-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 50px;
}

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

.casino-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    position: relative;
}

.casino-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-medium);
}

.casino-card.featured {
    border: 3px solid var(--accent-color);
    position: relative;
}

.casino-card.featured::before {
    content: 'Recomendado';
    position: absolute;
    top: 15px;
    right: -35px;
    background: var(--accent-color);
    color: var(--white);
    padding: 5px 40px;
    font-size: 14px;
    font-weight: 600;
    transform: rotate(45deg);
    z-index: 10;
}

.casino-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    background: var(--gradient-primary);
    color: var(--white);
}

.casino-info h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.rating {
    display: flex;
    align-items: center;
    gap: 10px;
}

.stars {
    color: var(--accent-color);
    font-size: 1.1rem;
}

.rating-number {
    background: rgba(255,255,255,0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
}

.license-badge {
    background: var(--white);
    color: var(--primary-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.casino-image {
    height: 200px;
    overflow: hidden;
}

.casino-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.casino-card:hover .casino-image img {
    transform: scale(1.05);
}

.casino-details {
    padding: 25px;
}

.casino-details p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
}

.casino-features {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--secondary-color);
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.feature-icon {
    font-size: 1.1rem;
}

.casino-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Comparison Section */
.comparison-section {
    padding: 80px 0;
}

.comparison-tool {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    padding: 30px;
    margin-top: 40px;
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.comparison-placeholder {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    grid-column: 1 / -1;
}

.comparison-item {
    background: var(--secondary-color);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
}

.comparison-item h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.comparison-remove {
    background: #ff4444;
    color: var(--white);
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-top: 10px;
}

/* Game Section */
.game-section {
    padding: 80px 0;
    background: var(--gradient-primary);
    color: var(--white);
    text-align: center;
}

.game-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin: 40px 0;
}

.wheel-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.wheel {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    border: 8px solid var(--accent-color);
    background: var(--white);
    transition: transform 3s cubic-bezier(0.23, 1, 0.32, 1);
}

.wheel-segment {
    position: absolute;
    width: 50%;
    height: 50%;
    transform-origin: 100% 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.wheel-segment:nth-child(1) {
    transform: rotate(0deg);
    background: #e74c3c;
}

.wheel-segment:nth-child(2) {
    transform: rotate(45deg);
    background: #3498db;
}

.wheel-segment:nth-child(3) {
    transform: rotate(90deg);
    background: #2ecc71;
}

.wheel-segment:nth-child(4) {
    transform: rotate(135deg);
    background: #f39c12;
}

.wheel-segment:nth-child(5) {
    transform: rotate(180deg);
    background: #9b59b6;
}

.wheel-segment:nth-child(6) {
    transform: rotate(225deg);
    background: #1abc9c;
}

.wheel-segment:nth-child(7) {
    transform: rotate(270deg);
    background: #e67e22;
}

.wheel-segment:nth-child(8) {
    transform: rotate(315deg);
    background: #34495e;
}

.wheel-pointer {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 30px solid var(--accent-color);
    z-index: 10;
}

.game-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.score-display {
    background: rgba(255,255,255,0.2);
    padding: 15px 25px;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    font-weight: 600;
}

.game-result {
    background: var(--accent-color);
    color: var(--text-dark);
    padding: 20px;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    font-weight: 600;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.game-result.show {
    opacity: 1;
}

.game-disclaimer {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-top: 30px;
    font-size: 0.9rem;
}

/* Security Section */
.security-section {
    padding: 80px 0;
    background: var(--white);
}

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

.security-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--secondary-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.security-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-light);
}

.security-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.responsible-gaming-links {
    text-align: center;
    background: var(--gradient-primary);
    color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
}

.responsible-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.responsible-links img {
    height: 60px;
    transition: var(--transition);
}

.responsible-links img:hover {
    transform: scale(1.1);
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: var(--secondary-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-icon {
    font-size: 1.5rem;
    width: 40px;
    text-align: center;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(56, 142, 60, 0.1);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

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

.footer-section h3 {
    color: var(--accent-color);
    margin-bottom: 20px;
}

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

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.footer-disclaimer {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #ccc;
}

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

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 50px 0;
        transition: var(--transition);
        box-shadow: var(--shadow-medium);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-text h2 {
        font-size: 2.2rem;
    }
    
    .casinos-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .age-buttons {
        flex-direction: column;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    
    .wheel {
        width: 250px;
        height: 250px;
    }
    
    .casino-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero-text h2 {
        font-size: 1.8rem;
    }
    
    .casinos-section,
    .comparison-section,
    .security-section,
    .contact-section {
        padding: 60px 0;
    }
    
    .wheel {
        width: 200px;
        height: 200px;
    }
    
    .wheel-segment {
        font-size: 14px;
    }
}