:root {
    --primary: #d4af37;
    /* Gold */
    --primary-dark: #b59226;
    --secondary: #0d1b2a;
    /* Dark Blue */
    --accent: #1b263b;
    /* Lighter Blue */
    --purple: #7b2cbf;
    /* Deep Purple */
    --purple-dark: #3c096c;
    --dark: #000000;
    --dark-grey: #101010;
    --light: #f8f9fa;
    --text-muted: #bdc3c7;
}

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

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(13, 27, 42, 0.95);
    /* Dark Blue */
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    /* Gold border */
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
}

/* HAMBURGER MENU */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary);
    font-weight: 800;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-logo img {
    height: 45px;
    margin-right: 12px;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: color 0.3s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.btn-nav {
    background: var(--primary);
    color: var(--dark) !important;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 800 !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-nav:hover {
    background: #f1c40f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* MOBILE RESPONSIVE NAV */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        right: 0;
        top: 0;
        height: 100vh;
        width: 100%;
        background: rgba(13, 27, 42, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 30px;
        z-index: 1000;
        backdrop-filter: blur(15px);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    /* Hamburger Animation */
    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark);
    color: var(--light);
    line-height: 1.6;
    padding-top: 76px;
    /* Add Padding to Body to match Navbar height (45+30+1) exact */
}

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

/* HERO SECTION (Image Only) */
.hero {
    /* Height is viewport minus the navbar padding we added to body */
    height: calc(100vh - 76px);
    width: 100%;
    margin-top: 0;
    /* Margin removed, controlled by body padding */
    /* Full Screen Background Image */
    background: url('assets/caller-cards-header.webp') no-repeat center center/cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    /* Shadow to separate from text below */
}

/* Remove old overlay/content styles as elements were removed from HTML */
.hero-overlay,
.hero-content,
.hero-image {
    display: none;
}

/* INTRO TEXT SECTION (Below Image) */
.intro {
    padding: 80px 0;
    background-color: var(--secondary);
    /* Dark Blue */
    text-align: center;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    /* Subtle Gold divider */
}

.intro h1 {
    margin-top: 0;
}

h1 {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.highlight {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--dark);
    /* Dark text on Gold button */
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
    background-color: #f1c40f;
    /* Lighter Gold */
    color: black;
}

.pulsate {
    animation: pulsate 2s infinite;
}

/* THEMES SECTION - Deep Purple Gradient */
.themes {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--secondary) 0%, var(--purple-dark) 100%);
    text-align: center;
    border-top: 1px solid rgba(123, 44, 191, 0.3);
}

.games-matrix {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    padding: 20px 0;
}

/* Responsive grid for mobile - 3 cards per row */
@media (max-width: 768px) {
    .games-matrix {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .game-info h3 {
        font-size: 0.55rem !important;
        margin-bottom: 2px;
        line-height: 1.2;
    }

    .game-info p {
        font-size: 0.5rem !important;
        margin-bottom: 3px;
        line-height: 1.2;
    }

    .game-info {
        padding: 10px 6px 6px;
    }

    .btn-link {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
        /* Reduce container padding on mobile */
    }

    .games-matrix {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
        /* Reduce gap further */
    }

    .game-card {
        min-width: 0;
        /* Allow grid items to shrink below content size */
    }

    .game-info h3 {
        font-size: 0.5rem !important;
        margin-bottom: 1px;
        line-height: 1.1;
        white-space: nowrap;
        /* Prevent wrapping if possible, or let it truncate */
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .game-info p {
        font-size: 0.45rem !important;
        margin-bottom: 2px;
        line-height: 1.1;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .game-info {
        padding: 8px 4px 4px;
    }

    .btn-link {
        display: none !important;
    }
}

.game-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 3/4;
    /* Vertical card shape */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: block;
    /* Important for anchor */
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

/* Hover Effect: Scale Card & Zoom Image */
.game-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.3);
    /* Gold glow */
    border-color: var(--primary);
}

.game-card:hover img {
    transform: scale(1.1);
}

/* Game Info Overlay */
.game-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px 20px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.7) 60%, transparent);
    color: white;
    text-align: left;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.game-card:hover .game-info {
    transform: translateY(0);
}

