/* =====================================================
   Plat_MonsterAdhoc — Home
   Paleta primaria: #70AD47 (verde)
   Gradient: #70AD47 → #1B9AAA (teal)
   Acento:   #B8D84A (lima)
   ===================================================== */

:root {
    --adhoc-primary: #70AD47;

    --adhoc-gradient: linear-gradient(135deg, #70AD47 0%, #1B9AAA 100%);
    --adhoc-gradient-warm: linear-gradient(135deg, #B8D84A 0%, #70AD47 55%, #1B9AAA 100%);

    /* Dark (default) */
    --adhoc-bg: #07100c;
    --adhoc-text: #EAF4EC;
    --adhoc-text-muted: #9AB0A1;
    --adhoc-border: rgba(112, 173, 71, 0.18);

    --adhoc-grid-color: rgba(112, 173, 71, 0.035);

    --adhoc-home-bg: radial-gradient(ellipse at 20% 10%, rgba(112, 173, 71, 0.10), transparent 55%),
                     radial-gradient(ellipse at 85% 90%, rgba(27, 154, 170, 0.10), transparent 55%),
                     linear-gradient(180deg, #07100c 0%, #040807 100%);
    --adhoc-footer-bg: rgba(0, 0, 0, 0.40);
    --adhoc-footer-bg-hover: rgba(0, 0, 0, 0.55);
    --adhoc-footer-border: rgba(255, 255, 255, 0.06);
    --adhoc-logo-filter: invert(1) hue-rotate(180deg) drop-shadow(0 6px 22px rgba(112, 173, 71, 0.45));
    --adhoc-brand-logo-filter: drop-shadow(0 3px 12px rgba(0, 0, 0, 0.55));
}

.light-mode {
    --adhoc-bg: #EAF1E7;
    --adhoc-text: #2A3B32;
    --adhoc-text-muted: #6A7D71;
    --adhoc-border: rgba(112, 173, 71, 0.30);

    --adhoc-grid-color: rgba(112, 173, 71, 0.06);

    --adhoc-home-bg: radial-gradient(ellipse at 20% 10%, rgba(112, 173, 71, 0.16), transparent 55%),
                     radial-gradient(ellipse at 85% 90%, rgba(27, 154, 170, 0.14), transparent 55%),
                     linear-gradient(180deg, #F4F9F1 0%, #EAF1E7 100%);
    --adhoc-footer-bg: rgba(255, 255, 255, 0.70);
    --adhoc-footer-bg-hover: rgba(255, 255, 255, 0.88);
    --adhoc-footer-border: rgba(112, 173, 71, 0.22);
    --adhoc-logo-filter: drop-shadow(0 6px 22px rgba(112, 173, 71, 0.30));
    --adhoc-brand-logo-filter: drop-shadow(0 3px 12px rgba(112, 173, 71, 0.25));
}

/* Reset global para que la home ocupe toda la ventana */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: var(--adhoc-bg);
    color: var(--adhoc-text);
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow: hidden;
}

/* =====================================================
   Contenedor principal
   ===================================================== */
.adhoc-home {
    position: fixed;
    inset: 0;
    background: var(--adhoc-home-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: background 0.3s ease;
}

/* =====================================================
   Capas de fondo — glows animados
   ===================================================== */
.adhoc-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.adhoc-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(3px);
    mix-blend-mode: screen;
}

.adhoc-glow.glow-primary {
    width: 620px;
    height: 620px;
    top: -14%;
    left: -10%;
    background: radial-gradient(circle, rgba(112, 173, 71, 0.28), transparent 70%);
    animation: adhocGlowDrift1 9s ease-in-out infinite;
}

.adhoc-glow.glow-teal {
    width: 540px;
    height: 540px;
    bottom: -10%;
    right: -10%;
    background: radial-gradient(circle, rgba(27, 154, 170, 0.26), transparent 70%);
    animation: adhocGlowDrift2 11s ease-in-out infinite 1.5s;
}

.adhoc-glow.glow-lime {
    width: 380px;
    height: 380px;
    top: 45%;
    left: 58%;
    background: radial-gradient(circle, rgba(184, 216, 74, 0.14), transparent 70%);
    animation: adhocGlowDrift1 13s ease-in-out infinite 3s;
}

@keyframes adhocGlowDrift1 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
    50% { transform: translate(40px, -25px) scale(1.18); opacity: 0.75; }
}

@keyframes adhocGlowDrift2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 1; }
    50% { transform: translate(-30px, 20px) scale(1.12); opacity: 0.7; }
}

/* =====================================================
   Grid pattern — masked radial
   ===================================================== */
