/* ============================================
   AudioLocal — style.css
   ============================================ */

/* ---------- Variables ---------- */
:root {
    --bg1: #090b10;
    --bg2: #10131a;
    --bg3: #161a23;
    --accent: #e8f7ff;
    --accent2: #55d8ff;
    --accent3: #7cd1ff;
    --glass: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.12);
    --text: #f7f9ff;
    --muted: #9da7b8;
    --secondary: #a0a9b4;
    --radius: 18px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

img {
    display: block;
    max-width: 100%;
}

button {
    cursor: pointer;
    font-family: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ---------- Base ---------- */
body {
    font-family: 'DM Sans', sans-serif;
    background: linear-gradient(135deg, var(--bg1) 0%, var(--bg2) 50%, var(--bg3) 100%);
    min-height: 100vh;
    color: var(--text);
    overflow-x: hidden;
}

/* Orbs decorativos de fondo */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    pointer-events: none;
    animation: float 8s ease-in-out infinite;
    z-index: 0;
}

body::before {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent), transparent 70%);
    top: -100px;
    left: -100px;
}

body::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent2), transparent 70%);
    bottom: -100px;
    right: -100px;
    animation-delay: -4s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(20px, 15px);
    }
}

/* ---------- Layout ---------- */
.container {
    position: relative;
    z-index: 1;
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

/* ---------- Navbar ---------- */
.navbar {
    position: relative;
    z-index: 10;
    border-bottom: 1px solid var(--glass-border);
    background: var(--bg3);
    backdrop-filter: blur(16px);
}

.nav-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
}

.logo-icon {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-link {
    font-size: 0.875rem;
    color: var(--muted);
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

/* Hamburguesa */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 520px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--bg3);
        border-bottom: 1px solid var(--glass-border);
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 8px 0;
        z-index: 100;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        font-size: 1rem;
    }
}

/* ---------- Hero ---------- */
.hero {
    text-align: center;
    margin-bottom: 32px;
    padding-top: 20px;
}

.logo-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg3);
    border: 1px solid var(--glass-border);
    border-radius: 100px;
    padding: 5px 14px;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 18px;
}

h1 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(2.1rem, 6vw, 3.5rem);
    font-weight: 800;
    line-height: 1.05;
    background: linear-gradient(120deg, var(--accent), var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 14px;
}

.highlight {
    color: var(--accent2);
}

.subtitle {
    color: var(--muted);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 20px;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.hero-badges span {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.8rem;
    color: var(--accent);
}

.stats {
    display: flex;
    justify-content: center;
    gap: 32px;
}

.stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-label {
    font-size: 0.68rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ---------- Card ---------- */
.card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 22px;
    backdrop-filter: blur(20px);
    padding: 32px;
    margin-bottom: 20px;
}

/* ---------- Dropzone ---------- */
.dropzone {
    border: 2px dashed rgba(85, 216, 255, 0.35);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--radius);
    padding: 9rem 24px;
    text-align: center;
    transition: border-color 0.3s, transform 0.3s, background 0.3s;
}

.dropzone:hover,
.dropzone.drag-over {
    border-color: var(--accent2);
    background: rgba(85, 216, 255, 0.08);
    transform: translateY(-2px);
}

.drop-icon {
    font-size: 48px;
    display: block;
    margin-bottom: 14px;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}

.drop-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.drop-sub {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 18px;
}

.formats-hint {
    margin-top: 14px;
    font-size: 0.72rem;
    color: var(--muted);
}

.formats-hint span {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    padding: 2px 7px;
    margin: 0 2px;
}

/* ---------- Settings ---------- */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--glass-border);
}

.setting-group label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    margin-bottom: 8px;
}

.input-format-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(85, 216, 255, 0.12);
    color: var(--accent2);
    font-size: 0.78rem;
    font-weight: 700;
}

select {
    width: 100%;
    background: var(--bg3);
    border: 1px solid var(--glass-border);
    color: var(--text);
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 0.875rem;
    font-family: inherit;
    appearance: none;
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
    transition: border-color 0.2s;
}

