/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

/* Fondo global “en construcción” */
body::before {
    content: "";
    position: fixed; /* siempre visible, cubre toda la pantalla */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../img/en-construccion.png') center center no-repeat;
    background-size: cover; /* ajusta la imagen sin deformarla */
    opacity: 0.12; /* casi transparente */
    pointer-events: none; /* no interfiere con clicks */
    z-index: 0;
}

/* CABECERA */
.hero {
    background: linear-gradient(
        135deg,
        #f5f3f8,
        #ebe7f2
    );
    border-bottom: 1px solid #ddd;
}

/* Contenido superior */
.top-bar {
    display: flex;
    align-items: center;
    padding: 40px 50px;
}

/* Logo */
.logo img {
    height: 70px;
    margin-right: 30px;
}

/* TÍTULOS */
.title {
    line-height: 1.2;
}

.title-small {
    color: rgb(102, 37, 131);
    font-size: 1.4rem;
    font-variant: all-small-caps;
}

.title h1 {
    color: #000000;
    font-size: 2.8rem;
    font-weight: bold;
    margin: 5px 0;
}

/* NAVEGACIÓN */
.nav-bar {
    background: linear-gradient(
        90deg,
        rgb(11, 159, 219),
        rgb(102, 37, 131)
    );
    padding: 15px 50px;
}

.nav-bar ul {
    list-style: none;
    display: flex;
    gap: 30px;
    justify-content: center;
}

.nav-bar a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
}

.nav-bar a:hover {
    opacity: 0.85;
}

/* Enlace activo */
.nav-bar a.active {
    color: #FFD700; /* amarillo eléctrico para resaltar */
}

/* Tarjetas para secciones */

section {
    padding: 30px 50px;
}

.card {
    position: relative;
    z-index: 1; /* encima del fondo */
}

.services .card,
.authorized .card {
   
    padding: 40px;
    border-radius: 12px;
}

/* Títulos dentro de la tarjeta */
.services h2,
.authorized h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: rgb(102, 37, 131); /* morado corporativo */
}

/* Lista de servicios dentro de la tarjeta */
.service-list {
    list-style: disc inside;
    padding-left: 0;
    display: block;
}

.service-list li {
    font-weight: bold;
    color: #333;
    margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 768px) {
    body::before {
        background-size: contain; /* asegura que la imagen no se corte demasiado */
    }
    .top-bar {
        flex-direction: column;
        align-items: center;   /* ⬅️ centrado horizontal */
        text-align: center;    /* ⬅️ texto centrado */
        padding: 30px 20px;
    }

    .logo img {
        height: 55px;
        margin-bottom: 15px;
        margin-right: 0;       /* ⬅️ quitamos separación lateral */
    }

    .title h1 {
        font-size: 2.2rem;
    }

    .title-small {
        font-size: 1.1rem;
    }

    .nav-bar {
        padding: 15px 20px;
    }

    .services .card,
    .authorized .card {
        padding: 30px 20px;
    }

    .services h2,
    .authorized h2 {
        font-size: 1.8rem;
    }
}