:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-soft: #eff6ff;
    --dark: #0f172a;
    --text: #475569;
    --light: #ffffff;
    --gray-bg: #f8fafc;
    --border: #e2e8f0;
    --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);

    --nav-bg: rgba(255, 255, 255, 0.8);
    /*--transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);*/
}

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

body {
    font-family: "Inter", sans-serif;
    background-color: var(--gray-bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* --- Navbar --- */
.navbar {
    /*position: fixed;*/
    top: 0;
    width: 100%;
    /*z-index: 2000;*/
    /*background: var(--nav-bg);*/
    /*backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);*/
    /*border-bottom: 1px solid rgba(0, 0, 0, 0.05);*/
    /*transition: var(--transition);*/
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
    /*height: auto;*/
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--primary);
}

/* Desktop Menu */
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-item {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: var(--transition);
}

.nav-item:hover {
    color: var(--primary);
}

/* Mega Menu Dropdown */
.has-dropdown {
    position: relative;
}
.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    min-width: 400px;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.has-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
.mega-col h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 0.8rem;
}
.mega-col a {
    display: block;
    text-decoration: none;
    color: var(--dark);
    padding: 0.4rem 0;
    font-size: 0.9rem;
}
.mega-col a:hover {
    color: var(--primary);
}

/* Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.btn-text {
    text-decoration: none;
    color: var(--dark);
    font-weight: 600;
    font-size: 0.9rem;
}
.btn-cta {
    text-decoration: none;
    background: var(--dark);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}
.btn-cta:hover {
    background: var(--primary);
    transform: translateY(-1px);
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.line {
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
}

/* Tablet/Mobile Responsive */
@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    .menu-toggle {
        display: flex;
    }
    .btn-text {
        display: none;
    }
}

/* Mobile Overlay Content */
.mobile-overlay {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    height: 0;
    background: white;
    overflow: hidden;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-overlay.active {
    height: calc(100vh - 72px);
}

.mobile-menu-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-menu-content a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark);
    text-decoration: none;
}

/* --- Hero --- */
.hero {
    padding: 6rem 5% 4rem;
    text-align: center;
    background: radial-gradient(circle at top, #eff6ff 0%, #f8fafc 100%);
}
.badge {
    background: #fff;
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: inline-block;
}
.hero h1 {
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    color: var(--dark);
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}
.hero h1 span {
    background: linear-gradient(90deg, var(--primary), #6366f1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    max-width: 650px;
    margin: 0 auto 2.5rem;
    font-size: 1.15rem;
    color: var(--text);
}

.features {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}
.feat-tag {
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: var(--shadow);
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid var(--border);
}

/* --- Filtros --- */
.filters-section {
    padding: 2rem 5%;
    display: flex;
    justify-content: center;
}
.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.filter-btn {
    padding: 0.6rem 1.4rem;
    border: 1px solid var(--border);
    background: white;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 500;
    color: var(--text);
}
.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* --- Directorio --- */
.directory {
    max-width: 1000px;
    margin: 2rem auto 5rem;
    padding: 0 5%;
}
.section-header h2 {
    font-size: 1.8rem;
    color: var(--dark);
    margin-bottom: 2rem;
    text-align: center;
}

.tool-card {
    display: grid;
    grid-template-columns: 400px 1fr;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 24px;
    margin-bottom: 2.5rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tool-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.tool-image {
    background: #f1f5f9;
    padding: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.main-screenshot {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.tool-content {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}
.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}
.brand-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tool-icon-mini {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}
.tool-header h3 {
    font-size: 1.4rem;
    color: var(--dark);
}

.price-badge {
    font-size: 0.75rem;
    font-weight: 700;
    color: #059669;
    background: #ecfdf5;
    padding: 4px 10px;
    border-radius: 6px;
}
.tool-desc {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 1.5rem;
}

.tags-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.card__tag {
    font-size: 0.75rem;
    background: var(--gray-bg);
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    color: var(--text);
    font-weight: 500;
}

.btn-main {
    margin-top: auto;
    background: var(--dark);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    transition: 0.3s;
    width: fit-content;
}
.btn-main:hover {
    background: var(--primary);
}

/* --- FAQ & Footer --- */
.faq {
    padding: 5rem 5%;
    background: white;
    border-top: 1px solid var(--border);
}
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}
.faq h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--dark);
}
.faq-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}
.faq-item h3 {
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 1.1rem;
}

footer {
    padding: 4rem 5%;
    text-align: center;
    background: var(--gray-bg);
    border-top: 1px solid var(--border);
}
.footer-links {
    margin-bottom: 1.5rem;
}
.footer-links a {
    margin: 0 15px;
    text-decoration: none;
    color: var(--text);
    font-size: 0.9rem;
}

/* --- Mobile Menu & Bar --- */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}
.bar {
    width: 25px;
    height: 2px;
    background: var(--dark);
    transition: 0.3s;
}

.cookie-bar {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    background: var(--dark);
    color: white;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 16px;
    z-index: 2000;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3);
}
#accept-cookies {
    background: var(--primary);
    border: none;
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

@media (max-width: 850px) {
    .tool-card {
        grid-template-columns: 1fr;
    }
    .tool-image {
        height: 240px;
    }
    .menu-toggle {
        display: flex;
    }
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: white;
        width: 100%;
        height: 100vh;
        padding-top: 6rem;
        transition: 0.4s;
    }
    .nav-menu.active {
        left: 0;
    }
    .navbar {
        padding: 1rem 5%;
    }
}
