/* ========================================= */
/* 10. BUSCA TU PROYECTO (MATCHMAKER)        */
/* ========================================= */
.matchmaker-hero {
    padding: 110px 0 50px;
    text-align: center;
}

.matchmaker-hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.matchmaker-hero h1 {
    font-size: 1.9rem;
    max-width: 780px;
    margin-bottom: 20px;
}

.matchmaker-hero > .container > p {
    font-size: 1.02rem;
    color: var(--color-text-muted);
    max-width: 560px;
    margin-bottom: 36px;
}

/* Panel de busqueda y filtros */
.search-panel {
    width: 100%;
    max-width: 900px;
    background: var(--color-surface);
    border: 1px solid var(--color-border-soft);
    border-radius: 20px;
    padding: 18px;
    margin-bottom: 40px;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border-soft);
    border-radius: 14px;
    padding: 10px 14px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.search-icon {
    width: 18px;
    height: 18px;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.search-bar input {
    flex: 1;
    min-width: 160px;
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-text);
    font-family: 'Montserrat', 'Segoe UI', system-ui, sans-serif;
    font-size: 0.82rem;
    min-height: 32px;
}

.search-bar input::placeholder {
    color: var(--color-text-muted);
}

.search-btn {
    width: 100%;
    padding: 10px 20px;
}

.search-btn svg,
.cta-banner-actions .btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.rubro-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.rubro-pill {
    min-height: 36px;
    padding: 8px 16px;
    border-radius: 20px;
    background: var(--color-surface-2);
    border: 1px solid var(--color-border-soft);
    color: var(--color-text-muted);
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.rubro-pill:hover {
    border-color: var(--color-accent);
    color: var(--color-text);
}

.rubro-pill.active {
    background: var(--color-accent-soft);
    border-color: var(--color-accent);
    color: var(--color-text);
}

.search-empty {
    color: var(--color-text-muted);
    font-size: 0.82rem;
    text-align: center;
    padding-top: 14px;
    border-top: 1px solid var(--color-border-soft);
}

.search-empty a {
    color: var(--color-accent);
    font-weight: 600;
}

.search-empty a:hover {
    color: var(--color-text);
}

/* ========================================= */
/* CATALOGO DE CASOS                         */
/* ========================================= */
.catalog-section {
    padding: 0 0 70px;
}

.catalog-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    margin-bottom: 36px;
}

.catalog-header h2 {
    font-size: 1.6rem;
}

.rubro-groups {
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.rubro-group-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border-soft);
}

.rubro-group-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--color-accent-soft);
    color: var(--color-accent);
}

.rubro-group-icon svg {
    width: 18px;
    height: 18px;
}

.rubro-group-header h3 {
    font-size: 1.02rem;
}

.rubro-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.rubro-card {
    min-width: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border-soft);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.rubro-card:hover {
    transform: translateY(-6px);
    border-color: var(--color-accent);
}

.rubro-card-media {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-surface-2);
}

.rubro-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.rubro-card-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.rubro-card-badge svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

.rubro-card-badge-category {
    top: 12px;
    left: 12px;
    background: var(--color-accent-soft);
    color: var(--color-accent);
}

.rubro-card-badge-time {
    top: 12px;
    right: 12px;
    background: rgba(6, 8, 16, 0.65);
    color: var(--color-text);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.rubro-card-body {
    min-width: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.rubro-card-body h3 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.rubro-card-body p {
    color: var(--color-text-muted);
    font-size: 0.82rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.rubro-card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.rubro-card-tags .tag {
    background: var(--color-accent-soft);
    color: var(--color-accent);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-family: 'Space Mono', 'Courier New', monospace;
}

.rubro-card-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--color-border-soft);
}

.rubro-card-link {
    color: var(--color-accent);
    font-weight: 600;
    font-size: 0.82rem;
}

.rubro-card-link:hover {
    color: var(--color-text);
}

.rubro-card-link-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--color-border-soft);
    border-radius: 10px;
    color: var(--color-text);
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
}

.rubro-card-link-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