.game-info h3 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 5px;
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.game-info p {
    font-size: 0.95rem;
    color: #ddd;
    margin-bottom: 10px;
    opacity: 0.9;
}

.btn-link {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.4s ease 0.1s;
}

.game-card:hover .btn-link {
    opacity: 1;
    transform: translateX(0);
}

.more-themes {
    margin-top: 40px;
}

.more-themes p {
    color: var(--text-muted);
    font-style: italic;
    font-size: 0.9rem;
}

/* FEATURES SECTION - Dark Blue/Black */
.features {
    padding: 100px 0;
    background-color: var(--dark-grey);
    /* Keep dark for contrast */
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 60px;
    color: var(--light);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto 0;
    border-radius: 2px;
}



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

.feature-card {
    background: var(--dark);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 1px solid #333;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

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

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--primary);
    /* Gold for visibility */
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* HOW IT WORKS - Dark Blue */
.how-it-works {
    padding: 100px 0;
    background-color: var(--secondary);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.step {
    display: flex;
    align-items: flex-start;
}

.step-number {
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
    margin-right: 20px;
}

.step-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

/* VIDEO SECTION */
.video-section {
    padding: 60px 0;
    text-align: center;
    background: #111;
    /* Dark background for cinema feel */
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 0 20px;
}

.video-container {
    position: relative;
    width: 100%;
    /* Remove max-width here as grid handles it */
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* STATS - Gold/Purple Gradient */
.details {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--purple) 0%, var(--secondary) 100%);
    border-top: 1px solid var(--primary);
    color: white;
    position: relative;
    overflow: hidden;
}

/* Add a gold overlay effect for Stats */
.details::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.stat {
    text-align: center;
}

.stat .number {
    display: block;
    font-size: 3rem;
    font-weight: 900;
}

.stat .label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* FOOTER */
.site-footer {
    background-color: #050505;
    padding-top: 60px;
    border-top: 1px solid #222;
    font-size: 0.95rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
    text-align: left;
}

.footer-col h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: white;
    font-weight: 800;
    font-size: 1.3rem;
}

.footer-logo-img {
    height: 40px;
}

