/* ================================================
   WICCA - APP STYLES
   Nature / Earth / Moon Theme
   ================================================ */

.wic-app {
    --wic-verde-oscuro: #1b3a1b;
    --wic-verde: #2e7d32;
    --wic-verde-claro: #66bb6a;
    --wic-plata: #c0c0c0;
    --wic-purpura: #7b1fa2;
    --wic-dorado: #c9a94e;
    --wic-gradiente: linear-gradient(135deg, #0d1f0d 0%, #1b3a1b 50%, #2a4a2a 100%);
    --wic-gradiente-dorado: linear-gradient(135deg, #8b6914 0%, #c9a94e 50%, #e8d48b 100%);
    --wic-sombra: 0 10px 30px rgba(46, 125, 50, 0.2);
    --wic-radio: 16px;
    --wic-transicion: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    position: relative;
    overflow: hidden;
}

.wic-fase {
    animation: wicFadeIn 0.6s ease;
}

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

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

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

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

@keyframes wicPulso {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.1); filter: brightness(1.3) drop-shadow(0 0 20px rgba(201, 169, 78, 0.5)); }
}

.wic-destello {
    position: absolute;
    font-size: 1rem;
    opacity: 0;
    animation: wicDestello 3s ease-in-out infinite;
    pointer-events: none;
}

.wic-destello::before { content: '\2726'; color: var(--wic-dorado); }
.wic-d2::before { content: '\2756'; color: var(--wic-plata); }
.wic-d3::before { content: '\2727'; color: var(--wic-verde-claro); }

.wic-d1 { animation-delay: -0.5s; top: -10px; left: 10px; }
.wic-d2 { animation-delay: -1.5s; top: -5px; right: 15px; }
.wic-d3 { animation-delay: -2.5s; bottom: 5px; left: 25px; }

@keyframes wicDestello {
    0%, 100% { opacity: 0; transform: translateY(0) scale(0.5); }
    50% { opacity: 0.8; transform: translateY(-20px) scale(1); }
}

.wic-titulo-form {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: var(--wic-gradiente-dorado);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wic-subtitulo-form {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    font-size: 1rem;
}

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

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

.wic-seccion-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
    font-weight: 500;
}

.wic-input,
.wic-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 169, 78, 0.3);
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    color: #fff;
    font-family: inherit;
    font-size: 1.05rem;
    transition: var(--wic-transicion);
    box-sizing: border-box;
}

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

.wic-input:focus,
.wic-textarea:focus {
    outline: none;
    border-color: var(--wic-dorado);
    box-shadow: 0 0 0 3px rgba(201, 169, 78, 0.15);
    background-color: rgba(255, 255, 255, 0.08);
}

.wic-input::placeholder,
.wic-textarea::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

.wic-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 169, 78, 0.3);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--wic-transicion);
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c9a94e' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.wic-select:focus {
    outline: none;
    border-color: var(--wic-dorado);
    box-shadow: 0 0 0 3px rgba(201, 169, 78, 0.15);
    background-color: rgba(255, 255, 255, 0.08);
}

.wic-select option {
    background: var(--wic-verde-oscuro);
    color: #fff;
}

.wic-btn-consultar {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--wic-gradiente-dorado);
    color: #0d1f0d;
    border: none;
    border-radius: 50px;
    padding: 0.9rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--wic-transicion);
    margin-top: 1.5rem;
    font-family: inherit;
}

.wic-btn-consultar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 169, 78, 0.3);
}

.wic-instruccion {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    margin-top: 1.5rem;
}

/* ================================================
   LOADING - PENTACLE SPIN
   ================================================ */

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

.wic-loading-pentaculo {
    width: 100px;
    height: 100px;
    position: relative;
    margin-bottom: 1.5rem;
}

.wic-pentaculo-circulo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid rgba(201, 169, 78, 0.3);
    border-radius: 50%;
    animation: wicGirar 8s linear infinite;
}

.wic-pentaculo-estrella {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 90px;
    height: 90px;
    font-size: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: wicEstrellaPulso 2s ease-in-out infinite;
}

@keyframes wicEstrellaPulso {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.1); filter: brightness(1.3) drop-shadow(0 0 20px rgba(201, 169, 78, 0.5)); }
}

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

.wic-loading-texto {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    animation: wicPulsoTexto 1.5s ease-in-out infinite;
}

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

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

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

.wic-seccion {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(201, 169, 78, 0.12);
    border-radius: var(--wic-radio);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    animation: wicSlideIn 0.6s ease both;
}

