/* ========================================
PARTE 1/5 - VARIABLES, BASE Y SPLASH SCREEN
======================================== */
:root {
    --primary: #1A9B8E;
    --primary-dark: #157A6F;
    --primary-light: #2DB3A5;
    --gold: #D4AF37;
    --gold-dark: #B8941F;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F9F8;
    --bg-card: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-secondary: #555555;
    --text-muted: #888888;
    --border: #E0E0E0;
    --shadow: rgba(26, 155, 142, 0.1);
    --shadow-hover: rgba(26, 155, 142, 0.2);
}

[data-theme="dark"] {
    --bg-primary: #0F1419;
    --bg-secondary: #1A1F26;
    --bg-card: #242933;
    --text-primary: #E8E8E8;
    --text-secondary: #B8B8B8;
    --text-muted: #888888;
    --border: #3A3F4A;
    --shadow: rgba(0, 0, 0, 0.3);
    --shadow-hover: rgba(26, 155, 142, 0.3);
}

body.ramadan-theme::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/ramadan-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.08;
    pointer-events: none;
    z-index: -1;
}

[data-theme="dark"] body.ramadan-theme::before {
    opacity: 0.12;
    filter: brightness(0.8);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: linear-gradient(135deg, #FFFFFF 0%, #F5F9F8 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeOutSplash 0.8s ease-in-out 4s forwards;
}

[data-theme="dark"] .splash-screen {
    background: linear-gradient(135deg, #0F1419 0%, #1A1F26 100%);
}

.splash-content {
    text-align: center;
    animation: scaleInSplash 1s ease-in-out;
}

.splash-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    margin-bottom: 30px;
    animation: bounceSplash 1s ease-in-out infinite;
}

.splash-text {
    font-size: 48px;
    color: var(--primary);
    font-weight: 700;
    opacity: 0;
    animation: fadeInText 1s ease-in-out 0.5s forwards;
}

@keyframes fadeOutSplash {
    to {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }
}

@keyframes scaleInSplash {
    from {
        transform: scale(0.5);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes bounceSplash {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeInText {
    to {
        opacity: 1;
    }
}

/* ========================================
HEADER
======================================== */
.header {
    background-color: var(--bg-card);
    box-shadow: 0 2px 10px var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 24px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
}

.logo-text p {
    font-size: 14px;
    color: var(--text-secondary);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.language-selector {
    display: flex;
    gap: 5px;
    background-color: var(--bg-secondary);
    padding: 5px;
    border-radius: 8px;
}

.lang-btn {
    background: none;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 600;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.lang-btn:hover {
    background-color: var(--primary-light);
    color: white;
}

.lang-btn.active {
    background-color: var(--primary);
    color: white;
}

.theme-toggle {
    background-color: var(--bg-secondary);
    border: 2px solid var(--border);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
    border-color: var(--primary);
}

[data-theme="light"] .moon-icon {
    display: none;
}

[data-theme="dark"] .sun-icon {
    display: none;
}

.nav {
    display: flex;
    gap: 5px;
    padding: 10px 0;
    border-top: 1px solid var(--border);
    flex-wrap: wrap;
    justify-content: center;
}

.nav a {
    color: var(--text-secondary);
    text-decoration: none;
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav a:hover {
    background-color: var(--primary);
    color: white;
}

/* ========================================
HERO SECTION
======================================== */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.hero h2 {
    font-size: 42px;
    margin-bottom: 10px;
    font-weight: 700;
}

.hero p {
    font-size: 20px;
    opacity: 0.95;
}

/* ========================================
SECCIONES GENERALES
======================================== */
.section {
    padding: 60px 20px;
}

.section h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--gold));
    border-radius: 2px;
}

/* ========================================
PARTE 2/5 - HORARIOS DE ORACIÓN Y REPRODUCTOR DE CORÁN
======================================== */
/* ========================================
HORARIOS DE ORACIÓN
======================================== */
.prayer-times {
    background-color: var(--bg-secondary);
}

.prayer-source-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.source-btn {
    background-color: var(--bg-secondary);
    border: 2px solid var(--border);
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--text-secondary);
}

.source-btn:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
    color: white;
}

.source-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.mawaqit-container {
    margin-top: 30px;
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px var(--shadow);
}

.prayer-date, .hijri-date {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.hijri-date {
    color: var(--gold);
    font-weight: 600;
}

.prayer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.prayer-card {
    background-color: var(--bg-card);
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.prayer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

.prayer-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.prayer-time {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ========================================
REPRODUCTOR DE CORÁN
======================================== */
.quran-section {
    background-color: var(--bg-primary);
}

.quran-player {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px var(--shadow);
    margin-top: 30px;
}

.controls-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.control-group label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 14px;
}

.control-group select {
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.control-group select:hover {
    border-color: var(--primary);
}

.control-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 155, 142, 0.1);
}

.audio-player {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
}

.player-info {
    text-align: center;
    color: white;
    margin-bottom: 20px;
}

.player-info h3 {
    font-size: 24px;
    margin-bottom: 5px;
}

.player-info p {
    font-size: 16px;
    opacity: 0.9;
}

.progress-container {
    background-color: rgba(255, 255, 255, 0.2);
    height: 8px;
    border-radius: 4px;
    margin-bottom: 15px;
    cursor: pointer;
    position: relative;
}

.progress-bar {
    background-color: var(--gold);
    height: 100%;
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s linear;
}

.time-display {
    display: flex;
    justify-content: space-between;
    color: white;
    font-size: 14px;
    margin-bottom: 15px;
}

.player-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.control-btn {
    background-color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--primary);
}

.control-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn.play-pause {
    width: 60px;
    height: 60px;
    font-size: 24px;
    background-color: var(--gold);
    color: white;
}

#quranAudio {
    display: none;
}

.verses-container {
    background-color: var(--bg-secondary);
    border-radius: 12px;
    padding: 30px;
    max-height: 600px;
    overflow-y: auto;
}

.verses-container::-webkit-scrollbar {
    width: 8px;
}

.verses-container::-webkit-scrollbar-track {
    background: var(--bg-card);
    border-radius: 4px;
}

.verses-container::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

.verse {
    padding: 20px;
    margin-bottom: 15px;
    background-color: var(--bg-card);
    border-radius: 8px;
    border-left: 4px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.verse:hover {
    border-left-color: var(--primary-light);
    box-shadow: 0 2px 8px var(--shadow);
}

.verse.active {
    border-left-color: var(--gold);
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.15), transparent);
    box-shadow: 0 4px 15px var(--shadow-hover);
}

