/* Reset básico */
*,
*::before,
*::after {
    box-sizing: border-box;
}
body {
    /* Cambio: Integración de fuente Inter */
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #f8fafc; /* Fondo más claro y moderno */
    color: #1f2937; /* Color de texto más oscuro */
    margin: 0;
}
a {
    color: #1D4ED8; /* Azul primario moderno */
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover {
    text-decoration: underline;
    color: #1E40AF;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header estilo Moderno */

.site-header {
    background: #ffffff; /* Fondo blanco y limpio */
    border-bottom: 1px solid #e5e7eb; /* Borde inferior sutil */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05); /* Sombra suave */
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0; /* Padding ligeramente aumentado */
}
.brand-title {
    font-weight: 800; /* Más audaz */
    font-size: 1.35rem; /* Tamaño más prominente */
    color: #1f2937;
}
.brand-sub {
    display: block;
    font-size: 0.7rem;
    color: #6b7280;
}
.main-nav a {
    margin-left: 20px;
    font-size: 0.95rem;
    color: #4b5563;
    transition: color 0.15s ease;
}
.main-nav a:hover {
    color: #1f2937;
    text-decoration: none;
}
.main-nav a.nav-highlight {
    padding: 7px 14px;
    border-radius: 999px;
    background: #1D4ED8; /* Azul primario */
    color: #ffffff;
    font-weight: 600;
}
.main-nav a.nav-highlight:hover {
    background: #1E40AF;
    text-decoration: none;
}

/* Estilo para el enlace de ofertas en la navegación */
.main-nav a.nav-ofertas-link {
    color: #d946ef; /* Morado/Rosa de acento */
    font-weight: 600;
}
.main-nav a.nav-ofertas-link:hover {
    color: #a855f7;
    text-decoration: underline;
}

/* Estilo para el enlace de servicios en la navegación */
.main-nav a.nav-servicios-link {
    color: #10B981; /* Verde de acento */
    font-weight: 600;
}
.main-nav a.nav-servicios-link:hover {
    color: #059669;
    text-decoration: underline;
}

/* Hero */

.hero {
    background: linear-gradient(90deg, #EFF6FF, #F0F9FF); /* Degradado de azules muy sutil */
    padding: 32px 0 24px;
}
.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 30px;
    align-items: center;
}
.hero h1 {
    margin: 0 0 10px;
    font-size: 2.2rem;
    font-weight: 800;
}
.hero p {
    margin: 0 0 16px;
    color: #4b5563;
    font-size: 1rem;
}
.hero-search {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.hero-search input[type="text"],
.hero-search select {
    padding: 10px 12px;
    border-radius: 10px; /* Bordes más redondeados */
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #1f2937;
    flex: 1 1 180px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.hero-search input[type="text"]:focus,
.hero-search select:focus {
    border-color: #1D4ED8;
    box-shadow: 0 0 0 2px rgba(29, 78, 216, 0.2);
    outline: none;
}
.hero-search button {
    padding: 10px 20px;
    border-radius: 10px; /* Bordes más redondeados */
    border: none;
    background: #1D4ED8; /* Utilizar color primario */
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}
.hero-search button:hover {
    background: #1E40AF;
}
.hero-video .video-wrapper {
    position: relative;
    padding-top: 56.25%;
    border-radius: 14px; /* Bordes aún más redondeados */
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15); /* Sombra más profunda */
    background: #000;
}
.hero-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Botón Prominente de Ofertas */
.hero-offers-cta {
    margin: 20px 0 15px;
    text-align: center; 
}

.btn-offers-prominent {
    background: #ff4fa3; /* Rosa/Fucsia vibrante */
    color: #ffffff !important;
    padding: 12px 25px; 
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(255, 79, 163, 0.4);
    display: inline-flex; 
    align-items: center;
    gap: 8px;
    animation: pulse 1.5s infinite; 
    text-decoration: none !important;
}

.btn-offers-prominent:hover {
    background: #e03f8e;
    box-shadow: 0 5px 20px rgba(224, 63, 142, 0.6);
    transform: translateY(-2px);
    animation: none;
}

/* Keyframe para el efecto de "pulso" */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 79, 163, 0.7); }
    70% { transform: scale(1.02); box-shadow: 0 0 0 10px rgba(255, 79, 163, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 79, 163, 0); }
}

