/* ===================================================
   CE Emprendimientos — Estilos base (fallback sin Elementor)
   Estos estilos se cargan solo en el archive/single del CPT.
   Si usas Elementor para diseñar, estos no afectan los templates
   de Elementor (el Loop Item tiene su propio estilo).
   =================================================== */

/* --- Layout del archivo --- */
.ce-archive-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* --- Barra de filtros --- */
.ce-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.ce-filter-btn {
    display: inline-block;
    padding: 0.4rem 1rem;
    border: 2px solid currentColor;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s, color 0.2s;
}

.ce-filter-btn:hover,
.ce-filter-btn.is-active {
    background-color: #1e1e1e;
    color: #fff;
    border-color: #1e1e1e;
}

/* --- Grid de tarjetas --- */
.ce-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* --- Tarjeta --- */
.ce-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
}

.ce-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.ce-card__cover img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.ce-card__body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex: 1;
}

.ce-card__logo img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 8px;
    border: 1px solid #eee;
}

.ce-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
}

.ce-card__title a {
    text-decoration: none;
    color: inherit;
}

.ce-card__title a:hover {
    text-decoration: underline;
}

.ce-card__types {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.ce-tag {
    display: inline-block;
    background: #f0f0f0;
    color: #333;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
}

.ce-tag:hover {
    background: #e0e0e0;
}

.ce-card__excerpt {
    font-size: 0.9rem;
    color: #555;
    margin: 0;
    flex: 1;
}

/* --- Contacto en tarjeta --- */
.ce-card__contact {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.85rem;
    color: #444;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.ce-contact-item a {
    color: inherit;
    text-decoration: underline;
}

.ce-contact-item--address::before { content: "📍 "; }
.ce-contact-item--whatsapp::before { content: "💬 "; }
.ce-contact-item--horario::before { content: "🕐 "; }

.ce-card__more {
    display: inline-block;
    margin-top: auto;
    padding: 0.5rem 1.25rem;
    background: #1e1e1e;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    transition: background-color 0.2s;
}

.ce-card__more:hover {
    background: #444;
    color: #fff;
}

/* --- Redes sociales (card) --- */
.ce-card__redes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.ce-red {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    transition: opacity 0.2s;
}

.ce-red:hover {
    opacity: 0.85;
    color: #fff;
}

.ce-red--instagram { background: #e1306c; }
.ce-red--tiktok    { background: #010101; }
.ce-red--linkedin  { background: #0a66c2; }
.ce-red--facebook  { background: #1877f2; }

/* --- Paginación --- */
.ce-pagination {
    margin-top: 3rem;
    text-align: center;
}

.ce-no-results {
    text-align: center;
    color: #777;
    padding: 3rem 0;
}

/* ===================================================
   Single emprendimiento
   =================================================== */
.ce-single__cover img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px;
}

.ce-single__inner {
    max-width: 860px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.ce-single__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.ce-single__logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 10px;
}

.ce-single__title {
    font-size: 2rem;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.ce-single__types {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.ce-single__excerpt {
    font-size: 1.1rem;
    color: #555;
    border-left: 4px solid #1e1e1e;
    padding-left: 1rem;
    margin: 0 0 1.5rem;
}

.ce-single__content {
    margin-bottom: 2rem;
}

.ce-single__contact {
    background: #f9f9f9;
    border-radius: 10px;
    padding: 1.5rem;
}

.ce-single__contact h3 {
    margin-top: 0;
    font-size: 1.1rem;
}

.ce-single__contact ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    font-size: 0.95rem;
}

.ce-single__contact .ce-contact-item a {
    color: inherit;
}

/* --- Redes sociales (single) --- */
.ce-single__redes {
    margin-top: 2rem;
}

.ce-single__redes h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.ce-redes-lista {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* --- Responsivo --- */
@media (max-width: 640px) {
    .ce-grid {
        grid-template-columns: 1fr;
    }

    .ce-single__title {
        font-size: 1.5rem;
    }
}
