/* ================================================
   TAROT OSHO ZEN - APP STYLES
   Zen Theme: Green / Sakura / White
   ================================================ */

.toz-app {
    --toz-verde: #2d5016;
    --toz-verde-claro: #5a8f3c;
    --toz-verde-pastel: #b5d6a7;
    --toz-sakura: #e8a0b4;
    --toz-sakura-claro: #f5d5df;
    --toz-blanco: #f7f5f0;
    --toz-crema: #efe8dc;
    --toz-gris: #6b6b6b;
    --toz-gris-claro: #a8a8a8;
    --toz-gradiente: linear-gradient(135deg, #1a2a0e 0%, #2d5016 50%, #3a6b1e 100%);
    --toz-gradiente-sakura: linear-gradient(135deg, #d4899e 0%, #e8a0b4 50%, #f0b8c8 100%);
    --toz-sombra: 0 10px 30px rgba(45, 80, 22, 0.12);
    --toz-radio: 16px;
    --toz-transicion: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    position: relative;
    overflow: hidden;
    width: 100%;
}

.toz-fase {
    animation: tozFadeIn 0.8s ease;
}

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

/* ================================================
   FASE FORMULARIO
   ================================================ */

.toz-form-contenido {
    text-align: center;
    padding: 2.5rem 1rem;
}

.toz-icono-oraculo {
    font-size: 4rem;
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
    animation: tozFlotar 4s ease-in-out infinite;
}

@keyframes tozFlotar {
    0%, 100% { transform: translateY(0) scale(1); opacity: 0.9; }
    50% { transform: translateY(-12px) scale(1.05); opacity: 1; }
}

.toz-loto-brillos {
    position: absolute;
    font-size: 0.8rem;
    opacity: 0;
    animation: tozBrillar 4s ease-in-out infinite;
    pointer-events: none;
}

.toz-lb1::before { content: '\274C'; color: var(--toz-verde-pastel); }
.toz-lb2::before { content: '\2735'; color: var(--toz-sakura); }
.toz-lb3::before { content: '\274C'; color: var(--toz-verde-claro); }

.toz-lb1 { animation-delay: -0.5s; top: -15px; left: 5px; }
.toz-lb2 { animation-delay: -1.5s; top: -8px; right: 0px; }
.toz-lb3 { animation-delay: -2.5s; bottom: 0px; left: 20px; }

@keyframes tozBrillar {
    0%, 100% { opacity: 0; transform: translateY(0) scale(0.5) rotate(0deg); }
    50% { opacity: 0.7; transform: translateY(-25px) scale(1) rotate(180deg); }
}

.toz-titulo-form {
    color: var(--toz-blanco);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    font-weight: 300;
    letter-spacing: 4px;
}

.toz-subtitulo-form {
    color: rgba(247, 245, 240, 0.65);
    margin-bottom: 2rem;
    font-size: 0.95rem;
    font-style: italic;
}

.toz-form-campo {
    max-width: 500px;
    margin: 0 auto 1rem;
    text-align: left;
}

.toz-form-seccion {
    margin-bottom: 1.5rem;
}

.toz-seccion-label {
    color: rgba(247, 245, 240, 0.7);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.toz-input,
.toz-textarea {
    width: 100%;
    background: rgba(247, 245, 240, 0.05);
    border: 1px solid rgba(181, 214, 167, 0.2);
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    color: var(--toz-blanco);
    font-family: inherit;
    font-size: 1.05rem;
    transition: var(--toz-transicion);
    box-sizing: border-box;
}

.toz-textarea {
    min-height: 100px;
    resize: vertical;
}

.toz-input:focus,
.toz-textarea:focus {
    outline: none;
    border-color: var(--toz-verde-pastel);
    box-shadow: 0 0 0 3px rgba(181, 214, 167, 0.12);
    background-color: rgba(247, 245, 240, 0.08);
}

.toz-input::placeholder,
.toz-textarea::placeholder {
    color: rgba(247, 245, 240, 0.35);
}

.toz-btn-consultar {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: transparent;
    color: var(--toz-blanco);
    border: 1px solid rgba(247, 245, 240, 0.3);
    border-radius: 50px;
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: var(--toz-transicion);
    margin-top: 1.5rem;
    font-family: inherit;
    letter-spacing: 2px;
}

.toz-btn-consultar:hover {
    background: rgba(247, 245, 240, 0.08);
    border-color: var(--toz-sakura);
    color: var(--toz-sakura);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(232, 160, 180, 0.1);
}

.toz-instruccion {
    color: rgba(247, 245, 240, 0.4);
    font-size: 0.85rem;
    margin-top: 1.5rem;
    font-style: italic;
}

/* ================================================
   LOADING - LOTUS / ZEN ANIMATION
   ================================================ */

.toz-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.toz-loading-loto {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toz-loto-animado {
    font-size: 3rem;
    animation: tozAbrir 3s ease-in-out infinite;
    position: relative;
    z-index: 2;
}

@keyframes tozAbrir {
    0%, 100% { transform: scale(0.6) rotate(0deg); opacity: 0.5; }
    50% { transform: scale(1.1) rotate(10deg); opacity: 1; }
}

.toz-ondas {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(232, 160, 180, 0.2);
    top: 0;
    left: 0;
    animation: tozOnda 3s ease-out infinite;
}

.toz-onda2 { animation-delay: 0.5s; }
.toz-onda3 { animation-delay: 1s; }

@keyframes tozOnda {
    0% { transform: scale(0.8); opacity: 0.6; }
    100% { transform: scale(2); opacity: 0; }
}

.toz-loading-texto {
    color: rgba(247, 245, 240, 0.7);
    font-size: 1rem;
    animation: tozPulsoTexto 2s ease-in-out infinite;
    font-style: italic;
}

@keyframes tozPulsoTexto {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ================================================
   FASE RESULTADO
   ================================================ */

.toz-resultado-contenido {
    padding: 2rem 1rem;
}

.toz-seccion {
    background: rgba(247, 245, 240, 0.04);
    border: 1px solid rgba(181, 214, 167, 0.1);
    border-radius: var(--toz-radio);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    animation: tozSlideIn 0.8s ease both;
}

.toz-seccion:nth-child(1) { animation-delay: 0s; }
.toz-seccion:nth-child(2) { animation-delay: 0.08s; }
.toz-seccion:nth-child(3) { animation-delay: 0.12s; }
.toz-seccion:nth-child(4) { animation-delay: 0.16s; }
.toz-seccion:nth-child(5) { animation-delay: 0.2s; }

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

.toz-seccion-titulo {
    color: var(--toz-sakura);
    font-size: 1.05rem;
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: 1px;
}

/* ================================================
   HEADER CARD
   ================================================ */

.toz-header-info {
    text-align: center;
}

.toz-header-nombre {
    color: var(--toz-sakura);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.toz-header-pregunta {
    color: rgba(247, 245, 240, 0.65);
    font-size: 0.9rem;
    font-style: italic;
    margin-bottom: 0.8rem;
}

.toz-header-fecha {
    color: rgba(247, 245, 240, 0.4);
    font-size: 0.8rem;
}

/* ================================================
   CARTA ZEN
   ================================================ */

.toz-carta-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.toz-carta-icono {
    font-size: 3rem;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(232, 160, 180, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(232, 160, 180, 0.15);
}

.toz-carta-nombre {
    color: var(--toz-blanco);
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.toz-carta-descripcion {
    color: rgba(247, 245, 240, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-style: italic;
    padding: 1rem 1.2rem;
    background: rgba(247, 245, 240, 0.02);
    border-left: 2px solid rgba(232, 160, 180, 0.2);
    border-radius: 0 8px 8px 0;
}

.toz-carta-mensaje {
    color: rgba(247, 245, 240, 0.85);
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 1rem;
    background: rgba(181, 214, 167, 0.05);
    border: 1px solid rgba(181, 214, 167, 0.1);
    border-radius: 12px;
}

/* ================================================
   MENSAJE ESPIRITUAL
   ================================================ */

.toz-mensaje-box {
    background: rgba(232, 160, 180, 0.04);
    border: 1px solid rgba(232, 160, 180, 0.12);
    border-radius: 12px;
    padding: 1rem;
}

.toz-mensaje-text {
    color: rgba(247, 245, 240, 0.85);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ================================================
   MEDITACION
   ================================================ */

.toz-meditacion-box {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: rgba(181, 214, 167, 0.06);
    border: 1px solid rgba(181, 214, 167, 0.15);
    border-radius: 12px;
    padding: 1rem;
}

.toz-meditacion-icon {
    flex-shrink: 0;
    font-size: 1.2rem;
    color: var(--toz-verde-claro);
}

.toz-meditacion-text {
    color: rgba(247, 245, 240, 0.85);
    font-size: 0.9rem;
    line-height: 1.6;
    font-style: italic;
}

/* ================================================
   ENSEÑANZA DE OSHO
   ================================================ */

.toz-ensenanza-box {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: rgba(247, 245, 240, 0.02);
    border: 1px solid rgba(247, 245, 240, 0.06);
    border-radius: 12px;
    padding: 1rem;
}

.toz-ensenanza-icon {
    flex-shrink: 0;
    font-size: 1.2rem;
    color: var(--toz-sakura);
}

.toz-ensenanza-text {
    color: rgba(247, 245, 240, 0.85);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ================================================
   NUEVA CONSULTA
   ================================================ */

.toz-btn-nueva {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(247, 245, 240, 0.05);
    color: var(--toz-blanco);
    border: 1px solid rgba(247, 245, 240, 0.15);
    border-radius: 50px;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: var(--toz-transicion);
    font-family: inherit;
    letter-spacing: 1px;
}

.toz-btn-nueva:hover {
    background: rgba(232, 160, 180, 0.1);
    border-color: var(--toz-sakura);
    color: var(--toz-sakura);
    transform: translateY(-2px);
}

/* ================================================
   FONDO
   ================================================ */

.toz-app::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(26, 42, 14, 0.9) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(232, 160, 180, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 50% 80%, rgba(181, 214, 167, 0.03) 0%, transparent 50%);
    animation: tozFondo 35s linear infinite;
    pointer-events: none;
    z-index: 0;
}

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

.toz-fase { position: relative; z-index: 1; }
.toz-loading { position: relative; z-index: 1; }

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 768px) {
    .toz-titulo-form { font-size: 1.6rem; }
    .toz-icono-oraculo { font-size: 3rem; }
    .toz-carta-header { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .toz-form-contenido { padding: 1.5rem 0.5rem; }
    .toz-titulo-form { font-size: 1.4rem; }
    .toz-subtitulo-form { font-size: 0.85rem; }
    .toz-resultado-contenido { padding: 1.5rem 0.5rem; }
    .toz-seccion { padding: 1.2rem; }
    .toz-btn-nueva { padding: 0.8rem 1.5rem; font-size: 0.9rem; }
    .toz-btn-consultar { padding: 0.8rem 1.8rem; font-size: 0.9rem; }
}

/* ================================================
   ACCESIBILIDAD
   ================================================ */

@media (prefers-reduced-motion: reduce) {
    .toz-app::before { animation: none; }
    .toz-icono-oraculo { animation: none; }
    .toz-loto-brillos { animation: none; display: none; }
    .toz-loto-animado { animation: none; }
    .toz-ondas { animation: none; display: none; }
    .toz-loading-texto { animation: none; opacity: 1; }
    .toz-seccion { animation: none; opacity: 1; transform: none; }
    * { transition-duration: 0.05ms !important; animation-duration: 0.05ms !important; }
}

@media (prefers-contrast: high) {
    .toz-seccion { border: 2px solid rgba(247, 245, 240, 0.3); }
    .toz-input { border: 2px solid rgba(247, 245, 240, 0.3); }
}

@media print {
    .toz-app::before { display: none; }
    .toz-btn-nueva { display: none; }
    .toz-seccion { break-inside: avoid; }
}
