/* Estilos a Areas comunes pagina Mirador del magdalena */
/* ================================
   COLORES INSTITUCIONALES
=================================== */
:root {
    --verde: rgb(0,154,150);
    --azul: #143C6A;
    --dorado: #CC9F52;
    --gris: #444;
    --bg: #f4f6f7;
    --blanco: #ffffff;
}

/* ================================
   SECCIÓN GENERAL
=================================== */
.areas-comunes {
    padding: 60px 20px;
}

.areas-comunes .container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--azul);
    margin-bottom: 10px;
}

.section-header p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    color: var(--gris);
}

/* ================================
   GRID DE CARDS
=================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

/* ================================
   CARD INDIVIDUAL
=================================== */
.card {
    background: var(--blanco);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.07);
    transition: transform .25s ease, box-shadow .25s ease;
    border: 1px solid rgba(0,0,0,0.05);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 28px rgba(0,0,0,0.12);
}

/* ================================
   CONTENEDOR DE IMAGEN
   Permite que TODAS las imágenes 
   tengan la misma altura
=================================== */
.card-img-container {
    width: 100%;
    height: 180px; /* ---> altura fija */
    overflow: hidden;
    background: #ddd;
}

.card-img-container img {
    width: 100%;
    height: 100%!important;
    object-fit: cover; /* recorta la imagen sin deformarla */
    display: block;
}

/* ================================
   CONTENIDO DEL TEXTO
=================================== */
.card-body {
    padding: 20px;
}

.card-body h3 {
    font-size: 2rem;
    margin-bottom: 8px;
    color: var(--verde);
    font-weight: 700;
}

.card-body p {
    font-size: 1.5rem;
    line-height: 1.5;
    color: var(--gris);
}

/* ================================
   RESPONSIVIDAD
=================================== */
@media (max-width: 480px) {
    .section-header h2 {
        font-size: 1.8rem;
    }

    .card-img-container {
        height: 150px; /* ajusta para pantallas pequeñas */
    }
}


/* Estilos a la descripción del proyecto Torre San Agustín - Pagina de Inicio */
.descrip-videos {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.descrip-videos .caja-info {
    display: flex;
    gap: 3rem;
    font-size: 1.5rem;
    color: #fff;
    align-items: center;
    transition: .3s ease-in;
}

.descrip-videos .caja-info:hover {
    background-color: #113258;
}

.descrip-videos .caja-info .img-wrapper {
    /* border-right: 1px solid #fff; */
    overflow: hidden;
    position: relative;
    width: 8.5rem;
}

.descrip-videos .caja-info .img-wrapper::after{
    content: "";
    position: absolute;
    right: 0;
    bottom: 10%;
    width: 1%;
    height: 80%;
    background-color: #fff;
}

.descrip-videos .caja-info img {
    transition: .3s ease-in-out;
    width: 60%;
} 


.descrip-videos .caja-info:hover img {
    transform: scale(1.1);
}

.descrip-videos .descrip-text {
    line-height: 1;
    font-size: 1.9rem;
}

.descrip-videos .caja-info .numero {
    border-radius: 50%;
    border: 2px solid var(--color-panteon-yellow);
    width: 4rem;
    height: 4rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .3s ease-in-out;
}

.descrip-videos .caja-info:hover .numero {
    background-color: var(--color-panteon-yellow);
    color: #fff;
}

.descrip-text .caja-info .numero::after {
    content: "";
    background-color: #fff;
    width: 2%;
    top: 0;
    left: 0;
    height: 10%;
}

/* Estilos a Carousel de imagenes de la pagina de Nosotros */
.carousel-nosotros figure {
    overflow: hidden;
    height: 50rem;
}

.carousel-nosotros figure img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}







