/* El Bodegón — Menú de servicios */

/* ── Banner: ancho completo sin franjas, fondo neutro que combina ── */
.ebm-banner {
    line-height: 0;
    background: #ffffff; /* color dominante de la imagen → sin bordes visibles */
    overflow: hidden;
}
.ebm-banner img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 auto;
}

/* ── Sección de servicios ─────────────────────────────────────── */
.ebm-section {
    background: var(--eb-bg, #f5f5f7);
    padding: 56px 0 76px;
    position: relative;
}

/* ── Bento de servicios: 1 destacada + 4 secundarias ──────────── */
.ebm-bento {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: 20px;
}

/* Tarjeta base — todas blancas; al hover se vuelven rojas con letras amarillas */
.ebm-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--eb-surface, #fff);
    border: 1px solid var(--eb-line, #ececec);
    border-radius: var(--eb-radius, 16px);
    padding: 26px 24px;
    text-decoration: none;
    color: var(--eb-ink, #1d1d1f);
    box-shadow: 0 6px 22px rgba(20, 20, 30, 0.05);
    transition: transform 0.3s var(--eb-ease, ease), box-shadow 0.3s var(--eb-ease, ease), background 0.3s var(--eb-ease, ease), border-color 0.3s;
    overflow: hidden;
    animation: eb-fadeUp 0.5s ease both;
}
.ebm-card,
.ebm-card:hover { text-decoration: none; }
.ebm-card:hover {
    transform: translateY(-6px);
    background: linear-gradient(150deg, var(--eb-red, #db0b14) 0%, var(--eb-red-dark, #a8090f) 100%);
    border-color: transparent;
    box-shadow: 0 18px 40px rgba(219, 11, 20, 0.30);
}

/* Ícono en chip */
.ebm-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px; height: 54px;
    border-radius: 14px;
    background: var(--eb-red-soft, #fdeaeb);
    color: var(--eb-red, #db0b14);
    font-size: 1.4rem;
    margin-bottom: 18px;
    transition: background 0.3s, color 0.3s, transform 0.3s var(--eb-ease, ease);
}
.ebm-card:hover .ebm-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    transform: scale(1.08) rotate(-4deg);
}

.ebm-card-title {
    font-family: var(--eb-font-head, 'Montserrat', sans-serif);
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0 0 7px;
    line-height: 1.25;
    transition: color 0.3s;
}
.ebm-card:hover .ebm-card-title { color: var(--eb-yellow, #ffd200); }

.ebm-card-desc {
    font-size: 0.875rem;
    color: var(--eb-gray, #6b6b6b);
    line-height: 1.55;
    margin: 0 0 18px;
    transition: color 0.3s;
}
.ebm-card:hover .ebm-card-desc { color: rgba(255, 255, 255, 0.92); }

.ebm-go {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    font-family: var(--eb-font-head, 'Montserrat', sans-serif);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--eb-red, #db0b14);
    letter-spacing: 0.02em;
    transition: color 0.3s;
}
.ebm-card:hover .ebm-go { color: var(--eb-yellow, #ffd200); }
.ebm-go i { transition: transform 0.25s var(--eb-ease, ease); }
.ebm-card:hover .ebm-go i { transform: translateX(5px); }

/* ── Tarjeta destacada (Facturación): mismo blanco→rojo, sólo más grande ── */
.ebm-card--feature {
    grid-column: span 2;
    grid-row: span 2;
    justify-content: center;
    padding: 34px 32px;
}
/* textura de puntos: invisible sobre blanco, se nota al hacer hover (fondo rojo) */
.ebm-card--feature::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.07'%3E%3Ccircle cx='4' cy='4' r='2'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.ebm-card--feature > * { position: relative; z-index: 1; }
.ebm-card--feature .ebm-feature-tag {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: var(--eb-font-head, 'Montserrat', sans-serif);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--eb-ink, #1d1d1f);
    background: var(--eb-yellow, #ffd200);
    padding: 5px 14px;
    border-radius: 50px;
    margin-bottom: 18px;
}
.ebm-card--feature .ebm-icon { width: 64px; height: 64px; font-size: 1.8rem; }
.ebm-card--feature .ebm-card-title { font-size: 1.7rem; font-weight: 800; }
.ebm-card--feature .ebm-card-desc { font-size: 0.98rem; max-width: 320px; }
.ebm-card--feature .ebm-go { font-size: 0.92rem; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 900px) {
    .ebm-bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: auto; }
    .ebm-card--feature { grid-column: span 2; grid-row: span 1; }
    .ebm-card--feature .ebm-card-title { font-size: 1.4rem; }
}
@media (max-width: 560px) {
    .ebm-bento { grid-template-columns: 1fr; }
    .ebm-card--feature { grid-column: span 1; }
}
