/* ================================================
   SUERTE - APP STYLES
   Luck / Prosperity / Green & Gold Theme
   ================================================ */

.sue-app {
    --sue-verde-oscuro: #0d2818;
    --sue-verde: #2e7d32;
    --sue-verde-claro: #66bb6a;
    --sue-dorado: #ffd700;
    --sue-oro-claro: #ffe44d;
    --sue-rojo: #d32f2f;
    --sue-gradiente: linear-gradient(135deg, #0d2818 0%, #1a3a1a 50%, #2a4a2a 100%);
    --sue-gradiente-dorado: linear-gradient(135deg, #b8860b 0%, #ffd700 50%, #ffe44d 100%);
    --sue-sombra: 0 10px 30px rgba(46, 125, 50, 0.2);
    --sue-radio: 16px;
    --sue-transicion: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    position: relative;
    overflow: hidden;
}

.sue-fase {
    animation: sueFadeIn 0.6s ease;
}

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

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

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

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

@keyframes suePulso {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.1); filter: brightness(1.3) drop-shadow(0 0 20px rgba(255, 215, 0, 0.5)); }
}

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

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

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

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

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

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

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

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

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

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

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

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

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

.sue-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    color: #fff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--sue-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='%23ffd700' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

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

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

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

.sue-btn-consultar:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
}

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

/* ================================================
   LOADING - LUCKY ORB
   ================================================ */

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

.sue-loading-orb {
    width: 90px;
    height: 90px;
    position: relative;
    margin-bottom: 1.5rem;
}

.sue-orb-centro {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    animation: sueOrbPulso 2s ease-in-out infinite;
    z-index: 2;
}

.sue-orb-arc {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 100px;
    height: 100px;
    border: 3px solid transparent;
    border-top-color: var(--sue-dorado);
    border-radius: 50%;
    animation: sueOrbGirar 2s linear infinite;
}

.sue-orb-arc::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    width: 106px;
    height: 106px;
    border: 2px solid transparent;
    border-bottom-color: var(--sue-verde-claro);
    border-radius: 50%;
    animation: sueOrbGirarInverso 3s linear infinite;
}

@keyframes sueOrbPulso {
    0%, 100% { transform: translate(-50%, -50%) scale(1); filter: brightness(1); }
    50% { transform: translate(-50%, -50%) scale(1.15); filter: brightness(1.3) drop-shadow(0 0 20px rgba(255, 215, 0, 0.5)); }
}

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

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

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

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

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

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

.sue-seccion {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.12);
    border-radius: var(--sue-radio);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    animation: sueSlideIn 0.6s ease both;
}

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

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

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

/* ================================================
   SUERTE CARD (NIVEL + SIMBOLO)
   ================================================ */

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

.sue-suerte-nivel {
    text-align: center;
    flex-shrink: 0;
}

.sue-suerte-circulo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 3px solid;
    background: rgba(255, 215, 0, 0.03);
}

.sue-suerte-numero {
    font-size: 1.6rem;
    font-weight: 800;
}

.sue-suerte-label-nivel {
    font-size: 0.7rem;
    font-weight: 600;
}

.sue-suerte-info {
    flex: 1;
    min-width: 140px;
}

.sue-suerte-simbolo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.sue-suerte-simbolo-icono {
    font-size: 1.8rem;
}

.sue-suerte-simbolo-nombre {
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
}

.sue-suerte-simbolo-significado {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
    line-height: 1.5;
}

.sue-suerte-numero-suerte {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 50px;
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    color: var(--sue-dorado);
    font-weight: 600;
    margin-top: 0.5rem;
}

/* ================================================
   AREA CARD
   ================================================ */

.sue-area-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.sue-area-icono {
    font-size: 1.5rem;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sue-area-nombre {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
}

.sue-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;
}

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

/* ================================================
   PREDICCION
   ================================================ */

.sue-prediccion-texto {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: 0.95rem;
    font-style: italic;
    padding: 1rem;
    background: rgba(255, 215, 0, 0.04);
    border-left: 3px solid var(--sue-dorado);
    border-radius: 0 8px 8px 0;
}

/* ================================================
   CONSEJO
   ================================================ */

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

.sue-consejo-icon {
    flex-shrink: 0;
    font-size: 1rem;
    color: var(--sue-verde-claro);
}

.sue-consejo-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    line-height: 1.6;
}

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

.sue-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;
}

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

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

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

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

.sue-btn-nueva:hover {
    background: rgba(255, 215, 0, 0.15);
    border-color: var(--sue-dorado);
    transform: translateY(-2px);
}

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

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

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

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

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

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

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

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

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

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

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