/* ============================================
   SHYRO HOSTING — MODERATOR APPLICATIONS
   Estilos alineados con la identidad visual
   ============================================ */

/* ---------- VARIABLES ---------- */
:root {
    --color-primary: #00E5FF;
    --color-primary-dark: #00C8E0;
    --color-primary-glow: rgba(0, 229, 255, 0.15);
    --color-primary-subtle: rgba(0, 229, 255, 0.06);

    --color-bg: #0A0A0A;
    --color-bg-surface: rgba(10, 10, 12, 0.95);
    --color-bg-card: #131316;
    --color-bg-card-hover: #1A1A1E;
    --color-bg-input: rgba(255, 255, 255, 0.06);
    --color-bg-topbar: rgba(10, 10, 12, 0.70);
    --color-bg-footer: rgba(255, 255, 255, 0.02);

    --color-text: #E8E8E8;
    --color-text-primary: #FFFFFF;
    --color-text-secondary: rgba(255, 255, 255, 0.6);
    --color-text-tertiary: rgba(255, 255, 255, 0.45);
    --color-text-muted: rgba(255, 255, 255, 0.35);
    --color-text-dim: rgba(255, 255, 255, 0.12);
    --color-text-inverse: #0A0A0A;

    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-light: rgba(255, 255, 255, 0.04);
    --color-border-input: rgba(255, 255, 255, 0.10);
    --color-border-card: rgba(255, 255, 255, 0.06);
    --color-border-active: rgba(0, 229, 255, 0.15);

    --color-danger: #ff5c7a;
    --color-danger-glow: rgba(255, 92, 122, 0.15);

    --shadow-premium: 0 24px 80px rgba(0, 0, 0, 0.8);
    --shadow-elegant: 0 24px 80px rgba(0, 0, 0, 0.6);
    --shadow-card: 0 4px 32px rgba(0, 0, 0, 0.4);
    --shadow-card-hover: 0 12px 56px rgba(0, 0, 0, 0.6);
    --shadow-soft: 0 2px 20px rgba(0, 0, 0, 0.3);
    --shadow-btn: 0 4px 24px rgba(0, 229, 255, 0.15);
    --shadow-btn-hover: 0 8px 40px rgba(0, 229, 255, 0.25);

    --navbar-bg: rgba(10, 10, 12, 0.95);
    --navbar-border: rgba(255, 255, 255, 0.06);

    --scrollbar-track: rgba(255, 255, 255, 0.03);
    --scrollbar-thumb: rgba(255, 255, 255, 0.10);
    --scrollbar-thumb-hover: rgba(255, 255, 255, 0.18);

    --transition-smooth: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slower: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

    --radius: 10px;
}

/* ---------- TRANSICIONES GLOBALES ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.25s ease,
        fill 0.2s ease,
        stroke 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}

/* ---------- BASE ---------- */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    max-width: 100vw;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
}

input,
textarea,
select {
    max-width: 100%;
    box-sizing: border-box;
}

/* ---------- SCROLLBAR ---------- */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}

/* ---------- SELECCIÓN ---------- */
::selection {
    background: rgba(0, 229, 255, 0.30);
    color: #FFFFFF;
}

::-moz-selection {
    background: rgba(0, 229, 255, 0.30);
    color: #FFFFFF;
}

/* ---------- CONTAINER ---------- */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 24px);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--navbar-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1.5px solid var(--navbar-border);
}

.header-inner {
    display: flex;
    align-items: center;
    height: 64px;
}

.brand {
    display: flex;
    align-items: baseline;
    gap: 10px;
    transition: opacity var(--transition-smooth);
}

.brand:hover {
    opacity: 0.85;
}

.brand-mark {
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 1.15rem;
}