.adhoc-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--adhoc-grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--adhoc-grid-color) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 15%, transparent 75%);
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 15%, transparent 75%);
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    animation: adhocFadeIn 1.6s ease 0.2s forwards;
}

/* =====================================================
   Partículas orbitando
   ===================================================== */
.adhoc-orbits {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 560px;
    height: 560px;
    pointer-events: none;
    z-index: 1;
}

.adhoc-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    border-radius: 50%;
}

.adhoc-dot.dot-1 {
    --orbit-r: 230px;
    width: 8px;
    height: 8px;
    background: rgba(112, 173, 71, 0.95);
    box-shadow: 0 0 16px 4px rgba(112, 173, 71, 0.6), 0 0 40px 10px rgba(112, 173, 71, 0.2);
    animation: adhocOrbit 14s linear infinite;
}

.adhoc-dot.dot-2 {
    --orbit-r: 170px;
    width: 6px;
    height: 6px;
    background: rgba(27, 154, 170, 0.95);
    box-shadow: 0 0 14px 4px rgba(27, 154, 170, 0.55), 0 0 36px 8px rgba(27, 154, 170, 0.18);
    animation: adhocOrbit 11s linear infinite reverse;
}

.adhoc-dot.dot-3 {
    --orbit-r: 270px;
    width: 5px;
    height: 5px;
    background: rgba(184, 216, 74, 0.9);
    box-shadow: 0 0 12px 4px rgba(184, 216, 74, 0.5), 0 0 30px 6px rgba(184, 216, 74, 0.18);
    animation: adhocOrbit 18s linear infinite;
}

.adhoc-dot.dot-4 {
    --orbit-r: 200px;
    width: 4px;
    height: 4px;
    background: rgba(27, 154, 170, 0.85);
    box-shadow: 0 0 10px 3px rgba(27, 154, 170, 0.45);
    animation: adhocOrbit 16s linear infinite reverse;
    animation-delay: -5s;
}

.adhoc-dot.dot-5 {
    --orbit-r: 310px;
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 0 8px 2px rgba(255, 255, 255, 0.35);
    animation: adhocOrbit 22s linear infinite;
    animation-delay: -9s;
}

@keyframes adhocOrbit {
    from { transform: rotate(0deg) translateX(var(--orbit-r)) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(var(--orbit-r)) rotate(-360deg); }
}

/* =====================================================
   Hero central
   ===================================================== */
.adhoc-center {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 0 24px;
    max-width: 720px;
    text-align: center;
}

/* Anillo giratorio tras el logo (centrado dentro de .adhoc-logo-wrap) */
.adhoc-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 220px;
    height: 220px;
    margin-top: -110px;
    margin-left: -110px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, #70AD47 22%, #1B9AAA 48%, #B8D84A 62%, transparent 80%);
    -webkit-mask: radial-gradient(transparent 60%, black 62%, black 78%, transparent 80%);
    mask: radial-gradient(transparent 60%, black 62%, black 78%, transparent 80%);
    opacity: 0;
    animation: adhocScaleIn 1s cubic-bezier(0.16, 1, 0.3, 1) 0.25s forwards,
               adhocRingSpin 14s linear infinite 0.25s;
    pointer-events: none;
    z-index: 0;
}

.adhoc-ring-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 290px;
    height: 290px;
    margin-top: -145px;
    margin-left: -145px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(112, 173, 71, 0.22) 18%, rgba(27, 154, 170, 0.10) 48%, transparent 75%);
    opacity: 0;
    animation: adhocScaleIn 1.1s ease 0.15s forwards,
               adhocPulseGlow 4s ease-in-out infinite 1.2s;
    pointer-events: none;
    z-index: 0;
}

@keyframes adhocRingSpin { to { transform: rotate(360deg); } }