.wic-seccion:nth-child(1) { animation-delay: 0s; }
.wic-seccion:nth-child(2) { animation-delay: 0.08s; }
.wic-seccion:nth-child(3) { animation-delay: 0.15s; }
.wic-seccion:nth-child(4) { animation-delay: 0.2s; }

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

.wic-seccion-titulo {
    color: var(--wic-dorado);
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

/* ================================================
   ELEMENTO CARD
   ================================================ */

.wic-elemento-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.wic-elemento-icono {
    font-size: 2.2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid currentColor;
}

.wic-elemento-info {
    flex: 1;
}

.wic-elemento-nombre {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.wic-elemento-propiedades {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.5rem;
}

.wic-propiedad {
    background: rgba(255, 255, 255, 0.08);
    padding: 0.2rem 0.6rem;
    border-radius: 8px;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.7);
}

.wic-elemento-desc {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* ================================================
   SABBAT
   ================================================ */

.wic-sabbat-box {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(201, 169, 78, 0.06);
    border: 1px solid rgba(201, 169, 78, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.wic-sabbat-icono {
    flex-shrink: 0;
    font-size: 1.5rem;
}

.wic-sabbat-info {
    flex: 1;
}

.wic-sabbat-nombre {
    color: var(--wic-dorado);
    font-weight: 600;
    font-size: 0.95rem;
}

.wic-sabbat-significado {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    line-height: 1.5;
    margin-top: 0.3rem;
}

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

.wic-mensaje-box {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    background: rgba(102, 187, 106, 0.06);
    border: 1px solid rgba(102, 187, 106, 0.2);
    border-radius: 12px;
    padding: 1rem;
}

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

.wic-mensaje-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.93rem;
    line-height: 1.6;
    font-style: italic;
}

/* ================================================
   ENSENANZA
   ================================================ */

.wic-ensenanza-box {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: rgba(201, 169, 78, 0.06);
    border: 1px solid rgba(201, 169, 78, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.wic-ensenanza-icon {
    flex-shrink: 0;
    font-size: 1rem;
    color: var(--wic-dorado);
}

.wic-ensenanza-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.6;
    font-style: italic;
}

/* ================================================
   RITUAL
   ================================================ */

.wic-ritual-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.wic-ritual-icon {
    flex-shrink: 0;
    font-size: 1.3rem;
}

.wic-ritual-titulo {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
}

.wic-ritual-elementos,
.wic-ritual-momento {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    margin-bottom: 0.6rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.88rem;
    line-height: 1.5;
}

.wic-ritual-elementos strong,
.wic-ritual-momento strong {
    color: var(--wic-verde-claro);
}

.wic-ritual-procedimiento {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ================================================
   AFIRMACIONES
   ================================================ */

.wic-afirmacion-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    margin-bottom: 0.6rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.88rem;
    line-height: 1.5;
}

.wic-afirmacion-item:last-child {
    margin-bottom: 0;
}

.wic-afirmacion-icon {
    flex-shrink: 0;
    font-size: 0.9rem;
    color: var(--wic-dorado);
}

/* ================================================
   PREGUNTA BOX
   ================================================ */

.wic-pregunta-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    font-size: 0.93rem;
    margin-bottom: 0.8rem;
}

.wic-pregunta-box strong {
    color: var(--wic-dorado);
}

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

.wic-btn-nueva {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 2px solid rgba(201, 169, 78, 0.3);
    border-radius: 50px;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--wic-transicion);
    font-family: inherit;
}

.wic-btn-nueva:hover {
    background: rgba(201, 169, 78, 0.15);
    border-color: var(--wic-dorado);
    transform: translateY(-2px);
}

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

.wic-app::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(13, 31, 13, 0.8) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(201, 169, 78, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 50% 80%, rgba(102, 187, 106, 0.03) 0%, transparent 50%);
    animation: wicFondo 25s linear infinite;
    pointer-events: none;
    z-index: 0;
}

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

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

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

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

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

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

@media (prefers-reduced-motion: reduce) {
    .wic-app::before { animation: none; }
    .wic-icono-oraculo { animation: none; }
    .wic-destello { animation: none; display: none; }
    .wic-pentaculo-circulo,
    .wic-pentaculo-estrella { animation: none; }
    .wic-loading-texto { animation: none; opacity: 1; }
    .wic-seccion { animation: none; opacity: 1; transform: none; }
    * { transition-duration: 0.05ms !important; animation-duration: 0.05ms !important; }
}

@media (prefers-contrast: high) {
    .wic-seccion { border: 2px solid rgba(255, 255, 255, 0.4); }
    .wic-input { border: 2px solid rgba(255, 255, 255, 0.4); }
    .wic-select { border: 2px solid rgba(255, 255, 255, 0.4); }
}

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