input#userName {
    color: white;
    background-color: #101345;
    font-size: 17px;
}

button.reset-data {
    display: flex;
    justify-self: center;
}

p.reading-instructions {
    background: #8b4513;
    padding: 10px;
    color: #ffffff;
    text-align: center;
}

/* Eliminar las variables y usar valores directos */
.castillo-tarot-game {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #e0e0e0;
    background: linear-gradient(135deg, 
        rgba(13, 13, 26, 0.95) 0%, 
        rgba(20, 20, 40, 0.9) 100%);
    min-height: 10vh;
    position: relative;
    overflow: hidden;
}

/* Actualizar referencias a las variables con valores directos */
.tarot-title {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 40px;
    color: #8b4513;
    font-weight: 400;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(192, 160, 128, 0.3);
}

.tarot-card {
    background: linear-gradient(45deg, #2c1810 0%, #8b4513 100%);
    /*border: 2px solid #8b4513;*/
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(192, 160, 128, 0.1);
}

.card-interpretation {
    border: 1px solid #8b4513;
}

.card-interpretation h3 {
    color: #8b4513;
}

.mystic-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, 
        rgba(13, 13, 26, 0.95) 0%, 
        rgba(13, 13, 26, 0.8) 100%);
    z-index: -1;
}

/* Título principal */
.tarot-title {
    text-align: center;
    font-size: 2.8em;
    margin-bottom: 40px;
    color: #8b4513;
    font-weight: 400;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(192, 160, 128, 0.3);
}

/* Layout principal de dos columnas */
.tarot-reading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
    margin-top: 40px;
}

/* Layout de cartas */
.tarot-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px;
}

.card-slot {
    width: 200px;
    margin-bottom: 20px;
}

/* Estilo de carta */
.tarot-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    background: linear-gradient(45deg, #2c1810 0%, #8b4513 100%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(192, 160, 128, 0.1);
    border-color: #8b4513;
}

/* Efecto hover en cartas no volteadas */
.tarot-card:not(.flipped):hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(192, 160, 128, 0.2);
    animation: mysticalGlow 2s infinite;
}

/* Carta volteada */
.tarot-card.flipped {
    transform: rotateY(180deg);
}

/* Interpretación inmediata */
.card-interpretation {
    width: 100%;
    margin-top: 20px;
    padding: 20px;
    background: rgba(12, 12, 24, 0.85);
    border: 1px solid rgba(192, 160, 128, 0.3);
    border-radius: 12px;
}