@keyframes adhocScaleIn {
    from { opacity: 0; transform: scale(0.4); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes adhocPulseGlow {
    0%, 100% { opacity: 0.55; transform: scale(1); }
    50%      { opacity: 1;    transform: scale(1.12); }
}

/* Contenedor del logo principal — ocupa lo suficiente para contener al anillo */
.adhoc-logo-wrap {
    position: relative;
    z-index: 3;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8) translateY(8px);
    animation: adhocHeroIn 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards,
               adhocFloat 6s ease-in-out infinite 1.6s;
}

.adhoc-logo-main {
    position: relative;
    z-index: 2;
    width: 170px;
    max-width: 55vw;
    height: auto;
    display: block;
    -webkit-filter: var(--adhoc-logo-filter);
    filter: var(--adhoc-logo-filter);
    transition: filter 0.3s ease;
}

@keyframes adhocHeroIn {
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes adhocFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

/* Línea decorativa */
.adhoc-line {
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #70AD47 25%, #1B9AAA 75%, transparent);
    margin-top: 6px;
    animation: adhocLineGrow 1s ease 1.4s forwards;
}

@keyframes adhocLineGrow { to { width: 160px; } }

/* Título */
.adhoc-title {
    margin: 6px 0 0 0;
    font-weight: 300;
    font-size: 30px;
    letter-spacing: 0.6px;
    color: var(--adhoc-text);
    opacity: 0;
    animation: adhocFadeUp 0.7s ease 1.55s forwards;
}

.adhoc-title span {
    display: block;
    font-weight: 300;
    opacity: 0.75;
    font-size: 20px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.adhoc-title strong {
    background: var(--adhoc-gradient-warm);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
    font-size: 44px;
    letter-spacing: 1.2px;
    text-shadow: 0 0 40px rgba(112, 173, 71, 0.25);
}

/* Tagline */
.adhoc-tagline {
    margin: 0;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--adhoc-primary);
    font-weight: 600;
    opacity: 0;
    animation: adhocFadeUp 0.7s ease 1.75s forwards;
}

/* Descripción */
.adhoc-description {
    margin: 4px 0 0 0;
    font-size: 14.5px;
    line-height: 1.75;
    color: var(--adhoc-text-muted);
    max-width: 560px;
    opacity: 0;
    animation: adhocFadeUp 0.7s ease 1.95s forwards;
}

/* Feature row */
.adhoc-feature-row {
    display: flex;
    gap: 26px;
    margin-top: 10px;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: adhocFadeUp 0.7s ease 2.15s forwards;
}

.adhoc-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: var(--adhoc-text-muted);
    letter-spacing: 0.4px;
    padding: 7px 16px 7px 14px;
    border: 1px solid var(--adhoc-border);
    border-radius: 20px;
    background: rgba(112, 173, 71, 0.04);
    transition: border-color 0.3s, background 0.3s, color 0.3s;
}

.adhoc-feature:hover {
    border-color: rgba(112, 173, 71, 0.45);
    background: rgba(112, 173, 71, 0.08);
    color: var(--adhoc-text);
}

.adhoc-feature-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--adhoc-gradient);
    box-shadow: 0 0 8px 2px rgba(112, 173, 71, 0.45);
    animation: adhocDotPulse 2.4s ease-in-out infinite;
}

.adhoc-feature:nth-child(2) .adhoc-feature-dot { animation-delay: 0.4s; }
.adhoc-feature:nth-child(3) .adhoc-feature-dot { animation-delay: 0.8s; }

@keyframes adhocDotPulse {
    0%, 100% { box-shadow: 0 0 6px 1px rgba(112, 173, 71, 0.40); transform: scale(1); }
    50%      { box-shadow: 0 0 14px 4px rgba(112, 173, 71, 0.75); transform: scale(1.25); }
}

/* =====================================================
   Botón Ingresar
   ===================================================== */
.adhoc-btn-ingresar {
    position: relative;
    margin-top: 22px;
    padding: 14px 42px 14px 46px;
    border: none;
    border-radius: 40px;
    background: var(--adhoc-gradient);
    color: white;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    overflow: hidden;
    box-shadow:
        0 10px 30px rgba(112, 173, 71, 0.35),
        0 4px 14px rgba(27, 154, 170, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.25s ease,
                letter-spacing 0.25s ease;
    opacity: 0;
    animation: adhocFadeUp 0.7s ease 2.35s forwards,
               adhocBtnBreath 3.4s ease-in-out infinite 3s;
}

.adhoc-btn-ingresar::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 40px;
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(184, 216, 74, 0.7), rgba(255, 255, 255, 0.2), rgba(27, 154, 170, 0.7));
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0.6;
    transition: opacity 0.25s ease;
}

.adhoc-btn-ingresar:hover {
    transform: translateY(-2px) scale(1.03);
    letter-spacing: 2.2px;
    box-shadow:
        0 16px 44px rgba(112, 173, 71, 0.50),
        0 8px 22px rgba(27, 154, 170, 0.35),
        0 0 40px rgba(184, 216, 74, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.adhoc-btn-ingresar:hover::before { opacity: 1; }

.adhoc-btn-ingresar:active {
    transform: translateY(0) scale(0.98);
}

/* Estado loading: pausa shine/breath, deshabilita interacción visual */
.adhoc-btn-ingresar.is-loading {
    cursor: wait;
    animation: adhocFadeUp 0.7s ease 2.35s forwards;
    pointer-events: none;
}

.adhoc-btn-ingresar:disabled {
    opacity: 0.92;
}

/* Quita el fondo translúcido del círculo del arrow cuando hay spinner,
   si no se confunde con el spinner blanco */
.adhoc-btn-ingresar.is-loading .adhoc-btn-arrow {
    background: transparent;
    width: 22px;
    height: 22px;
}

.adhoc-btn-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2.5px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ffffff;
    border-right-color: #ffffff;
    animation: adhocBtnSpin 0.65s linear infinite;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.35);
}

