/* ── Tarot Español ── */

.tarot-container {
    max-width: 900px;
    margin: 24px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Carta del día ── */
.tarot-carta-dia .tarot-card {
    max-width: 360px;
    margin: 0 auto;
}

/* ── Tirada de 3 ── */
.tarot-lectura-header {
    text-align: center;
    margin-bottom: 24px;
}
.tarot-lectura-header h3 {
    font-size: 1.6rem;
    margin: 0 0 4px;
    color: #2d1b69;
}
.tarot-lectura-fecha {
    color: #888;
    font-size: 0.9rem;
    margin: 0;
}

.tarot-tres-cartas {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
.tarot-tres-cartas .tarot-card {
    flex: 1;
    min-width: 220px;
    max-width: 280px;
}

/* ── Tarjeta base ── */
.tarot-card {
    background: linear-gradient(145deg, #1a0533 0%, #2d1b69 60%, #4a2085 100%);
    border-radius: 16px;
    padding: 24px 20px;
    color: #fff;
    box-shadow: 0 8px 32px rgba(45,27,105,0.35);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}
.tarot-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 20%, rgba(255,255,255,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.tarot-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(45,27,105,0.5);
}

.tarot-card-inner {
    position: relative;
    z-index: 1;
    text-align: center;
}

.tarot-card-glyph {
    font-size: 3.2rem;
    line-height: 1;
    margin-bottom: 12px;
    display: block;
}

.tarot-card-badge {
    display: inline-block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(255,255,255,0.15);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.tarot-card-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: 0.5px;
}

.tarot-card-number {
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 16px;
}

.tarot-card-meaning {
    background: rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 14px;
    margin: 12px 0;
    backdrop-filter: blur(6px);
}
.tarot-meaning-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    margin-bottom: 6px;
}
.tarot-card-meaning p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    text-align: left;
}

.tarot-card-footer {
    font-size: 0.75rem;
    opacity: 0.65;
    margin-top: 14px;
}

/* ── Posición (Pasado / Presente / Futuro) ── */
.tarot-posicion-label {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #b39ddb;
    margin-bottom: 10px;
}

/* Colores distintos por posición */
.tarot-card-posicion-0 { background: linear-gradient(145deg, #1a2a4a 0%, #2c3e6e 100%); } /* Pasado – azul */
.tarot-card-posicion-1 { background: linear-gradient(145deg, #1a0533 0%, #4a2085 100%); } /* Presente – morado */
.tarot-card-posicion-2 { background: linear-gradient(145deg, #0d3320 0%, #1b6b3a 100%); } /* Futuro – verde */

/* ── Footer de la lectura ── */
.tarot-lectura-footer {
    text-align: center;
    margin-top: 28px;
}
.tarot-btn-nueva {
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: 1rem;
    border-radius: 30px;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.tarot-btn-nueva:hover  { opacity: 0.88; transform: scale(1.03); }
.tarot-btn-nueva:active { transform: scale(0.97); }
.tarot-btn-nueva:disabled { opacity: 0.5; cursor: not-allowed; }

.tarot-disclaimer {
    font-size: 0.78rem;
    color: #aaa;
    margin-top: 10px;
}

/* ── Error ── */
.tarot-error {
    background: #fee;
    color: #c33;
    padding: 16px 20px;
    border-radius: 8px;
    border-left: 4px solid #c33;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .tarot-tres-cartas {
        flex-direction: column;
        align-items: center;
    }
    .tarot-tres-cartas .tarot-card {
        max-width: 100%;
        width: 100%;
    }
    .tarot-card-glyph { font-size: 2.4rem; }
    .tarot-card-name  { font-size: 1.1rem; }
}
