body {
    font-family: 'Poppins', sans-serif;
    background: #f4f6f9;
    margin: 0;
}

/* ================================
   NAVBAR
================================ */
.navbar-custom {
    background-color: #b5ceb2;
    padding: 12px 30px;
}

/* Logo */
.logo-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Texto del título */
.titulo-nav {
    font-size: 22px;
    font-weight: 700;
    color: #1d4d3d;
    white-space: nowrap;
}

.nav-item {
    font-size: 18px;
    margin-right: 10px;
}

/* Links */
.navbar-nav .nav-link {
    font-weight: 600;
    color: #1d4d3d !important;
    margin: 0 5px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    background-color: #709b76;
    color: #ffffff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Dropdown */
.dropdown-menu {
    border-radius: 8px;
    padding: 10px 0;
}

.dropdown-item:hover {
    background-color: #e9f6ef;
}

/* Mejor icono hamburguesa */
.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    filter: brightness(0.2);
}


.contenedor-detalle {
    max-width: 1100px;
    margin: auto;
    padding: 40px;
}

.card-perfil {
    display: flex;
    gap: 40px;
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 40px;
}

.foto-perfil img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #1e721b;
}

.info-perfil {
    flex: 1;
}

.info-perfil h1 {
    margin-top: 0;
    color: #124712;
    margin-bottom: 20px;
}

.info-perfil p {
    margin: 8px 0;
    font-size: 15px;
}

.info-perfil a {
    color: #165a32;
    font-weight: 600;
    text-decoration: none;
}

.info-perfil a:hover {
    text-decoration: underline;
}

/* PROYECTOS */

.descripcion-corta {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: all 0.3s ease;
}

.descripcion-corta.expandida {
    -webkit-line-clamp: unset;
}

.card-proyectos {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.card-proyectos h2 {
    margin-top: 0;
    color: #165a32;
    margin-bottom: 20px;
}

.proyecto-item {
    border-left: 4px solid #165a32;
    padding-left: 15px;
    margin-bottom: 20px;
}

.proyecto-item h3 {
    margin: 0;
}

.proyecto-item .fecha {
    font-size: 13px;
    color: #777;
    margin-bottom: 6px;
}

.sin-proyectos {
    color: #888;
    font-style: italic;
}

.btn-ver-mas {
  background-color: #2a6844;
  color: white;
}

.btn-ver-mas:hover {
  background-color: #5da887;
  border-color: #5da887;
  color: white;
}


/* RESPONSIVE */
@media (max-width: 768px) {
    .card-perfil {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .foto-perfil img {
        width: 180px;
        height: 180px;
    }
}

/* FOOTER */
.contenido-inferior {
    background-color: #b5ceb2;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    box-shadow: 0 -5px 10px #d4d3d3;
}

.footer-col {
    flex: 1;
    min-width: 250px;
}

.footer-col.izquierda h4,
.footer-col.izquierda p {
    text-align: left;
    color: #1b5e20;
    font-size: 16px;
}

.footer-col.izquierda img {
    width: 100px;
    margin-top: 15px;
}

.footer-col.derecha {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.footer-col.derecha h4 {
    color: #1b5e20;
    font-size: 16px;
}

.redes-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
}

.redes-footer a img {
    width: 42px;
    height: 42px;
    transition: transform 0.3s ease;
}

.redes-footer a img:hover {
    transform: scale(1.2);
}