@keyframes adhocBtnSpin {
    to { transform: rotate(360deg); }
}

.adhoc-btn-label,
.adhoc-btn-arrow {
    position: relative;
    z-index: 2;
}

.adhoc-btn-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease;
}

.adhoc-btn-ingresar:hover .adhoc-btn-arrow {
    transform: translateX(6px);
    background: rgba(255, 255, 255, 0.28);
}

/* Brillo deslizante */
.adhoc-btn-shine {
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
    transform: skewX(-22deg);
    animation: adhocBtnShine 4.5s ease-in-out infinite 3.5s;
    pointer-events: none;
    z-index: 1;
}

@keyframes adhocBtnShine {
    0%   { left: -75%; }
    60%  { left: 125%; }
    100% { left: 125%; }
}

@keyframes adhocBtnBreath {
    0%, 100% { box-shadow: 0 10px 30px rgba(112, 173, 71, 0.35), 0 4px 14px rgba(27, 154, 170, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
    50%      { box-shadow: 0 14px 40px rgba(112, 173, 71, 0.50), 0 6px 20px rgba(27, 154, 170, 0.38), 0 0 32px rgba(184, 216, 74, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.30); }
}

/* =====================================================
   Brand footer — Monster Leyend
   ===================================================== */
.adhoc-brand-footer {
    position: absolute;
    bottom: 28px;
    left: 0;
    right: 0;
    margin-inline: auto;
    width: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 12px 26px;
    border-radius: 60px;
    background: var(--adhoc-footer-bg);
    border: 1px solid var(--adhoc-footer-border);
    backdrop-filter: blur(10px);
    z-index: 2;
    opacity: 0;
    animation: adhocFadeUp 0.8s ease 2.7s forwards;
    transition: border-color 0.3s, background 0.3s;
}

.adhoc-brand-footer:hover {
    border-color: rgba(112, 173, 71, 0.35);
    background: var(--adhoc-footer-bg-hover);
}

.adhoc-brand-txt {
    font-size: 11px;
    letter-spacing: 2.8px;
    text-transform: uppercase;
    color: var(--adhoc-text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.adhoc-brand-logo {
    height: 56px;
    width: auto;
    filter: var(--adhoc-brand-logo-filter);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.adhoc-brand-footer:hover .adhoc-brand-logo {
    transform: scale(1.06);
}

/* =====================================================
   Keyframes compartidos
   ===================================================== */
@keyframes adhocFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

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

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 768px) {
    .adhoc-logo-wrap { width: 200px; height: 200px; }
    .adhoc-logo-main { width: 150px; }
    .adhoc-ring { width: 200px; height: 200px; margin-top: -100px; margin-left: -100px; }
    .adhoc-ring-glow { width: 260px; height: 260px; margin-top: -130px; margin-left: -130px; }
    .adhoc-title strong { font-size: 34px; }
    .adhoc-title span { font-size: 16px; letter-spacing: 2px; }
    .adhoc-description { font-size: 13.5px; padding: 0 12px; }
    .adhoc-orbits { width: 400px; height: 400px; }
    .adhoc-dot.dot-1 { --orbit-r: 170px; }
    .adhoc-dot.dot-2 { --orbit-r: 130px; }
    .adhoc-dot.dot-3 { --orbit-r: 195px; }
    .adhoc-dot.dot-4 { --orbit-r: 150px; }
    .adhoc-dot.dot-5 { --orbit-r: 220px; }
    .adhoc-feature-row { gap: 10px; }
    .adhoc-feature { font-size: 11.5px; padding: 6px 12px; }
    .adhoc-brand-logo { height: 46px; }
}

@media (max-width: 480px) {
    .adhoc-logo-wrap { width: 170px; height: 170px; }
    .adhoc-logo-main { width: 130px; }
    .adhoc-ring { width: 170px; height: 170px; margin-top: -85px; margin-left: -85px; }
    .adhoc-ring-glow { width: 220px; height: 220px; margin-top: -110px; margin-left: -110px; }
    .adhoc-title strong { font-size: 28px; }
    .adhoc-btn-ingresar { padding: 12px 30px 12px 34px; font-size: 13.5px; }
    .adhoc-brand-footer { bottom: 16px; padding: 9px 18px; gap: 12px; }
    .adhoc-brand-logo { height: 38px; }
    .adhoc-brand-txt { font-size: 10px; letter-spacing: 2px; }
}
