@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --primary: #F6D32D;
    --primary-glow: rgba(246, 211, 45, 0.4);
    --bg-dark: #070707;
    --card-bg: rgba(13, 13, 13, 0.8);
    --text-main: #FFFFFF;
    --text-muted: #A0A0A0;
    --border-color: rgba(255, 255, 255, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    /* RESTORED GRID STYLE */
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Hero Video Background */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    /* Subtle video background */
    filter: saturate(0) brightness(0.5);
}

.bg-blobs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(100px);
    opacity: 0.2;
}

.blob-1 {
    top: -10%;
    right: -10%;
}

.blob-2 {
    bottom: -10%;
    left: -10%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

header {
    padding: 3rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 100;
}

.logo {
    font-weight: 800;
    font-size: 1.4rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--primary);
}

nav a {
    color: var(--text-muted);
    text-decoration: none;
    margin-left: 2rem;
    font-weight: 600;
    transition: 0.3s;
}

nav a:hover {
    color: var(--primary);
}

/* HERO SECTION - FIXED RECTANGLE FORMAT */
.hero {
    position: relative;
    padding: 0;
    height: 650px;
    /* Altura fija para crear el rectangulo definido */
    display: flex;
    height: 650px;
    /* Altura optimizada para el formato panorámico */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 2rem;
    margin-bottom: 12rem;
    /* ESPACIO GENEROSO: Evita que las categorias choquen con el video */
    border-radius: 30px;
    width: 98%;
    /* Casi completo borde a borde como pediste */
    max-width: 1920px;
    margin-left: auto;
    margin-right: auto;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-video-container {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Llena el rectangulo completamente */
    opacity: 0.7;
    /* Video visible y premium */
}

/* Contenedor para alinear la tarjeta a la izquierda */
.hero-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1600px;
    padding: 0 6rem;
    /* Margen interno para la tarjeta */
    display: flex;
    justify-content: flex-start;
}

.hero-card {
    background: rgba(0, 0, 0, 0.45);
    /* Glassmorphism ultra-transparente */
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 3.5rem;
    width: 100%;
    max-width: 600px;
    /* Rectangulo compacto horizontal */
    text-align: left;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.hero-icon {
    width: 50px;
    height: 50px;
    background: rgba(246, 211, 45, 0.1);
    border: 1px solid var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 1.2rem;
    color: var(--primary);
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 850;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: none;
    letter-spacing: -1.5px;
}

.hero h1 span {
    color: var(--primary);
    display: inline;
}

.hero p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.75);
    max-width: 100%;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    /* Blanco como pidió el usuario */
    color: #000000;
    /* Texto negro */
    padding: 1.1rem 2.8rem;
    border-radius: 12px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    font-size: 1rem;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-download:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
    background: #f0f0f0;
}

/* Responsive Grid / Cards */
/* CATEGORY HEADERS - CLEAN & CENTERED */
.category-section {
    margin-bottom: 10rem;
    text-align: center;
}

.category-title {
    font-size: 1.3rem;
    /* Mas grande como pidio el usuario */
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 3rem;
    opacity: 0.8;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.category-title::after {
    content: '';
    width: 60px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

/* TOOLS GRID - ADJUSTED FOR SQUARE CARDS */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    justify-content: center;
}

/* TOOL CARD - GUMROAD STYLE (SQUARE) */
.tool-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 0;
    /* Content flows better without internal padding here */
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    /* Important for square visual clipping */
    width: 100%;
    max-width: 400px;
}

.tool-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card-visual {
    width: 100%;
    aspect-ratio: 1/1;
    /* PERFECT SQUARE LIKE GUMROAD */
    background: #111;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.75);
    /* Negro Glass para mejor contraste */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    letter-spacing: 0.8px;
}

.card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Fill the square area attractively */
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.tool-card:hover .card-visual img {
    transform: scale(1.08);
    /* Subtle zoom inward */
}

.card-content {
    padding: 1.5rem;
    text-align: left;
    background: rgba(0, 0, 0, 0.2);
}

.card-badge {
    color: var(--primary);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.8rem;
    display: block;
}

.card-title {
    font-size: 1.7rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    line-height: 1.1;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Glow Mouse Effect mejorado */
.tool-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(246, 211, 45, 0.15) 0%,
            transparent 50%);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.tool-card:hover::before {
    opacity: 1;
}


/* Reverse layout for desktop */
.showcase-item.reverse {
    grid-template-columns: 1fr 1fr;
}

.showcase-item.reverse .showcase-visual {
    order: 2;
}

/* Windows Terminal Overlay (Adapted for Card) */
.floating-terminal.windows {
    margin-top: 2rem;
    background: #000;
    border: 1px solid #333;
    border-radius: 5px;
    overflow: hidden;
}

.terminal-header {
    background: #222;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
}

.terminal-body {
    padding: 15px;
    font-family: 'Consolas', monospace;
    font-size: 0.8rem;
    color: #eee;
}

/* FOOTER */
footer {
    padding: 5rem 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
}

/* RESPONSIVE DESIGN - FIXED FOR MOBILE */
@media (max-width: 968px) {
    .hero {
        height: auto;
        min-height: 600px;
        padding: 4rem 1rem;
        margin-bottom: 6rem;
    }

    .hero-content-wrapper {
        padding: 0 2rem;
        justify-content: center;
        /* Center on tablets/phones */
    }

    .hero-card {
        padding: 2.5rem 2rem;
        text-align: center;
    }

    .hero-icon {
        margin: 0 auto 1.5rem;
    }

    .tools-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    header {
        flex-direction: column;
        gap: 1.5rem;
        padding-top: 2rem;
        text-align: center;
    }

    header nav {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        width: 100%;
        border-radius: 0;
        margin-top: 0;
        min-height: 550px;
    }

    .hero-video-container {
        border-radius: 0;
    }

    .hero-content-wrapper {
        padding: 0 1rem;
    }

    .hero-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }

    .btn-download {
        width: 100%;
        justify-content: center;
        padding: 1rem;
    }

    .category-title {
        font-size: 1.1rem;
        letter-spacing: 2px;
    }
}