/* Contenedor de detalle */
.detalle-container {
    width: 90%;
    margin: 0;
    padding: 0; /* O algún padding si quieres un pequeño margen interior */
    background: transparent; /* O quita el background si no deseas color */
    border-radius: 0;
    box-shadow: none;
    position: relative; /* O relative, según necesites para la fecha */
    text-align: left;
    min-height: 100vh; /* Opcional, si quieres forzar que ocupe toda la altura visible */
}


.detalle-title {
    font-size: 40px;
    font-weight: bold;
    color: #0E5738; /* verde oscuro */
    margin-bottom: 2%;
    position: relative;   /* Necesario para usar posicionamiento absoluto en ::after */
    display: inline-block;/* El ancho se ajusta al texto */
    text-transform: uppercase;

}

/* Línea inferior que ocupa el 80% del ancho del texto */
.detalle-title::after {
    content: "";
    position: absolute;
    left: 0;           /* Comienza desde la izquierda */
    bottom: -18px;      /* Separa un poco la línea del texto; ajusta según prefieras */
    width: 90%;        /* Solo ocupa el 80% del ancho del título */
    height: 2px;       /* Grosor de la línea */
    background-color: rgb(204, 204, 204); /* Cambia el color si quieres un tono distinto */
    
}
.detalle-subtitle {
    font-size: 25px;
    font-weight: bold;
    color: #000000e1;
    margin-bottom: 3%;
    position: relative;   /* Para usar posicionamiento absoluto en ::after */
    display: block; /* Cambié inline-block a block para que siempre esté en la siguiente línea */
    text-transform: uppercase; /* Opcional, si quieres el texto en mayúsculas */
    clear: both; /* Esto asegura que el subtítulo esté en una nueva línea debajo del título */

}

/* Línea inferior para el subtítulo */
.detalle-subtitle::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -18px;      /* Ajusta la distancia de la línea con el texto */
    width: 102%;        /* Ajusta el porcentaje según quieras */
    height: 2px;
    background-color: rgb(204, 204, 204); /* Cambia el color si quieres un tono distinto */
    clear: both; /* Esto asegura que el subtítulo esté en una nueva línea debajo del título */

}




/* Estilos de las redes sociales */
.share-container {
    text-align: left;
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative; /* Necesario para posicionar la línea */
    margin-bottom: 2%; /* Añadir margen inferior */
    width: fit-content; /* Esto ajusta el contenedor al contenido que tiene (el texto y los íconos) */

}

.share-container span {
    text-transform: uppercase; /* Opcional, si quieres el texto en mayúsculas */
    font-size: 18px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 1%;
    display: inline-block;
}

.social-share-options {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.social-share-options a {
    font-size: 20px;
    color: #000000;
}

.social-share-options a:hover {
    color: #000000;
}

/* Línea vertical entre los iconos */
.social-share-options a:not(:last-child)::after {
    content: "|";
    margin-left: 1rem;
    margin-right: 1rem;
    color: rgb(204, 204, 204); /* Cambia el color si quieres un tono distinto */
    font-size: 1.5rem;
}

/* Línea debajo del contenedor de redes sociales */
.share-container::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px; /* Ajusta la separación de la línea */
    width: 100%; /* Ocupa todo el ancho del contenedor */
    height: 2px; /* Grosor de la línea */
    background-color: rgb(204, 204, 204); /* Cambia el color si quieres un tono distinto */
}

/* Descripción */
.detalle-description {
    margin-top: 5rem;
    font-size: 17px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 3%;
    text-align: justify;
}


/* Galería de imágenes */
.media-container {
    margin-top: 6rem;
    padding: 20px; /* Espacio interior para separar las imágenes del borde */
    border: 2px solid #0e5738; /* Borde verde oscuro alrededor del contenedor */
    border-radius: 35px; /* Bordes redondeados */
    background-color: #f9f9f9; /* Fondo suave para el contenedor */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra suave alrededor del contenedor */
    
}

/* Galería de imágenes */
.media-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    padding: 20px; /* Espacio interior para separar las imágenes del borde */
    border: 2px solid #0e5738; /* Borde verde oscuro alrededor del contenedor de la galería */
    background-color: #f9f9f9; /* Fondo suave para el contenedor de la galería */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Sombra suave alrededor de la galería */
    width: 85%;
}


.media-item {
    width: 100%;
    max-width: 300px;
    cursor: pointer;
}

.media-image, .media-video {
    width: 100%;
    border-radius: 0.5rem;
}

.media-actions {
    margin-top: 2%;
    text-align: center;
}