/* Secciones */

.site-main {
    padding: 32px 0 40px;
}
.home-section {
    padding: 20px 0;
}
.section-header {
    margin-bottom: 20px;
}
.section-header h2 {
    margin: 0 0 6px;
    font-size: 1.6rem; /* Tamaño de título más grande */
    font-weight: 700;
    color: #1f2937;
}
.section-header p {
    margin: 0;
    color: #6b7280;
    font-size: 0.95rem;
}

/* Oficios rápidos */

.oficios-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.oficio-pill {
    padding: 6px 14px; /* Padding aumentado */
    border-radius: 999px;
    border: 1px solid #d1d5db;
    background: #ffffff;
    font-size: 0.85rem;
    color: #4b5563;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.oficio-pill:hover {
    background: #f3f4f6;
    border-color: #1D4ED8;
    text-decoration: none;
}

/* Cards de negocios */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Ancho mínimo ligeramente mayor */
    gap: 20px; /* Espacio ligeramente mayor */
}
.negocio-card {
    background: #ffffff;
    border-radius: 12px; /* Bordes más suaves */
    border: 1px solid #e5e7eb;
    /* Sombra moderna: dos capas para profundidad y sutileza */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    padding: 16px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.negocio-card:hover {
    /* Efecto hover sutil de elevación */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}
.card-badges {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-bottom: 8px;
}
.badge {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-premium {
    background: #FACC15; /* Amarillo de acento */
    color: #854D0E;
}
.badge-cert {
    background: #10B981; /* Verde de éxito */
    color: #ffffff;
}

.card-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}
.card-logo {
    width: 64px; /* Tamaño de logo ligeramente mayor */
    height: 64px;
    border-radius: 10px; /* Bordes más definidos */
    border: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
}
.card-logo img {
    /* Ajuste de la imagen al contenedor */
    width: 100%;
    height: 100%;
    object-fit: contain; 
    padding: 4px; /* Un pequeño margen interno para evitar que toque el borde */
    border-radius: 8px;
}
.card-title-group {
    flex: 1;
}
.card-title-group h3 {
    margin: 0 0 4px;
    font-size: 1.15rem;
    font-weight: 700;
}
.card-cat {
    margin: 0;
    font-size: 0.85rem;
    color: #6b7280;
}

.card-desc {
    margin: 8px 0 12px;
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.4;
}
.card-meta {
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 12px;
}
.card-meta span {
    display: inline-block;
    margin-right: 12px;
}

.card-actions {
    margin-top: auto;
    padding-top: 8px;
    display: flex;
    gap: 10px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px; /* Padding aumentado */
    border-radius: 8px; /* Bordes más redondeados */
    border: none;
    font-size: 0.9rem;
    cursor: pointer;
    white-space: nowrap;
    font-weight: 600;
    transition: all 0.2s ease;
}
.btn-primary {
    background: #1D4ED8;
    color: #ffffff;
}
.btn-primary:hover {
    background: #1E40AF;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(29, 78, 216, 0.3);
}
.btn-wa {
    background: #10B981; /* Verde más vibrante */
    color: #ffffff;
}
.btn-wa:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.4);
}
.btn-full {
    width: 100%;
}

/* Banners */

.banner-comercial {
    padding: 10px 0 14px;
}
.banner-comercial-inner {
    display: block;
    border-radius: 12px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.banner-comercial-inner img {
    width: 100%;
    border-radius: 10px;
    display: block;
}
.banner-yellow {
    background: #FFFBEB; /* Amarillo más claro */
}
.banner-blue {
    background: #EFF6FF; /* Azul muy claro */
}
.banner-red {
    background: #FEF2F2; /* Rojo muy claro */
}
.banner-comercial-text h3 {
    margin: 0 0 4px;
    font-size: 1.1rem;
    font-weight: 700;
}
.banner-comercial-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
}
.banner-comercial-cta {
    margin-top: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #B91C1C;
}

