/* ======== ESTILOS GENERALES ======== */
body {
    font-family: 'Roboto', sans-serif;
    background: #f4f4f4; /* gris claro de respaldo */
    margin: 0;
    padding: 0;
    text-align: center;
}

/* ======== ENCABEZADO ======== */
header {
    position: relative;
    background: url("/mi_app_php/public/img/header-fondo.jpg") no-repeat center center;
    background-size: cover;
    padding: 40px 20px; /* menos alto y más ajustado */
    color: #fff;
    text-align: center;
}

/* Capa oscura para mejorar contraste */
header::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); /* un poco más oscuro */
    z-index: 0;
}

header h1, header p {
    position: relative;
    z-index: 1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7); /* sombra para resaltar texto */
    margin: 10px 0;
}


/* ======== MENÚ SUPERIOR ======== */
nav {
    background: #1e3a5f; /* azul corporativo */
    padding: 12px;
}
nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: 0.3s;
}
nav a:hover {
    color: #ff7f11; /* naranja */
}

/* ======== CONTENEDOR PRINCIPAL ======== */
.portal-container {
    margin-top: 60px;
    padding: 20px;
}

h1 {
    color: #1e3a5f;
    margin-bottom: 10px;
}

p {
    color: #555;
    font-size: 1.1em;
}

/* ======== BOTONES ======== */
.btn {
    display: inline-block;
    margin: 12px;
    padding: 15px 30px;
    background: #0bb319; /* naranja corporativo */
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

.btn:hover {
    background: #39c027; /* tono más oscuro al pasar el mouse */
    transform: translateY(-2px);
}

button {
    display: inline-block;
    margin: 12px;
    padding: 15px 30px;
    background: #ff7f11; /* naranja corporativo */
    color: #fff;
    border: none; /* quita el borde por defecto */
    border-radius: 6px;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

button:hover {
    background: #e3640a; /* tono más oscuro al pasar el mouse */
    transform: translateY(-2px);
}


/* ======== CARDS ======== */
.card {
    background: rgba(255,255,255,0.9);
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    padding: 20px;
    margin: 15px;
    display: inline-block;
    width: 240px;
    vertical-align: top;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card img {
    max-width: 80%;
    height: auto;
    margin: 0 auto 15px auto;
    display: block;
}

.card:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.25);
}

/* ======== PIE DE PÁGINA ======== */
footer {
    margin-top: 60px;
    padding: 20px;
    background: #1e3a5f; /* azul corporativo */
    color: #fff;
    font-size: 0.9em;
}

.footer-content {
    display: flex;
    align-items: center;       /* centra verticalmente logo y texto */
    justify-content: center;   /* centra todo el bloque en la página */
    gap: 15px;                 /* espacio entre logo y texto */
}

.footer-logo {
    width: 60px;   /* tamaño ajustado del logo */
    height: auto;
}

/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
    header {
        padding: 40px 15px;
        background-position: top center;
    }

    header h1 {
        font-size: 1.6em;
    }

    header p {
        font-size: 1em;
    }

    .card {
        width: 90%;
    }
}