/* Fecha de publicación */
.fecha-publicacion {
    position: absolute;
    bottom: 2%;
    right: 2%;
    font-size: 1rem;
    color: #666;
    font-weight: 600;
    text-align: right;
}

/* Media Queries */
@media screen and (max-width: 768px) {
    .detalle-container {
        max-width: 90%;
    }

    .detalle-title {
        font-size: 1.75rem;
    }

    .detalle-subtitle {
        font-size: 1.25rem;
    }

    .social-share-options a {
        font-size: 1.2rem;
    }

    .media-gallery {
        flex-direction: column;
        align-items: center;
    }
}













/*FIN*/




/* ------------------------------------------------------------------
   HEADER (MENÚ DE NAVEGACIÓN)
------------------------------------------------------------------ */

/*HEADER/* 
/*------------------------------------*\
    #HEADER
\*------------------------------------*/
.header {
    height: 100px;
}

.header-transparent {
    background: transparent;
}

.header-transparent+.mtop-100,
.header-transparent+.page-title {
    position: relative;
    margin-top: -100px;
}

/* Mantener el fondo degradado mientras se oculta */
.navbar-hidden #navbar-collapse-1,
.navbar-hidden .logo {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* Asegura que el navbar siempre tenga su fondo degradado */
.header .navbar {
    background: linear-gradient(to bottom,
            rgba(15, 107, 68, 1),
            rgba(15, 107, 68, 0.7),
            rgba(15, 107, 68, 0.3),
            rgba(15, 107, 68, 0));
    transition: background 0.3s ease;
}

/*------------------------------------*\
    #Menu
\*------------------------------------*/
.header .navbar-collapse {
    padding-right: 0;
    padding-left: 0;
}

.header .navbar {
    margin-bottom: 0;
    border-radius: 0;
    min-height: 50px;
    border: none;
    background: linear-gradient(to bottom,
            rgba(15, 107, 68, 1),
            rgba(15, 107, 68, 0.7),
            rgba(15, 107, 68, 0.3),
            rgba(15, 107, 68, 0));
    transition: background 0.3s ease;
}

.header .navbar.affix {
    top: 0;
}

.header-bordered .navbar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.header .navbar .logo {
    max-width: 100%;
    height: auto;
    line-height: 100px;
}

.navbar-nav:not(.nav-pos-right) {
    margin-right: 200px;
}

.nav-bordered-right {
    margin-right: 30px;
}

.nav-bordered-right+.module:first-of-type:before {
    position: relative;
    margin-left: 12px;
}

.nav-bordered-right+.module:first-of-type:before {
    position: absolute;
    top: 50%;
    margin-top: -13px;
    left: -46px;
    content: "";
    width: 2px;
    height: 26px;
    background-color: #c9c9c9;
}

.affix .nav-bordered-right+.module:first-of-type:before {
    background-color: #c9c9c9;
}

.navbar-nav>li {
    margin-right: 32px;
}

.navbar-nav>li>a {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 700;
    line-height: 100px;
    color: #ffffff;
    padding: 0;
}

.nav .open>a,
.nav .open>a:focus,
.nav .open>a:hover {
    background-color: transparent;
    border: none;
}

.navbar-nav>li.active>ul {
    margin-top: 0;
}

.navbar-nav>li>a:focus,
.navbar-nav>li>a:hover {
    background-color: transparent;
    color: #ffffff;
}

/* Menu Level #1 */
.navbar-nav>li>a:before {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    margin: auto;
    width: 0;
    height: 3px;
    background: transparent;
    content: '';
    transition: all 0.4s;
}

.navbar-nav>li>a:hover::before,
.navbar-nav>li.active>a:before {
    background-color: #ffffff;
    width: 100%;
}

.transparent-header .navbar {
    background-color: transparent;
    height: 101px;
}

/* Header Light */
.header-light {
    background-color: #ffffff;
}

.header-light .navbar .logo-dark {
    display: inline-block;
}

.header-light .navbar .logo-light {
    display: none;
}

.header-light .navbar .navbar-nav>li>a:hover::before,
.header-light .navbar .navbar-nav>li.active>a:before {
    background-color: #222222;
}

/* Header Fixed */
.header-fixed .affix {
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.09);
    display: block;
}

.header-fixed:not(.header-light) .navbar .logo-dark {
    display: none;
}

.header-fixed .navbar.affix {
    background: linear-gradient(to bottom,
            rgba(15, 107, 68, 1),
            rgba(15, 107, 68, 0.7),
            rgba(15, 107, 68, 0.3),
            rgba(15, 107, 68, 0)) !important;
    box-shadow: none !important;
}

/* Estilo para el navbar antes de hacer scroll */
.header .navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: none !important;
}

