/* ===== CSS Global ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #ffc700;
    --accent-color: #dc143c;
    --text-color: #333;
    --light-bg: #f9f9f9;
    --white: #ffffff;
    --border-radius: 12px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--light-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Navigation ===== */
.navbar {
    background: var(--primary-color);
    color: var(--white);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--box-shadow);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 0 0 auto;
}

.logo-img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.logo h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: var(--secondary-color);
}

.logo .subtitle {
    font-size: 12px;
    color: #999;
    margin: 2px 0 0 0;
}

.nav-menu {
    display: flex;
    gap: 25px;
    align-items: center;
}

.nav-link {
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 12px;
    border-radius: 4px;
}

.nav-link:hover {
    color: var(--secondary-color);
    background: rgba(255, 199, 0, 0.1);
}

.lang-toggle {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 12px;
}

.lang-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 10px rgba(255, 199, 0, 0.3);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ===== Hero Section ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #333 100%);
    color: var(--white);
    padding: 100px 20px;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    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 1200 400"><defs><pattern id="dots" x="0" y="0" width="50" height="50" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="3" fill="rgba(255,199,0,0.1)"/></pattern></defs><rect width="1200" height="400" fill="url(%23dots)"/></svg>');
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h2 {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--secondary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #ddd;
}

.cta-button {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(255, 199, 0, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 199, 0, 0.5);
}

/* ===== Player Section ===== */
.player-section {
    background: var(--white);
    padding: 80px 20px;
}

.player-section h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.player-container {
    max-width: 600px;
    margin: 0 auto;
}

.player-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2a2a2a 100%);
    color: var(--white);
    border-radius: var(--border-radius);
    padding: 40px;
    box-shadow: var(--box-shadow);
    text-align: center;
}

.player-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.player-header h3 {
    font-size: 22px;
    margin: 0;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(220, 20, 60, 0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.player {
    display: none;
}

.player-controls {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.control-btn {
    background: var(--secondary-color);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(255, 199, 0, 0.3);
}

.control-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(255, 199, 0, 0.5);
}

.control-btn svg {
    width: 30px;
    height: 30px;
    fill: var(--primary-color);
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
}

.volume-icon {
    width: 24px;
    height: 24px;
    fill: var(--secondary-color);
    flex-shrink: 0;
}

.volume-slider {
    flex: 1;
    height: 4px;
    -webkit-appearance: none;
    appearance: none;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    border-radius: 5px;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--secondary-color);
    cursor: pointer;
    border-radius: 50%;
}

.volume-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--secondary-color);
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

.player-info {
    margin-top: 20px;
    font-size: 14px;
    color: #ccc;
}

.stream-quality {
    text-align: center;
    margin-top: 30px;
}

.quality-badge {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

/* ===== About Section ===== */
.about-section {
    background: var(--light-bg);
    padding: 80px 20px;
}

.about-section h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.about-text p {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.8;
}

.about-text h4 {
    font-size: 18px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.studio-image {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    object-fit: cover;
    height: 400px;
}

/* ===== Programs Section ===== */
.programs-section {
    background: var(--white);
    padding: 80px 20px;
}

.programs-section h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.program-card {
    background: var(--light-bg);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 2px solid transparent;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
    border-color: var(--secondary-color);
}

.program-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.program-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.program-card p {
    color: #666;
    line-height: 1.6;
}

/* ===== Download Section ===== */
.download-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #333 100%);
    color: var(--white);
    padding: 80px 20px;
}

.download-section h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 50px;
    color: var(--secondary-color);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.download-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    border: 1px solid rgba(255, 199, 0, 0.2);
    transition: all 0.3s;
}

.download-card:hover {
    border-color: var(--secondary-color);
    transform: translateY(-5px);
}

.download-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.download-card p {
    margin-bottom: 20px;
    color: #ddd;
}

.qr-code {
    margin: 20px 0;
}

.qr-img {
    width: 200px;
    height: 200px;
    background: var(--white);
    padding: 10px;
    border-radius: 8px;
    margin: 0 auto;
    display: block;
}

.qr-label {
    font-size: 12px;
    margin-top: 10px;
    color: #ccc;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.link-btn {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 12px 30px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

.link-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 199, 0, 0.3);
}

/* ===== Contact Section ===== */
.contact-section {
    background: var(--white);
    padding: 80px 20px;
}

.contact-section h2 {
    text-align: center;
    font-size: 40px;
    margin-bottom: 50px;
    color: var(--primary-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.info-item a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.info-item a:hover {
    text-decoration: underline;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--secondary-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.social-links a:hover {
    transform: scale(1.1);
    background: var(--accent-color);
}

.contact-form {
    background: var(--light-bg);
    padding: 30px;
    border-radius: var(--border-radius);
}

.contact-form h3 {
    font-size: 20px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.submit-btn {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    transition: all 0.3s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 199, 0, 0.3);
}

/* ===== Footer ===== */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 50px 20px 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.footer-section p {
    color: #ccc;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--secondary-color);
}

.social-footer {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-footer a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.social-footer a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #999;
    font-size: 14px;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary-color);
        flex-direction: column;
        gap: 10px;
        padding: 20px;
    }

    .nav-menu.active {
        display: flex;
    }

    .logo h1 {
        font-size: 18px;
    }

    .hero h2 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .programs-section h2,
    .player-section h2,
    .about-section h2,
    .download-section h2,
    .contact-section h2 {
        font-size: 28px;
    }

    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .studio-image {
        height: 300px;
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .qr-img {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .logo {
        gap: 10px;
    }

    .logo-img {
        width: 40px;
        height: 40px;
    }

    .logo h1 {
        font-size: 16px;
    }

    .hero {
        padding: 60px 20px;
    }

    .hero h2 {
        font-size: 28px;
    }

    .player-controls {
        gap: 10px;
    }

    .control-btn {
        width: 50px;
        height: 50px;
    }

    .control-btn svg {
        width: 24px;
        height: 24px;
    }

    .programs-grid,
    .download-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

/* ===== RTL Support para Árabe ===== */
body.rtl {
    direction: rtl;
    text-align: right;
}

body.rtl .navbar .container {
    flex-direction: row-reverse;
}

body.rtl .nav-menu {
    flex-direction: row-reverse;
}

body.rtl .about-content {
    direction: rtl;
}

body.rtl .contact-grid {
    direction: rtl;
}

body.rtl .logo {
    flex-direction: row-reverse;
}
