/* --- Estilos Base --- */
.sjc-profile-container {
    background: #fff;
    border-radius: 40px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    font-family: 'Poppins', sans-serif;
    max-width: 1100px;
    margin: 0 auto;
}

/* --- Header y Nav --- */
.sjc-profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.sjc-profile-logo-box {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 6px solid #f0f0f0;
    overflow: hidden;
    flex-shrink: 0;
}

.sjc-profile-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    padding: 0px;
}

.sjc-profile-title-box {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sjc-profile-title-box h1 {
    font-size: 48px;
    font-weight: 900;
    margin: 0;
    line-height: 1.1;
}

.sjc-profile-category__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 6px 12px;
    margin-bottom: 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: rgba(59, 130, 246, .10);
    color: var(--e-global-color-sjc-blue-strong);
    border: 1px solid rgba(59, 130, 246, .18);
    width: fit-content;
}

.sjc-profile-nav {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.sjc-nav-btn {
    flex: 1;
    min-width: 150px;
    padding: 14px;
    border-radius: 18px;
    border: none;
    background: #4a90e2;
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.sjc-nav-btn.active {
    background: #2c3e50;
    transform: translateY(-2px);
}

.sjc-nav-btn.btn-oferta {
    background: #e74c3c;
    animation: pulse 2s infinite;
}

/* --- Sistema de Tabs --- */
.sjc-tab-panel {
    display: none;
    background: #F7F5FA;
    padding: 30px;
    border-radius: 30px;
}

.sjc-tab-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

/* --- Layout Información (2 Columnas) --- */
.sjc-info-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Mitad y mitad */
    gap: 40px;
    background: #f9fbff;
    padding: 30px;
    border-radius: 30px;
}

.sjc-section-box h4 {
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: 800;
    color: #333;
}

.sjc-social-icons {
    display: flex;
    gap: 20px;
    font-size: 28px;
}

.sjc-social-icons a {
    color: #4a90e2;
}

/* Mapa */
.sjc-map-wrapper {
    width: 100%;
    height: 250px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #eee;
}

.sjc-address-text {
    display: block;
    margin-top: 10px;
    color: #666;
    font-style: italic;
}

/* --- Beneficios y Ofertas --- */
.sjc-benefits-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.sjc-benefit-card,
.sjc-benefit-card-with-image {
    background: #4a90e2;
    color: #fff;
    padding: 30px;
    border-radius: 25px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 15px;

    align-items: center;
    /* Centra los elementos (logo, texto) horizontalmente */
    justify-content: center;
    /* Centra el contenido verticalmente */
    text-align: center;
    transition: all 200ms ease-in-out;
}

.sjc-benefits-grid-full div:hover {
    transform: translateY(-10px);
}

.sjc-benefit-card-with-image img {
    border-radius: 15px;
}

.sjc-oferta-highlight {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: #fff;
    padding: 40px;
    border-radius: 30px;
    text-align: center;
}

/* --- Galería --- */
.sjc-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;

}

.sjc-gallery-item-container {
    border-radius: 20px;
    border: #f9fbff 10px solid;
    overflow: hidden;
    transition: all 250ms ease-in-out;
    animation: fadeIn 1s ease;
}

img.sjc-gallery-item {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 450ms ease-in-out;
    filter: brightness(50%);
}

.sjc-gallery-item-container:hover {
    transform: translateY(-10px);
}

img.sjc-gallery-item:hover {
    filter: brightness(100%);
    cursor: pointer;
}


/* --- Animaciones --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.6);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(231, 76, 60, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(231, 76, 60, 0);
    }
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .sjc-info-layout {
        grid-template-columns: 1fr;
    }

    .sjc-profile-header {
        flex-direction: column;
        text-align: center;
    }

    .sjc-profile-title-box h1 {
        font-size: 32px;
    }
}

/* Contenedor del logo cuando es destacado */
.sjc-profile-logo-box.is-featured-logo {
    position: relative;
    border: 3px solid #ffd700;
    /* Color base dorado */
    border-radius: 50%;
    /* O el radio que uses para el logo */
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
    animation: golden-glow 2s infinite alternate;
    z-index: 1;
}

/* Opcional: Agregar un degradado real al borde */
.sjc-profile-logo-box.is-featured-logo::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #bf953f, #fcf6ba, #b38728, #fbf5b7, #aa771c);
    z-index: -1;
    border-radius: 50%;
    filter: blur(2px);
}

/* Animación de brillo */
@keyframes golden-glow {

    from {
        box-shadow: 0 0 5px rgba(255, 215, 0, 0.4), inset 0 0 5px rgba(255, 215, 0, 0.2);
        transform: scale(1);
    }

    to {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.8), inset 0 0 10px rgba(255, 215, 0, 0.4);
        transform: scale(1.01);
    }
}

/* medidas celular */
@media (max-width: 480px) {
    .sjc-profile-container {
        padding: 20px;
    }

    .sjc-profile-nav,
    .sjc-tab-panel {
        flex-direction: column;
    }

    .sjc-gallery-grid {
        grid-template-columns: 1fr;

    }

    .sjc-tab-panel {
        padding: 20px;
    }
}


.matec-schedule {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.1;
}

.matec-schedule__label {
    font-weight: 700;
    font-size: 1.25rem;
}

.matec-schedule__detail {
    font-size: 1rem;
    opacity: .8;
}

.matec-schedule.status-open .matec-schedule__label {
    color: var(--e-global-color-sjc-green, #A0BF75);
}

.matec-schedule.status-closed .matec-schedule__label {
    color: #9E9E9E;
}

.matec-schedule.status-closing_soon .matec-schedule__label,
.matec-schedule.status-opening_soon .matec-schedule__label {
    color: #FF9F1C;
}

.matec-horarios-item {
    margin-bottom: 4px;
    display: inline-flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
}

.matec-horarios-item.is-today .day-label {
    font-weight: 700;
}

.day-exceptions {
    margin-top: 2px;
    padding-left: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1 0 100%;
}

.day-exception {
    font-size: 0.82em;
    opacity: .85;
    padding: 8px;
    border-radius: 15px;
    text-align: center;
    color: #fff;
    font-weight:700;
}

.day-exception.is-modified {
    background: #4a90e2;
}

.day-exception.is-closed {
    background: #FF3131;
}

.sjc-business-offers-list {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.sjc-business-offer-card {
    background: #fff;
    border: 1px solid var(--e-global-color-sjc-border);
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 10px 24px rgba(20, 20, 30, 0.06);
}

.sjc-business-offer-card__badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: #ef4438;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.sjc-business-offer-card__title {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 800;
    color: var(--e-global-color-sjc-blue-strong);
}

.sjc-business-offer-card__dates {
    display: grid;
    gap: 8px;
    margin-bottom: 12px;
}

.sjc-business-offer-card__dates span {
    display: block;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eaf3ff;
    color: var(--e-global-color-sjc-blue-strong);
    font-size: 13px;
    font-weight: 700;
}

.sjc-business-offer-card__description {
    margin: 0 0 16px;
    color: #555;
    font-size: 15px;
    line-height: 1.45;
}

.sjc-business-offer-card__button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 44px;
    border-radius: 12px;
    background: var(--e-global-color-sjc-blue-strong);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}