/* whar.it - shared stylesheet
   No frameworks, no external requests, no javascript. */

:root {
    --bg: #111827;
    --card: #1F2937;
    --text: #D1D5DB;
    --muted: #9CA3AF;
    --accent: #7FFF00;
    --accent-dim: #4d7a00;
    --danger: #EF4444;
    --warn: #FBBF24;
    --border: #374151;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: monospace, 'Courier New', Courier;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
}

.page {
    width: 100%;
    max-width: 80rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.page-narrow {
    width: 100%;
    max-width: 42rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* ---------- Hero ---------- */

.hero {
    text-align: center;
    padding: 3rem 1rem 1rem;
}

.hero-glider {
    width: 6rem;
    height: 6rem;
    animation: float 4s ease-in-out infinite;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    margin: 1rem 0 0;
    letter-spacing: 0.05em;
    color: #F9FAFB;
}

.hero-title .tld {
    color: var(--accent);
}

.cursor {
    display: inline-block;
    width: 0.55em;
    height: 1em;
    background-color: var(--accent);
    margin-left: 0.1em;
    vertical-align: baseline;
    animation: blink 1.1s step-end infinite;
}

.hero-sub {
    color: var(--muted);
    font-size: 0.875rem;
    margin: 0.5rem 0 0;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--accent);
    margin-top: 1.5rem;
    padding: 0.375rem 0.875rem;
    border: 1px solid var(--accent-dim);
    border-radius: 999px;
}

.status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background-color: var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

/* ---------- Language switcher ---------- */

.lang-nav {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.lang-nav a {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    color: var(--muted);
    text-decoration: none;
    padding: 0.25rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: 999px;
}

.lang-nav a:hover,
.lang-nav a:focus-visible {
    color: var(--accent);
    border-color: var(--accent-dim);
}

.lang-nav a[aria-current="page"] {
    color: var(--accent);
    border-color: var(--accent-dim);
}

/* ---------- Sections ---------- */

.section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin: 0 0 1.25rem;
}

/* ---------- Services grid ----------
   Columnas fijas que dividen 6 tarjetas en parejo:
   1 en mobile, 2 desde 640px, 3 desde 1024px, 6 en muy ancho. */

.services-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1536px) {
    .services-grid { grid-template-columns: repeat(6, 1fr); }
}

/* ---------- Cards ---------- */

.card {
    background-color: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.card:hover {
    border-color: var(--accent-dim);
    transform: translateY(-2px);
}

.card-icon {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--accent);
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    color: #F9FAFB;
    margin: 0.75rem 0 0.25rem;
}

.card-text {
    font-size: 0.75rem;
    color: var(--muted);
    margin: 0 0 1rem;
    flex-grow: 1;
}

.card-link {
    font-size: 0.75rem;
    color: var(--accent);
    text-decoration: none;
    align-self: flex-start;
}

.card-link:hover,
.card-link:focus-visible {
    text-decoration: underline;
}

/* ---------- Notice card ---------- */

.notice-wrap {
    max-width: 106rem;
    margin-inline: auto;
}

.notice-wrap .section-title {
    text-align: center;
}

.notice-card {
    border-color: var(--danger);
}

.notice-card:hover {
    border-color: var(--danger);
}

.notice-header {
    text-align: center;
    margin-bottom: 1rem;
}

.warning-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--danger);
}

.notice-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--danger);
    margin: 0.75rem 0 0;
}

.language-info {
    font-size: 0.75rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.language-info .flag {
    font-size: 1.125rem;
}

.notice-body {
    font-size: 0.75rem;
}

.notice-body p {
    margin-top: 0.75rem;
}

.disconnect-notice {
    font-weight: 700;
    color: var(--warn);
    margin-top: 1rem;
}

/* ---------- Subpages ---------- */

.sub-hero {
    text-align: center;
    padding: 3rem 1rem 0;
}

.sub-glider {
    width: 2.5rem;
    height: 2.5rem;
}

.breadcrumb {
    color: var(--muted);
    font-size: 0.875rem;
    margin: 1rem 0 0;
    letter-spacing: 0.05em;
}

.breadcrumb a {
    color: var(--accent);
    text-decoration: none;
}

.breadcrumb a:hover,
.breadcrumb a:focus-visible {
    text-decoration: underline;
}

.sub-title {
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 700;
    color: #F9FAFB;
    margin: 0.5rem 0 0;
    letter-spacing: 0.05em;
}

.badge {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--warn);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 999px;
    padding: 0.375rem 0.875rem;
    margin-top: 1.25rem;
}

.notice-line {
    color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.5rem 0 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: var(--muted);
}

.site-footer p {
    margin: 0.25rem 0;
}

/* ---------- Animations ---------- */

@keyframes blink {
    50% { opacity: 0; }
}

@keyframes pulse {
    50% { opacity: 0.35; }
}

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

@media (prefers-reduced-motion: reduce) {
    .hero-glider, .status-dot, .cursor {
        animation: none;
    }
    .card {
        transition: none;
    }
}