/* Color propio por rubro (icono del grupo + etiqueta de categoría en las cards) */
.cat-gastronomia { --cat-color: #f2994a; }
.cat-salud { --cat-color: #27ae60; }
.cat-comercio { --cat-color: #2f80ed; }
.cat-servicios { --cat-color: #9b59b6; }
.cat-educacion { --cat-color: #d4a017; }
.cat-oficios { --cat-color: #1abc9c; }
.cat-entretenimiento { --cat-color: #eb4d8c; }

.rubro-group .rubro-card-badge-category,
.rubro-group .rubro-group-icon,
.rubro-group .rubro-card-tags .tag {
    background: color-mix(in srgb, var(--cat-color) 18%, transparent);
    color: var(--cat-color);
}

.rubro-group .rubro-card:hover {
    border-color: var(--cat-color);
}

/* ========================================= */
/* BANNER CTA FINAL                          */
/* ========================================= */
.cta-banner-section {
    padding: 0 0 70px;
}

.cta-banner {
    background: var(--color-surface);
    border: 1px solid var(--color-border-soft);
    border-radius: 24px;
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.cta-eyebrow {
    color: var(--color-accent);
}

.cta-banner-text h2 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.cta-banner-text p {
    color: var(--color-text-muted);
    font-size: 0.92rem;
    line-height: 1.65;
    margin-bottom: 22px;
    max-width: 60ch;
}

.cta-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cta-features span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-text);
    font-size: 0.82rem;
}

.cta-features svg {
    width: 18px;
    height: 18px;
    color: var(--color-accent);
    flex-shrink: 0;
}

.cta-banner-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

@media (min-width: 480px) {
    .search-bar { flex-wrap: nowrap; }
    .search-btn { width: auto; }
}

@media (min-width: 768px) {
    .matchmaker-hero { padding-top: 160px; }

    .matchmaker-hero h1 {
        font-family: 'Copperplate', 'Copperplate Gothic Light', 'Copperplate Gothic Bold', serif;
        font-weight: 700;
        font-size: clamp(32px, 3.4vw, 58px);
        line-height: 1.12;
        letter-spacing: -0.01em;
        max-width: 18em;
        margin-bottom: 24px;
    }

    .matchmaker-hero > .container > p {
        font-size: clamp(16px, 1.15vw, 19px);
        line-height: 1.6;
        max-width: 42em;
        margin-bottom: 44px;
    }

    .search-panel {
        max-width: 980px;
        border-radius: 24px;
        padding: 24px;
        margin-bottom: 48px;
    }

    .search-bar {
        gap: 14px;
        border-radius: 16px;
        padding: 14px 18px;
        margin-bottom: 20px;
    }

    .search-icon { width: 22px; height: 22px; }

    .search-bar input { font-size: 1rem; min-height: 38px; }

    .rubro-pill {
        min-height: 44px;
        padding: 10px 20px;
        font-size: 0.82rem;
    }

    .matchmaker-hero .hero-stats { gap: 24px 64px; }

    .matchmaker-hero .hero-stats .num {
        font-family: 'Space Mono', 'Courier New', monospace;
        font-size: clamp(28px, 2.2vw, 40px);
    }

    .matchmaker-hero .hero-stats .label {
        font-size: 0.8rem;
        margin-top: 8px;
    }

    .catalog-section { padding: 0 0 90px; }
    .cta-banner-section { padding: 0 0 90px; }

    .rubro-card-grid { grid-template-columns: repeat(2, 1fr); }

    .rubro-card-links {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .rubro-card-link-secondary {
        min-height: auto;
        border: none;
        padding: 0;
    }

    .cta-banner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 44px;
    }

    .cta-banner-text {
        flex: 1;
    }

    .cta-banner-actions {
        flex-shrink: 0;
        width: 320px;
    }
}

@media (min-width: 1024px) {
    .matchmaker-hero { padding: 170px 0 70px; }

    .rubro-card-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- PC: versión grande ----------
   Mismas medidas que Nosotros, Preguntas frecuentes y Contacto:
   contenedor de hasta 1400px y tipografías con clamp(). Le gana al
   tope de 1200px de <section> y .container (styles.css). */
@media (min-width: 768px) {
    .matchmaker-hero,
    .catalog-section,
    .cta-banner-section { max-width: none; padding-left: 0; padding-right: 0; }

    .matchmaker-hero > .container,
    .catalog-section > .container,
    .cta-banner-section > .container {
        width: min(1400px, 92%);
        max-width: none;
        padding: 0;
    }

    /* hero */
    .matchmaker-hero { padding-top: 160px; padding-bottom: clamp(56px, 5vw, 90px); }

    .matchmaker-hero h1 { font-size: clamp(38px, 3.6vw, 68px); margin-bottom: 32px; }

    .matchmaker-hero > .container > p {
        max-width: 38em;
        margin-bottom: clamp(44px, 4vw, 64px);
        font-size: clamp(17px, 1.25vw, 21px);
    }

    .search-panel {
        max-width: 1120px;
        padding: clamp(24px, 2vw, 34px);
        border-radius: 28px;
        margin-bottom: clamp(48px, 4.5vw, 76px);
    }

    .search-bar { padding: clamp(14px, 1.2vw, 20px) clamp(18px, 1.5vw, 26px); margin-bottom: 24px; }
    .search-icon { width: 24px; height: 24px; }
    .search-bar input { min-height: 44px; font-size: clamp(16px, 1.1vw, 19px); }
    .search-btn { min-height: 52px; padding: 12px 28px; font-size: clamp(14px, 0.95vw, 16px); }

    .rubro-filters { gap: 12px; }

    .rubro-pill {
        min-height: 50px;
        padding: 12px 24px;
        border-radius: 999px;
        font-size: clamp(14px, 0.95vw, 16px);
    }

    .search-empty { font-size: clamp(15px, 1vw, 17px); }

    /* números en cards (como las garantías del Inicio) */
    .matchmaker-hero .hero-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(16px, 1.6vw, 28px);
        width: 100%;
    }

    .matchmaker-hero .hero-stats .stat {
        min-width: 0;
        padding: clamp(24px, 2.2vw, 38px) clamp(22px, 2vw, 34px);
        text-align: left;
        background: var(--color-surface);
        border: 1px solid var(--color-border-soft);
        border-radius: 20px;
        transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s, box-shadow .35s;
    }

    .matchmaker-hero .hero-stats .stat:hover {
        transform: translateY(-6px);
        border-color: var(--color-accent);
        box-shadow: 0 24px 60px -24px var(--shadow-color);
    }

    @media (min-width: 1024px) {
        .matchmaker-hero .hero-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    }

    .matchmaker-hero .hero-stats .num { font-size: clamp(34px, 2.9vw, 54px); line-height: 1; }
    .matchmaker-hero .hero-stats .label { margin-top: clamp(12px, 1vw, 18px); font-size: clamp(12px, 0.85vw, 14px); line-height: 1.4; }

    /* catálogo */
    .catalog-section { padding-bottom: clamp(80px, 7vw, 130px); }

    .catalog-header { margin-bottom: clamp(44px, 4vw, 64px); }
    .catalog-header h2 { font-size: clamp(36px, 3vw, 58px); }

    .rubro-groups { gap: clamp(56px, 5vw, 88px); }

    .rubro-group-header { gap: 16px; margin-bottom: 28px; padding-bottom: 20px; }
    .rubro-group-icon { width: 52px; height: 52px; border-radius: 14px; }
    .rubro-group-icon svg { width: 26px; height: 26px; }
    .rubro-group-header h3 { font-size: clamp(22px, 1.8vw, 32px); }

    .rubro-card-grid { gap: 28px; }
    .rubro-card { border-radius: 20px; }

    .rubro-card-body { padding: clamp(22px, 1.8vw, 30px); }
    .rubro-card-body h3 { margin-bottom: 12px; font-size: clamp(19px, 1.4vw, 25px); }
    .rubro-card-body p { margin-bottom: 20px; font-size: clamp(15px, 1.05vw, 17px); }

    .rubro-card-tags { margin-bottom: 22px; }
    .rubro-card-tags .tag { padding: 6px 14px; font-size: clamp(12px, 0.85vw, 14px); }

    /* si no entran en una línea, "Quiero esto…" baja entero debajo de "Ver →" */
    .rubro-card-links { flex-wrap: wrap; gap: 10px 16px; padding-top: 18px; }
    .rubro-card-link,
    .rubro-card-link-secondary { white-space: nowrap; font-size: clamp(14px, 0.95vw, 16px); }

    /* banner final */
    .cta-banner-section { padding-bottom: clamp(80px, 7vw, 130px); }

    .cta-banner {
        gap: clamp(32px, 4vw, 72px);
        padding: clamp(44px, 4vw, 72px);
        border-radius: 28px;
    }

    .cta-banner-text .eyebrow { font-size: clamp(13px, 0.9vw, 15px); }
    .cta-banner-text h2 { margin-bottom: 20px; font-size: clamp(28px, 2.4vw, 44px); }
    .cta-banner-text p { margin-bottom: 28px; font-size: clamp(16px, 1.15vw, 19px); }

    .cta-features { gap: 16px; }
    .cta-features span { font-size: clamp(15px, 1.05vw, 17px); }
    .cta-features svg { width: 22px; height: 22px; }

    .cta-banner-actions { width: clamp(320px, 26vw, 420px); gap: 16px; }

    .cta-banner-actions .btn {
        min-height: 56px;
        padding: 16px 24px;
        font-size: clamp(14px, 0.95vw, 16px);
    }

    .cta-banner-actions .btn svg { width: 18px; height: 18px; }
}

/* etiquetas sobre la foto más grandes solo con cards anchas (si no, se pisan) */
@media (min-width: 1280px) {
    .rubro-card-badge { top: 16px; padding: 7px 14px; font-size: clamp(12px, 0.8vw, 13.5px); }
    .rubro-card-badge-category { left: 16px; }
    .rubro-card-badge-time { right: 16px; }
    .rubro-card-badge svg { width: 14px; height: 14px; }
}