select:focus {
    outline: none;
    border-color: var(--accent);
}

.range-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

input[type="range"] {
    width: 100%;
    height: 4px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.15);
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 0 8px rgba(224, 64, 251, 0.5);
}

.range-val {
    font-size: 0.78rem;
    color: var(--accent2);
    font-weight: 500;
    min-width: 24px;
    text-align: right;
}

/* ---------- Buttons ---------- */
.btn-browse,
.btn-convert,
.btn-download,
.btn-reset,
.btn-kofi {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    border-radius: 999px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s, opacity 0.2s;
}

.btn-browse {
    background: rgba(85, 216, 255, 0.14);
    color: var(--accent);
    min-width: 170px;
}

.btn-browse:hover {
    transform: translateY(-2px);
}

.btn-convert {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: linear-gradient(135deg, var(--accent2), var(--accent3));
    color: #0a1420;
    border: none;
    border-radius: var(--radius);
    padding: 16px;
    font-size: 1rem;
    font-weight: 700;
    font-family: 'Syne', sans-serif;
    margin-top: 20px;
    box-shadow: 0 18px 40px rgba(13, 64, 98, 0.12);
}

.btn-convert:hover:not(:disabled) {
    transform: translateY(-2px);
}

.btn-convert:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #3f92ff, #56e5ff);
    color: #07101f;
    border: none;
    border-radius: var(--radius);
    padding: 13px;
    font-size: 0.9rem;
    font-weight: 600;
}

.btn-download:hover {
    transform: translateY(-2px);
}

.btn-reset {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--text);
    border-radius: var(--radius);
    padding: 13px;
    font-size: 0.9rem;
    font-weight: 500;
}

.btn-reset:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ---------- Progress ---------- */
.progress-wrap {
    margin-top: 18px;
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--accent), var(--accent2));
    border-radius: 4px;
    transition: width 0.3s ease;
}

.progress-label {
    font-size: 0.78rem;
    color: var(--muted);
    text-align: center;
    margin-top: 8px;
}

/* ---------- Preview ---------- */
.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.preview-title {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
}

.badge-success {
    background: rgba(0, 229, 100, 0.12);
    color: #00e564;
    border: 1px solid rgba(0, 229, 100, 0.3);
    border-radius: 100px;
    padding: 4px 12px;
    font-size: 0.72rem;
    font-weight: 500;
}

.preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 18px;
}

.preview-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.preview-box-header {
    padding: 9px 13px;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--muted);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
}

.size-badge {
    color: var(--accent2);
    font-weight: 500;
}

.preview-box img,
.preview-box .svg-preview {
    width: 100%;
    height: 170px;
    object-fit: contain;
    padding: 12px;
    background: repeating-conic-gradient(rgba(255, 255, 255, 0.03) 0% 25%, transparent 0% 50%) 0 0 / 18px 18px;
}

.preview-box .svg-preview {
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-box .svg-preview svg {
    max-width: 100%;
    max-height: 146px;
}

.action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* ---------- Features ---------- */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.feature {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 18px;
    text-align: center;
    transition: transform 0.2s;

}

.feature-about {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 18px;
    text-align: center;
    transition: transform 0.2s;
    margin-top: 20px;
}

.feature:hover {
    transform: translateY(-3px);
}

.feature-icon {
    font-size: 26px;
    display: block;
    margin-bottom: 8px;
}

.feature-title {
    font-family: 'Syne', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.feature-desc {
    font-size: 0.7rem;
    color: var(--muted);
    line-height: 1.5;
}

/* ---------- Ad zones ---------- */
.donate-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 24px;
    background: var(--bg3);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin: 24px 0;
    text-align: center;
}

.donate-text {
    font-size: 1rem;
    color: var(--text-muted, #aaa);
    margin: 0;
}

.btn-kofi {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ff5e5b;
    color: #fff;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.btn-kofi:hover {
    opacity: 0.85;
}

.btn-kofi img {
    height: 22px;
    border: 0;
}

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--glass-border);
    background: var(--bg3);
    backdrop-filter: blur(12px);
    padding: 24px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: 860px;
    margin: 0 auto;
}

