/* --- RESET BÁSICO --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #1a1a1a; /* Fondo oscuro premium */
    color: #f5f5f5; /* Texto claro */
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- HEADER --- */
.main-header {
    padding: 30px 20px;
    text-align: center;
    border-bottom: 1px solid #333;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: #fff;
}

.tagline {
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: #aaa;
    margin-top: -5px;
}

/* --- CONTENEDOR PRINCIPAL --- */
.hub-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.intro-text h2 {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 15px;
    color: #fff;
}

.intro-text p {
    font-size: 1rem;
    font-weight: 300;
    color: #ccc;
    margin-bottom: 40px;
}

/* --- GRID DE SELECCIÓN (Mobile-First) --- */
.grid-selector {
    display: grid;
    grid-template-columns: 1fr; /* Una columna por defecto en móvil */
    gap: 20px;
}

/* --- ESTILO DE TARJETAS --- */
.category-card {
    position: relative;
    height: 180px; /* Altura fija para consistencia en móvil */
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background-size: cover;
    background-position: center;
}

/* Fondos Temporales (cambiarás las imágenes después) */
.gastro { background-image: url('https://via.placeholder.com/600x400/333/fff?text=Gastronomia'); }
.moda { background-image: url('https://via.placeholder.com/600x400/333/fff?text=Moda'); }
.empresas { background-image: url('https://via.placeholder.com/600x400/333/fff?text=Empresas'); }
.eventos { background-image: url('https://via.placeholder.com/600x400/333/fff?text=Eventos'); }

/* Efecto de superposición oscura */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* Capa negra traslúcida */
    transition: background 0.3s ease;
    z-index: 1;
}

/* Contenido de la Tarjeta */
.card-content {
    position: relative;
    z-index: 2; /* Sobre la capa negra */
    text-align: center;
    padding: 20px;
}

.card-content .icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
}

.card-content h3 {
    font-size: 1.3rem;
    font-weight: 400;
    color: #fff;
    letter-spacing: 1px;
}

/* --- EFECTOS HOVER (Para Escritorio) --- */
@media (min-width: 768px) {
    .grid-selector {
        grid-template-columns: repeat(2, 1fr); /* Dos columnas en tablets y desktop */
        gap: 30px;
    }

    .category-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    }

    .category-card:hover .card-overlay {
        background: rgba(0, 0, 0, 0.4); /* Capa más clara al pasar el mouse */
    }
}

/* --- FOOTER --- */
.main-footer {
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    color: #666;
    border-top: 1px solid #333;
    margin-top: 40px;
}/* --- ESTILOS DE SUBPÁGINAS --- */

/* Navegación */
.sub-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 1px solid #333;
    max-width: 1000px;
    margin: 0 auto;
}

.back-btn {
    font-size: 0.9rem;
    color: #aaa;
    transition: color 0.3s;
}

.back-btn:hover {
    color: #fff;
}

.nav-logo {
    font-weight: 600;
    letter-spacing: 2px;
}

/* Contenedor Subpágina */
.page-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Header Sección */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.badge {
    background: #333;
    color: #ccc;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.section-header h1 {
    font-size: 2.2rem;
    margin: 15px 0 10px;
}

.section-header p {
    color: #aaa;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 300;
}

/* Métricas & Impacto */
.metrics-section {
    margin-bottom: 60px;
    text-align: center;
}

.metrics-section h2, .portfolio-section h2 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    font-weight: 400;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.metric-card {
    background: #242424;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 25px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric-card .number {
    font-size: 2.2rem;
    font-weight: 600;
    color: #fff;
}

.metric-card .label {
    font-size: 0.85rem;
    color: #aaa;
    margin-top: 5px;
}

/* Portafolio Visual / Galería */
.portfolio-section {
    margin-bottom: 60px;
    text-align: center;
}

.section-subtitle {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #222;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.item-info {
    padding: 12px;
    font-size: 0.85rem;
    color: #ccc;
    background: #242424;
}

/* Clientes / Logos */
.clients-section {
    text-align: center;
    padding: 30px 20px;
    border-top: 1px solid #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
    margin-bottom: 60px;
}

.clients-title {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logos-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.client-logo-placeholder {
    color: #555;
    font-weight: 600;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

/* Botón CTA */
.cta-section {
    text-align: center;
    background: #222;
    border: 1px solid #333;
    padding: 40px 20px;
    border-radius: 16px;
    margin-bottom: 40px;
}

.cta-section h3 {
    font-weight: 400;
    margin-bottom: 10px;
}

.cta-section p {
    color: #aaa;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.cta-button {
    display: inline-block;
    background: #fff;
    color: #111;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.3s, transform 0.2s;
}

.cta-button:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}