/* Estilo cuando el navbar está fijo y no tiene el estado de "affix" */
.header-fixed .navbar {
    border-bottom: 3px solid rgba(16, 107, 64, 0);
}

/* Custom, iPhone Retina */
@media only screen and (min-width: 320px) and (max-width: 479px) {
    .header .navbar {
        top: 0;
    }

    .navbar-toggle .icon-bar {
        background-color: #ffffff;
    }

    .header-fixed .navbar.affix .navbar-nav>li>a {
        color: #ffffff;
    }
}

/* Custom, iPhone Retina */
@media only screen and (min-width: 320px) and (max-width: 767px) {
    .header .container {
        padding-right: 0;
        padding-left: 0;
    }

    .navbar-nav {
        margin: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .navbar-toggle {
        border-color: #106B40;
        border-radius: 0;
        margin-top: 35px;
    }

    .container>.navbar-header {
        margin-left: 0;
        padding-right: 10px;
        padding-left: 10px;
    }

    .container>.navbar-collapse {
        width: 100%;
        background-color: #363636;
        margin-right: 0;
        margin-left: 0;
    }

    .navbar-nav>li {
        height: auto !important;
        margin-right: 0;
    }

    .navbar-nav>li.pull-left {
        float: none !important;
    }

    .navbar-nav li a {
        line-height: 36px;
        color: #ffffff;
        padding-right: 0;
        padding-left: 10px;
        padding-top: 0;
    }

    .navbar-nav>li>a:before {
        display: none;
    }

    .navbar-nav:not(.nav-pos-right) {
        margin-right: 0;
    }
}

/* Small Devices, Tablets */
@media only screen and (min-width: 768px) and (max-width: 991px) {
    .header .container {
        padding-right: 0;
        padding-left: 0;
    }

    .navbar-header {
        float: none !important;
        margin-right: auto;
        margin-left: auto;
        text-align: center;
    }

    .header .navbar .logo {
        float: left;
    }

    .navbar-toggle {
        border-color: #106B40;
        border-radius: 0;
        margin-top: 35px;
        display: block;
    }

    .navbar-toggle .icon-bar {
        background-color: white;
    }

    .navbar-fixed-top .navbar-collapse {
        overflow: scroll !important;
    }

    .navbar-collapse.collapse {
        display: none !important;
    }

    .collapse.in {
        display: block !important;
    }

    .navbar-nav {
        width: 100%;
        padding-right: 15px;
        padding-left: 15px;
    }

    .navbar-nav>li {
        float: none;
    }

    .container>.navbar-collapse {
        width: 100%;
        background-color: #363636;
        margin-right: 0;
    }

    .navbar-nav>li {
        height: auto !important;
        margin-right: 0;
    }

    .navbar-nav>li.pull-left {
        float: none !important;
    }

    .navbar-nav>li>a {
        line-height: 36px !important;
        color: #ffffff !important;
        padding-right: 0;
        padding-left: 0;
        padding-top: 0;
    }

    .navbar-toggle .icon-bar {
        background-color: #ffffff;
    }

    .navbar-nav>li:after {
        display: none;
    }

    .navbar-nav>li.active {
        border-bottom: none;
    }

    li a:hover,
    li.open>a:focus {
        color: #ffffff;
    }

    .nav>li>a:focus,
    .nav>li>a:hover {
        background-color: transparent;
    }

    .navbar-nav>li>a:before {
        display: none;
    }
}

/* Small Devices, Tablets */
@media only screen and (max-width: 991px) {
    .navbar.navbar--dark .navbar-nav>li>a {
        color: #ffffff;
    }
}

/* Large Devices, Wide Screens */
@media only screen and (min-width: 992px) and (max-width: 1200px) {
    .navbar-nav>li {
        margin-right: 16px;
    }
}

/* MENU DESPLEGABLE */
.dropdown-menu {
    background-color: #1c1c1cab;
    color: #f5f5f5;
    width: 250px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    padding: 0;
    margin: 0;
    border: none;
    font-family: 'Arial', sans-serif;
}

.dropdown-menu li {
    border-bottom: 1px solid #333;
}

.dropdown-menu li:last-child {
    border-bottom: none;
}

.dropdown-menu li a {
    color: #f5f5f5;
    text-decoration: none;
    display: block;
    padding: 12px 20px;
    transition: background-color 0.3s, color 0.3s;
}

.dropdown-menu li a:hover {
    background-color: #635f5fbe;
    color: #fff;
}

:root {
    --verde: #106B40;
    /* Define el tono de verde */
    --sombra: rgba(0, 0, 0, 0.2);
    /* Define el tono de la sombra */
}