.brand-sub {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ============================================
   INTRO
   ============================================ */
.intro {
    padding: clamp(40px, 8vh, 72px) 0 24px;
}

.intro h1 {
    font-size: clamp(1.8rem, 4.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
    color: var(--color-text-primary);
}

.intro h1 span {
    color: var(--color-primary);
}

.intro p {
    color: var(--color-text-secondary);
    margin: 0 0 24px;
    max-width: 62ch;
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    line-height: 1.7;
}

/* ---------- NOTICE ---------- */
.notice {
    border: 1.5px solid var(--color-border);
    border-left: 3px solid var(--color-primary);
    background: var(--color-bg-card);
    padding: 16px 20px;
    border-radius: var(--radius);
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
    position: relative;
    overflow: hidden;
}

.notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0.15;
}

.notice strong {
    color: var(--color-primary);
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.10em;
}

/* ============================================
   FORMULARIO
   ============================================ */
form {
    padding: 8px 0 64px;
}

fieldset {
    border: 1.5px solid var(--color-border-card);
    border-radius: var(--radius);
    background: var(--color-bg-card);
    padding: 22px 22px 20px;
    margin: 0 0 20px;
    box-shadow: var(--shadow-soft);
    position: relative;
}

fieldset:hover {
    border-color: var(--color-border-active);
}

legend {
    padding: 0 12px;
    color: var(--color-primary);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    background: var(--color-bg-card);
    margin-left: -4px;
}

/* ---------- GRID ---------- */
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 640px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* ---------- FIELDS ---------- */
.field {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.field:last-child {
    margin-bottom: 0;
}

.field label {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.field input,
.field select,
.field textarea {
    background: var(--color-bg-input);
    border: 1.5px solid var(--color-border-input);
    color: var(--color-text-primary);
    border-radius: 8px;
    padding: 12px 14px;
    font: inherit;
    font-size: 0.92rem;
    transition: all var(--transition-smooth);
    width: 100%;
    resize: vertical;
    line-height: 1.5;
    font-family: inherit;
}

.field textarea {
    min-height: 90px;
    line-height: 1.6;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--color-text-muted);
}

.field input:hover,
.field select:hover,
.field textarea:hover {
    border-color: rgba(0, 229, 255, 0.20);
    background: rgba(255, 255, 255, 0.08);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(0, 229, 255, 0.04);
    box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.08);
}

.field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2300E5FF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px;
    padding-right: 38px;
    cursor: pointer;
}

.field select option {
    background: var(--color-bg-card);
    color: var(--color-text-primary);
}

.field input:invalid:not(:placeholder-shown) {
    border-color: transparent;
}

/* ---------- HINT / ERR ---------- */
.hint {
    color: var(--color-text-muted);
    font-size: 0.72rem;
    margin-top: 4px;
    text-align: right;
    letter-spacing: 0.02em;
}

.err {
    color: var(--color-danger);
    font-size: 0.78rem;
    margin-top: 5px;
    min-height: 1em;
    font-weight: 500;
    display: block;
}

.err:not(:empty) {
    animation: errShake 0.35s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes errShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px); }
    75% { transform: translateX(3px); }
}

/* ---------- CHECKBOX ---------- */
.checkbox {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    transition: color var(--transition-smooth);
    padding: 4px 0;
}

.checkbox:hover {
    color: var(--color-text-primary);
}

.checkbox input {
    margin-top: 3px;
    accent-color: var(--color-primary);
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    cursor: pointer;
}

/* ---------- HONEYPOT ---------- */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

/* ============================================
   STATUS
   ============================================ */
