/* ==========================================================================
   Reset & Base
   ========================================================================== */

/* ==========================================================================
   Header / Nav
   ========================================================================== */

@font-face {
    font-family: vantag;
    src: url(/font/ogelo-corporate-logo-geometric-font-2026-03-02-22-37-04-utc/OTF/Ogelo-Regular.otf);
}

.site-header {
    background: #0d1117;
    border-bottom: 1px solid #21262d;
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Logo */
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-name {
    font-family: vantag, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #f4f4f4;
    letter-spacing: 0.05em;
}

.logo-sep {
    color: #30363d;
    font-weight: 300;
}

.logo-tool {
    font-size: 0.8rem;
    color: #8b949e;
    white-space: nowrap;
}

/* Nav links */
.nav-menu {
    display: flex;
    gap: 0.25rem;
    margin-left: auto;
}

.nav-link {
    font-size: 0.85rem;
    color: #8b949e;
    text-decoration: none;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}

.nav-link:hover {
    color: #e1e4e8;
    background: #21262d;
}

/* Hamburger (solo móvil) */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.3rem;
    margin-left: auto;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: #8b949e;
    border-radius: 2px;
    transition: background 0.15s;
}

.nav-toggle:hover span { background: #e1e4e8; }

/* Selector de idioma */
.lang-switcher {
    display: flex;
    gap: 0.15rem;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 0.2rem;
    flex-shrink: 0;
}

.lang-btn {
    display: inline-block;
    background: none;
    border: none;
    color: #8b949e;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: all 0.15s;
}

.lang-btn:hover  { color: #f4f4f4; }
.lang-btn.active { background: #5e5e5e; color: #f4f4f4; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: #0d1117;
    border-top: 1px solid #21262d;
    margin-top: 4rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem 2rem;
    display: grid;
    grid-template-columns: 1fr repeat(3, auto);
    gap: 2rem 3rem;
    align-items: start;
}

/* Brand */
.footer-logo {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 800;
    color: #58a6ff;
    text-decoration: none;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.footer-tagline {
    font-size: 0.8rem;
    color: #6e7681;
    line-height: 1.5;
    max-width: 200px;
    margin-bottom: 1rem;
}

.footer-social {
    display: flex;
    gap: 0.4rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #8b949e;
    font-size: 0.65rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s;
}

.footer-social a:hover { color: #58a6ff; border-color: #58a6ff; }

/* Columnas */
.footer-col h4 {
    font-size: 0.7rem;
    font-weight: 700;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.footer-col a {
    display: block;
    font-size: 0.82rem;
    color: #6e7681;
    text-decoration: none;
    margin-bottom: 0.4rem;
    transition: color 0.15s;
    white-space: nowrap;
}

.footer-col a:hover { color: #c9d1d9; }

/* Bottom bar */
.footer-bottom {
    border-top: 1px solid #21262d;
    padding: 1rem 1.5rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: #6e7681;
}

/* ==========================================================================
   Reset & Base (continua)
   ========================================================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0f1117;
    color: #e1e4e8;
    min-height: 100vh;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, #f4f4f4, #f4f4f4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    color: #8b949e;
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

/* ==========================================================================
   Format Tabs
   ========================================================================== */

.format-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 10px;
    padding: 0.25rem;
    width: fit-content;
}

.format-tabs .tab {
    padding: 0.45rem 1.4rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #8b949e;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
}

.format-tabs .tab:hover {
    color: #e1e4e8;
}

.format-tabs .tab.active {
    background: #58a6ff;
    color: #fff;
}

/* --- Format warning --- */

.format-warning {
    background: #3d1214;
    border: 1px solid #da3633;
    color: #f85149;
    border-radius: 8px;
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.format-warning.hidden {
    display: none;
}

/* ==========================================================================
   Dropzone
   ========================================================================== */

.dropzone {
    border: 2px dashed #30363d;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    background: #161b22;
    margin-bottom: 1.5rem;
}

.dropzone:hover,
.dropzone.dragover {
    border-color: #58a6ff;
    background: #1a2233;
}

.dropzone-text {
    font-size: 1rem;
    color: #8b949e;
}

.dropzone-text strong {
    color: #58a6ff;
}

.dropzone-formats {
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.dropzone input {
    display: none;
}

/* ==========================================================================
   Controls (shared)
   ========================================================================== */

.control-group {
    gap: 0.3rem;
}

.control-group label {
    font-size: 0.75rem;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.control-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.range-value {
    font-size: 0.8rem;
    color: #58a6ff;
    min-width: 35px;
    text-align: right;
}

/* --- Inputs --- */

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #30363d;
    border-radius: 3px;
    outline: none;
    width: 140px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #58a6ff;
    border-radius: 50%;
    cursor: pointer;
}

input[type="number"],
select {
    background: #0d1117;
    border: 1px solid #30363d;
    color: #e1e4e8;
    border-radius: 6px;
    padding: 0.4rem 0.5rem;
    width: 70px;
    font-size: 0.85rem;
}

input[type="number"]:focus,
select:focus {
    outline: none;
    border-color: #58a6ff;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
    padding: 0.5rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.btn-primary            { background: #238636; color: #fff; }
.btn-primary:hover      { background: #2ea043; }
.btn-secondary          { background: #21262d; color: #c9d1d9; border: 1px solid #30363d; }
.btn-secondary:hover    { background: #30363d; }
.btn-danger             { background: #da3633; color: #fff; }
.btn-danger:hover       { background: #f85149; }
.btn-apply-all          { background: #1f6feb; color: #fff; }
.btn-apply-all:hover    { background: #388bfd; }
.btn:disabled           { opacity: 0.5; cursor: not-allowed; }

.btn-icon {
    background: none;
    border: none;
    color: #8b949e;
    cursor: pointer;
    padding: 0.3rem;
    border-radius: 4px;
    font-size: 1.1rem;
    line-height: 1;
    transition: all 0.15s;
}

.btn-icon:hover         { color: #e1e4e8; background: #21262d; }
.btn-icon.delete:hover  { color: #f85149; }

/* ==========================================================================
   Global Controls Bar
   ========================================================================== */

.global-controls {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
    display: none;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: end;
}

.global-controls.visible {
    display: flex;
}

.global-actions {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
    align-items: end;
}

/* ==========================================================================
   Image List & Cards
   ========================================================================== */

.image-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.image-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 1rem 1.2rem;
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    align-items: center;
    transition: border-color 0.2s;
}

.image-card:hover       { border-color: #484f58; }
.image-card.converting  { border-color: #1f6feb; }
.image-card.done        { border-color: #238636; }
.image-card.error       { border-color: #da3633; }

/* --- Thumbnail --- */

.thumb-wrap {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    background: #0d1117;
    flex-shrink: 0;
}

.thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- Card body --- */

.card-body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    min-width: 0;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.file-name {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.file-info {
    font-size: 0.75rem;
    color: #8b949e;
    white-space: nowrap;
}

/* --- Card controls --- */

.card-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.card-controls .control-group {
    flex-direction: row;
    align-items: center;
    gap: 0.4rem;
}

.card-controls label {
    font-size: 0.75rem;
    color: #8b949e;
    min-width: fit-content;
}

.card-controls input[type="range"]  { width: 100px; }
.card-controls input[type="number"] { width: 60px; padding: 0.25rem 0.4rem; font-size: 0.8rem; }

/* --- Card actions --- */

.card-actions {
    display: flex;
    gap: 0.4rem;
    align-items: center;
}

/* --- Card footer --- */

.card-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.3rem 1.2rem;
}

.info-detail {
    font-size: 0.75rem;
    color: #8b949e;
}

.info-label {
    color: #6e7681;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.03em;
}

.info-original {
    color: #8b949e;
}

.info-target {
    color: #e1e4e8;
    font-weight: 600;
}

.card-footer .saved     { color: #3fb950; font-weight: 600; }
.card-footer .increased { color: #f85149; font-weight: 600; }

/* --- Progress --- */

.progress-bar {
    flex: 1;
    height: 4px;
    background: #30363d;
    border-radius: 2px;
    overflow: hidden;
    display: none;
}

.progress-bar.visible {
    display: block;
}

.progress-fill {
    height: 100%;
    background: #58a6ff;
    border-radius: 2px;
    transition: width 0.3s;
    width: 0%;
}

/* ==========================================================================
   Status Badges
   ========================================================================== */

.status-badge {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.format-badge {
    font-size: 0.65rem;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    background: #1c2333;
    color: #bc8cff;
    border: 1px solid #3d2e6b;
    letter-spacing: 0.04em;
}

.status-badge.pending    { background: #21262d; color: #8b949e; }
.status-badge.converting { background: #0c2d6b; color: #58a6ff; }
.status-badge.done       { background: #0f291a; color: #3fb950; }
.status-badge.error      { background: #3d1214; color: #f85149; }

/* ==========================================================================
   Misc
   ========================================================================== */

.checkbox-wrap {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.lock-icon {
    font-size: 0.85rem;
    cursor: pointer;
    color: #8b949e;
    user-select: none;
}

.lock-icon.locked {
    color: #58a6ff;
}

/* ==========================================================================
   SEO Content Section
   ========================================================================== */

.seo-content {
    margin-top: 4rem;
    border-top: 1px solid #21262d;
    padding-top: 3rem;
    color: #8b949e;
    font-size: 0.92rem;
    line-height: 1.7;
}

.seo-content h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #e1e4e8;
    margin-bottom: 0.75rem;
    background: none;
    -webkit-text-fill-color: #e1e4e8;
}

.seo-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #c9d1d9;
    margin: 1.5rem 0 0.5rem;
}

.seo-content p {
    margin-bottom: 0.75rem;
}

.seo-content strong {
    color: #c9d1d9;
}

.seo-content ul {
    padding-left: 1.4rem;
    margin-bottom: 0.75rem;
}

.seo-content ul li {
    margin-bottom: 0.35rem;
}

/* Grid de tarjetas */

.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.seo-card {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 1.5rem;
}

.seo-card h2 {
    font-size: 1rem;
    margin-bottom: 0.6rem;
}

/* Bloque informativo */

.seo-info {
    margin-bottom: 3rem;
}

/* FAQ con details/summary */

.seo-faq {
    margin-bottom: 2rem;
}

.seo-faq > h2 {
    margin-bottom: 1.25rem;
}

.faq-item {
    border: 1px solid #21262d;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    padding: 1rem 1.25rem;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary h3 {
    margin: 0;
    font-size: 0.92rem;
    color: #c9d1d9;
}

.faq-item summary::after {
    content: '+';
    color: #58a6ff;
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
    margin-left: 1rem;
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item p {
    padding: 0 1.25rem 1rem;
    margin: 0;
    border-top: 1px solid #21262d;
    padding-top: 0.75rem;
}

/* ==========================================================================
   Home — Hero
   ========================================================================== */

.home-hero {
    text-align: center;
    padding: 3.5rem 1rem 2rem;
}

.home-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    color: #e6edf3;
    margin: 0 0 0.75rem;
    line-height: 1.2;
}

.home-hero .subtitle {
    font-size: 1.05rem;
    color: #8b949e;
    max-width: 560px;
    margin: 0 auto;
}

/* ==========================================================================
   Home — Tools grid
   ========================================================================== */

.tools-grid-section {
    padding: 0 0 2.5rem;
}

.tools-grid-section > h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 1.25rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

.tool-card {
    display: flex;
    flex-direction: column;
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 10px;
    padding: 1.25rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.tool-card:hover {
    border-color: #58a6ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(88,166,255,.12);
}

.tool-card--soon {
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
}

.tool-card-body {
    flex: 1;
}

.tool-card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #e6edf3;
    margin: 0 0 0.35rem;
}

.tool-card-body p {
    font-size: 0.85rem;
    color: #8b949e;
    margin: 0;
    line-height: 1.5;
}

.tool-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #21262d;
}

.tool-card-cta {
    font-size: 0.8rem;
    color: #f4f4f4;
    font-weight: 600;
}

/* Badges */
.badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2em 0.55em;
    border-radius: 4px;
}

.badge-free {
    background: rgba(63, 185, 80, 0.15);
    color: #3fb950;
    border: 1px solid rgba(63, 185, 80, 0.3);
}

.badge-soon {
    background: rgba(139, 148, 158, 0.15);
    color: #8b949e;
    border: 1px solid rgba(139, 148, 158, 0.25);
}

/* ==========================================================================
   Home — Why section
   ========================================================================== */

.home-why {
    padding: 2rem 0 3rem;
    border-top: 1px solid #21262d;
}

.home-why > h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #e6edf3;
    margin: 0 0 1.5rem;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.why-card {
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 10px;
    padding: 1.25rem;
}

.why-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #e6edf3;
    margin: 0 0 0.35rem;
}

.why-card p {
    font-size: 0.82rem;
    color: #8b949e;
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   PDF Compressor
   ========================================================================== */

.pdf-panel {
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.pdf-file-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #21262d;
    margin-bottom: 1.25rem;
}

.pdf-file-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.pdf-file-name {
    font-weight: 600;
    color: #e6edf3;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdf-file-meta { font-size: 0.8rem; color: #8b949e; }

.btn-ghost {
    background: transparent;
    border: none;
    color: #8b949e;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1;
    flex-shrink: 0;
}
.btn-ghost:hover { color: #e6edf3; background: #21262d; }

.pdf-controls {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.pdf-quality-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 260px;
}

.pdf-quality-row label { font-size: 0.85rem; color: #8b949e; white-space: nowrap; }

.pdf-quality-track {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.pdf-quality-hint { font-size: 0.72rem; color: #6e7681; white-space: nowrap; }
.pdf-quality-track input[type=range] { flex: 1; }
.btn-compress { white-space: nowrap; flex-shrink: 0; }

.pdf-progress { margin-top: 1.25rem; }

.pdf-progress-bar {
    height: 6px;
    background: #21262d;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.pdf-progress-fill {
    height: 100%;
    background: #58a6ff;
    border-radius: 3px;
    transition: width 0.2s ease;
    width: 0%;
}

.pdf-progress-text { font-size: 0.82rem; color: #8b949e; }

.pdf-result { margin-top: 1.25rem; }

.pdf-result-stats {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.pdf-stat { display: flex; flex-direction: column; gap: 0.2rem; }

.pdf-stat-label {
    font-size: 0.75rem;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pdf-stat-value { font-size: 1.1rem; font-weight: 700; color: #e6edf3; }
.pdf-stat--highlight .pdf-stat-value { color: #3fb950; }

.pdf-stat-arrow {
    color: #30363d;
    font-size: 1.2rem;
    align-self: flex-end;
    padding-bottom: 0.25rem;
}

/* ==========================================================================
   Coming soon (PDF, Resize, MP4)
   ========================================================================== */

.coming-soon-box {
    text-align: center;
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 12px;
    padding: 3.5rem 2rem;
    max-width: 520px;
    margin: 3rem auto;
}

.coming-soon-box h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e6edf3;
    margin: 0 0 0.75rem;
}

.coming-soon-box p {
    font-size: 0.9rem;
    color: #8b949e;
    margin: 0 0 1.5rem;
    line-height: 1.6;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 768px) {
    /* Tool */
    .image-card             { grid-template-columns: 60px 1fr;flex-direction: column;
        display: flex; }
    .thumb-wrap             { width: 60px; height: 60px; }
    .card-controls          { flex-direction: column; align-items: flex-start; }
    .global-controls        { flex-direction: column; }
    .global-actions         { margin-left: 0; flex-wrap: wrap; }
    .global-controls input[type="range"] { width: 100%; }

    /* Nav */
    .nav-toggle             { display: flex; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #0d1117;
        border-bottom: 1px solid #21262d;
        padding: 0.75rem 1.5rem;
        gap: 0.1rem;
        margin-left: 0;
    }

    .nav-menu.open          { display: flex; }
    .nav-link               { padding: 0.6rem 0; border-radius: 0; }

    .site-nav               { position: relative; }
    .lang-switcher          { margin-left: auto; }

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1.5rem;
    }

    .footer-brand           { grid-column: 1 / -1; }

    /* Home */
    .home-hero              { padding: 2rem 0 1.5rem; }

    /* PDF */
    .pdf-quality-row        { min-width: 0; }

    .control-group {
        width: 100%;
    }
}

@media (max-width: 480px) {
    /* Layout */
    .container              { padding: 1.5rem 1rem; }

    /* Nav */
    .logo-tool              { display: none; }
    .site-nav               { gap: 0.75rem; }

    /* Home */
    .tools-grid             { grid-template-columns: 1fr; }
    .why-grid               { grid-template-columns: 1fr; }
    .home-hero              { padding: 1.5rem 0 1rem; }
    .home-hero .subtitle    { font-size: 0.95rem; }

    /* Dropzone */
    .dropzone               { padding: 2rem 1.25rem; }

    /* Tabs */
    .format-tabs            { width: 100%; }
    .format-tabs .tab       { flex: 1; text-align: center; padding: 0.45rem 0.5rem; }

    /* Tool cards */
    .image-card             { grid-template-columns: 52px 1fr; gap: 0.75rem; flex-direction: column;
        display: flex;}
    .thumb-wrap             { width: 52px; height: 52px; }
    .card-controls input[type="range"] { width: 100%; }
    .card-controls .control-group      { width: 100%; }

    /* PDF */
    .pdf-controls           { flex-direction: column; align-items: stretch; }
    .pdf-quality-row        { flex-direction: column; align-items: flex-start; }
    .pdf-quality-track      { width: 100%; }
}