/* Detalle negocio */
.detalle-body {
    background: #f8fafc;
}
.detalle-section {
    padding-top: 32px;
}
.detalle-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 32px;
}
/* [Omitiendo el resto de estilos de detalle/modal para brevedad] */


/* ---- ASISTENTE FLOTANTE (FAB) RESTAURADO ---- */

.assistant-fab {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1D4ED8; /* Azul primario */
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 25px rgba(29, 78, 216, 0.4);
    cursor: pointer;
    z-index: 900;
    transition: background 0.15s ease;
}
.assistant-fab:hover {
    background: #1E40AF;
}
.assistant-icon {
    font-size: 1.6rem;
    /* Asegura que el icono de FA esté centrado */
    display: flex;
    align-items: center;
    justify-content: center;
}
.assistant-panel {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: 280px;
    max-width: calc(100% - 40px);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
    overflow: hidden;
    transform: translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease-out, transform 0.18s ease-out;
    z-index: 900;
}
.assistant-panel.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.assistant-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #1f2937;
    color: #f3f4f6;
    font-size: 0.9rem;
}
.assistant-panel-header button {
    background: transparent;
    border: none;
    color: #f3f4f6;
    font-size: 1.1rem;
    cursor: pointer;
}
.assistant-panel-body {
    padding: 12px 14px 14px;
    font-size: 0.9rem;
    color: #374151;
}
.assistant-panel-body p {
    margin: 0 0 8px;
}


/* --- ESTILOS PARA OFERTAS.PHP (COMPACTAS Y ELEGANTES) --- */

body { background: #f0f4f8; } 
.ofertas-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    padding: 15px 0;
    margin-bottom: 20px;
}
.ofertas-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #1f2937;
}
.ofertas-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}
.ofertas-logo-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #d946ef;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.ofertas-brand h2 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

/* Navegación de categorías (Chips) */
.ofertas-nav-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
    padding: 10px 0;
}
.ofertas-chip {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none !important;
    border: 1px solid #d946ef;
    background: #fdf5ff;
    color: #d946ef;
}
.ofertas-chip:hover {
    background: #d946ef;
    color: white;
    box-shadow: 0 4px 8px rgba(217, 70, 239, 0.3);
}
.ofertas-chip.active {
    background: #d946ef;
    color: white;
    border-color: #d946ef;
}

/* Pie de Página */
.ofertas-footer {
    border-top: 1px solid #e5e7eb;
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.85rem;
    color: #6b7280;
}

/* ESTILOS DE TARJETA COMPACTA */
.ofertas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px; /* Menos espacio */
}
.offer-card {
    background: #ffffff;
    border-radius: 10px; /* Bordes un poco más pequeños */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); /* Sombra más sutil */
    border: 1px solid #f3e8ff;
}
.offer-image {
    width: 100%;
    height: 200px; /* ALTURA REDUCIDA */
    object-fit: cover;
    background: #f3e8ff;
    border-radius: 10px 10px 0 0;
}
.offer-content {
    padding: 12px; /* Padding reducido */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.offer-header {
    padding-bottom: 6px; /* Padding reducido */
    margin-bottom: 6px;
}
.offer-title {
    font-size: 1.1rem; /* Tamaño reducido */
    font-weight: 700;
}
.offer-negocio {
    font-size: 0.75rem; /* Tamaño reducido */
    padding: 3px 6px;
}
.offer-description {
    font-size: 0.9rem; /* Tamaño reducido */
    margin-top: 4px;
    margin-bottom: 12px;
}
.btn-whatsapp-offer {
    padding: 8px; /* Padding reducido */
    font-size: 0.95rem;
}