/* =========================================================
   PÁGINAS DE EMPRESA
   Nosotros / Aviso de privacidad / Términos y condiciones
   ========================================================= */

.company-page {
    background: #fff;
    min-height: 520px;
}

/* Encabezado de la página */
.company-page-header {
    background: #f7f7f7;
    border-bottom: 1px solid #e5e5e5;
}

.company-page-header .container {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.company-page-header h1 {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 700;
    color: #111;
}

/* Breadcrumb */
.company-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #777;
}

.company-breadcrumb a {
    color: #111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.company-breadcrumb a:hover {
    color: #7f9d00;
}

.company-breadcrumb strong {
    color: #7f9d00;
    font-weight: 600;
}

/* Distribución principal */
.company-layout {
    display: grid;
    grid-template-columns: 255px minmax(0, 1fr);
    gap: 55px;
    padding: 30px 0 70px;
    align-items: start;
}

/* Menú lateral */
.company-sidebar {
    border: 1px solid #ddd;
    background: #fff;
}

.company-sidebar-title {
    padding: 14px 18px;
    background: #111;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.company-sidebar-menu {
    display: flex;
    flex-direction: column;
}

.company-sidebar-menu a {
    display: block;
    padding: 13px 18px;
    border-bottom: 1px solid #eee;
    color: #555;
    font-size: 14px;
    line-height: 1.35;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.company-sidebar-menu a:last-child {
    border-bottom: 0;
}

.company-sidebar-menu a:hover {
    background: #f5f5f5;
    color: #7f9d00;
    padding-left: 22px;
}

.company-sidebar-menu a.active {
    background: #f1f4e5;
    color: #7f9d00;
    font-weight: 700;
    border-left: 3px solid #7f9d00;
    padding-left: 15px;
}

/* Contenido */
.company-main {
    min-width: 0;
}

.company-main > h2 {
    margin: 0 0 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e5e5;
    color: #111;
    font-size: 25px;
    line-height: 1.25;
    font-weight: 700;
}

.company-content {
    color: #555;
    font-size: 15px;
    line-height: 1.75;
    overflow-wrap: break-word;
}

.company-content > :first-child {
    margin-top: 0;
}

.company-content > :last-child {
    margin-bottom: 0;
}

.company-content p {
    margin: 0 0 16px;
}

.company-content h1, .company-content h2, .company-content h3, .company-content h4, .company-content h5, .company-content h6 {
    color: #111;
    line-height: 1.35;
}

.company-content img {
    max-width: 100%;
    height: auto !important;
}

/* Tablet */
@media (max-width: 900px) {
    .company-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 30px;
    }
}

/* Móvil */
@media (max-width: 700px) {
    .company-page-header .container {
        min-height: 72px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 7px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .company-page-header h1 {
        font-size: 23px;
    }

    .company-layout {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 25px 0 45px;
    }

    .company-sidebar {
        width: 100%;
    }

    .company-main > h2 {
        font-size: 22px;
    }
}