/* empresa.css */
/* Styles for Empresa Profile Page - High Fidelity Replication */

.empresa-profile-page {
    font-family: 'Inter', sans-serif;
    color: #0f172a;
    margin-top: 40px
}

/* --- Variables based on Tailwind Config/Usage --- */
:root {
    --ep-primary: #00659b;
    --ep-slate-50: #f8fafc;
    --ep-slate-100: #f1f5f9;
    --ep-slate-200: #e2e8f0;
    --ep-slate-400: #94a3b8;
    --ep-slate-500: #64748b;
    --ep-slate-600: #475569;
    --ep-slate-900: #0f172a;
    /* Scaled Radii (1rem = ~10px) */
    --ep-radius-lg: 0.8rem;
    /* 8px */
    --ep-radius-xl: 1.2rem;
    /* 12px */
    --ep-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --ep-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.empresa-profile-page {

    /* Typography Overrides */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        color: var(--ep-slate-900);
        margin: 0;
    }

    a {
        color: var(--ep-primary);
        text-decoration: none;
        transition: color 0.2s;
    }

    a:hover {
        color: #075985;
        text-decoration: underline;
    }

    /* --- Header / Cover Section --- */
    && .empresa-cover-section {
        margin-bottom: 3.2rem;
        /* 32px */
        background-color: #fff;
        border: 1px solid var(--ep-slate-200);
        border-radius: var(--ep-radius-xl);
        overflow: visible;
        box-shadow: var(--ep-shadow-sm);
        position: relative;
        padding-bottom: 0;
    }

    && .empresa-cover-image {
        height: 16rem;
        /* 160px */
        width: 100%;
        background: linear-gradient(to right, #00659b, #075985);
        position: relative;
        border-radius: var(--ep-radius-xl) var(--ep-radius-xl) 0 0;
        overflow: hidden;
    }

    && .empresa-overlay {
        position: absolute;
        inset: 0;
      background-image: url(/themes/custom/trabajando/src/banner.svg);
      background-size: cover;
      background-position: center;
      width: 100%;
      height: 100%;
    }

    && .empresa-header-container {
        padding: 0 3.2rem 3.2rem 3.2rem;
        /* 32px */
        position: relative;
        margin-top: -4rem;
        /* -40px */
    }

    /* Flex layout to replicate 'flex flex-col md:flex-row items-end gap-6' */
    && .header-flex-wrapper {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 2.4rem;
        /* 24px */
    }

    @media (min-width: 992px) {
        && .header-flex-wrapper {
            flex-direction: row;
            align-items: flex-end;
        }
    }

  && .field.field--name-field-logo-empresa {
    height: 100%;
  }

  && .empresa-profile-avatar {
        width: 11.2rem;
        /* 112px */
        height: 11.2rem;
        background-color: #fff;
        padding: 0.8rem;
        /* 8px */
        border-radius: var(--ep-radius-xl);
        border: 1px solid #f1f5f9;
        box-shadow: var(--ep-shadow-lg);
        flex-shrink: 0;
        overflow: hidden;
    }

    && .empresa-profile-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: var(--ep-radius-lg);
    }

    && .empresa-info-main {
        flex: 1;
        padding-bottom: 0.8rem;
        width: 100%;
    }

    && .empresa-name {
        font-size: 2.6rem;
        font-weight: 700;
        color: var(--ep-slate-900);
        display: flex;
        align-items: center;
        gap: 1.2rem;
        margin-bottom: 0.4rem;
    }

    && .empresa-info-list {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 1.6rem;
        color: var(--ep-slate-500);
        margin: 0;
        padding: 0;
        list-style: none;
    }

    && .empresa-info-list li {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        font-size: 1.2rem;
        font-weight: 500;
    }

    && .empresa-info-list .glyphicon {
        font-size: 1.6rem;
    }

    && .empresa-actions {
        padding-bottom: 0.8rem;
    }

    && .btn-edit-profile {
        padding: 1rem 2.4rem;
        background-color: var(--ep-primary);
        color: white;
        border-radius: var(--ep-radius-lg);
        font-size: 1.4rem;
        font-weight: 700;
        box-shadow: 0 10px 15px -3px rgba(0, 101, 155, 0.2);
        border: none;
        display: flex;
        align-items: center;
        gap: 0.8rem;
        transition: all 0.2s;
    }

    && .btn-edit-profile:hover {
        background-color: #0369a1;
        text-decoration: none;
        color: white;
    }

    /* --- Cards (Main Content & Sidebar) --- */
    && .empresa-card {
        background-color: #fff;
        border: 1px solid var(--ep-slate-200);
        border-radius: var(--ep-radius-xl);
        box-shadow: var(--ep-shadow-sm);
        margin-bottom: 2.4rem;
        overflow: hidden;
    }

    && .empresa-card-header {
        padding: 1.6rem;
        border-bottom: 1px solid var(--ep-slate-100);
    }

    && .sidebar .empresa-card-header {
      padding: 2.4rem;
    }

    && .empresa-card-body {
        padding: 3.2rem;
        /* 32px */
    }

    && .sidebar .empresa-card-body {
      padding: 2.4rem;
    }

    .col-md-4 && .empresa-card-body {
        padding: 2.4rem;
    }

    && .empresa-section-title {
        font-size: 2rem;
        font-weight: 700;
        color: var(--ep-slate-900);
        display: flex;
        align-items: center;
        gap: 1.2rem;
        margin-bottom: 2.4rem;
    }

    && .sidebar .empresa-section-title {
      margin-bottom: 0;
    }

    && .empresa-description {
        color: var(--ep-slate-600);
        line-height: 1.625;
        margin-bottom: 3.2rem;
        font-size: 1.6rem;
    }

    /* Detail Boxes */
    && .empresa-detail-box {
        padding: 1.6rem;
        background-color: var(--ep-slate-50);
        border: 1px solid var(--ep-slate-100);
        border-radius: var(--ep-radius-xl);
        height: 100%;
    }

    && .detail-label {
        font-size: 1.2rem;
        text-transform: uppercase;
        font-weight: 700;
        color: var(--ep-slate-400);
        margin-bottom: 0.4rem;
        letter-spacing: 0.05em;
    }

    && .detail-value {
        font-size: 1.6rem;
        font-weight: 700;
        color: #334155;
        display: flex;
        align-items: center;
        gap: 0.8rem;
    }

    && .detail-value .glyphicon {
        color: var(--ep-slate-400);
        margin-right: 0.5rem;
    }

    /* Contact List */
    && .contact-list {
        padding: 0;
        margin: 0;
    }

    && .contact-list li {
        margin-bottom: 1.6rem;
    }

    && .media {
        display: flex;
        align-items: flex-start;
        gap: 1.2rem;
    }

    && .media-left {
        padding-right: 0;
    }

    && .empresa-icon-box {
        width: 3.2rem;
        height: 3.2rem;
        background-color: var(--ep-slate-50);
        border-radius: 0.4rem;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--ep-slate-400);
        font-size: 1.8rem;
        flex-shrink: 0;
    }

    && .media-body .small {
        color: var(--ep-slate-600);
        font-size: 1.4rem;
        line-height: 1.25;
    }

    && hr {
        border-top: 1px solid var(--ep-slate-100);
        margin: 2.4rem 0;
    }

    /* Social Buttons */
    && .social-links {
        display: flex;
        gap: 1.2rem;
    }

    && .btn-social {
        width: 3.6rem;
        height: 3.6rem;
        border-radius: 0.4rem;
        background-color: var(--ep-slate-100);
        color: var(--ep-slate-600);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: none;
        transition: all 0.2s;
        font-size: 1.6rem;
    }

    && .btn-social:hover {
        background-color: var(--ep-primary);
        color: white;
    }

    /* Grid Fixes */
    && .row-cards {
        margin-left: -15px;
        margin-right: -15px;
    }

}