.brand-desc {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.9rem;
    max-width: 300px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.contact-email {
    color: var(--light);
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-link {
    color: var(--text-muted);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
}

.social-link:hover {
    color: white;
}

.footer-bottom {
    background-color: black;
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid #111;
}

.footer-bottom p {
    color: #666;
    font-size: 0.85rem;
}

/* RESPONSIVE FOOTER */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-brand,
    .social-links,
    .brand-desc {
        justify-content: center;
        align-items: center;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-links a:hover {
        padding-left: 0;
    }
}

/* FOOTER */
/* ... (Leave footer styles below) ... */

/* PRICING SECTION */
.pricing {
    padding: 100px 0;
    background-color: var(--dark-grey);
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    align-items: center;
    /* Center vertically so Featured card can pop */
}

.pricing-card {
    background: #1a1a1a;
    padding: 40px 30px;
    border-radius: 20px;
    border: 1px solid #333;
    transition: transform 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: #555;
}

.pricing-card.featured {
    background: linear-gradient(145deg, #1f1f1f, #252525);
    border: 2px solid var(--primary);
    transform: scale(1.05);
    /* Make it bigger */
    z-index: 2;
    box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2);
}

.pricing-card.featured:hover {
    transform: scale(1.08);
    /* Even bigger on hover */
    box-shadow: 0 15px 50px rgba(212, 175, 55, 0.4);
}

.popular-tag {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: black;
    padding: 5px 20px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.card-header h3 {
    font-size: 1.8rem;
    color: white;
    margin-bottom: 20px;
}

.pricing-card.featured h3 {
    color: var(--primary);
}

.pricing-card.premium h3 {
    color: var(--purple);
}

.price-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
}

.price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 10px;
    margin-bottom: 5px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.price-row.main-price {
    min-height: 50px;
    align-items: center;
}

.price-row.secondary {
    display: none;
}

.price-val {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    line-height: 1;
    margin-left: 5px;
}

.desc {
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.features-list {
    list-style: none;
    text-align: left;
    margin-bottom: 30px;
    flex-grow: 1;
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: #ddd;
}

.features-list li:last-child {
    border-bottom: none;
}

/* Adjust button spacing */
.btn-primary.pulsate,
.btn-outline {
    width: 100%;
    margin-top: auto;
}

.btn-outline:hover {
    border-color: white;
    background: white;
    color: black;
}

.pricing-card.premium .btn-outline {
    border-color: var(--purple);
}

.pricing-card.premium .btn-outline:hover {
    background: var(--purple);
    color: white !important;
    border-color: var(--purple);
}

/* LUCKY CARD WIDGET */
.lucky-card-section {
    padding: 60px 0;
    text-align: center;
    background: radial-gradient(circle, #2a1b3d 0%, var(--dark) 80%);
    border-bottom: 1px solid rgba(123, 44, 191, 0.2);
}

.lucky-card-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.lucky-text h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.card-scene {
    width: 200px;
    height: 300px;
    perspective: 1000px;
}

.card-object {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}

.card-object.is-flipped {
    transform: rotateY(180deg);
}

.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.card-front {
    background: linear-gradient(135deg, var(--secondary) 0%, #000 100%);
    border: 4px solid var(--primary);
}

.card-front span {
    font-size: 5rem;
    color: var(--primary);
    font-weight: 900;
}

.card-back {
    background: white;
    transform: rotateY(180deg);
}

.card-back img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* AUDIO PREVIEW */
.audio-preview {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.btn-audio {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.btn-audio:hover {
    background: var(--primary);
    color: black;
}

.audio-waves {
    display: flex;
    gap: 3px;
    height: 20px;
    align-items: center;
    opacity: 0.5;
}

.audio-waves.playing {
    opacity: 1;
}

.audio-waves span {
    display: block;
    width: 3px;
    height: 5px;
    background: var(--primary);
    border-radius: 2px;
    transition: height 0.1s;
}

.audio-waves.playing span {
    animation: waves 0.5s infinite ease-in-out;
}

.audio-waves.playing span:nth-child(1) {
    animation-delay: 0s;
}

.audio-waves.playing span:nth-child(2) {
    animation-delay: 0.1s;
}

.audio-waves.playing span:nth-child(3) {
    animation-delay: 0.2s;
}

.audio-waves.playing span:nth-child(4) {
    animation-delay: 0.3s;
}

.audio-waves.playing span:nth-child(5) {
    animation-delay: 0.4s;
}

@keyframes waves {

    0%,
    100% {
        height: 5px;
    }

    50% {
        height: 20px;
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulsate {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(212, 175, 55, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
    }
}

/* LANGUAGE TOGGLE */
.btn-lang {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 8px 18px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-lang:hover {
    background: var(--primary);
    color: var(--dark);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

/* TRADITIONAL PAGE STYLES */
.hero-small {
    padding: 20px 0 20px;
    /* Reduced top padding further to move title higher */
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 100%) !important;
    /* Override .hero image */
    background-image: none !important;
    /* Explicitly remove image */
    min-height: auto;
    height: auto;
    box-shadow: none;
    text-align: center;
    /* Ensure centering */
    width: 100%;
}

/* TESTIMONIALS */
.testimonials {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--secondary) 0%, #1a1a1a 100%);
    text-align: center;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(45px, 1fr));
    /* Tiny cards */
    gap: 6px;
    justify-items: center;
}

.loteria-card {
    width: 100%;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.loteria-card:hover {
    transform: scale(2.0);
    /* Larger zoom since they are tiny */
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.8);
    border-color: var(--primary);
}

@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: repeat(6, 1fr);
        /* 6 cards per row on mobile for density */
        gap: 4px;
    }
}

.testi-carousel-wrapper {
    position: relative;
    max-width: 900px;
    margin: 40px auto 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.testi-carousel {
    flex-grow: 1;
    overflow: hidden;
    padding: 10px;
}

.testi-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* gap removed for perfect 100% sliding */
}

.testi-card {
    min-width: 100%;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, border-color 0.3s;
    user-select: none;
}

.testi-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

.stars {
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.author {
    margin-top: 15px;
    font-weight: 700;
    color: var(--primary);
    font-size: 0.9rem;
}

/* CAROUSEL CONTROLS */
.testi-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--primary);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 2;
    flex-shrink: 0;
}

.testi-control:hover {
    background: var(--primary);
    color: black;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* Testimonial Responsive */
@media (max-width: 768px) {
    .testi-carousel-wrapper {
        position: relative;
        padding: 0;
        gap: 0;
    }

    .testi-control {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: rgba(0, 0, 0, 0.6);
        border-color: rgba(212, 175, 55, 0.4);
        backdrop-filter: blur(4px);
    }

    .testi-control:hover {
        transform: translateY(-50%) scale(1.1);
    }

    .testi-control.prev {
        left: 0;
    }

    .testi-control.next {
        right: 0;
    }

    .testi-card {
        padding: 30px 50px;
        /* Add side padding so text isn't covered by buttons */
    }
}

/* FAQ */
.faq {
    padding: 80px 0;
    background: var(--dark-grey);
}

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

.faq-item {
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-question {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
    user-select: none;
    /* Prevent text selection on click */
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--primary);
}

/* Add an icon */
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary);
    transition: transform 0.3s;
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease, opacity 0.4s ease;
    background: rgba(0, 0, 0, 0.2);
    color: var(--text-muted);
    opacity: 0;
    padding: 0 20px;
    /* Always keep horizontal padding */
}

.faq-item.active .faq-answer {
    padding: 20px;
    /* Add vertical padding on open */
    max-height: 500px;
    /* Ensure enough space */
    opacity: 1;
}

/* APP BADGES */
.download-cta {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--secondary) 100%);
    border-top: 1px solid var(--primary);
}

.download-cta h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.app-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.hero-badges {
    margin-top: 30px;
}

.store-badge {
    display: flex;
    align-items: center;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 8px 20px;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    min-width: 160px;
}

.store-badge:hover {
    background: var(--dark-grey);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.badg-icon {
    font-size: 2rem;
    margin-right: 12px;
}

.badg-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.badg-text .small {
    font-size: 0.6rem;
    text-transform: uppercase;
}

.badg-text .large {
    font-size: 1.1rem;
    font-weight: 700;
}

/* LEGAL PAGES */
.legal-page {
    background-color: var(--secondary);
    color: var(--light);
    padding-top: 100px;
    /* Space for fixed navbar */
}

.legal-content {
    max-width: 1000px;
    margin: 0 auto 80px;
    /* Center and add bottom space */
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    /* Gold subtle border */
}

.legal-content h1 {
    font-family: 'Cinzel', serif;
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.legal-content h2 {
    color: white;
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.legal-content p,
.legal-content li {
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.legal-content ul {
    margin-left: 20px;
    margin-bottom: 20px;
}

/* PRESENTATION PAGE */
.presentation-body {
    overflow: hidden;
    /* Prevent scrolling */
    background: black;
    /* padding-top inherits 76px from body selector, matching main page */
}

.slide.hero-bg {
    background: url('assets/caller-cards-header.webp') no-repeat center center/cover;
    justify-content: flex-end;
    /* Push text to bottom */
    padding-bottom: 150px;
    /* Space for controls/footer */
}

.slide.hero-bg h1 {
    text-shadow: 0 0 20px rgba(212, 175, 55, 1), 0 0 40px rgba(0, 0, 0, 0.8);
    font-size: 4.5rem;
    color: #ffffff;
}

.slide.hero-bg h2,
.slide.hero-bg p {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.8);
}

.presentation-container {
    width: 100vw;
    height: calc(100vh - 76px);
    /* Fill remaining space exactly */
    position: relative;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    z-index: 1;

    /* BRAND PREMIUM BACKGROUND */
    background: radial-gradient(circle at center, #1b263b 0%, #0d1b2a 40%, #000000 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    /* Subtle Gold Frame */
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.5);
    /* Inner Vignette */
}

.slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 10;
}

.slide.prev {
    transform: translateX(-100%);
    opacity: 0;
}

.slide-content {
    max-width: 900px;
    text-align: center;
    width: 100%;
}

.slide.slide-wide .slide-content {
    max-width: 1400px;
    /* Much wider for videos */
    padding: 0 40px;
}

/* Presentation specific video adjustments */
.slide .video-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 40px !important;
    max-width: 100%;
}

@media (max-width: 768px) {
    .slide .video-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .slide.slide-wide .slide-content {
        padding: 0 20px;
        width: 100%;
    }
}

.slide h1 {
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.slide h2 {
    font-size: 2rem;
    color: white;
    margin-bottom: 40px;
    font-weight: 300;
}

.slide ul {
    list-style: none;
    text-align: left;
    display: inline-block;
}

.slide li {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
}

.slide li::before {
    content: '•';
    color: var(--primary);
    position: absolute;
    left: 0;
    font-size: 2rem;
    line-height: same;
    top: -5px;
}

.slide-number {
    position: absolute;
    bottom: 30px;
    right: 30px;
    color: rgba(255, 255, 255, 0.2);
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
}

/* CONTROLS */
.deck-controls {
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: 100px;
    /* click area */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 50px;
    z-index: 100;
    pointer-events: none;
    /* Let clicks pass through area */
}

.deck-btn {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deck-btn:hover {
    background: var(--primary);
    color: black;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .slide h1 {
        font-size: 3rem;
    }

    .slide h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .presentation-container {
        height: calc(100vh - 60px);
    }

    .hero,
    .slide.hero-bg {
        background-image: url('assets/caller-cards-movil.webp') !important;
    }

    .nav-logo img {
        height: 35px;
    }

    .nav-logo {
        font-size: 1.1rem;
    }

    .slide {
        padding: 40px 20px;
    }

    .slide h1 {
        font-size: 2.2rem;
    }

    .slide h2 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }

    .slide li {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }

    .slide-content {
        max-width: 100%;
    }

    .deck-controls {
        padding: 0 20px;
        height: 80px;
    }

    .deck-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .slide-number {
        bottom: 20px;
        right: 20px;
        font-size: 0.9rem;
    }

    .slide.hero-bg h1 {
        font-size: 2.8rem;
    }

    .slide.hero-bg {
        padding-bottom: 100px;
    }
}

/* INFO SECTION (History & Rules) */
.info-section {
    padding: 60px 0;
    background: #121212;
    color: #e0e0e0;
}

.layout-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(212, 175, 55, 0.3);
}

.info-card .card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 2px solid rgba(212, 175, 55, 0.2);
    padding-bottom: 15px;
}

.card-icon {
    font-size: 2.5rem;
}

.card-header .section-title {
    margin-bottom: 0;
    font-size: 2rem;
    text-align: left;
}

.info-item {
    margin-bottom: 25px;
}

.info-item h3 {
    color: var(--primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 0;
}

/* Lists styling */
.styled-list,
.material-list,
.steps-list {
    padding-left: 20px;
    margin: 0;
}

.styled-list li,
.material-list li {
    margin-bottom: 8px;
    position: relative;
    list-style-type: none;
    padding-left: 15px;
}

.styled-list li::before,
.material-list li::before {
    content: '•';
    color: var(--primary);
    font-weight: bold;
    position: absolute;
    left: 0;
}

.steps-list {
    counter-reset: step-counter;
    list-style: none;
    padding-left: 0;
}

.steps-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
}

.steps-list li::before {
    counter-increment: step-counter;
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: #000;
    border-radius: 50%;
    text-align: center;
    font-size: 0.8rem;
    font-weight: bold;
    line-height: 24px;
}

@media (max-width: 768px) {
    .layout-split {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .info-card {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .slide h1 {
        font-size: 1.8rem;
    }

    .slide h2 {
        font-size: 1.1rem;
    }

    .slide li {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    .highlight {
        font-size: 0.9rem;
        padding: 10px 15px;
    }

    .slide.hero-bg h1 {
        font-size: 2.2rem;
    }
}