/* Archivo: assets/css/style.css */

/* --- Colores de la Marca --- */
:root {
    --purple: #660066; /* Morado */
    --yellow: #F2F200; /* Amarillo */
    --red: #BF0000; /* Rojo */
    --gray-bg: #f5f5f5; /* Fondo ligero */
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* --- Base y Tipografía --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
	font-family: "Century Gothic";
}

body {
    font-family: "Century Gothic";
    background-color: white; /* Fondo principal limpio */
    color: #333;
    /* Ajuste para vista móvil */
    max-width: 600px; 
    margin: 0 auto;
    min-height: 100vh;
    padding-bottom: 70px; /* Espacio para el footer fijo */
    
    /* === DEBUG: ESTILO DE PRUEBA DE CARGA - ELIMINADO === */
}

/* --- Encabezado y Barra de Búsqueda --- */
.mobile-header {
    
    padding: 15px 10px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;

   
    background-repeat: repeat;
    /* Asegura que el color primario sea el dominante, usando el rojo oscuro para la textura */
    background-color: var(--red); 
    /* ----------------------------- */
	
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
	
}

.app-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.btn-register {
    background-color: var(--yellow);
    color: var(--purple);
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.search-bar {
    display: flex;
    gap: 8px;
}

.search-bar input[type="search"] {
    flex-grow: 1;
    padding: 8px 15px;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.search-bar button {
    background-color: var(--yellow);
    border: none;
    color: var(--purple);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* --- Contenedor Principal --- */
.content-wrapper {
    padding: 10px 0;
    margin: 0 10px; /* Margen lateral para contenido */
}

/* --- Títulos de Sección --- */
.section-title {
    font-size: 1.3rem;
    color: var(--purple);
    font-weight: 700;
    border-bottom: 3px solid var(--yellow);
    display: inline-block;
    padding-bottom: 5px;
    margin: 20px 0 15px 0;
}

/* ====================================
   1. Banner Rotador de Imágenes
   ==================================== */
.ad-banner-container {
    padding: 0; /* Elimina padding para que no toque los bordes */
    overflow: hidden;
    margin-bottom: 20px;
}

.ad-banner-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.ad-banner-slide {
    min-width: 100%;
    border-radius: 15px;
    overflow: hidden;
    margin: 0 0;
    box-shadow: var(--shadow);
    background-color: var(--gray-bg);
}

.ad-banner-slide img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

/* ====================================
   2. Categorías (Minimalista, Fila)
   ==================================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 iconos por fila */
    gap: 10px;
    margin-bottom: 25px;
    padding: 10px 0;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #444;
    padding: 8px 0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.category-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 0, 102, 0.1);
}

.category-icon {
    background-color: var(--gray-bg);
    color: var(--purple);
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 5px;
    border: 2px solid var(--purple);
}

.category-name {
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.1;
}

/* ====================================
   3. Noticias Importantes
   ==================================== */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.news-item a {
    display: block;
    text-decoration: none;
    color: #333;
    padding: 10px;
    background-color: var(--gray-bg);
    border-left: 5px solid var(--red); /* Rojo para impacto */
    border-radius: 5px;
    transition: background-color 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.news-item a:hover {
    background-color: #eee;
}

.news-item-title {
    font-size: 1rem;
    font-weight: 600;
}

/* ====================================
   4. Eventos (Carrusel Deslizante)
   ==================================== */
.events-carousel-container {
    overflow-x: scroll;
    padding-bottom: 10px;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; /* Suaviza el desplazamiento en iOS */
    margin-bottom: 25px;
}

/* Ocultar barra de desplazamiento */
.events-carousel-container::-webkit-scrollbar {
    display: none;
}
.events-carousel-container {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

.event-card {
    display: inline-block;
    width: 70%; /* Muestra parcialmente el siguiente evento */
    margin-right: 15px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background-color: white;
    text-decoration: none;
    color: #333;
}

.event-card-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.event-card-info {
    padding: 10px;
    white-space: normal;
}

.event-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--purple);
    margin-bottom: 5px;
}

.event-card-date {
    font-size: 0.8rem;
    color: var(--red);
    font-weight: 500;
}

/* ====================================
   5. Negocios Destacados
   ==================================== */
.featured-businesses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 logotipos por fila */
    gap: 15px;
    padding: 10px 0;
}

.featured-logo-item {
    padding: 10px;
    background-color: white;
    border: 1px solid var(--gray-bg);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
    text-align: center;
}

.featured-logo-item:hover {
    transform: scale(1.05);
    border-color: var(--purple);
}

.featured-logo-item img {
    width: 100%;
    max-width: 80px;
    height: auto;
    border-radius: 8px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

/* --- Pie de Página Fijo (Bottom Navigation) --- */
.mobile-footer {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px; /* Igual que el body */
    background-color: white;
    border-top: 1px solid #ddd;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
    z-index: 1000;
}

.footer-nav {
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #BF0000;
    font-size: 0.7rem;
    transition: color 0.3s;
    padding: 5px;
}

.nav-item i {
    font-size: 1.2rem;
    margin-bottom: 3px;
}

.nav-item.active, .nav-item:hover {
    color: var(--purple);
}

.copyright {
    text-align: center;
    font-size: 0.6rem;
    color: #aaa;
    padding-bottom: 5px;
}

