/* ================= BASE ================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: #f6f7fb;
    color: #222;
}

/* ================= HEADER ================= */

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: #111827;
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo h2 {
    font-size: 22px;
    font-weight: 700;
}

.logo span {
    color: #4f46e5;
}

nav {
    display: flex;
    gap: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: 0.3s;
}

nav a:hover {
    color: #4f46e5;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.header-buttons button {
    padding: 8px 14px;
    border: none;
    cursor: pointer;
    border-radius: 6px;
    font-size: 13px;
    transition: 0.3s;
}

.login {
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
}

.login:hover {
    background: #fff;
    color: #111827;
}

.register {
    background: #4f46e5;
    color: white;
}

.register:hover {
    background: #3730a3;
}

/* ================= HERO ================= */

.hero {
    height: 70vh;
    background: linear-gradient(
        rgba(17, 24, 39, 0.7),
        rgba(17, 24, 39, 0.7)
    ),
    url("images/hero.jpg");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.hero-content {
    max-width: 700px;
    color: white;
}

.hero-content h1 {
    font-size: 40px;
    margin-bottom: 10px;
}

.hero-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
}

/* SEARCH */

.search-box {
    display: flex;
    margin: 20px auto;
    max-width: 500px;
}

.search-box input {
    flex: 1;
    padding: 12px;
    border: none;
    outline: none;
    border-radius: 6px 0 0 6px;
}

.search-box button {
    padding: 12px 16px;
    border: none;
    background: #4f46e5;
    color: white;
    cursor: pointer;
    border-radius: 0 6px 6px 0;
}

.hero-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    justify-content: center;
}

.hero-buttons button {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.buy {
    background: #4f46e5;
    color: white;
}

.create {
    background: white;
    color: #111827;
}


/* ================= CATEGORÍAS ================= */

.categories {
    padding: 60px 40px;
    text-align: center;
}

.categories h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: auto;
}

.category {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    cursor: pointer;
    transition: 0.3s;
}

.category i {
    font-size: 24px;
    color: #4f46e5;
    margin-bottom: 10px;
}

.category h3 {
    font-size: 14px;
}

.category:hover {
    transform: translateY(-5px);
}

/* ================= EVENTOS ================= */

.events {
    padding: 60px 40px;
    background: #f1f5f9;
    text-align: center;
}

.events h2 {
    font-size: 28px;
    margin-bottom: 30px;
}

.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: auto;
}

.event-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.event-card:hover {
    transform: translateY(-6px);
}

.event-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.event-info {
    padding: 15px;
    text-align: left;
}

.event-info h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.event-info p {
    font-size: 13px;
    color: #555;
}

.event-info span {
    font-size: 12px;
    color: #777;
    display: block;
    margin-top: 5px;
}

.event-info h4 {
    margin-top: 10px;
    color: #4f46e5;
}

.event-info button {
    margin-top: 10px;
    width: 100%;
    padding: 10px;
    border: none;
    background: #4f46e5;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.event-info button:hover {
    background: #3730a3;
}

/* ================= ORGANIZADORES ================= */

.organizer {
    padding: 80px 40px;
    text-align: center;
    background: linear-gradient(135deg, #4f46e5, #3730a3);
    color: white;
}

.organizer-content {
    max-width: 700px;
    margin: auto;
}

.organizer h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.organizer p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 20px;
}

.organizer button {
    padding: 12px 20px;
    border: none;
    background: white;
    color: #111827;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.organizer button:hover {
    background: #e5e7eb;
}

/* ================= FOOTER ================= */

footer {
    background: #111827;
    color: white;
    padding: 40px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo h2 {
    margin-bottom: 10px;
}

.footer-logo p {
    font-size: 13px;
    opacity: 0.8;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 13px;
    opacity: 0.8;
}

.footer-links a:hover {
    opacity: 1;
}

.social {
    display: flex;
    gap: 12px;
    font-size: 18px;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

    header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 28px;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }
}