/* ================================================
   MES PERSONAL - APP STYLES
   ================================================ */

.mp-app {
    --mp-cyan: #06b6d4;
    --mp-cyan-oscuro: #0891b2;
    --mp-gradiente: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --mp-sombra: 0 10px 30px rgba(6, 182, 212, 0.15);
    --mp-radio: 16px;
    --mp-transicion: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    position: relative;
    overflow: hidden;
}

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

.mp-fase {
    animation: mpFadeIn 0.6s ease;
}

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

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

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

@keyframes mpBrillar {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.1); filter: brightness(1.3) drop-shadow(0 0 20px rgba(6, 182, 212, 0.5)); }
}

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

.mp-destello::before { content: '\2726'; }
.mp-d2::before { content: '\2756'; }
.mp-d3::before { content: '\2727'; }

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

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

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

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

.mp-form-campos {
    display: flex;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    align-items: flex-start;
}

.mp-campo {
    text-align: left;
    flex: 1;
    margin-bottom: 0;
}

.mp-label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

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

.mp-select:focus {
    outline: none;
    border-color: var(--mp-cyan);
    box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.15);
    background-color: rgba(255, 255, 255, 0.08);
}

.mp-select option {
    background: #1a1a2e;
    color: #fff;
}

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

.mp-btn-calcular:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.3);
}

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

/* ================================================
   LOADING
   ================================================ */

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

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

.mp-orbita-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    background: var(--mp-gradiente);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    animation: mpPulsoNum 2s ease-in-out infinite;
}

@keyframes mpPulsoNum {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.15); }
}

.mp-orbita-arc {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 80px;
    height: 80px;
    border: 2px dashed rgba(6, 182, 212, 0.25);
    border-radius: 50%;
    animation: mpArcGiro 8s linear infinite;
}

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

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

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

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

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

.mp-resultado-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(6, 182, 212, 0.2);
}

.mp-mes-badge {
    display: inline-block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.8rem;
    background: rgba(6, 182, 212, 0.1);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.mp-mes-num-grande {
    margin-bottom: 0.3rem;
}

.mp-num-grande-num {
    display: inline-block;
    font-size: 5rem;
    font-weight: 800;
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 50%;
    text-align: center;
}

.mp-mes-nombre {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
}

.mp-mes-sub {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.mp-seccion {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.1);
    border-radius: var(--mp-radio);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    animation: mpSlideIn 0.6s ease both;
}

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

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

.mp-titulo-mes { color: var(--mp-cyan); }
.mp-titulo-anual { color: var(--mp-cyan); }
.mp-titulo-dias { color: var(--mp-cyan); }

.mp-card-desc {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

/* Activities */
.mp-rasgos-dual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.mp-rasgos-col {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 1rem;
}

.mp-actividades {
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.mp-evitar {
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.mp-rasgos-label {
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}

.mp-label-act { color: #10b981; }
.mp-label-ev { color: #f87171; }

.mp-rasgos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mp-rasgo-badge {
    font-size: 0.8rem;
    padding: 5px 12px;
    border-radius: 20px;
}

.mp-rasgo-act {
    /* inline color from data */
}

.mp-rasgo-ev {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* 12 months grid */
.mp-meses-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.5rem;
}

.mp-mes-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 0.6rem 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--mp-transicion);
}

.mp-mes-card:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-2px);
}

.mp-mes-card.mp-mes-actual {
    border: 2px solid rgba(6, 182, 212, 0.5);
    background: rgba(6, 182, 212, 0.06);
}

.mp-mes-nombre {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.mp-mes-vibracion {
    display: inline-block;
    font-size: 1.2rem;
    font-weight: 800;
    width: 32px;
    height: 32px;
    line-height: 32px;
    border-radius: 50%;
    margin-bottom: 0.15rem;
}

.mp-mes-tema {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.4);
}

.mp-mes-ahora {
    font-size: 0.65rem;
    color: #06b6d4;
    font-weight: 700;
}

/* Days grid */
.mp-dias-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.4rem;
}

.mp-dia-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    padding: 0.5rem 0.2rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--mp-transicion);
}

.mp-dia-card:hover {
    background: rgba(255, 255, 255, 0.06);
}

.mp-dia-card.mp-dia-hoy {
    border: 2px solid rgba(6, 182, 212, 0.5);
    background: rgba(6, 182, 212, 0.06);
}

.mp-dia-semana {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.6rem;
    text-transform: uppercase;
}

.mp-dia-num {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.mp-dia-mp {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 24px;
}

.mp-dia-hoy-tag {
    font-size: 0.6rem;
    color: #06b6d4;
    font-weight: 700;
    margin-top: 0.1rem;
}

/* Advice */
.mp-consejo-general {
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.15);
    border-radius: var(--mp-radio);
    padding: 1.5rem;
    animation: mpSlideIn 0.6s ease both;
}

.mp-consejo-texto {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: 1rem;
}

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

.mp-btn-nueva:hover {
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--mp-cyan);
    transform: translateY(-2px);
}

/* ================================================
   PARTICULAS DE FONDO
   ================================================ */

.mp-app::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(6, 182, 212, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(8, 145, 178, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 50% 80%, rgba(34, 211, 238, 0.03) 0%, transparent 50%);
    animation: mpFondo 25s linear infinite;
    pointer-events: none;
    z-index: 0;
}

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

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

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

@media (max-width: 768px) {
    .mp-titulo-form { font-size: 1.6rem; }
    .mp-icono-oraculo { font-size: 3rem; }
    .mp-form-campos { flex-direction: column; }
    .mp-rasgos-dual { grid-template-columns: 1fr; }
    .mp-meses-grid { grid-template-columns: repeat(4, 1fr); }
    .mp-dias-grid { grid-template-columns: repeat(7, 1fr); gap: 0.3rem; }
}

@media (max-width: 480px) {
    .mp-form-contenido { padding: 1.5rem 0.5rem; }
    .mp-titulo-form { font-size: 1.4rem; }
    .mp-subtitulo-form { font-size: 0.85rem; }
    .mp-resultado-contenido { padding: 1.5rem 0.5rem; }
    .mp-seccion { padding: 1.2rem; }
    .mp-btn-nueva { padding: 0.8rem 1.5rem; font-size: 0.9rem; }
    .mp-btn-calcular { padding: 0.8rem 1.8rem; font-size: 0.9rem; }
    .mp-num-grande-num { font-size: 3.5rem; width: 80px; height: 80px; line-height: 80px; }
    .mp-meses-grid { grid-template-columns: repeat(3, 1fr); }
    .mp-dias-grid { grid-template-columns: repeat(7, 1fr); }
    .mp-dia-card { padding: 0.4rem 0.15rem; }
}

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

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

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

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