/* ================================================
   HOROSCOPO DIARIO - APP STYLES
   ================================================ */

.hsc-app {
    --hsc-purple: #764ba2;
    --hsc-gradiente: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --hsc-sombra: 0 10px 30px rgba(102, 126, 234, 0.15);
    --hsc-sombra-hover: 0 15px 40px rgba(102, 126, 234, 0.25);
    --hsc-radio: 16px;
    --hsc-transicion: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    position: relative;
    overflow: hidden;
}

/* ================================================
   FASE SELECCION
   ================================================ */

.hsc-fase { animation: hscFadeIn 0.6s ease; }

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

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

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

@keyframes hscBrillar {
    0%, 100% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.1); filter: brightness(1.3); }
}

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

.hsc-destello::before { content: '\2728'; }
.hsc-d1 { animation-delay: -0.5s; top: -10px; left: 10px; }
.hsc-d2 { animation-delay: -1.5s; top: -5px; right: 15px; }

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

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

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

.hsc-signos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    max-width: 650px;
    margin: 0 auto;
}

.hsc-signo-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    padding: 1.2rem 0.5rem;
    cursor: pointer;
    transition: var(--hsc-transicion);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    font-family: inherit;
}

.hsc-signo-btn:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.hsc-signo-btn:active {
    transform: translateY(-1px);
}

.hsc-signo-simbolo {
    font-size: 2rem;
    line-height: 1;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.hsc-signo-nombre {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
}

.hsc-signo-fecha {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.65rem;
}

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

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

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

.hsc-orbita {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-radius: 50%;
    animation: hscOrbita 3s linear infinite;
}

.hsc-orbita-2 {
    width: 60%; height: 60%;
    top: 20%; left: 20%;
    animation-duration: 4.5s;
    animation-direction: reverse;
}

.hsc-orbita-estrella {
    width: 12px;
    height: 12px;
    background: #ffd700;
    border-radius: 50%;
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

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

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

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

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

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

.hsc-seccion {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.15);
    border-radius: var(--hsc-radio);
    padding: 2rem;
    margin-bottom: 1.5rem;
    animation: hscSlideIn 0.6s ease both;
}

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

.hsc-seccion:nth-child(2) { animation-delay: 0.1s; }
.hsc-seccion:nth-child(3) { animation-delay: 0.15s; }
.hsc-seccion:nth-child(4) { animation-delay: 0.2s; }
.hsc-seccion:nth-child(5) { animation-delay: 0.25s; }
.hsc-seccion:nth-child(6) { animation-delay: 0.3s; }

/* Signo header */
.hsc-signo-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}

.hsc-signo-icono {
    font-size: 2rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid;
}

.hsc-signo-info h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

.hsc-signo-meta {
    display: flex;
    gap: 0.8rem;
}

.hsc-meta-item {
    font-size: 0.85rem;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
}

.hsc-fecha-bar {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Energia general */
.hsc-energia-general { margin-bottom: 1.5rem; }

.hsc-energia-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.hsc-energia-barra {
    height: 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.4rem;
}

.hsc-energia-relleno {
    height: 100%;
    border-radius: 5px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hsc-energia-valor {
    font-size: 1.1rem;
    font-weight: 700;
}

.hsc-mensaje-general {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.hsc-palabra-clave {
    text-align: center;
    background: rgba(255, 215, 0, 0.08);
    padding: 0.8rem;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    border: 1px solid rgba(255, 215, 0, 0.15);
}

.hsc-palabra-clave strong {
    color: #ffd700;
}

/* Area cards (amor, trabajo, salud) */
.hsc-area-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
}

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

.hsc-area-header h3 {
    color: #fff;
    font-size: 1.2rem;
    flex: 1;
}

.hsc-area-nivel {
    font-size: 0.85rem;
    font-weight: 600;
}

.hsc-area-energia {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
}

.hsc-area-barra {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.hsc-area-relleno {
    height: 100%;
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hsc-area-valor {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 40px;
    text-align: right;
}

.hsc-area-mensaje {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* Suerte card */
.hsc-suerte-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
}

.hsc-suerte-item {
    text-align: center;
}

.hsc-suerte-item h4 {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
}

.hsc-numeros {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.hsc-numero {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    transition: var(--hsc-transicion);
}

.hsc-numero:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.hsc-colores {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.hsc-color {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: var(--hsc-transicion);
    cursor: pointer;
}

.hsc-color:hover {
    transform: scale(1.2);
    border-color: #fff;
}

.hsc-piedra {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
}

/* Boton otro signo */
.hsc-btn-otro {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 50px;
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--hsc-transicion);
    margin-top: 1rem;
    font-family: inherit;
}

.hsc-btn-otro:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: #667eea;
    transform: translateY(-2px);
}

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

.hsc-app::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(102, 126, 234, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(118, 75, 162, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 50% 80%, rgba(255, 215, 0, 0.03) 0%, transparent 50%);
    animation: hscFondo 25s linear infinite;
    pointer-events: none;
    z-index: 0;
}

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

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

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

@media (max-width: 768px) {
    .hsc-signos-grid { grid-template-columns: repeat(3, 1fr); }
    .hsc-titulo { font-size: 1.6rem; }
    .hsc-icono-oraculo { font-size: 3rem; }
    .hsc-seccion { padding: 1.5rem; }
    .hsc-signo-icono { width: 60px; height: 60px; font-size: 1.6rem; }
    .hsc-suerte-grid { grid-template-columns: 1fr; gap: 1rem; }
}

@media (max-width: 480px) {
    .hsc-form-contenido { padding: 1.5rem 0.5rem; }
    .hsc-titulo { font-size: 1.4rem; }
    .hsc-subtitulo { font-size: 0.85rem; }
    .hsc-signos-grid { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
    .hsc-signo-btn { padding: 0.8rem 0.3rem; }
    .hsc-signo-simbolo { font-size: 1.5rem; }
    .hsc-signo-nombre { font-size: 0.75rem; }
    .hsc-signo-fecha { display: none; }
    .hsc-seccion { padding: 1.2rem; }
    .hsc-signo-header { flex-direction: column; text-align: center; }
    .hsc-signo-icono { width: 55px; height: 55px; font-size: 1.4rem; }
    .hsc-signo-meta { justify-content: center; }
    .hsc-area-header { flex-direction: column; text-align: center; }
    .hsc-btn-otro { padding: 0.8rem 1.5rem; font-size: 0.9rem; }
    .hsc-numero { width: 30px; height: 30px; font-size: 0.75rem; }
    .hsc-color { width: 28px; height: 28px; }
}

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

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

@media (prefers-contrast: high) {
    .hsc-seccion { border: 2px solid rgba(255, 255, 255, 0.5); }
    .hsc-signo-btn { border-width: 2px; }
}

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