.card-interpretation h3 {
    color: #8b4513;
    font-size: 1.6em;
    margin-bottom: 10px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-interpretation h4 {
    color: #e4b5ff;
    font-size: 1.8em;
    margin-bottom: 15px;
    text-align: center;
    font-style: italic;
}

.card-meaning {
    padding: 15px;
    background: rgba(192, 160, 128, 0.05);
    border-radius: 8px;
}

.narrative {
    color: #fff;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 15px;
    text-align: justify;
}

.description {
    color: #c0a080;
    font-style: italic;
    font-size: 1em;
    padding-top: 10px;
    border-top: 1px solid rgba(192, 160, 128, 0.2);
}

/* Estilos para cartas */
.tarot-card:not(.flipped):hover {
    transform: translateY(-10px);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

.card-front {
    transform: rotateY(180deg);
    background: #fff;
}

.card-front img {
    width: 100%;
    height: 100%;
    object-fit: fill;
}

.card-back {
    background: linear-gradient(45deg, #1a1a2e, #2a2a3e);
    border: 2px solid rgba(192, 160, 128, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1em;
    border-radius: 8px;
}

.card-back::before {
    content: '✧';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(192, 160, 128, 0.3);
    font-size: 1.5em;
}

.card-back::after {
    content: '✧';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(192, 160, 128, 0.3);
    font-size: 1.5em;
}

/* Interpretación */
.tarot-interpretation {
    max-width: 800px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.mystic-symbols {
    text-align: center;
    color: #e4b5ff;
    font-size: 1.2em;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.energy-title {
    color: #c0a080;
    font-size: 1.6em;
    margin-bottom: 25px;
    font-weight: 500;
}

.personal-message {
    text-align: center;
    font-size: 1.2em;
    color: #ffd700;
    margin-top: 20px;
    padding: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
    animation: glow 2s ease-in-out infinite;
}

/* Animaciones */
@keyframes backgroundPulse {
    0% { opacity: 0.8; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

@keyframes floatAnimation {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

/* Loading animation */
.loading-message {
    text-align: center;
    padding: 40px;
    font-size: 1.4em;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.crystal-ball {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    position: relative;
    animation: glow 2s ease-in-out infinite;
}

.crystal-reflection {
    position: absolute;
    width: 30%;
    height: 30%;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    top: 20%;
    left: 20%;
    animation: shine 2s ease-in-out infinite;
}

/* Daily reminder */
.daily-reminder {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    animation: floatAnimation 3s ease-in-out infinite;
}

/* Responsive */
@media (max-width: 481px) {
    .tarot-reading {
        grid-template-columns: 1fr;
    }

    .tarot-cards {
        position: relative;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
    }

    .card-slot {
        width: 180px;
        height: 310px;
    }
}

/* Animaciones adicionales */
@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.5); }
    50% { box-shadow: 0 0 20px rgba(255, 255, 255, 0.8); }
    100% { box-shadow: 0 0 5px rgba(255, 255, 255, 0.5); }
}

@keyframes shine {
    0% { opacity: 0.3; }
    50% { opacity: 0.8; }
    100% { opacity: 0.3; }
}

/* Actualizar estilos del formulario */
.personal-data-form {
    max-width: 600px;
    margin: 0 auto 40px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
}

.tarot-game-content {
    transition: all 0.4s ease;
}

.personal-data-form h2 {
    font-size: 2em;
    margin-bottom: 30px;
    color: #e4b5ff;
    font-weight: 300;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 1.1em;
    color: #c0a080;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid rgba(192, 160, 128, 0.3);
    background: rgba(192, 160, 128, 0.1);
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 1.1em;
}

.date-inputs {
    display: flex;
    gap: 15px;
}

.date-inputs select {
    flex: 1;
}

/* Estilo para las opciones del select */
.form-group select option {
    background: #1a1a2e;
    color: white;
}

/* Añadir estilos específicos para el botón de inicio */
.start-reading {
    background: linear-gradient(45deg, #7c5db8, #b07bb1);
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px auto;
}

.start-reading:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #8d6ac9, #c288c2);
}

.start-reading:active {
    transform: translateY(0);
}

.start-reading .button-icon {
    font-size: 1.4em;
}

/* Añadir al final del archivo */
.tarot-error {
    text-align: center;
    padding: 20px;
    background: rgba(255, 0, 0, 0.1);
    border-radius: 10px;
    margin: 20px 0;
}

.tarot-error p {
    color: #ff9999;
    margin-bottom: 15px;
}

.retry-button {
    background: linear-gradient(45deg, #993333, #cc3333);
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    color: white;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.retry-button:hover {
    background: linear-gradient(45deg, #cc3333, #ff3333);
    transform: translateY(-2px);
}

.retry-button .button-icon {
    animation: spin 2s linear infinite;
}

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

/* Mejorar el botón de nueva lectura */
.reset-data {
    background: linear-gradient(45deg, #7c5db8, #b07bb1);
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.reset-data:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #8d6ac9, #c288c2);
}

/* Ajustar el contenedor de botones para tres elementos */
@media (max-width: 768px) {
    .tarot-controls {
        flex-direction: column;
        align-items: center;
    }

    .tarot-controls button {
        width: 100%;
        max-width: 300px;
    }
}

/* Animación para símbolos místicos */
@keyframes floatSymbols {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-5px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

.mystic-symbols {
    animation: floatSymbols 3s ease-in-out infinite;
}

/* Añadir efecto de brillo a las cartas no volteadas */
.tarot-card:not(.flipped)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 0%, rgba(255,255,255,0.1) 50%, transparent 100%);
    animation: shine 3s infinite linear;
    pointer-events: none;
}

.final-reading-conclusion {
    margin-top: 50px;
    padding: 40px;
    background: rgba(12, 12, 24, 0.95);
    border: 1px solid rgba(192, 160, 128, 0.3);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
}

.final-reading-conclusion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at top right, rgba(192, 160, 128, 0.1), transparent 70%),
        radial-gradient(circle at bottom left, rgba(192, 160, 128, 0.1), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.personal-guidance {
    margin: 30px 0;
    padding: 20px;
    background: rgba(192, 160, 128, 0.05);
    border-radius: 10px;
}

.daily-reminder {
    margin-top: 40px;
    text-align: center;
    padding: 30px;
    background: rgba(192, 160, 128, 0.05);
    border-radius: 10px;
}

.next-reading-timer {
    margin-top: 20px;
    font-size: 1.2em;
}

.timer {
    font-size: 1.5em;
    color: #c0a080;
    margin-top: 10px;
    font-family: monospace;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.share-wisdom {
    margin-top: 40px;
    text-align: center;
}

.share-reading-button {
    margin-top: 20px;
    padding: 15px 30px;
    font-size: 1.1em;
    background: linear-gradient(45deg, #7c5db8, #b07bb1);
    border: none;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-reading-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.reading-advice {
    margin-top: 25px;
}

.reading-advice ul {
    list-style: none;
    padding: 0;
}

.reading-advice li {
    margin: 15px 0;
    padding-left: 25px;
    position: relative;
}

.reading-advice li::before {
    content: '✧';
    position: absolute;
    left: 0;
    color: #c0a080;
}

/* Animaciones suaves */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card-interpretation.active {
    animation: fadeIn 0.5s ease forwards;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .tarot-cards {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .reading-section {
        max-width: none;
        margin: 20px 10px;
    }

    .card-interpretation {
        margin-top: 15px;
        padding: 15px;
    }

    .card-interpretation h3 {
        font-size: 1.6em;
    }

    .card-interpretation h4 {
        font-size: 1.8em;
    }

    .narrative {
        font-size: 1em;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* Ajustar controles */
.tarot-controls {
    text-align: center;
    margin: 30px 0;
}

.reset-data {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 25px;
    font-size: 1.1em;
    border-radius: 20px;
    background: linear-gradient(45deg, #7c5db8, #b07bb1);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.reset-data:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #8d6ac9, #c288c2);
}

/* Animaciones de barajado */
.shuffling-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 13, 26, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.tarotist-avatar {
    display: none;
    text-align: center;
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.avatar-image {
    width: 120px;
    height: 120px;
    border-radius: 60px;
    margin: 0 auto 15px;
    background: linear-gradient(45deg, #c0a080, #8b6b57);
    border: 3px solid rgba(192, 160, 128, 0.3);
    position: relative;
    overflow: hidden;
}

.avatar-image::after {
    content: '🔮';
    font-size: 50px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.avatar-name {
    color: #c0a080;
    font-size: 1.5em;
    margin-top: 10px;
}

.mystic-message {
    position: absolute;
    bottom: 15%;
    left: 0;
    right: 0;
    text-align: center;
    color: #e0e0e0;
    font-size: 1.8em;
    line-height: 1.4;
    padding: 20px;
    text-shadow: 0 0 10px rgba(192, 160, 128, 0.3);
    z-index: 2;
}

@keyframes floatAnimation {
    0% { transform: translate(-50%, -50%); }
    50% { transform: translate(-50%, -60%); }
    100% { transform: translate(-50%, -50%); }
}

.shuffling-cards {
    position: relative;
    width: 200px;
    height: 300px;
    perspective: 1000px;
    z-index: 1;
    margin-top: 30px;
}

.shuffle-card {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #1a1a2e, #2a2a3e);
    border: 2px solid rgba(192, 160, 128, 0.3);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.shuffle-card:nth-child(1) { animation: shuffle1 2s infinite; }
.shuffle-card:nth-child(2) { animation: shuffle2 2s infinite 0.2s; }
.shuffle-card:nth-child(3) { animation: shuffle3 2s infinite 0.4s; }

@keyframes shuffle1 {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(-100px) rotate(-30deg); }
    75% { transform: translateX(100px) rotate(30deg); }
}

@keyframes shuffle2 {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    25% { transform: translateX(100px) rotate(30deg); }
    75% { transform: translateX(-100px) rotate(-30deg); }
}

@keyframes shuffle3 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-50px) rotate(180deg); }
}

/* Efecto de brillo místico */
.mystic-glow {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: radial-gradient(circle at center, rgba(192, 160, 128, 0.2), transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card-slot:hover .mystic-glow {
    opacity: 1;
}

/* Botón de barajar */
.reshuffle-cards {
    background: linear-gradient(45deg, #8b6b57, #c0a080);
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    color: white;
    font-size: 1.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.reshuffle-cards:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #9b7b67, #d0b090);
}

/* Sección de engagement */
.engagement-section {
    margin-top: 50px;
    padding: 30px;
    background: rgba(12, 12, 24, 0.95);
    border-radius: 15px;
    border: 1px solid rgba(192, 160, 128, 0.3);
}

.tarot-insights {
    margin-bottom: 40px;
}

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

.insight-item {
    background: rgba(192, 160, 128, 0.05);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.insight-icon {
    font-size: 2em;
}

.energy-levels {
    display: grid;
    gap: 20px;
    margin: 30px 0;
}

.energy-item {
    background: rgba(192, 160, 128, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.energy-bar {
    height: 10px;
    background: linear-gradient(45deg, #7c5db8, #b07bb1);
    border-radius: 5px;
    width: 0;
    transition: width 1.5s ease-in-out;
    box-shadow: 0 0 10px rgba(124, 93, 184, 0.3);
}

.power-elements {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.element {
    text-align: center;
    padding: 20px;
    background: rgba(192, 160, 128, 0.05);
    border-radius: 10px;
}

.element-icon {
    font-size: 2em;
    margin-bottom: 10px;
    display: block;
}

.next-reading {
    margin-top: 40px;
    text-align: center;
}

.reading-tip {
    margin-top: 20px;
    color: #c0a080;
    font-style: italic;
}

.testimonial {
    padding: 25px;
    background: rgba(192, 160, 128, 0.05);
    border-radius: 10px;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.countdown-timer {
    font-size: 2em;
    color: #c0a080;
    margin: 20px 0;
    font-family: monospace;
    text-shadow: 0 0 10px rgba(192, 160, 128, 0.3);
}

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

.testimonial::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 3em;
    color: rgba(192, 160, 128, 0.2);
}

.share-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.share-whatsapp {
    background: linear-gradient(45deg, #25D366, #128C7E) !important;
    color: white !important;
    border: none !important;
    padding: 12px 25px !important;
    border-radius: 25px !important;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.share-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    background: linear-gradient(45deg, #128C7E, #075E54) !important;
}

.share-whatsapp .button-icon {
    font-size: 1.3em;
}

/* Ajustes responsive */
@media (max-width: 480px) {
    .share-whatsapp {
        width: 100%;
        justify-content: center;
        max-width: 280px;
        margin: 0 auto;
    }
}

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

.mystic-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: rgba(13, 13, 26, 0.95);
    border: 1px solid rgba(192, 160, 128, 0.3);
    border-radius: 15px;
    padding: 25px 35px;
    max-width: 600px;
    text-align: center;
    color: #e0e0e0;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    font-size: 1.2em;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Actualizar el contenedor de la sección de lectura */
.reading-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    background: rgba(192, 160, 128, 0.05);
    border-radius: 15px;
}

/* Ajustes para las cartas en móvil */
.card-slot {
    width: 100%;
    max-width: 200px; /* Reducir el ancho máximo */
    margin-bottom: 20px;
}

.tarot-card {
    width: 100%;
    height: 320px; /* Reducir altura en móvil */
    position: relative;
    margin: 0 auto;
}

/* Ajustes para la interpretación en móvil */
.card-interpretation {
    width: 100%;
    padding: 15px;
    margin: 15px 0;
    background: rgba(12, 12, 24, 0.85);
    border: 1px solid rgba(192, 160, 128, 0.3);
    border-radius: 12px;
}

/* Ajustes de texto para móvil */
.card-interpretation h3 {
    font-size: 1.6em;
    margin-bottom: 10px;
}

.card-interpretation h4 {
    font-size: 1.8em;
    margin-bottom: 10px;
}

.narrative {
    font-size: 0.9em;
    line-height: 1.4;
}

/* Ajustes para el mensaje de clic en móvil */
.card-click-message {
    font-size: 1em;
    padding: 10px;
    width: 80%;
}

/* Media queries específicos */
@media (max-width: 480px) {
    .reading-section {
        padding: 10px;
        margin: 5px 0;
    }

    .card-slot {
        max-width: 180px; /* Aún más pequeño para móviles muy pequeños */
    }

    .tarot-card {
        height: 280px; /* Altura más pequeña para móviles */
    }

    .card-interpretation {
        padding: 10px;
        margin: 10px 0;
    }
}

/* Mantener los estilos de PC como están */
@media (min-width: 1024px) {
    .reading-section {
        flex-direction: row;
        align-items: flex-start;
        gap: 30px;
        max-width: 900px;
        margin: 20px auto;
        padding: 20px;
    }

    .card-slot {
        flex: 0 0 200px;
        margin-bottom: 0;
        max-width: none;
    }

    .tarot-card {
        height: 320px;
    }

    .card-interpretation {
        flex: 1;
        margin-top: 0;
    }
}

/* Añadir efectos decorativos */
.tarot-game-container::before {
    content: '✧';
    position: absolute;
    top: 10px;
    left: 10px;
    color: #8b4513;
    font-size: 24px;
}

.tarot-game-container::after {
    content: '✧';
    position: absolute;
    bottom: 10px;
    right: 10px;
    color: #8b4513;
    font-size: 24px;
}

/* Mejorar el aspecto místico */
.card-click-message {
    color: #e0d3c5;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2em;
    text-shadow: 0 0 5px rgba(139, 69, 19, 0.5);
}

/* Añadir bordes decorativos */
.reading-section {
    border: 1px solid rgba(139, 69, 19, 0.3);
    border-radius: 12px;
    padding: 20px;
    background: rgba(44, 24, 16, 0.2);
}

/* Mejorar la apariencia de los títulos */
.position-title {
    color: #e0d3c5;
    font-family: 'Cormorant Garamond', serif;
    text-align: center;
    margin-bottom: 15px;
    text-shadow: 0 0 5px rgba(139, 69, 19, 0.5);
}

/* Añadir efecto místico con múltiples gradientes */
.castillo-tarot-game::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, 
            rgba(128, 0, 128, 0.1) 0%, 
            transparent 50%),
        radial-gradient(circle at 80% 80%, 
            rgba(0, 0, 128, 0.1) 0%, 
            transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Mejorar el aspecto místico de los elementos */
.tarot-title {
    text-shadow: 0 0 10px rgba(192, 160, 128, 0.3);
}

.tarot-card {
    background: linear-gradient(45deg, 
        var(--primary-color) 0%, 
        var(--secondary-color) 100%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(192, 160, 128, 0.1);
}

/* Añadir efectos de brillo */
@keyframes mysticalGlow {
    0%, 100% {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3),
                   0 0 20px rgba(192, 160, 128, 0.1);
    }
    50% {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3),
                   0 0 30px rgba(192, 160, 128, 0.2);
    }
}

.tarot-card:hover {
    animation: mysticalGlow 2s infinite;
}

/* Añadir vista previa de color en el panel de admin */
.color-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.color-preview {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Sección de lectura profunda */
.deeper-reading-section {
    text-align: center;
    margin: 3px auto;
    padding: 20px;
    max-width: 600px;
}

.deeper-reading-btn {
    background: linear-gradient(45deg, #8b4513, #654321);
    border: none;
    padding: 15px 25px;
    border-radius: 50px;
    color: #fff;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px auto;
    max-width: 90%;
    width: fit-content;
    box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3),
                0 0 30px rgba(192, 160, 128, 0.2);
    border: 2px solid rgba(192, 160, 128, 0.3);
    white-space: normal;
    text-align: center;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
    animation: buttonPulse 2s infinite;
}

.deeper-reading-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(45deg, #9b5523, #755331);
    box-shadow: 0 8px 20px rgba(139, 69, 19, 0.4),
                0 0 40px rgba(192, 160, 128, 0.3);
}

.deeper-reading-btn:active {
    transform: translateY(1px);
}

.button-text {
    flex: 1;
    min-width: 200px;
    max-width: 100%;
    padding: 0 10px;
    position: relative;
    z-index: 2;
}

.crystal-icon {
    flex-shrink: 0;
    font-size: 1.2em;
    animation: crystalSpin 3s infinite linear;
    position: relative;
    z-index: 2;
}

/* Animación de pulso para el botón */
@keyframes buttonPulse {
    0% {
        box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3),
                    0 0 30px rgba(192, 160, 128, 0.2);
    }
    50% {
        box-shadow: 0 5px 25px rgba(139, 69, 19, 0.5),
                    0 0 50px rgba(192, 160, 128, 0.4);
    }
    100% {
        box-shadow: 0 5px 15px rgba(139, 69, 19, 0.3),
                    0 0 30px rgba(192, 160, 128, 0.2);
    }
}

/* Animación de giro suave para los cristales */
@keyframes crystalSpin {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(10deg); }
    75% { transform: rotate(-10deg); }
    100% { transform: rotate(0deg); }
}

/* Efecto de brillo que se mueve */
.deeper-reading-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
    z-index: 1;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.deeper-reading-hint {
    color: #e4b5ff;
    font-style: italic;
    margin-top: 15px;
    font-size: 1.1em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0.8;
    animation: hintPulse 2s infinite;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Contenido de la lectura profunda */
.deeper-reading-content {
    background: rgba(12, 12, 24, 0.85);
    border: 1px solid rgba(192, 160, 128, 0.3);
    border-radius: 15px;
    padding: 30px;
    margin: 20px auto;
    max-width: 800px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s forwards;
}

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

/* Asegurar que el título sea más visible */
.deeper-title {
    color: #e4b5ff;
    font-size: 2em;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    padding: 15px;
    background: rgba(12, 12, 24, 0.5);
    border-radius: 10px;
    border: 1px solid rgba(192, 160, 128, 0.2);
}

/* Secciones de la lectura profunda */
.cards-synthesis, 
.personal-guidance, 
.crystal-recommendation, 
.next-steps {
    margin: 30px 0;
    padding: 20px;
    background: rgba(192, 160, 128, 0.05);
    border-radius: 12px;
}

.cards-synthesis h3, 
.personal-guidance h3, 
.crystal-recommendation h3, 
.next-steps h3 {
    color: #c0a080;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.synthesis-text, 
.guidance-content {
    color: #e0e0e0;
    line-height: 1.6;
    text-align: justify;
}

/* Animación del cristal */
@keyframes crystalGlow {
    from {
        text-shadow: 0 0 10px rgba(192, 160, 128, 0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(192, 160, 128, 0.8);
    }
}

/* Responsive para la lectura profunda */
@media (max-width: 768px) {
    .deeper-reading-btn {
        padding: 15px 30px;
        font-size: 1.2em;
    }

    .deeper-reading-content {
        padding: 20px;
        margin: 20px 5px;
    }

    .deeper-title {
        font-size: 1.6em;
    }

    .cards-synthesis, 
    .personal-guidance, 
    .crystal-recommendation, 
    .next-steps {
        padding: 15px;
        margin: 20px 0;
    }
}

.energy-description {
    margin-top: 10px;
    font-size: 0.95em;
    color: #e0d3c5;
    line-height: 1.4;
    font-style: italic;
    padding: 10px;
    background: rgba(12, 12, 24, 0.4);
    border-radius: 8px;
    text-align: left;
}

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

.energy-bar {
    margin: 10px 0;
    transition: width 1.5s ease-in-out;
}

/* Separadores visuales */
.deeper-reading-content > div:not(:last-child) {
    border-bottom: 1px solid rgba(192, 160, 128, 0.1);
    padding-bottom: 30px;
    margin-bottom: 30px;
}

/* Estilos para la carta del poder */
.power-card-section {
    background: rgba(192, 160, 128, 0.05);
    padding: 25px;
    border-radius: 12px;
    margin: 30px 0;
}

.power-card-section h3 {
    color: #c0a080;
    font-size: 1.3em;
    margin-bottom: 15px;
}

/* Estilos para el temporizador */
.next-reading-timer {
    text-align: center;
    margin-top: 30px;
    padding: 20px;
    background: rgba(192, 160, 128, 0.05);
    border-radius: 12px;
}

.timer {
    font-size: 1.8em;
    color: #e4b5ff;
    margin: 15px 0;
    font-family: monospace;
    text-shadow: 0 0 10px rgba(228, 181, 255, 0.3);
}

/* Actualizar estilos del botón de eliminar */
.remove-card-image {
    background: #f0f0f0 !important;
    color: #666 !important;
    border: 1px solid #ddd !important;
}

.remove-card-image:hover {
    background: #e5e5e5 !important;
    color: #444 !important;
}

/* Asegurar que el botón tenga un aspecto más suave */
.card-upload-box button {
    margin-bottom: 5px !important;
    width: 100%;
    text-align: center;
}

/* Añadir estos estilos al final del archivo */

.used-cards-section {
    margin-top: 40px;
    padding: 30px;
    background: rgba(12, 12, 24, 0.85);
    border: 1px solid rgba(192, 160, 128, 0.3);
    border-radius: 15px;
}

.used-cards-section h3 {
    color: #e4b5ff;
    text-align: center;
    font-size: 1.4em;
    margin-bottom: 25px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.used-cards-display {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin: 20px 0;
    padding: 15px;
}

.used-card {
    width: 100%;
    text-align: center;
    padding: 8px;
    background: rgba(192, 160, 128, 0.05);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.used-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.used-card img {
    width: 100%;
    aspect-ratio: 0.67/1;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.used-card .card-name {
    color: #e0d3c5;
    font-size: 0.9em;
    margin-top: 8px;
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.2;
    min-height: 2.4em;
}

.action-buttons {
    margin-top: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.share-buttons button {
    background: linear-gradient(45deg, #8b4513, #654321);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-whatsapp:hover { 
    background: linear-gradient(45deg, #25D366, #128C7E) !important;
}

.share-facebook:hover { 
    background: linear-gradient(45deg, #1877F2, #0d5ab9) !important;
}

.share-x:hover { 
    background: linear-gradient(45deg, #14171A, #000000) !important;
}

.share-buttons button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.share-buttons .button-icon {
    font-size: 1.2em;
}

/* Ajustes responsive */
@media (max-width: 768px) {
    .used-cards-display {
        grid-template-columns: repeat(2, 1fr); /* Cambiar a 2 columnas */
        gap: 10px;
        padding: 10px;
    }

    .used-card {
        width: 100%;
    }

    .used-card img {
        height: auto; /* Ajustar altura automáticamente */
        aspect-ratio: 0.67/1; /* Mantener proporción */
    }

    .used-card .card-name {
        font-size: 0.8em; /* Reducir tamaño de fuente para nombres */
    }
}

/* Para pantallas muy pequeñas, mantener 2 columnas pero ajustar espaciado */
@media (max-width: 480px) {
    .used-cards-section {
        padding: 15px;
    }

    .used-cards-display {
        padding: 8px;
        gap: 8px;
    }
}

.button-text-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.button-text-container .button-text {
    display: block;
    line-height: 1.4;
}

/* Estilos del interlinking */
.tarot-interlinking-wrapper {
    margin: 40px auto;
    padding: 0 20px;
}

.tarot-interlinking {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    background: linear-gradient(145deg, rgba(139, 69, 19, 0.05) 0%, rgba(139, 69, 19, 0.02) 100%);
    border-radius: 20px;
    border: 1px solid rgba(139, 69, 19, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    
    /* Establecer el layout */
    display: flex;
    gap: 40px;
    align-items: center;
}

/* Contenedor de la imagen */
.tarot-interlinking .interlinking-image {
    flex: 0 0 45%; /* Ancho fijo del 45% */
}

.tarot-interlinking .interlinking-image img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
}

.tarot-interlinking .interlinking-image:hover img {
    transform: translateY(-5px);
}

/* Contenedor del contenido */
.tarot-interlinking .interlinking-content {
    flex: 1; /* Toma el espacio restante */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.tarot-interlinking h2,
.tarot-interlinking h3 {
    color: #ffffff;
    font-size: 1.8em;
    margin: 0;
    line-height: 1.3;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(139, 69, 19, 0.1);
}

.tarot-interlinking .description {
    color: #bfbfbf;
    font-size: 1.1em;
    line-height: 1.7;
    margin: 0;
}

.tarot-interlinking .tarot-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 30px;
    background: linear-gradient(45deg, #761bd4, #654321);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.2);
    align-self: flex-start; /* Alinea el botón al inicio */
}

.tarot-interlinking .tarot-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
    background: linear-gradient(45deg, #654321, #761bd4);
    color: #ffffff;
}

.tarot-interlinking .tarot-link .arrow {
    transition: transform 0.3s ease;
}

.tarot-interlinking .tarot-link:hover .arrow {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .tarot-interlinking {
        flex-direction: column;
        padding: 20px;
        gap: 25px;
    }

    .tarot-interlinking .interlinking-image {
        flex: none;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .tarot-interlinking .interlinking-content {
        text-align: center;
    }

    .tarot-interlinking .tarot-link {
        align-self: center;
    }

    .tarot-interlinking h2,
    .tarot-interlinking h3 {
        font-size: 1.5em;
    }

    .tarot-interlinking .description {
        font-size: 1em;
    }
} 