/* ==========================================================
   ERICK LABS
   Interfaz principal
   ========================================================== */

:root {
    --bg: #090b10;
    --bg-soft: #0f131a;

    --panel: #121720;
    --panel-hover: #171e29;

    --border: #252c38;

    --text: #f3f5f7;
    --muted: #939cab;

    --accent: #ff3b5c;
    --accent-soft: rgba(255, 59, 92, 0.12);

    --shadow: 0 22px 60px rgba(0, 0, 0, 0.28);

    --radius: 18px;
    --container: 1180px;
}


/* ==========================================================
   BASE
   ========================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;

    color: var(--text);

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(255, 59, 92, 0.13),
            transparent 32rem
        ),
        linear-gradient(
            180deg,
            #0a0d12 0%,
            var(--bg) 42%
        );

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.container {
    width: min(calc(100% - 36px), var(--container));
    margin-inline: auto;
}


/* ==========================================================
   HEADER
   ========================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;

    border-bottom: 1px solid rgba(255, 255, 255, 0.055);

    background: rgba(9, 11, 16, 0.78);

    backdrop-filter: blur(16px);
}

.nav {
    min-height: 68px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    font-size: 0.92rem;
    font-weight: 800;

    letter-spacing: 0.06em;
}

.brand-mark,
.brand strong {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 26px;

    color: var(--muted);

    font-size: 0.92rem;
}

.nav-links a:hover {
    color: var(--text);
}


/* ==========================================================
   HERO
   ========================================================== */

.hero {
    padding: 80px 0 70px;
}

.hero-inner {
    max-width: 980px;
    text-align: center;
}

.eyebrow {
    display: inline-block;

    margin-bottom: 14px;

    color: var(--accent);

    font-size: 0.76rem;
    font-weight: 800;

    letter-spacing: 0.16em;

    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 22px;

    font-size: clamp(2.7rem, 6vw, 5.1rem);

    line-height: 0.98;

    letter-spacing: -0.055em;
}

h1 span {
    color: #c8ced8;
}

.hero p {
    max-width: 760px;

    margin: 0 auto 32px;

    color: var(--muted);

    font-size: 1.08rem;
    line-height: 1.75;
}


/* ==========================================================
   ADSENSE
   ========================================================== */

.ad-slot {
    width: 100%;
    overflow: hidden;
    text-align: center;
}

.ad-slot:has(ins[data-ad-status="unfilled"]) {
    display: none;
}

.ad-slot-top {
    margin: 14px 0 28px;
}

.ad-slot-bottom {
    margin: 48px 0 36px;
}

.ad-slot .adsbygoogle {
    width: 100%;
}


/* ==========================================================
   SEARCH
   ========================================================== */

.search-box {
    width: min(720px, 100%);
    min-height: 60px;

    margin: 0 auto;

    padding: 0 16px 0 20px;

    display: flex;
    align-items: center;

    gap: 13px;

    border: 1px solid var(--border);
    border-radius: 16px;

    background: rgba(18, 23, 32, 0.84);

    box-shadow: var(--shadow);
}

.search-box:focus-within {
    border-color: rgba(255, 59, 92, 0.62);

    box-shadow:
        0 0 0 4px rgba(255, 59, 92, 0.08),
        var(--shadow);
}

.search-box span {
    color: var(--muted);

    font-size: 1.6rem;
}

.search-box input {
    flex: 1;

    min-width: 0;

    border: 0;
    outline: 0;

    color: var(--text);

    background: transparent;
}

.search-box input::placeholder {
    color: #6f7887;
}

kbd {
    padding: 4px 8px;

    border: 1px solid var(--border);
    border-bottom-width: 2px;

    border-radius: 7px;

    color: var(--muted);

    background: #0b0e13;

    font-size: 0.74rem;
}

.hero-meta {
    margin-top: 20px;

    display: flex;
    justify-content: center;

    gap: 22px;

    flex-wrap: wrap;

    color: #747e8d;

    font-size: 0.8rem;
}