.form-status {
    border-radius: var(--radius);
    padding: 0;
    font-size: 0.92rem;
    margin: 12px 0 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-status:empty {
    display: none;
}

.form-status.success {
    padding: 18px 20px;
    border: 1.5px solid rgba(0, 229, 255, 0.25);
    background: rgba(0, 229, 255, 0.05);
    color: var(--color-text-primary);
    box-shadow: 0 0 40px rgba(0, 229, 255, 0.05);
    animation: statusFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-status.error {
    padding: 18px 20px;
    border: 1.5px solid rgba(255, 92, 122, 0.25);
    background: rgba(255, 92, 122, 0.05);
    color: var(--color-text-primary);
    animation: statusFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes statusFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-status strong {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.form-status.success strong {
    color: var(--color-primary);
}

.form-status.error strong {
    color: var(--color-danger);
}

.form-status div {
    color: var(--color-text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

/* ============================================
   ACTIONS / BOTÓN
   ============================================ */
.actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    background: var(--color-primary);
    color: var(--color-text-inverse);
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-smooth);
    letter-spacing: 0.02em;
    min-height: 52px;
    box-shadow: var(--shadow-btn);
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

button[type="submit"]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    pointer-events: none;
    border-radius: 8px;
}

button[type="submit"]:hover:not(:disabled) {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-btn-hover);
}

button[type="submit"]:hover:not(:disabled)::after {
    opacity: 1;
}

button[type="submit"]:active:not(:disabled) {
    transform: translateY(0) scale(0.97);
}

button[type="submit"]:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

button[type="submit"]:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: var(--shadow-btn);
}

button[type="submit"]:disabled:hover {
    background: var(--color-primary);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    border-top: 1.5px solid var(--color-border);
    padding: 24px 0;
    color: var(--color-text-muted);
    font-size: 0.78rem;
    text-align: center;
    background: var(--color-bg-footer);
}

.site-footer p {
    margin: 0;
    letter-spacing: 0.02em;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .intro {
        padding: 32px 0 16px;
    }

    .intro h1 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    fieldset {
        padding: 18px 16px 16px;
        border-radius: 10px;
    }

    legend {
        font-size: 0.65rem;
    }

    .field input,
    .field select,
    .field textarea {
        padding: 11px 13px;
        font-size: 0.88rem;
    }

    .actions {
        justify-content: stretch;
    }

    button[type="submit"] {
        width: 100%;
        padding: 14px 24px;
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .header-inner {
        height: 56px;
    }

    .brand-mark {
        font-size: 1.05rem;
    }

    .brand-sub {
        font-size: 0.7rem;
    }

    .intro h1 {
        font-size: clamp(1.35rem, 5.5vw, 1.7rem);
    }

    .intro p {
        font-size: 0.9rem;
    }

    .notice {
        padding: 14px 16px;
        font-size: 0.85rem;
    }

    .notice strong {
        font-size: 0.7rem;
    }

    fieldset {
        padding: 16px 14px 14px;
        margin-bottom: 16px;
    }

    .field label {
        font-size: 0.82rem;
    }

    .field input,
    .field select,
    .field textarea {
        padding: 10px 12px;
        font-size: 0.85rem;
        border-radius: 6px;
    }

    .checkbox {
        font-size: 0.82rem;
    }

    button[type="submit"] {
        padding: 13px 20px;
        font-size: 0.85rem;
        min-height: 48px;
        border-radius: 6px;
    }

    .form-status.success,
    .form-status.error {
        padding: 14px 16px;
        font-size: 0.85rem;
    }

    .form-status strong {
        font-size: 0.8rem;
    }

    .form-status div {
        font-size: 0.82rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }

    .intro h1 {
        font-size: 1.25rem;
    }

    fieldset {
        padding: 14px 12px;
    }
}

/* ============================================
   PREFERS-REDUCED-MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .err:not(:empty),
    .form-status.success,
    .form-status.error {
        animation: none !important;
    }
}

/* ============================================
   FIX: [hidden] debe ganar siempre
   ----------------------------------------------------------------
   El atributo HTML `hidden` aplica por defecto `display: none`
   desde el user-agent stylesheet, pero CUALQUIER regla CSS con
   un `display` explícito (como `.grid { display: grid }`) lo
   sobrescribe por especificidad. Esta regla garantiza que el
   atributo `hidden` oculte el elemento sin importar la clase.
   ============================================ */
[hidden] {
    display: none !important;
}

/* ============================================
   FIX: [hidden] debe ganar siempre
   ============================================ */
[hidden] {
    display: none !important;
}

/* ============================================
   AVISO BLOQUEANTE — CONFLICTO DE INTERESES
   ============================================ */
.hosting-block-notice {
    margin-top: 8px;
    padding: 18px 20px;
    border: 1.5px solid rgba(255, 92, 122, 0.30);
    border-left: 3px solid var(--color-danger);
    background: rgba(255, 92, 122, 0.05);
    border-radius: var(--radius);
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    line-height: 1.65;
    animation: statusFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hosting-block-notice strong {
    display: block;
    margin-bottom: 8px;
    color: var(--color-danger);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

.hosting-block-notice p {
    margin: 0 0 10px;
    color: var(--color-text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

.hosting-block-notice p:last-child {
    margin-bottom: 0;
}

.hosting-block-notice .hosting-block-hint {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 92, 122, 0.15);
    color: var(--color-text-muted);
    font-size: 0.82rem;
}

.hosting-block-notice .hosting-block-hint strong {
    display: inline;
    color: var(--color-text-primary);
    font-size: inherit;
    margin: 0;
    font-weight: 700;
}

@media (max-width: 480px) {
    .hosting-block-notice {
        padding: 14px 16px;
    }
    .hosting-block-notice strong {
        font-size: 0.8rem;
    }
    .hosting-block-notice p {
        font-size: 0.82rem;
    }
    .hosting-block-notice .hosting-block-hint {
        font-size: 0.75rem;
    }
}