.verse-number {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 14px;
}

.verse.active .verse-number {
    background-color: var(--gold);
}

.verse-arabic {
    font-size: 28px;
    line-height: 2;
    text-align: right;
    direction: rtl;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-family: 'Traditional Arabic', 'Arabic Typesetting', 'Amiri', serif;
}

.verse-translation {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.loading::after {
    content: '...';
    animation: loadingDots 1.5s infinite;
}

@keyframes loadingDots {
    0%, 100% { content: '.'; }
    33% { content: '..'; }
    66% { content: '...'; }
}

/* ========================================
PARTE 3/5 - HADIZ, DUAS Y DHIKR
======================================== */
/* ========================================
HADIZ DEL DÍA
======================================== */
.hadith-section {
    background-color: var(--bg-secondary);
}

.hadith-card {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
    max-width: 800px;
    margin: 0 auto;
    border-top: 5px solid var(--gold);
}

.hadith-icon {
    text-align: center;
    font-size: 48px;
    margin-bottom: 20px;
}

.hadith-text {
    font-size: 20px;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-style: italic;
    text-align: center;
}

.hadith-source {
    text-align: center;
    color: var(--gold);
    font-weight: 600;
    font-size: 16px;
}

/* ========================================
DUAS DEL DÍA
======================================== */
.duas-section {
    background-color: var(--bg-primary);
}

.duas-card {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

.dua-category {
    margin-bottom: 30px;
    padding-bottom: 25px;
    border-bottom: 2px solid var(--border);
}

.dua-category:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.dua-category h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 22px;
}

.dua-content {
    background-color: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
}

.dua-arabic {
    font-size: 24px;
    line-height: 2;
    text-align: right;
    direction: rtl;
    color: var(--text-primary);
    font-family: 'Traditional Arabic', 'Arabic Typesetting', 'Amiri', serif;
    margin-bottom: 15px;
}

.dua-translation {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 10px;
}

.dua-reference {
    font-size: 14px;
    color: var(--gold);
    font-weight: 600;
    text-align: right;
}

/* ========================================
DHIKR DIARIO
======================================== */
.dhikr-section {
    background-color: var(--bg-secondary);
}

.dhikr-card {
    background-color: var(--bg-card);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.dhikr-item {
    padding: 25px;
    margin-bottom: 20px;
    background-color: var(--bg-secondary);
    border-radius: 8px;
    border-left: 5px solid var(--primary);
    transition: all 0.3s ease;
}

.dhikr-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px var(--shadow);
}

.dhikr-arabic {
    font-size: 28px;
    line-height: 2;
    text-align: center;
    direction: ltr;
    color: var(--text-primary);
    font-family: 'Traditional Arabic', 'Arabic Typesetting', 'Amiri', serif;
    margin-bottom: 15px;
}

.dhikr-translation {
    font-size: 18px;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 10px;
}

.dhikr-count {
    font-size: 16px;
    color: var(--gold);
    font-weight: 600;
}

/* ========================================
PARTE 4/5 - QUIZ Y CONTACTO
======================================== */
/* ========================================
QUIZ
======================================== */
.quiz-section {
    background-color: var(--bg-primary);
}

.quiz-section > .container > p {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.difficulty-selector {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.difficulty-btn {
    background-color: var(--bg-secondary);
    border: 2px solid var(--border);
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: var(--text-secondary);
}

.difficulty-btn:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
    color: white;
}

.difficulty-btn.active {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

.quiz-container {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.quiz-content, .quiz-results {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
}

.quiz-progress {
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
    color: var(--text-secondary);
}

.question-card h3 {
    color: var(--primary);
    font-size: 22px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-btn {
    background-color: var(--bg-secondary);
    border: 2px solid var(--border);
    padding: 15px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    font-size: 16px;
    color: var(--text-primary);
}

.option-btn:hover {
    border-color: var(--primary);
    background-color: var(--primary-light);
    color: white;
}

.option-btn.selected {
    border-color: var(--primary);
    background-color: var(--primary);
    color: white;
}

.option-btn.correct {
    border-color: #27AE60;
    background-color: #27AE60;
    color: white;
}

.option-btn.incorrect {
    border-color: #E74C3C;
    background-color: #E74C3C;
    color: white;
}

.option-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--gold));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 15px var(--shadow);
}

.score-circle span {
    font-size: 48px;
    font-weight: 700;
    color: white;
}

#scoreMessage {
    font-size: 20px;
    color: var(--text-primary);
    font-weight: 600;
}

.answers-review {
    margin-top: 30px;
}

.answer-item {
    background-color: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 5px solid var(--border);
    text-align: left;
}

.answer-item.correct-answer {
    border-left-color: #27AE60;
}

.answer-item.incorrect-answer {
    border-left-color: #E74C3C;
}

.answer-item h4 {
    color: var(--primary);
    margin-bottom: 10px;
}

.answer-item p {
    color: var(--text-secondary);
    margin: 5px 0;
}

.answer-item .correct-label {
    color: #27AE60;
    font-weight: 600;
}

.answer-item .incorrect-label {
    color: #E74C3C;
    font-weight: 600;
}

/* ========================================
CONTACTO
======================================== */
.contact {
    background-color: var(--bg-secondary);
}

.map-container {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
    transition: all 0.3s ease;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.contact-card {
    background-color: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

.contact-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.contact-card h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.contact-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
BOTONES
======================================== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-hover);
}

/* ========================================
FOOTER
======================================== */
.footer {
    background-color: var(--primary-dark);
    color: white;
    padding: 30px 20px;
    text-align: center;
}

.footer p {
    margin: 5px 0;
    opacity: 0.9;
}

/* ========================================
PARTE 5/5 - RESPONSIVE DESIGN
======================================== */
/* ========================================
RESPONSIVE - TABLETS (768px)
======================================== */
@media (max-width: 768px) {
    .header-content {
        justify-content: center;
    }
    
    .logo {
        width: 50px;
        height: 50px;
    }
    
    .logo-text h1 {
        font-size: 20px;
    }
    
    .nav a {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .hero h2 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .section h2 {
        font-size: 28px;
    }
    
    .prayer-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .source-btn, .difficulty-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .hadith-card {
        padding: 25px;
    }
    
    .hadith-text {
        font-size: 18px;
    }
    
    .duas-card, .dhikr-card {
        padding: 25px;
    }
    
    .dua-arabic {
        font-size: 20px;
    }
    
    .dhikr-arabic {
        font-size: 22px;
    }
    
    .controls-section {
        grid-template-columns: 1fr;
    }
    
    .verse-arabic {
        font-size: 24px;
    }
    
    .verses-container {
        max-height: 400px;
        padding: 20px;
    }
    
    .splash-logo {
        width: 120px;
        height: 120px;
    }
    
    .splash-text {
        font-size: 36px;
    }
}

/* ========================================
RESPONSIVE - MÓVILES (480px)
======================================== */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        padding: 10px 0;
    }
    
    .logo {
        width: 45px;
        height: 45px;
    }
    
    .logo-text h1 {
        font-size: 18px;
    }
    
    .logo-text p {
        font-size: 12px;
    }
    
    .language-selector {
        padding: 3px;
    }
    
    .lang-btn {
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .theme-toggle {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .nav {
        gap: 3px;
    }
    
    .nav a {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    .hero {
        padding: 40px 15px;
    }
    
    .hero h2 {
        font-size: 26px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .section {
        padding: 40px 15px;
    }
    
    .section h2 {
        font-size: 24px;
    }
    
    .prayer-grid {
        grid-template-columns: 1fr;
    }
    
    .source-btn, .difficulty-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .prayer-card {
        padding: 20px;
    }
    
    .quran-player {
        padding: 20px;
    }
    
    .audio-player {
        padding: 20px;
    }
    
    .player-controls {
        gap: 10px;
    }
    
    .control-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
    
    .control-btn.play-pause {
        width: 55px;
        height: 55px;
    }
    
    .verse-arabic {
        font-size: 20px;
        line-height: 1.8;
    }
    
    .verse-translation {
        font-size: 14px;
    }
    
    .verses-container {
        padding: 15px;
        max-height: 350px;
    }
    
    .hadith-card {
        padding: 20px;
    }
    
    .hadith-text {
        font-size: 16px;
    }
    
    .duas-card, .dhikr-card {
        padding: 20px;
    }
    
    .dua-category {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .dua-arabic {
        font-size: 18px;
    }
    
    .dhikr-item {
        padding: 15px;
    }
    
    .dhikr-arabic {
        font-size: 20px;
    }
    
    .quiz-content, .quiz-results {
        padding: 20px;
    }
    
    .score-circle {
        width: 120px;
        height: 120px;
    }
    
    .score-circle span {
        font-size: 36px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .btn-primary {
        padding: 12px 30px;
        font-size: 16px;
    }
    
    .splash-logo {
        width: 100px;
        height: 100px;
    }
    
    .splash-text {
        font-size: 28px;
    }
}

/* ========================================
RESPONSIVE - PANTALLAS PEQUEÑAS (360px)
======================================== */
@media (max-width: 360px) {
    .logo-section {
        gap: 10px;
    }
    
    .logo {
        width: 40px;
        height: 40px;
    }
    
    .logo-text h1 {
        font-size: 16px;
    }
    
    .logo-text p {
        font-size: 11px;
    }
    
    .header-controls {
        gap: 10px;
    }
    
    .language-selector {
        gap: 3px;
        padding: 2px;
    }
    
    .lang-btn {
        padding: 5px 8px;
        font-size: 12px;
    }
    
    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .nav a {
        padding: 6px 8px;
        font-size: 12px;
    }
    
    .hero h2 {
        font-size: 22px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .section {
        padding: 30px 10px;
    }
    
    .section h2 {
        font-size: 20px;
    }
    
    .prayer-card {
        padding: 15px;
    }
    
    .prayer-name {
        font-size: 16px;
    }
    
    .prayer-time {
        font-size: 22px;
    }
    
    .quran-player {
        padding: 15px;
    }
    
    .audio-player {
        padding: 15px;
    }
    
    .player-info h3 {
        font-size: 20px;
    }
    
    .player-info p {
        font-size: 14px;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .control-btn.play-pause {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .verse {
        padding: 15px;
    }
    
    .verse-arabic {
        font-size: 18px;
    }
    
    .verse-translation {
        font-size: 13px;
    }
    
    .verses-container {
        padding: 10px;
        max-height: 300px;
    }
    
    .hadith-card {
        padding: 15px;
    }
    
    .hadith-icon {
        font-size: 36px;
    }
    
    .hadith-text {
        font-size: 14px;
    }
    
    .hadith-source {
        font-size: 13px;
    }
    
    .quiz-content, .quiz-results {
        padding: 15px;
    }
    
    .question-card h3 {
        font-size: 18px;
    }
    
    .option-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
    }
    
    .score-circle span {
        font-size: 30px;
    }
    
    .scoreMessage {
        font-size: 16px;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .contact-icon {
        font-size: 36px;
    }
    
    .btn-primary {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .splash-logo {
        width: 80px;
        height: 80px;
    }
    
    .splash-text {
        font-size: 24px;
    }
}

/* ========================================
MEJORAS DE ACCESIBILIDAD
======================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
OPTIMIZACIÓN PARA IMPRESIÓN
======================================== */
@media print {
    .header, .nav, .theme-toggle, .language-selector,
    .splash-screen, .footer, .btn-primary {
        display: none !important;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    body {
        background: white;
        color: black;
    }
}