* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    background-color: #ffffff;
}

/* --- HERO SUPERIOR --- */
.hero-legal {
    position: relative;
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.imagen-legal {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.hero-legal .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 2;
}

.hero-legal h1 {
    position: relative;
    z-index: 3;
    color: #ffffff;
    font-weight: 700;
}

/* --- CONTENEDOR PRINCIPAL --- */
.sobre-nosotros {
    width: 100%;
    max-width: 1350px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* --- BADGES / BOTONES PILL --- */
.btn-description {
    background: linear-gradient(-45deg, #0b5bab 0%, #004696 50%, #003f8f 100%);
    width: fit-content;
    padding: 6px 20px;
    height: 36px;
    color: #ffffff;
    font-weight: 500;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

/* --- ESTRUCTURA GENERAL DE BLOQUES DE SERVICIO --- */
.servicios {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 60px;
}

/* Contenedor Flex en columna para alinear badge + título + párrafos */
.servicio {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* --- ALINEACIONES ESPECÍFICAS SEGÚN LA MAQUETA --- */

/* 1. Asesoría Palacio (Superior junto al Mapa): Alineado a la izquierda */
.sobre-nosotros > .servicios:first-child .servicio {
    align-items: flex-start;
    text-align: left;
}

/* 2. Servicio Contable y Laboral: Badge, título y texto a la DERECHA */
.servicios:nth-of-type(2) .servicio,
.servicios:nth-of-type(4) .servicio {
    align-items: flex-end;
    text-align: right;
}

/* 3. Servicio Fiscal: Fondo gris claro, badge, título y texto a la IZQUIERDA */
.servicios-fiscal {
    background-color: #f8f9fa;
    padding: 50px 40px;
    border-radius: 16px;
}

.servicios-fiscal .servicio {
    align-items: flex-start;
    text-align: left;
}

/* --- TIPOGRAFÍA --- */
.servicio h1 {
    font-weight: 700;
    margin-bottom: 15px;
    color: #000000;
}

.servicio p {
    line-height: 1.6;
    color: #4a4a4a;
    margin-bottom: 12px;
}

.title-solucion {
    text-align: center;
    font-weight: 700;
    margin: 50px 0 40px;
}

/* --- IMÁGENES Y MAPA --- */
#imagen-contable {
    width: 510px;
    height: 360px;
    object-fit: cover;
    border-radius: 12px;
}

#imagen-fiscal {
    width: 400px;
    height: 360px;
    object-fit: cover;
    border-radius: 12px;
}

#imagen-laboral {
    width: 595px;
    height: 360px;
    object-fit: cover;
    border-radius: 12px;
}

.mapa {
    width: 500px;
    height: 340px;
    border-radius: 10px !important;
    overflow: hidden;
    flex-shrink: 0;
}

.mapa iframe {
    width: 100%;
    height: 100%;
}

.separador {
    width: 100% !important;
    height: 55px;
    background-color: #B9DFFF;
    margin: 40px 0;
}

a {
    text-decoration: none;
    color: #003f8f;
}