:root {
    --primary-color: #4A90E2;
    --secondary-color: #E94B3C;
    --accent-color: #F39C12;
    --dark-color: #2C3E50;
    --light-color: #ECF0F1;
    --success-color: #27AE60;
    --purple-color: #8E44AD;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-bg: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--gradient-bg);
    background-attachment: fixed;
    color: var(--dark-color);
    line-height: 1.6;
    min-height: 100vh;
}

/* Header Superior */
.top-header {
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.header-link {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.header-link:hover {
    color: var(--secondary-color);
}

/* Contenedor Principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Sección Hero */
.hero-section {
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 1s ease-in;
}

.rosary-icon {
    font-size: 5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin: 20px 0;
}

.mystery-display {
    font-size: 1.5rem;
    color: white;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px 30px;
    border-radius: 50px;
    display: inline-block;
    backdrop-filter: blur(10px);
    margin-top: 10px;
}

/* Tarjetas de Versión */
.version-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
    padding: 20px;
}

.version-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.version-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-1);
}

.version-card:nth-child(2)::before {
    background: var(--gradient-2);
}

.version-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.version-card h2 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.version-card p {
    font-size: 1.2rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.card-description {
    display: block;
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 25px;
    line-height: 1.5;
}

.select-btn {
    background: var(--gradient-1);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.version-card:nth-child(2) .select-btn {
    background: var(--gradient-2);
}

.select-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Reproductor de Audio */
.audio-player {
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    margin: 20px 0;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    display: flex;
    align-items: center;
    gap: 10px;
}

.back-icon {
    font-size: 1.3rem;
    font-weight: bold;
}

.back-btn:hover {
    background: var(--secondary-color);
    transform: translateX(-5px) scale(1.05);
    box-shadow: 0 6px 20px rgba(233, 75, 60, 0.4);
}

.player-header {
    text-align: center;
    margin-bottom: 40px;
}

.rosary-image {
    font-size: 4rem;
    margin-bottom: 20px;
}

.player-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}

.player-header p {
    font-size: 1.3rem;
    color: var(--primary-color);
    font-weight: 600;
}

/* Controles del Reproductor */
.player-controls {
    max-width: 600px;
    margin: 0 auto;
}

.progress-container {
    margin-bottom: 30px;
}

.time-display {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #7f8c8d;
}

.progress-bar {
    background: #e0e0e0;
    height: 8px;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    overflow: visible;
}

.progress-fill {
    background: var(--gradient-1);
    height: 100%;
    border-radius: 10px;
    width: 0%;
    transition: width 0.1s linear;
}

.progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid #667eea;
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.progress-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.2);
}

.control-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.control-btn {
    background: var(--light-color);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--dark-color);
}

.control-btn:hover {
    background: var(--dark-color);
    color: white;
    transform: scale(1.1);
}

.play-btn {
    width: 80px;
    height: 80px;
    background: var(--gradient-1);
    color: white;
}

.play-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

/* Control de Volumen */
.volume-control {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.volume-icon {
    font-size: 1.5rem;
}

.volume-slider {
    width: 150px;
    height: 6px;
    border-radius: 10px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

/* Sección Informativa */
.info-section {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Card Principal de elsantorosario.eu */
.main-info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.3);
}

.card-header {
    text-align: center;
    margin-bottom: 20px;
}

.card-icon-large {
    font-size: 4rem;
    display: block;
    margin-bottom: 15px;
}

.main-info-card h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-align: center;
}

.lead-text {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 30px;
    opacity: 0.95;
}

.main-link-btn {
    display: block;
    background: white;
    color: #667eea;
    padding: 20px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    text-align: center;
    margin: 30px auto;
    max-width: 400px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.main-link-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: #f5f5f5;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.topic-item {
    background: rgba(255, 255, 255, 0.15);
    padding: 25px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.topic-item:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
}

.topic-item h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.topic-item p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
}

.info-card {
    margin-bottom: 40px;
}

.info-card h3 {
    font-size: 2rem;
    color: var(--dark-color);
    margin-bottom: 15px;
    border-left: 5px solid var(--primary-color);
    padding-left: 15px;
}

.info-card p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

/* Promoción de Alexa */
.alexa-promo {
    background: var(--gradient-3);
    padding: 30px;
    border-radius: 15px;
    color: white;
    margin-bottom: 40px;
}

.alexa-promo h3 {
    font-size: 2rem;
    margin-bottom: 15px;
    text-align: center;
}

.alexa-promo > p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.alexa-commands {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 25px 0;
}

.command-box {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.command-box strong {
    font-size: 1.2rem;
}

.alexa-note {
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
    font-size: 0.95rem;
}

.info-link {
    display: inline-block;
    color: white;
    text-decoration: none;
    margin-top: 20px;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.info-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Footer */
.footer-info {
    text-align: center;
    padding: 30px 0;
    border-top: 2px solid var(--light-color);
}

.footer-info p {
    font-size: 1.1rem;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.creator-link {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.creator-link:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-title {
        font-size: 2.5rem;
    }

    .mystery-display {
        font-size: 1.2rem;
        padding: 12px 25px;
    }

    .version-cards {
        grid-template-columns: 1fr;
        padding: 10px;
    }

    .audio-player {
        padding: 25px;
    }

    .player-header h2 {
        font-size: 2rem;
    }

    .control-btn {
        width: 50px;
        height: 50px;
    }

    .play-btn {
        width: 70px;
        height: 70px;
    }

    .info-section {
        padding: 25px;
    }

    .info-card h3 {
        font-size: 1.5rem;
    }

    .alexa-promo h3 {
        font-size: 1.5rem;
    }

    .command-box strong {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .header-link {
        font-size: 1rem;
    }

    .main-title {
        font-size: 2rem;
    }

    .rosary-icon {
        font-size: 3.5rem;
    }

    .version-card {
        padding: 30px 20px;
    }

    .card-icon {
        font-size: 3rem;
    }

    .version-card h2 {
        font-size: 1.5rem;
    }

    .audio-player {
        padding: 20px;
    }

    .volume-control {
        flex-direction: column;
    }

    .volume-slider {
        width: 100%;
    }
}