/* ==========================================================
   TOOLS
   ========================================================== */

.tools-section {
    padding: 74px 0 96px;

    border-top: 1px solid rgba(255, 255, 255, 0.045);

    background: rgba(255, 255, 255, 0.012);
}

.section-heading {
    margin-bottom: 28px;

    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 20px;
}

.section-heading h2,
.about h2 {
    margin-bottom: 0;

    font-size: clamp(1.9rem, 4vw, 3rem);

    letter-spacing: -0.035em;
}

.section-heading p {
    margin-bottom: 3px;

    color: var(--muted);

    font-size: 0.86rem;
}


/* ==========================================================
   FILTERS
   ========================================================== */

.filters {
    margin-bottom: 24px;

    display: flex;

    gap: 9px;

    flex-wrap: wrap;
}

.filter {
    padding: 9px 14px;

    border: 1px solid var(--border);
    border-radius: 999px;

    color: var(--muted);

    background: transparent;

    cursor: pointer;

    transition: 0.18s ease;
}

.filter:hover,
.filter.active {
    color: #ffffff;

    border-color: rgba(255, 59, 92, 0.4);

    background: var(--accent-soft);
}


/* ==========================================================
   TOOL CARDS
   ========================================================== */

.tool-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 16px;
}

.tool-card {
    position: relative;

    min-height: 210px;

    padding: 24px;

    display: flex;
    flex-direction: column;

    gap: 20px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background:
        linear-gradient(
            145deg,
            rgba(20, 25, 34, 0.96),
            rgba(14, 18, 25, 0.96)
        );

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        background 0.18s ease;
}

.tool-card:hover {
    transform: translateY(-4px);

    border-color: rgba(255, 59, 92, 0.42);

    background: var(--panel-hover);
}

.tool-card[hidden] {
    display: none;
}

.tool-icon {
    width: 48px;
    height: 48px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(255, 59, 92, 0.28);
    border-radius: 13px;

    color: var(--accent);

    background: var(--accent-soft);

    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Consolas,
        monospace;

    font-weight: 900;
}

.badge {
    color: #7f8998;

    font-size: 0.7rem;
    font-weight: 800;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}

.tool-card h3 {
    margin: 7px 0 9px;

    font-size: 1.18rem;
}

.tool-card p {
    margin-bottom: 0;

    color: var(--muted);

    font-size: 0.9rem;

    line-height: 1.55;
}

.arrow {
    position: absolute;

    right: 22px;
    top: 22px;

    color: #596271;

    font-size: 1.2rem;

    transition: 0.18s ease;
}

.tool-card:hover .arrow {
    color: var(--accent);

    transform: translateX(3px);
}

.empty-state {
    padding: 32px;

    text-align: center;

    color: var(--muted);
}


/* ==========================================================
   ABOUT
   ========================================================== */

.about {
    padding: 96px 0;
}

.about-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 70px;
}

.about p {
    color: var(--muted);

    line-height: 1.75;
}


/* ==========================================================
   FOOTER
   ========================================================== */

.site-footer {
    border-top: 1px solid var(--border);

    color: #707989;
}

.footer-inner {
    min-height: 86px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    font-size: 0.82rem;
}

.footer-inner a:hover {
    color: var(--text);
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 900px) {

    .tool-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;

        gap: 28px;
    }
}


@media (max-width: 640px) {

    .nav-links {
        display: none;
    }

    .hero {
        padding: 76px 0 62px;
    }

    .hero p {
        font-size: 0.98rem;
    }

    .section-heading {
        align-items: start;

        flex-direction: column;
    }

    .tool-grid {
        grid-template-columns: 1fr;
    }

    .tool-card {
        min-height: auto;
    }

    .footer-inner {
        padding: 24px 0;

        align-items: start;

        flex-direction: column;
    }
}