.footer-brand {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.footer-links a {
    font-size: 0.8rem;
    color: var(--muted);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text);
}

.footer-copy {
    font-size: 0.72rem;
    color: var(--muted);
}

/* ---------- Toast ---------- */
.toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: rgba(20, 20, 50, 0.95);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 12px 18px;
    font-size: 0.85rem;
    backdrop-filter: blur(20px);
    transform: translateY(70px);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 999;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.success {
    border-color: rgba(0, 229, 100, 0.4);
}

.toast.error {
    border-color: rgba(255, 107, 107, 0.4);
}

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
    .card {
        padding: 20px 16px;
    }

    .preview-grid {
        grid-template-columns: 1fr;
    }

    .action-row {
        grid-template-columns: 1fr;
    }

    .stats {
        gap: 20px;
    }
}

.seo-content {
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
    text-align: left;
}

.seo-content h2,
h2 {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-top: 0;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.seo-content h3,
h3 {
    font-family: 'Syne', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.seo-content p,
p {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--secondary);
    margin-bottom: 1.25rem;
}

.seo-content p:last-child {
    margin-bottom: 0;
}

/* Responsividad para móviles */
@media (max-width: 768px) {
    .seo-content {
        padding: 1.5rem;
        margin-top: 2rem;
    }

    .seo-content h2 {
        font-size: 1.5rem;
    }

    .seo-content h3 {
        font-size: 1.15rem;
    }
}


/* Privacy */
.privacy-hero {
    margin-bottom: 16px;
}

.privacy-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 20px;
}

.privacy-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    padding: 28px 32px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: transform 0.2s, border-color 0.2s;
}

.privacy-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
}

.privacy-card-icon {
    font-size: 32px;
    flex-shrink: 0;
    margin-top: 2px;
    filter: drop-shadow(0 0 12px rgba(224, 64, 251, 0.3));
}

.privacy-card h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.privacy-card p,
.privacy-card ul,
ul {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.7;
    padding-left: 10px;
}

.privacy-card ul {
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.privacy-card ul li::before {
    content: '✓ ';
    color: #00e564;
    font-weight: 700;
}

/* Pill badges de resumen */
.privacy-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin: 28px 0 36px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 100px;
    padding: 7px 16px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid;
}

.pill-green {
    background: rgba(0, 229, 100, 0.1);
    border-color: rgba(0, 229, 100, 0.3);
    color: #00e564;
}

.pill-blue {
    background: rgba(0, 229, 255, 0.1);
    border-color: rgba(0, 229, 255, 0.3);
    color: #00e5ff;
}

.pill-purple {
    background: rgba(224, 64, 251, 0.1);
    border-color: rgba(224, 64, 251, 0.3);
    color: #e040fb;
}

.updated-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 24px;
}

@media (max-width: 600px) {
    .privacy-card {
        flex-direction: column;
        gap: 12px;
        padding: 20px 18px;
    }
}

/* Ajustes extra para móviles muy pequeños */
@media (max-width: 480px) {
    .container {
        padding: 24px 16px 48px;
    }

    h1 {
        font-size: clamp(1.7rem, 9vw, 2.5rem);
        word-break: break-word;
    }

    .subtitle {
        font-size: 0.9rem;
    }

    .hero-badges span {
        font-size: 0.72rem;
        padding: 8px 12px;
    }

    .hero-badges {
        gap: 8px;
        margin-top: 12px;
    }

    .dropzone {
        padding: 3.5rem 16px;
    }

    .drop-title {
        font-size: 1rem;
    }

    .btn-browse {
        width: 100%;
        min-width: 0;
    }

    .settings-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .btn-convert {
        padding: 14px;
        font-size: 0.95rem;
    }

    .action-row {
        grid-template-columns: 1fr;
    }

    .preview-grid {
        grid-template-columns: 1fr;
    }

    .card {
        padding: 18px 14px;
    }

    .toast {
        bottom: 16px;
        right: 16px;
        left: 16px;
        text-align: center;
    }
}