/* =========================================================
   PSICODEX - ESTILO NUEVO HEADER + MENÚ
   Añadir al final de /assets/css/custom.css
========================================================= */


/* ===============================
   BASE GENERAL
================================ */

body {
    background: #f4f7fb;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    color: #111111;
}

#body_bg {
    background: linear-gradient(
        90deg,
        #6f93b2 0%,
        #f4f7fb 11%,
        #f4f7fb 89%,
        #d6b7b7 100%
    );
    min-height: 100vh;
}

.psicodex-container {
    max-width: 1080px;
}


/* ===============================
   LIMPIEZA PLANTILLA ANTIGUA
================================ */

#container_header {
    display: none !important;
}

.primary-container-group,
.primary-container,
.primary-container-background,
#container_hornav {
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.primary-container-background {
    display: none !important;
}

.logo,
.site-slogan {
    display: none !important;
}


/* ===============================
   HEADER SUPERIOR
================================ */

.psicodex-header {
    background: #365f86;
    color: #ffffff;
}

.psicodex-header a {
    text-decoration: none;
}

.psicodex-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    font-size: 13px;
}

.psicodex-left {
    display: flex;
    align-items: center;
    gap: 18px;
}

.psicodex-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-weight: 600;
}

.psicodex-lang i {
    color: #cce5ff;
}

.psicodex-lang a {
    color: #ffffff;
    text-decoration: none;
}

.psicodex-lang a:hover {
    color: #d9ecff;
    text-decoration: none;
}


/* ===============================
   REDES SOCIALES HEADER
================================ */

.psicodex-social {
    list-style: none;
    display: flex;
    gap: 8px;
    padding: 0;
    margin: 0;
}

.psicodex-social li {
    margin: 0;
    padding: 0;
}

.psicodex-social a {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.psicodex-social a:hover {
    background: #ffffff;
    color: #365f86;
    text-decoration: none;
}


/* ===============================
   BOTONES SUPERIORES
================================ */

.psicodex-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.psicodex-action-link,
.psicodex-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.psicodex-action-link {
    color: #ffffff;
}

.psicodex-action-link:hover {
    color: #d9ecff;
    text-decoration: none;
}

.psicodex-action-btn {
    background: #ffffff;
    color: #2f6092;
    border-radius: 22px;
    padding: 8px 16px;
}

.psicodex-action-btn:hover {
    background: #e3edf7;
    color: #12385c;
    text-decoration: none;
}


/* ===============================
   LOGO Y MARCA
================================ */

.psicodex-brand {
    display: flex;
    align-items: center;
    padding: 24px 0 28px;
}

.psicodex-logo {
    margin-right: 28px;
}

.psicodex-logo img {
    max-width: 350px;
    max-height: 95px;
    height: auto;
    display: block;
}

.psicodex-brand-text {
    color: #ffffff;
}

.psicodex-name {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: 1px;
    line-height: 1;
    color: #ffffff;
}

.psicodex-slogan {
    font-size: 16px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #d9ecff;
    margin-top: 10px;
}


/* ===============================
   FRANJA HORARIO
================================ */

.psicodex-schedule {
    background: #3f3448;
    color: #ffffff;
    padding: 14px 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.psicodex-schedule i {
    color: #76b9e8;
    margin-right: 8px;
}


/* ===============================
   MENÚ PRINCIPAL
================================ */

.psicodex-nav {
    background: #ffffff !important;
    border-bottom: 1px solid #dce5ef;
    box-shadow: 0 6px 18px rgba(31, 63, 99, 0.10);
    margin: 0;
    padding: 0;
}

.psicodex-nav-inner {
    background: #ffffff !important;
    padding-left: 0;
    padding-right: 0;
}

.psicodex-nav .psicodex-container {
    background: #ffffff !important;
}


/* Quitar fondo gris antiguo del menú */

.psicodex-nav #container_hornav,
.psicodex-nav .hornav-block,
.psicodex-nav #hornav {
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
	hornav-block: height 50px!important;
}

.psicodex-nav #container_hornav {
    width: 100%;
}

.psicodex-nav #hornav {
    float: none !important;
    width: 100%;
}


/* UL principal */

.psicodex-nav #hornavmenu {
    float: none !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2px;
    width: 100%;
    margin: 0;
    padding: 0;
    background: #ffffff !important;
    list-style: none;
}


/* LI principal */

.psicodex-nav #hornavmenu > li {
    float: none !important;
    display: block;
    margin: 0;
    padding: 0;
    position: relative;
}


/* Enlaces principales */

.psicodex-nav #hornavmenu > li > a,
.psicodex-nav #hornavmenu > li > span {
    background: transparent !important;
    color: #12385c !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;

    display: block;
    padding: 19px 16px !important;

    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    text-decoration: none;
    cursor: pointer;

    transition: all 0.25s ease;
}


/* Hover menú principal */

.psicodex-nav #hornavmenu > li > a:hover,
.psicodex-nav #hornavmenu > li > span:hover,
.psicodex-nav #hornavmenu > li:hover > a,
.psicodex-nav #hornavmenu > li:hover > span {
    background: #e3edf7 !important;
    color: #063866 !important;
    text-decoration: none !important;
}


/* Item activo */

.psicodex-nav #hornavmenu > li.active > a,
.psicodex-nav #hornavmenu > li.active > span {
    background: #2f6092 !important;
    color: #ffffff !important;
}


/* ===============================
   SUBMENÚS
================================ */

.psicodex-nav #hornavmenu ul {
    background: #ffffff !important;
    border: none !important;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 10px 22px rgba(31, 63, 99, 0.16);
    padding: 10px 0 !important;
    margin: 0 !important;
    min-width: 260px;
    list-style: none;
}


/* Enlaces submenú */

.psicodex-nav #hornavmenu ul li {
    margin: 0;
    padding: 0;
}

.psicodex-nav #hornavmenu ul li a,
.psicodex-nav #hornavmenu ul li span {
    background: #ffffff !important;
    color: #12385c !important;
    padding: 11px 18px !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    border: none !important;
    box-shadow: none !important;
    display: block;
}

.psicodex-nav #hornavmenu ul li a:hover,
.psicodex-nav #hornavmenu ul li span:hover {
    background: #f1f5f9 !important;
    color: #063866 !important;
    text-decoration: none !important;
}


/* Submenús de segundo nivel */

.psicodex-nav #hornavmenu ul ul {
    border-radius: 10px;
}



/* Quitar posibles estilos antiguos tipo botón */

.psicodex-nav #hornavmenu .btn,
.psicodex-nav #hornavmenu .button,
.psicodex-nav #hornavmenu .but {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}


/* ===============================
   AJUSTES DE TEMPLATE ANTIGUO
================================ */

.no-padding {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.clear {
    clear: both;
}

.margin-top-15 {
    margin-top: 0 !important;
}

.portfolio-filter {
    margin: 0;
    padding: 0;
}


/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 991px) {

    .psicodex-brand {
        flex-direction: column;
        text-align: center;
        padding: 22px 0 24px;
    }

    .psicodex-logo {
        margin-right: 0;
        margin-bottom: 14px;
    }

    .psicodex-logo img {
        max-width: 280px;
    }

    .psicodex-name {
        font-size: 30px;
    }

    .psicodex-slogan {
        font-size: 13px;
    }

    .psicodex-nav #hornavmenu {
        display: block;
        text-align: left;
    }

    .psicodex-nav #hornavmenu > li {
        display: block;
        width: 100%;
    }

    .psicodex-nav #hornavmenu > li > a,
    .psicodex-nav #hornavmenu > li > span {
        padding: 14px 18px !important;
        border-bottom: 1px solid #edf2f7 !important;
    }

    .psicodex-nav #hornavmenu ul {
        position: static !important;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        background: #f8fbfd !important;
    }

    .psicodex-nav #hornavmenu ul li a,
    .psicodex-nav #hornavmenu ul li span {
        background: #f8fbfd !important;
        padding-left: 32px !important;
    }
}


@media (max-width: 767px) {

    .psicodex-topbar {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .psicodex-left {
        flex-direction: column;
        gap: 10px;
    }

    .psicodex-actions {
        flex-direction: column;
        gap: 8px;
    }

    .psicodex-logo img {
        max-width: 235px;
    }

    .psicodex-name {
        font-size: 26px;
    }

    .psicodex-slogan {
        font-size: 12px;
        line-height: 1.4;
    }

    .psicodex-schedule {
        text-align: center;
        font-size: 12px;
        padding: 12px 15px;
    }
}



/* Franja horario debajo del slider */

.psicodex-slider-horario {
    background: #3f3448;
}

.psicodex-horario-box {
    color: #ffffff;
    padding: 14px 24px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.psicodex-horario-box img {
    opacity: 0.9;
}


/* Responsive */

@media (max-width: 991px) {

    .psicodex-slide-bg {
        height: 380px;
    }

    .psicodex-slide-content {
        left: 38px;
        right: 38px;
        bottom: 45px;
        max-width: none;
    }

    .psicodex-slide-content h2 {
        font-size: 31px;
    }

    .psicodex-slide-subtitle {
        font-size: 16px;
    }
}

@media (max-width: 767px) {

    .psicodex-slider-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .psicodex-slide-bg {
        height: 360px;
    }

    .psicodex-slide-content {
        left: 24px;
        right: 24px;
        bottom: 36px;
    }

    .psicodex-slide-content h2 {
        font-size: 26px;
    }

    .psicodex-slide-subtitle {
        font-size: 15px;
        line-height: 1.55;
        padding: 15px 17px;
    }

    .psicodex-slide-btn {
        padding: 10px 20px;
    }

    .psicodex-slider-control {
        display: none;
    }

    .psicodex-horario-box {
        justify-content: center;
        text-align: center;
        font-size: 12px;
        padding: 13px 15px;
    }
}

/* Quitar espacio blanco antiguo del menú */
.psicodex-nav .hornav-block {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
}

/* Quitar altura heredada del contenedor de menú */
.psicodex-nav #hornav {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Quitar espacio del row antiguo */
.psicodex-nav .row {
    margin: 0 !important;
    padding: 0 !important;
}

/* Quitar espacio superior/inferior del bloque nav */
.psicodex-nav {
    padding: 0 !important;
    margin: 0 !important;
}

/* El menú no debe reservar altura extra */
.psicodex-nav #hornavmenu {
    margin: 0 !important;
    padding: 0 !important;
}

/* Ajuste del contenedor antiguo */
.psicodex-nav #container_hornav {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 auto !important;
    background: #ffffff !important;
}

/* =========================================================
   PSICODEX - SLIDER FULL WIDTH
   Añadir al final de /assets/css/custom.css
========================================================= */


/* ===============================
   SECCIÓN SLIDER
================================ */

.psicodex-slider-section {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #ffffff;
}

.psicodex-slider-full {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #ffffff;
}


/* ===============================
   CONTENEDOR SLIDER
================================ */

.psicodex-slider-container {
    max-width: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.psicodex-slider {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
}

.psicodex-slider-inner,
.psicodex-slider .carousel-inner {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #ffffff;
}

.psicodex-slider .item {
    width: 100%;
    margin: 0;
    padding: 0;
}


/* ===============================
   IMAGEN DEL SLIDE
================================ */

.psicodex-slide-bg {
    position: relative;
    width: 100%;
    height: 480px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}


/* Capa de color sobre la imagen */
.psicodex-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(6, 56, 102, 0.62) 0%,
        rgba(6, 56, 102, 0.38) 42%,
        rgba(255, 255, 255, 0.06) 100%
    );
}


/* ===============================
   TEXTO DEL SLIDE
================================ */

.psicodex-slide-content {
    position: absolute;
    left: calc((100vw - 1080px) / 2);
    bottom: 58px;
    max-width: 560px;
    color: #ffffff;
    z-index: 2;
}

.psicodex-slide-content h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    margin: 0 0 18px;
    text-shadow: 0 2px 7px rgba(0,0,0,0.35);
}

.psicodex-slide-subtitle {
    background: rgba(47, 96, 146, 0.74);
    color: #ffffff;
    font-size: 18px;
    line-height: 1.65;
    padding: 18px 24px;
    border-left: 4px solid #ffffff;
    margin-bottom: 22px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.18);
}

.psicodex-slide-subtitle p {
    margin-bottom: 0;
}

.psicodex-slide-subtitle strong,
.psicodex-slide-subtitle b {
    color: #ffffff;
}


/* ===============================
   BOTÓN DEL SLIDE
================================ */

.psicodex-slide-btn {
    display: inline-block;
    background: #ffffff;
    color: #12385c;
    border-radius: 24px;
    padding: 11px 24px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(0,0,0,0.18);
    transition: all 0.25s ease;
}

.psicodex-slide-btn:hover,
.psicodex-slide-btn:focus {
    background: #e3edf7;
    color: #063866;
    text-decoration: none;
}


/* ===============================
   INDICADORES
================================ */

.psicodex-slider-indicators {
    bottom: 18px;
}

.psicodex-slider-indicators li {
    width: 11px;
    height: 11px;
    margin: 0 4px;
    border: 2px solid #ffffff;
    background: transparent;
}

.psicodex-slider-indicators .active {
    width: 12px;
    height: 12px;
    margin: 0 4px;
    background: #ffffff;
}


/* ===============================
   CONTROLES LATERALES
================================ */

.psicodex-slider-control {
    width: 7%;
    background: none !important;
    opacity: 0.85;
    text-shadow: none;
}

.psicodex-slider-control:hover,
.psicodex-slider-control:focus {
    opacity: 1;
}

.psicodex-slider-control .glyphicon {
    background: rgba(6, 56, 102, 0.45);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    line-height: 44px;
    font-size: 20px;
}


/* ===============================
   FRANJA HORARIO BAJO SLIDER
================================ */

.psicodex-slider-horario {
    width: 100%;
    margin: 0;
    padding: 0;
    background: #3f3448;
}

.psicodex-slider-horario .psicodex-slider-container {
    max-width: none;
    width: 100%;
    padding-left: 0;
    padding-right: 0;
}

.psicodex-horario-box {
    max-width: 1080px;
    margin: 0 auto;
    color: #ffffff;
    padding: 14px 24px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}

.psicodex-horario-box img {
    opacity: 0.9;
}


/* ===============================
   EVITAR ESPACIOS HEREDADOS
================================ */

.psicodex-slider-section .container,
.psicodex-slider-section .row,
.psicodex-slider-section .col-md-12,
.psicodex-slider-section .no-padding {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.psicodex-slider-section .carousel {
    margin: 0 !important;
}


/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 1120px) {

    .psicodex-slide-content {
        left: 40px;
        right: 40px;
        max-width: 560px;
    }
}

@media (max-width: 991px) {

    .psicodex-slide-bg {
        height: 400px;
    }

    .psicodex-slide-content {
        left: 38px;
        right: 38px;
        bottom: 45px;
        max-width: none;
    }

    .psicodex-slide-content h2 {
        font-size: 32px;
    }

    .psicodex-slide-subtitle {
        font-size: 16px;
        line-height: 1.6;
    }
}

@media (max-width: 767px) {

    .psicodex-slide-bg {
        height: 360px;
    }

    .psicodex-slide-content {
        left: 24px;
        right: 24px;
        bottom: 36px;
    }

    .psicodex-slide-content h2 {
        font-size: 26px;
    }

    .psicodex-slide-subtitle {
        font-size: 15px;
        line-height: 1.55;
        padding: 15px 17px;
    }

    .psicodex-slide-btn {
        padding: 10px 20px;
    }

    .psicodex-slider-control {
        display: none;
    }

    .psicodex-horario-box {
        justify-content: center;
        text-align: center;
        font-size: 12px;
        padding: 13px 15px;
    }
}
/* =========================================================
   PSICODEX - AGENDA HOME
========================================================= */

.psicodex-agenda-home {
    background: #f4f7fb;
    padding: 60px 0;
}

.psicodex-agenda-home .psicodex-container {
    max-width: 1080px;
}


/* Título sección */

.psicodex-section-header {
    text-align: center;
    margin-bottom: 38px;
}

.psicodex-section-header h2 {
    color: #063866;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 700;
    margin: 0 0 10px;
}

.psicodex-section-header p {
    color: #4b5563;
    font-size: 16px;
    margin: 0;
}


/* Lista */

.psicodex-agenda-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}


/* Tarjeta */

.psicodex-agenda-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(31, 63, 99, 0.10);
    border: 1px solid #dce5ef;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    transition: all 0.25s ease;
}

.psicodex-agenda-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(31, 63, 99, 0.16);
}


/* Fecha */

.psicodex-agenda-date {
    width: 105px;
    min-width: 105px;
    background: #2f6092;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: Georgia, "Times New Roman", serif;
    text-align: center;
    padding: 18px 10px;
}

.psicodex-agenda-day {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
}

.psicodex-agenda-month {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 6px;
}

.psicodex-agenda-year {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 3px;
}


/* Imagen */

.psicodex-agenda-image {
    width: 190px;
    min-width: 190px;
    background: #e3edf7;
    overflow: hidden;
}

.psicodex-agenda-image img {
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
    display: block;
}


/* Contenido */

.psicodex-agenda-content {
    padding: 24px 28px;
    flex: 1;
}

.psicodex-agenda-weekday {
    color: #2f6092;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 9px;
}

.psicodex-agenda-weekday i {
    margin-right: 6px;
}

.psicodex-agenda-content h3 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.25;
}

.psicodex-agenda-content h3 a {
    color: #063866;
    text-decoration: none;
}

.psicodex-agenda-content h3 a:hover {
    color: #2f6092;
    text-decoration: none;
}

.psicodex-agenda-summary {
    color: #222222;
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 18px;
}

.psicodex-agenda-summary p {
    margin-bottom: 0;
}


/* Botones */

.psicodex-agenda-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.psicodex-agenda-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2f6092;
    color: #ffffff;
    border-radius: 24px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid #2f6092;
    transition: all 0.25s ease;
}

.psicodex-agenda-btn:hover,
.psicodex-agenda-btn:focus {
    background: #12385c;
    border-color: #12385c;
    color: #ffffff;
    text-decoration: none;
}

.psicodex-agenda-btn-outline {
    background: #ffffff;
    color: #2f6092;
}

.psicodex-agenda-btn-outline:hover,
.psicodex-agenda-btn-outline:focus {
    background: #e3edf7;
    color: #12385c;
    border-color: #2f6092;
}


/* Responsive */

@media (max-width: 991px) {

    .psicodex-agenda-card {
        align-items: stretch;
    }

    .psicodex-agenda-image {
        width: 160px;
        min-width: 160px;
    }

    .psicodex-agenda-content h3 {
        font-size: 21px;
    }
}

@media (max-width: 767px) {

    .psicodex-agenda-home {
        padding: 45px 0;
    }

    .psicodex-section-header h2 {
        font-size: 28px;
    }

    .psicodex-agenda-card {
        flex-direction: column;
    }

    .psicodex-agenda-date {
        width: 100%;
        min-width: 0;
        flex-direction: row;
        gap: 8px;
        justify-content: flex-start;
        padding: 14px 20px;
    }

    .psicodex-agenda-day {
        font-size: 34px;
    }

    .psicodex-agenda-month,
    .psicodex-agenda-year {
        margin-top: 0;
    }

    .psicodex-agenda-image {
        width: 100%;
        min-width: 0;
        height: 190px;
    }

    .psicodex-agenda-image img {
        min-height: 190px;
    }

    .psicodex-agenda-content {
        padding: 22px 20px;
    }

    .psicodex-agenda-content h3 {
        font-size: 20px;
    }

    .psicodex-agenda-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .psicodex-agenda-btn {
        width: 100%;
    }
}
/* =========================================================
   PSICODEX - BLOG / NOTICIAS HOME
========================================================= */

.psicodex-blog-home {
    background: #ffffff;
    padding: 60px 0;
}

.psicodex-blog-home .psicodex-container {
    max-width: 1080px;
}


/* Título sección */

.psicodex-section-header {
    text-align: center;
    margin-bottom: 38px;
}

.psicodex-section-header h2 {
    color: #063866;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 700;
    margin: 0 0 10px;
}

.psicodex-section-header p {
    color: #4b5563;
    font-size: 16px;
    margin: 0;
}


/* Tarjeta blog */

.psicodex-blog-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #dce5ef;
    box-shadow: 0 8px 22px rgba(31, 63, 99, 0.10);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.psicodex-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(31, 63, 99, 0.16);
}


/* Imagen */

.psicodex-blog-image {
    display: block;
    width: 100%;
    height: 205px;
    background: #e3edf7;
    overflow: hidden;
    text-decoration: none;
}

.psicodex-blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.psicodex-blog-card:hover .psicodex-blog-image img {
    transform: scale(1.04);
}

.psicodex-blog-image-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2f6092;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 700;
}


/* Contenido */

.psicodex-blog-content {
    padding: 25px 26px 28px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.psicodex-blog-author {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: #2f6092;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.psicodex-blog-author i {
    margin-right: 5px;
}

.psicodex-blog-content h3 {
    margin: 0 0 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
}

.psicodex-blog-content h3 a {
    color: #063866;
    text-decoration: none;
}

.psicodex-blog-content h3 a:hover {
    color: #2f6092;
    text-decoration: none;
}

.psicodex-blog-summary {
    color: #222222;
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 18px;
    flex-grow: 1;
}

.psicodex-blog-summary p {
    margin-bottom: 0;
}

.psicodex-blog-summary a {
    color: #222222;
    text-decoration: none;
}

.psicodex-blog-summary a:hover {
    color: #063866;
}


/* Categorías */

.psicodex-blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.psicodex-blog-tag {
    display: inline-block;
    background: #f1f5f9;
    color: #12385c;
    border-radius: 18px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.psicodex-blog-tag:hover {
    background: #e3edf7;
    color: #063866;
    text-decoration: none;
}


/* Botón */

.psicodex-blog-actions {
    margin-top: auto;
}

.psicodex-blog-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2f6092;
    color: #ffffff;
    border-radius: 24px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid #2f6092;
    transition: all 0.25s ease;
}

.psicodex-blog-btn:hover,
.psicodex-blog-btn:focus {
    background: #12385c;
    border-color: #12385c;
    color: #ffffff;
    text-decoration: none;
}


/* Responsive */

@media (max-width: 991px) {

    .psicodex-blog-image {
        height: 190px;
    }

    .psicodex-blog-content h3 {
        font-size: 21px;
    }
}

@media (max-width: 767px) {

    .psicodex-blog-home {
        padding: 45px 0;
    }

    .psicodex-section-header h2 {
        font-size: 28px;
    }

    .psicodex-section-header p {
        font-size: 15px;
    }

    .psicodex-blog-image {
        height: 210px;
    }

    .psicodex-blog-content {
        padding: 22px 20px 24px;
    }

    .psicodex-blog-content h3 {
        font-size: 20px;
    }

    .psicodex-blog-btn {
        width: 100%;
    }
}
/* =========================================================
   PSICODEX - LIBROS / PUBLICACIONES HOME
========================================================= */

.psicodex-libros-home {
    background: #f4f7fb;
    padding: 60px 0;
}

.psicodex-libros-home .psicodex-container {
    max-width: 1080px;
}


/* Cabecera sección */

.psicodex-section-header {
    text-align: center;
    margin-bottom: 38px;
}

.psicodex-section-header h2 {
    color: #063866;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 700;
    margin: 0 0 10px;
}

.psicodex-section-header p {
    color: #4b5563;
    font-size: 16px;
    margin: 0;
}


/* Carrusel */

.psicodex-libros-carousel {
    position: relative;
    background: transparent;
}

.psicodex-libros-carousel .carousel-inner {
    padding: 5px 45px 15px;
}

.psicodex-libros-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.psicodex-libros-row > div {
    margin-bottom: 25px;
}


/* Tarjeta libro */

.psicodex-libro-card {
    background: #ffffff;
    border-radius: 14px;
    border: 1px solid #dce5ef;
    box-shadow: 0 8px 20px rgba(31, 63, 99, 0.10);
    overflow: hidden;
    height: 100%;
    transition: all 0.25s ease;
}

.psicodex-libro-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 26px rgba(31, 63, 99, 0.16);
}


/* Imagen */

.psicodex-libro-image {
    display: block;
    width: 100%;
    height: 210px;
    background: #e3edf7;
    overflow: hidden;
    text-decoration: none;
}

.psicodex-libro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.psicodex-libro-card:hover .psicodex-libro-image img {
    transform: scale(1.04);
}

.psicodex-libro-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e3edf7, #ffffff);
    color: #2f6092;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 700;
}


/* Texto */

.psicodex-libro-content {
    padding: 16px 14px 18px;
    text-align: center;
}

.psicodex-libro-content h3 {
    margin: 0 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    min-height: 40px;
}

.psicodex-libro-content h3 a {
    color: #063866;
    text-decoration: none;
}

.psicodex-libro-content h3 a:hover {
    color: #2f6092;
    text-decoration: none;
}

.psicodex-libro-subtitle {
    color: #4b5563;
    font-size: 13px;
    line-height: 1.45;
    min-height: 36px;
}


/* Controles */

.psicodex-libros-control {
    width: 35px;
    background: none !important;
    opacity: 1;
    text-shadow: none;
}

.psicodex-libros-control .glyphicon {
    background: #2f6092;
    color: #ffffff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    line-height: 38px;
    font-size: 17px;
    box-shadow: 0 6px 14px rgba(31, 63, 99, 0.18);
}

.psicodex-libros-control:hover .glyphicon {
    background: #12385c;
}


/* Responsive */

@media (max-width: 991px) {

    .psicodex-libro-image {
        height: 220px;
    }

    .psicodex-libros-carousel .carousel-inner {
        padding-left: 35px;
        padding-right: 35px;
    }
}

@media (max-width: 767px) {

    .psicodex-libros-home {
        padding: 45px 0;
    }

    .psicodex-section-header h2 {
        font-size: 28px;
    }

    .psicodex-libros-carousel .carousel-inner {
        padding-left: 15px;
        padding-right: 15px;
    }

    .psicodex-libro-image {
        height: 210px;
    }

    .psicodex-libros-control {
        display: none;
    }
}

@media (max-width: 480px) {

    .psicodex-libro-image {
        height: 190px;
    }

    .psicodex-libro-content h3 {
        font-size: 14px;
    }

    .psicodex-libro-subtitle {
        font-size: 12px;
    }
}
/* =========================================================
   PSICODEX - FOOTER NUEVO
========================================================= */

.psicodex-footer {
    background: #365f86;
    color: #ffffff;
    margin-top: 0;
}

.psicodex-footer .psicodex-container {
    max-width: 1080px;
}


/* Bloque principal */

.psicodex-footer > .psicodex-container {
    padding-top: 52px;
    padding-bottom: 42px;
}

.psicodex-footer-block {
    margin-bottom: 25px;
}

.psicodex-footer-block h3 {
    color: #ffffff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 20px;
}

.psicodex-footer-text {
    color: #e9f2fb;
    font-size: 14px;
    line-height: 1.8;
}

.psicodex-footer-text p {
    margin-bottom: 14px;
}

.psicodex-footer a {
    color: #ffffff;
    text-decoration: none;
}

.psicodex-footer a:hover {
    color: #d9ecff;
    text-decoration: none;
}


/* Contacto */

.psicodex-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.psicodex-contact-list li {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    color: #e9f2fb;
    font-size: 14px;
    line-height: 1.65;
}

.psicodex-contact-list i {
    width: 22px;
    min-width: 22px;
    height: 22px;
    border-radius: 50%;
    background: rgba(255,255,255,0.16);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    margin-top: 2px;
}


/* Menú footer */

.psicodex-footer-menu {
    background: #3f3448;
    padding: 0;
}

.psicodex-footer-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.psicodex-footer-menu li {
    margin: 0;
}

.psicodex-footer-menu a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    padding: 17px 18px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.psicodex-footer-menu i {
    color: #76b9e8;
}

.psicodex-footer-menu a:hover {
    background: rgba(255,255,255,0.08);
    color: #ffffff;
    text-decoration: none;
}


/* Copyright */

.psicodex-copyright {
    background: #2f5378;
    padding: 18px 0;
}

.psicodex-copyright p {
    margin: 0;
    color: #d9ecff;
    font-size: 13px;
}


/* Redes footer */

.psicodex-footer-social {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.psicodex-footer-social li {
    margin: 0;
    padding: 0;
}

.psicodex-footer-social a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.16);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.25s ease;
}

.psicodex-footer-social a:hover {
    background: #ffffff;
    color: #365f86;
}


/* Limpieza footer antiguo */

#base,
#footermenu,
#copyright {
    background: transparent;
    border: none;
    box-shadow: none;
}


/* Responsive */

@media (max-width: 767px) {

    .psicodex-footer > .psicodex-container {
        padding-top: 42px;
        padding-bottom: 30px;
    }

    .psicodex-footer-block h3 {
        font-size: 22px;
    }

    .psicodex-footer-menu ul {
        flex-direction: column;
        align-items: stretch;
    }

    .psicodex-footer-menu a {
        justify-content: center;
        padding: 14px 15px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .psicodex-copyright {
        text-align: center;
    }

    .psicodex-footer-social {
        justify-content: center;
        margin-top: 14px;
    }
}
/* =========================================================
   PSICODEX - COOKIES MANUAL
========================================================= */

.psicodex-cookie-bar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    background: rgba(18, 56, 92, 0.96);
    color: #ffffff;
    box-shadow: 0 -6px 20px rgba(0,0,0,0.18);
}

.psicodex-cookie-box {
    max-width: 1080px;
    margin: 0 auto;
    padding: 18px 20px;
}

.psicodex-cookie-inner {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.psicodex-cookie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: #12385c !important;
    border-radius: 20px;
    padding: 7px 18px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    margin-left: auto;
}

.psicodex-cookie-btn:hover {
    background: #e3edf7;
    color: #063866 !important;
}

.psicodex-cookie-link {
    color: #d9ecff !important;
    font-weight: 700;
    text-decoration: underline;
}

.psicodex-cookie-link:hover {
    color: #ffffff !important;
}

@media (max-width: 767px) {
    .psicodex-cookie-inner {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .psicodex-cookie-btn {
        margin-left: 0;
    }
}
/* =========================================================
   PSICODEX - PÁGINA INTERIOR GENERAL
========================================================= */

.psicodex-page {
    background: #f4f7fb;
    padding: 50px 0 65px;
}

.psicodex-page .psicodex-container {
    max-width: 1180px;
}


/* ===============================
   CONTENIDO PRINCIPAL
================================ */

.psicodex-page-content {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #dce5ef;
    box-shadow: 0 8px 22px rgba(31, 63, 99, 0.10);
    padding: 40px 42px;
}

.psicodex-page-header {
    margin-bottom: 30px;
    padding-bottom: 22px;
    border-bottom: 1px solid #dce5ef;
}

.psicodex-page-header h1 {
    color: #063866;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.psicodex-text-content {
    color: #111111;
    font-size: 15px;
    line-height: 1.85;
}

.psicodex-text-content p {
    margin-bottom: 18px;
}

.psicodex-text-content h2,
.psicodex-text-content h3,
.psicodex-text-content h4 {
    color: #063866;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
    margin-top: 30px;
    margin-bottom: 16px;
}

.psicodex-text-content h2 {
    font-size: 26px;
}

.psicodex-text-content h3 {
    font-size: 22px;
}

.psicodex-text-content h4 {
    font-size: 19px;
}

.psicodex-text-content strong,
.psicodex-text-content b {
    color: #063866;
}

.psicodex-text-content a {
    color: #2f6092;
    font-weight: 700;
    text-decoration: none;
}

.psicodex-text-content a:hover {
    color: #12385c;
    text-decoration: underline;
}

.psicodex-text-content ul,
.psicodex-text-content ol {
    padding-left: 24px;
    margin-bottom: 22px;
}

.psicodex-text-content li {
    margin-bottom: 9px;
}

.psicodex-text-content img {
    max-width: 100%;
    height: auto;
}

.psicodex-text-content table {
    width: 100%;
    max-width: 100%;
    margin-bottom: 24px;
    border-collapse: collapse;
}

.psicodex-text-content table td,
.psicodex-text-content table th {
    padding: 10px;
    border: 1px solid #dce5ef;
}


/* ===============================
   ASIDE DERECHA
================================ */

.psicodex-page-aside {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #dce5ef;
    box-shadow: 0 8px 22px rgba(31, 63, 99, 0.10);
    padding: 26px;
    top: 25px;
}

.psicodex-page-aside h3 {
    color: #063866;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    font-weight: 700;
    margin: 0 0 22px;
    padding-bottom: 15px;
    border-bottom: 1px solid #dce5ef;
}


/* Menú lateral */

.psicodex-aside-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.psicodex-aside-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #f1f5f9;
    color: #12385c;
    border-radius: 9px;
    padding: 13px 15px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none;
    border-left: 5px solid transparent;
    transition: all 0.25s ease;
}

.psicodex-aside-link i {
    color: #2f6092;
    margin-top: 3px;
    font-size: 13px;
}

.psicodex-aside-link:hover {
    background: #e3edf7;
    color: #063866;
    border-left-color: #2f6092;
    text-decoration: none;
}

.psicodex-aside-link.active {
    background: #2f6092;
    color: #ffffff;
    border-left-color: #063866;
}

.psicodex-aside-link.active i {
    color: #ffffff;
}


/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 991px) {

    .psicodex-page {
        padding: 38px 0 50px;
    }

    .psicodex-page-content {
        padding: 32px 28px;
    }

    .psicodex-page-header h1 {
        font-size: 29px;
    }

    .psicodex-page-aside {
        margin-top: 30px;
        position: static;
    }
}

@media (max-width: 575px) {

    .psicodex-page-content {
        padding: 26px 20px;
    }

    .psicodex-page-header h1 {
        font-size: 25px;
    }

    .psicodex-text-content {
        font-size: 15px;
        line-height: 1.75;
    }

    .psicodex-page-aside {
        padding: 22px 20px;
    }
}
/* =========================================================
   PSICODEX - HERO PÁGINA INTERIOR
========================================================= */

.psicodex-hero-page {
    width: 100%;
    background: #ffffff;
    margin: 0;
    padding: 0;
}

.psicodex-hero-inner {
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: #e3edf7;
    position: relative;
}

/* Imagen */

.psicodex-hero-image {
    width: 100%;
    height: 320px;
    overflow: hidden;
    position: relative;
}

.psicodex-hero-image img {
    width: 100% !important;
    height: 320px !important;
    object-fit: cover;
    object-position: center center;
    display: block;
}

/* Si show_image_resized mete enlaces o divs */
.psicodex-hero-image a,
.psicodex-hero-image div {
    width: 100%;
    height: 100%;
}

/* Mapa */

.psicodex-hero-map {
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: #e3edf7;
}

.psicodex-hero-map iframe {
    width: 100%;
    height: 320px;
    display: block;
    border: 0;
    filter: grayscale(12%);
}

/* Franja inferior */

.psicodex-hero-caption {
    background: #3f3448;
    color: #ffffff;
    padding: 14px 0;
}

.psicodex-hero-caption span {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #ffffff;
}

/* Responsive */

@media (max-width: 991px) {

    .psicodex-hero-inner,
    .psicodex-hero-image,
    .psicodex-hero-image img,
    .psicodex-hero-map,
    .psicodex-hero-map iframe {
        height: 280px !important;
    }

    .psicodex-hero-caption span {
        font-size: 13px;
    }
}

@media (max-width: 767px) {

    .psicodex-hero-inner,
    .psicodex-hero-image,
    .psicodex-hero-image img,
    .psicodex-hero-map,
    .psicodex-hero-map iframe {
        height: 230px !important;
    }

    .psicodex-hero-caption {
        text-align: center;
        padding: 12px 15px;
    }

    .psicodex-hero-caption span {
        font-size: 12px;
        line-height: 1.45;
    }
}

	
	/* ===============================
   DETALLE UNIDAD
================================ */

.unidad-detalle {
    background: #f4f7fb;
    padding-top: 35px;
    padding-bottom: 60px;
}

/* Contenedor general */
.unidad-container {
    max-width: 1180px;
    padding-left: 15px;
    padding-right: 15px;
}

/* ===============================
   CONTENIDO PRINCIPAL
================================ */

.unidad-content {
    background: #ffffff;
    border-radius: 14px;
    padding: 36px 40px;
    box-shadow: 0 8px 22px rgba(31, 63, 99, 0.10);
}

.unidad-header {
    margin-bottom: 35px;
}

.unidad-header h1 {
    color: #063866;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.20;
    margin-bottom: 26px;
}

/* Texto destacado inicial */
.unidad-intro {
    color: #111111;
    font-size: 16px;
    line-height: 1.85;
    border-left: 4px solid #2f6092;
    padding-left: 22px;
}

.unidad-intro p {
    margin-bottom: 16px;
}

.unidad-intro strong,
.unidad-intro b {
    color: #063866;
}

/* ===============================
   SECCIONES
================================ */

.unidad-section {
    margin-top: 42px;
    padding-top: 34px;
    border-top: 1px solid #dce5ef;
}

.unidad-section h2 {
    color: #063866;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 22px;
}

.unidad-section h2::after {
    content: "";
    display: block;
    width: 62px;
    height: 3px;
    background: #2f6092;
    margin-top: 11px;
}

.unidad-section-content {
    color: #111111;
    font-size: 15px;
    line-height: 1.85;
}

.unidad-section-content p {
    margin-bottom: 18px;
}

.unidad-section-content strong,
.unidad-section-content b {
    color: #063866;
}

.unidad-section-content ul,
.unidad-section-content ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.unidad-section-content li {
    margin-bottom: 10px;
}

/* ===============================
   ASIDE DERECHA
================================ */

.unidad-aside {
    background: #ffffff;
    border-radius: 14px;
    padding: 26px 28px;
    box-shadow: 0 8px 22px rgba(31, 63, 99, 0.10);
    top: 25px;
}

.unidad-aside h3 {
    color: #063866;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 22px;
}

/* Menú lateral */
.unidad-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.unidad-menu-item {
    display: block;
    padding: 14px 18px;
    border-radius: 7px;
    background: #f1f5f9;
    color: #063866;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    text-decoration: none;
    border-left: 5px solid transparent;
    transition: all 0.25s ease;
}

.unidad-menu-item:hover {
    background: #e3edf7;
    color: #063866;
    border-left-color: #2f6092;
    text-decoration: none;
}

.unidad-menu-item.active {
    background: #32689b;
    color: #ffffff;
    border-left-color: #063866;
}

/* ===============================
   AJUSTE BOOTSTRAP
================================ */

.unidad-detalle .row {
    margin-left: -10px;
    margin-right: -10px;
}

.unidad-detalle .row > div,
.unidad-detalle .row > aside {
    padding-left: 10px;
    padding-right: 10px;
}

/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 1199px) {
    .unidad-container {
        max-width: 1060px;
    }

    .unidad-content {
        padding: 34px 34px;
    }

    .unidad-header h1 {
        font-size: 31px;
    }
}

@media (max-width: 991px) {
    .unidad-detalle {
        padding-top: 30px;
    }

    .unidad-content {
        padding: 30px 26px;
    }

    .unidad-header h1 {
        font-size: 28px;
    }

    .unidad-aside {
        margin-top: 30px;
        position: static;
    }
}

@media (max-width: 575px) {
    .unidad-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .unidad-content {
        padding: 26px 20px;
    }

    .unidad-header h1 {
        font-size: 25px;
    }

    .unidad-intro {
        padding-left: 16px;
        font-size: 15px;
    }

    .unidad-section h2 {
        font-size: 22px;
    }

    .unidad-aside {
        padding: 22px 20px;
    }
}


    .titulo-unidades {
        text-align: center;
        color: #1f3f63;
        font-family: Georgia, 'Times New Roman', serif;
        margin: 30px 0 10px;
        font-size: 28px;
        font-weight: 500;
    }

    .linea-titulo {
        width: 65%;
        margin: 0 auto 35px;
        border-top: 1px solid #cfd8e3;
    }

    .unidad-card {
       background: #e6f0fb;
        border-radius: 18px;
        overflow: hidden;
        border: 1px solid #dbe4ef;
        box-shadow: 0 8px 22px rgba(31, 63, 99, 0.12);
        transition: all 0.3s ease;
        height: 100%;
        display: flex;
        flex-direction: column;
		 margin-bottom: 20px;
    }

    .unidad-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 30px rgba(31, 63, 99, 0.20);
    }

    .unidad-img {
        height: 135px;
        background-size: cover;
        background-position: center;
        position: relative;
    }

    .unidad-img::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to bottom,
            rgba(255,255,255,0.05),
            rgba(31,63,99,0.35)
        );
    }

    .unidad-icono {
        width: 54px;
        height: 54px;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.5);
        border: 3px solid #e6f0fb;
        color: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 26px;
        margin: -27px auto 12px;
        position: relative;
        z-index: 2;
        box-shadow: 0 5px 14px rgba(0,0,0,0.12);
    }

    .unidad-body {
        padding: 0 22px 22px;
        text-align: center;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
	 
    }

    .unidad-body h3 {
        color: #1f3f63;
        font-size: 20px;
        font-weight: 700;
        line-height: 1.25;
        margin-bottom: 14px;
        min-height: 45px;
    }

    .unidad-body p {
        color: #374151;
        font-size: 14px;
        line-height: 1.7;
        margin-bottom: 22px;
        flex-grow: 1;
    }

    .unidad-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        border-radius: 50%;
        background: #2f5f8f;
        color: #ffffff;
        font-size: 24px;
        text-decoration: none;
        margin: 0 auto;
        transition: all 0.3s ease;
    }

    .unidad-btn:hover {
        background: #17446e;
        color: #ffffff;
        transform: rotate(90deg);
    }
	
/* =========================================================
   PSICODEX - EQUIPO PROFESIONAL
========================================================= */

.psicodex-equipo-page {
    background: #f4f7fb;
    padding: 55px 0 70px;
}

.psicodex-equipo-page .psicodex-container {
    max-width: 1180px;
}


/* Cabecera */

.psicodex-equipo-page .psicodex-section-header {
    text-align: center;
    margin-bottom: 45px;
}

.psicodex-equipo-page .psicodex-section-header h1 {
    color: #063866;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    font-weight: 700;
    margin: 0 0 12px;
}

.psicodex-equipo-page .psicodex-section-header p {
    color: #4b5563;
    font-size: 16px;
    margin: 0;
}


/* Grupo */

.psicodex-equipo-grupo {
    margin-bottom: 55px;
}

.psicodex-equipo-grupo-header {
    margin-bottom: 28px;
    border-bottom: 1px solid #dce5ef;
    padding-bottom: 14px;
}

.psicodex-equipo-grupo-header h2 {
    color: #063866;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    text-align: right;
}

.psicodex-equipo-grupo-header h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    background: #2f6092;
    margin-top: 10px;
    margin-left: auto;
}

.psicodex-equipo-row {
    display: flex;
    flex-wrap: wrap;
}

.psicodex-equipo-row > div {
    margin-bottom: 30px;
}


/* Tarjeta profesional */

.psicodex-prof-card {
    background: #ffffff;
    border: 1px solid #dce5ef;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(31, 63, 99, 0.10);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.25s ease;
}

.psicodex-prof-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(31, 63, 99, 0.16);
}


/* Imagen */

.psicodex-prof-image {
    display: block;
    width: 100%;
    height: 260px;
    background: #e3edf7;
    overflow: hidden;
    text-decoration: none;
}

.psicodex-prof-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.35s ease;
}

.psicodex-prof-card:hover .psicodex-prof-image img {
    transform: scale(1.04);
}

.psicodex-prof-placeholder {
    width: 100%;
    height: 100%;
    color: #2f6092;
    background: linear-gradient(135deg, #e3edf7, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 54px;
}


/* Contenido */

.psicodex-prof-content {
    padding: 22px 20px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.psicodex-prof-content h3 {
    margin: 0 0 10px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.psicodex-prof-content h3 a {
    color: #063866;
    text-decoration: none;
}

.psicodex-prof-content h3 a:hover {
    color: #2f6092;
    text-decoration: none;
}

.psicodex-prof-subtitle {
    color: #2f6092;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 12px;
}

.psicodex-prof-summary {
    color: #333333;
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 18px;
    flex-grow: 1;
}

.psicodex-prof-summary p {
    margin-bottom: 0;
}


/* Botón */

.psicodex-prof-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2f6092;
    color: #ffffff;
    border-radius: 24px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid #2f6092;
    margin-top: auto;
    transition: all 0.25s ease;
}

.psicodex-prof-btn:hover,
.psicodex-prof-btn:focus {
    background: #12385c;
    border-color: #12385c;
    color: #ffffff;
    text-decoration: none;
}


/* Compatibilidad si mantienes inc_profesionales_fixa.cfm */

.psicodex-equipo-page .person-details {
    margin-bottom: 30px;
}

.psicodex-equipo-page .person-details figure {
    background: #ffffff;
    border: 1px solid #dce5ef;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(31, 63, 99, 0.10);
    overflow: hidden;
    padding: 0;
    transition: all 0.25s ease;
}

.psicodex-equipo-page .person-details figure:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(31, 63, 99, 0.16);
}

.psicodex-equipo-page .person-details img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    object-position: center top;
}

.psicodex-equipo-page .person-details figcaption,
.psicodex-equipo-page .person-details-icons {
    padding: 18px 16px;
    text-align: center;
}


/* Responsive */

@media (max-width: 991px) {
    .psicodex-equipo-page {
        padding: 45px 0 55px;
    }

    .psicodex-equipo-page .psicodex-section-header h1 {
        font-size: 32px;
    }

    .psicodex-equipo-grupo-header h2 {
        font-size: 25px;
        text-align: left;
    }

    .psicodex-equipo-grupo-header h2::after {
        margin-left: 0;
    }
}

@media (max-width: 767px) {
    .psicodex-equipo-page .psicodex-section-header h1 {
        font-size: 28px;
    }

    .psicodex-prof-image {
        height: 280px;
    }
}
.psicodex-prof-actions {
    display: flex;
    gap: 8px;
    width: 100%;
    margin-top: auto;
}

.psicodex-prof-btn-half {
    flex: 1;
    min-width: 0;
    padding: 9px 10px;
    text-align: center;
    font-size: 13px;
}

.psicodex-prof-btn-outline {
    background: #ffffff;
    color: #2f6092;
}

.psicodex-prof-btn-outline:hover,
.psicodex-prof-btn-outline:focus {
    background: #e3edf7;
    color: #12385c;
    border-color: #2f6092;
}
/* =========================================================
   PSICODEX - DETALLE PROFESIONAL
========================================================= */

.psicodex-prof-detail-page {
    background: #f4f7fb;
    padding: 55px 0 70px;
}

.psicodex-prof-detail-page .psicodex-container {
    max-width: 1080px;
}

.psicodex-prof-detail-card {
    background: #ffffff;
    border: 1px solid #dce5ef;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(31, 63, 99, 0.10);
    padding: 38px;
}


/* ASIDE IZQUIERDA */

.psicodex-prof-detail-aside {
    background: #f8fbfd;
    border: 1px solid #dce5ef;
    border-radius: 16px;
    padding: 22px;
    text-align: center;
}

.psicodex-prof-detail-category {
    background: #2f6092;
    color: #ffffff;
    border-radius: 22px;
    display: inline-block;
    padding: 7px 16px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 18px;
}

.psicodex-prof-detail-image {
    background: #e3edf7;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 22px;
}

.psicodex-prof-detail-image img {
    width: 100% !important;
    height: auto !important;
    display: block;
}

.psicodex-prof-detail-placeholder {
    height: 320px;
    background: linear-gradient(135deg, #e3edf7, #ffffff);
    color: #2f6092;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
}

.psicodex-prof-detail-cita {
    width: 100%;
    justify-content: center;
    text-align: center;
}


/* CONTENIDO DERECHA */

.psicodex-prof-detail-content {
    padding: 4px 0 0;
}

.psicodex-prof-detail-header {
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dce5ef;
}

.psicodex-prof-detail-header h1 {
    color: #063866;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 10px;
}

.psicodex-prof-detail-subtitle {
    color: #2f6092;
    font-size: 16px;
    font-weight: 700;
}


/* BOTÓN SECUNDARIO */

.psicodex-prof-detail-actions {
    margin-top: 34px;
    padding-top: 26px;
    border-top: 1px solid #dce5ef;
}

.psicodex-secondary-btn {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #ffffff;
    color: #2f6092;
    border: 2px solid #2f6092;
    border-radius: 26px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s ease;
}

.psicodex-secondary-btn:hover,
.psicodex-secondary-btn:focus {
    background: #e3edf7;
    color: #12385c;
    border-color: #12385c;
    text-decoration: none;
}


/* RESPONSIVE */

@media (max-width: 991px) {
    .psicodex-prof-detail-page {
        padding: 42px 0 55px;
    }

    .psicodex-prof-detail-card {
        padding: 28px;
    }

    .psicodex-prof-detail-header h1 {
        font-size: 31px;
    }
}

@media (max-width: 767px) {
    .psicodex-prof-detail-card {
        padding: 22px;
    }

    .psicodex-prof-detail-aside {
        margin-bottom: 24px;
    }

    .psicodex-prof-detail-header h1 {
        font-size: 27px;
    }

    .psicodex-secondary-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}/* =========================================================
   PSICODEX - DETALLE AGENDA
========================================================= */

.psicodex-agenda-detail-page {
    background: #f4f7fb;
    padding: 55px 0 70px;
}

.psicodex-agenda-detail-page .psicodex-container {
    max-width: 1080px;
}

.psicodex-agenda-detail-card {
    background: #ffffff;
    border: 1px solid #dce5ef;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(31, 63, 99, 0.10);
    padding: 38px;
}


/* CABECERA */

.psicodex-agenda-detail-header {
    display: flex;
    align-items: stretch;
    gap: 24px;
    margin-bottom: 30px;
    padding-bottom: 26px;
    border-bottom: 1px solid #dce5ef;
}

.psicodex-agenda-detail-date {
    width: 105px;
    min-width: 105px;
    background: #2f6092;
    color: #ffffff;
    border-radius: 14px;
    padding: 18px 10px;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.psicodex-agenda-detail-day {
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
}

.psicodex-agenda-detail-month {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 6px;
}

.psicodex-agenda-detail-year {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 3px;
}

.psicodex-agenda-detail-title {
    flex: 1;
}

.psicodex-agenda-detail-weekday {
    color: #2f6092;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.psicodex-agenda-detail-weekday i {
    margin-right: 6px;
}

.psicodex-agenda-detail-title h1 {
    color: #063866;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}


/* RESUMEN */

.psicodex-agenda-detail-resum {
    background: #f8fbfd;
    border-left: 5px solid #2f6092;
    border-radius: 10px;
    padding: 20px 24px;
    color: #111111;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.psicodex-agenda-detail-resum p {
    margin-bottom: 0;
}


/* TEXTO */

.psicodex-agenda-detail-text {
    margin-top: 10px;
}


/* DOCUMENTOS */

.psicodex-agenda-docs {
    margin-top: 36px;
    padding-top: 30px;
    border-top: 1px solid #dce5ef;
}

.psicodex-agenda-docs h2 {
    color: #063866;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 18px;
}

.psicodex-agenda-docs h2::after {
    content: "";
    display: block;
    width: 62px;
    height: 3px;
    background: #2f6092;
    margin-top: 10px;
}

.psicodex-agenda-docs-content {
    background: #f8fbfd;
    border: 1px solid #dce5ef;
    border-radius: 12px;
    padding: 18px 20px;
}


/* BOTONES */

.psicodex-agenda-detail-actions {
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid #dce5ef;
}


/* ASIDE */

.psicodex-agenda-detail-aside {
    background: #f8fbfd;
    border: 1px solid #dce5ef;
    border-radius: 16px;
    padding: 22px;
    position: sticky;
    top: 25px;
}

.psicodex-agenda-detail-image {
    border-radius: 14px;
    overflow: hidden;
    background: #e3edf7;
    margin-bottom: 22px;
}

.psicodex-agenda-detail-image img {
    width: 100% !important;
    height: auto !important;
    display: block;
}

.psicodex-agenda-detail-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.psicodex-agenda-info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #12385c;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.psicodex-agenda-info-item i {
    width: 26px;
    min-width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #e3edf7;
    color: #2f6092;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
}


/* RESPONSIVE */

@media (max-width: 991px) {
    .psicodex-agenda-detail-card {
        padding: 28px;
    }

    .psicodex-agenda-detail-aside {
        position: static;
        margin-top: 28px;
    }

    .psicodex-agenda-detail-title h1 {
        font-size: 29px;
    }
}

@media (max-width: 767px) {
    .psicodex-agenda-detail-page {
        padding: 42px 0 55px;
    }

    .psicodex-agenda-detail-card {
        padding: 22px;
    }

    .psicodex-agenda-detail-header {
        flex-direction: column;
        gap: 18px;
    }

    .psicodex-agenda-detail-date {
        width: 100%;
        min-width: 0;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        padding: 14px 20px;
    }

    .psicodex-agenda-detail-day {
        font-size: 34px;
    }

    .psicodex-agenda-detail-month,
    .psicodex-agenda-detail-year {
        margin-top: 0;
    }

    .psicodex-agenda-detail-title h1 {
        font-size: 25px;
    }

    .psicodex-main-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}
/* =========================================================
   PSICODEX - FORMULARIO INSCRIPCIÓN AGENDA
========================================================= */

.psicodex-agenda-form-section {
    margin-top: 34px;
}

.psicodex-agenda-form-section h2 {
    color: #063866;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    font-weight: 700;
    margin: 0 0 12px;
}

.psicodex-agenda-form-section h2::after {
    content: "";
    display: block;
    width: 62px;
    height: 3px;
    background: #2f6092;
    margin-top: 10px;
}

.psicodex-agenda-form-intro {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.psicodex-agenda-form-box {
    background: #f8fbfd;
    border: 1px solid #dce5ef;
    border-radius: 14px;
    padding: 26px;
}

/* Inputs del formulario incluido */
.psicodex-agenda-form-box input[type="text"],
.psicodex-agenda-form-box input[type="email"],
.psicodex-agenda-form-box input[type="tel"],
.psicodex-agenda-form-box input[type="number"],
.psicodex-agenda-form-box select,
.psicodex-agenda-form-box textarea,
.psicodex-agenda-form-box .form-control {
    border: 1px solid #cfd8e3;
    border-radius: 8px;
    box-shadow: none;
    padding: 10px 12px;
    font-size: 14px;
}

.psicodex-agenda-form-box input:focus,
.psicodex-agenda-form-box select:focus,
.psicodex-agenda-form-box textarea:focus,
.psicodex-agenda-form-box .form-control:focus {
    border-color: #2f6092;
    box-shadow: 0 0 0 3px rgba(47, 96, 146, 0.12);
    outline: none;
}

.psicodex-agenda-form-box label {
    color: #12385c;
    font-weight: 700;
    font-size: 14px;
}

/* Botones dentro del formulario */
.psicodex-agenda-form-box .btn-primary,
.psicodex-agenda-form-box input[type="submit"],
.psicodex-agenda-form-box button[type="submit"] {
    background: #2f6092;
    border-color: #2f6092;
    color: #ffffff;
    border-radius: 24px;
    padding: 10px 24px;
    font-weight: 700;
}

.psicodex-agenda-form-box .btn-primary:hover,
.psicodex-agenda-form-box input[type="submit"]:hover,
.psicodex-agenda-form-box button[type="submit"]:hover {
    background: #12385c;
    border-color: #12385c;
}

@media (max-width: 767px) {
    .psicodex-agenda-form-box {
        padding: 20px;
    }
}/* =========================================================
   PSICODEX - PEDIR CITA / DEMANAR HORA
========================================================= */

.psicodex-cita-page {
    background: #f4f7fb;
}

.psicodex-cita-page .psicodex-container {
    max-width: 1180px;
}

.psicodex-cita-info,
.psicodex-cita-form-card {
    height: 100%;
}


/* FORMULARIO */

.psicodex-cita-form .form-group {
    margin-bottom: 20px;
}

.psicodex-cita-form label {
    display: block;
    color: #12385c;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}

.psicodex-cita-form .form-control,
.psicodex-cita-form input[type="text"],
.psicodex-cita-form input[type="email"],
.psicodex-cita-form select,
.psicodex-cita-form textarea {
    width: 100%;
    border: 1px solid #cfd8e3;
    border-radius: 9px;
    background: #ffffff;
    color: #111111;
    box-shadow: none;
    padding: 11px 13px;
    font-size: 14px;
}

.psicodex-cita-form .form-control:focus,
.psicodex-cita-form input:focus,
.psicodex-cita-form select:focus,
.psicodex-cita-form textarea:focus {
    border-color: #2f6092;
    box-shadow: 0 0 0 3px rgba(47, 96, 146, 0.12);
    outline: none;
}

.psicodex-cita-form textarea {
    resize: vertical;
}

.psicodex-select-group {
    color: #2f6092;
    font-weight: 700;
}


/* CAPTCHA */

.psicodex-captcha-box {
    background: #f8fbfd;
    border: 1px solid #dce5ef;
    border-radius: 12px;
    padding: 16px;
}

.psicodex-captcha-box .form-control {
    margin-bottom: 12px;
}

.psicodex-captcha-image {
    margin-top: 8px;
}

.psicodex-captcha-image img {
    border-radius: 6px;
    border: 1px solid #dce5ef;
}

.psicodex-captcha-error {
    background: #c00000;
    color: #ffffff;
    border-radius: 8px;
    padding: 9px 12px;
    margin-top: 12px;
    font-size: 13px;
    font-weight: 700;
}


/* CHECKBOX LEGAL */

.psicodex-legal-check {
    background: #f8fbfd;
    border-radius: 10px;
    padding: 14px 16px;
}

.psicodex-checkbox-label {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    margin: 0 !important;
    font-weight: 400 !important;
}

.psicodex-checkbox-label input[type="checkbox"] {
    margin-top: 3px;
}

.psicodex-checkbox-label a {
    color: #2f6092;
    font-weight: 700;
    text-decoration: none;
}

.psicodex-checkbox-label a:hover {
    color: #063866;
    text-decoration: underline;
}


/* BOTÓN */

.psicodex-form-actions {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #dce5ef;
}

.psicodex-cita-form input.psicodex-main-btn,
.psicodex-cita-form .psicodex-main-btn {
    border-radius: 26px;
    border: 2px solid #2f6092;
    background: #2f6092;
    color: #ffffff;
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: none;
}

.psicodex-cita-form input.psicodex-main-btn:hover,
.psicodex-cita-form .psicodex-main-btn:hover {
    background: #12385c;
    border-color: #12385c;
}


/* ALERTAS */

.psicodex-alert {
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 26px;
}

.psicodex-alert h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    margin: 0 0 8px;
}

.psicodex-alert p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.psicodex-alert-ok {
    background: #e8f6ef;
    border-left: 5px solid #2f8f5f;
    color: #154c33;
}

.psicodex-alert-ko {
    background: #fff0f0;
    border-left: 5px solid #c00000;
    color: #7a0000;
}


/* RESPONSIVE */

@media (max-width: 991px) {
    .psicodex-cita-form-card {
        margin-top: 28px;
    }
}

@media (max-width: 575px) {
    .psicodex-cita-form input.psicodex-main-btn,
    .psicodex-cita-form .psicodex-main-btn {
        width: 100%;
        text-align: center;
    }
}
/* Corrección select formulario cita */
.psicodex-cita-form select,
.psicodex-cita-form select.form-control {
    height: auto !important;
    min-height: 46px !important;
    line-height: 1.4 !important;
    padding: 10px 13px !important;
    white-space: normal;
}/* =========================================================
   PSICODEX - LISTADO BLOG / NOTICIAS
========================================================= */

.psicodex-blog-list-page {
    background: #f4f7fb;
    padding: 55px 0 70px;
}

.psicodex-blog-list-page .psicodex-container {
    max-width: 1180px;
}


/* Título principal */

.psicodex-blog-list-page .psicodex-page-header h1 small {
    display: block;
    color: #2f6092;
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin-top: 8px;
}


/* Listado */

.psicodex-blog-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}


/* Tarjeta */

.psicodex-blog-list-card {
    background: #ffffff;
    border: 1px solid #dce5ef;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(31, 63, 99, 0.08);
    padding: 22px;
    transition: all 0.25s ease;
}

.psicodex-blog-list-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(31, 63, 99, 0.15);
}


/* Imagen */

.psicodex-blog-list-image {
    display: block;
    width: 100%;
    height: 220px;
    background: #e3edf7;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
}

.psicodex-blog-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.psicodex-blog-list-card:hover .psicodex-blog-list-image img {
    transform: scale(1.04);
}

.psicodex-blog-list-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e3edf7, #ffffff);
    color: #2f6092;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 700;
}


/* Contenido */

.psicodex-blog-list-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.psicodex-blog-list-content h2 {
    margin: 0 0 12px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.25;
}

.psicodex-blog-list-content h2 a {
    color: #063866;
    text-decoration: none;
}

.psicodex-blog-list-content h2 a:hover {
    color: #2f6092;
    text-decoration: none;
}


/* Profesionales */

.psicodex-blog-list-author {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    color: #2f6092;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
}

.psicodex-blog-list-author i {
    margin-right: 5px;
}


/* Resumen */

.psicodex-blog-list-summary {
    color: #222222;
    font-size: 15px;
    line-height: 1.75;
    margin-bottom: 18px;
    flex-grow: 1;
}

.psicodex-blog-list-summary a {
    color: #222222;
    text-decoration: none;
}

.psicodex-blog-list-summary a:hover {
    color: #063866;
    text-decoration: none;
}

.psicodex-blog-list-summary p {
    margin-bottom: 0;
}


/* Categorías */

.psicodex-blog-list-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.psicodex-blog-tag {
    display: inline-block;
    background: #f1f5f9;
    color: #12385c;
    border-radius: 18px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.psicodex-blog-tag:hover {
    background: #e3edf7;
    color: #063866;
    text-decoration: none;
}


/* Botón */

.psicodex-blog-list-actions {
    margin-top: auto;
}

.psicodex-blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2f6092;
    color: #ffffff;
    border-radius: 24px;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid #2f6092;
    transition: all 0.25s ease;
}

.psicodex-blog-btn:hover,
.psicodex-blog-btn:focus {
    background: #12385c;
    border-color: #12385c;
    color: #ffffff;
    text-decoration: none;
}


/* ASIDE BLOG */

.psicodex-blog-aside {
    top: 25px;
}

.psicodex-blog-aside-block {
    border-top: 1px solid #dce5ef;
    padding-top: 22px;
    margin-top: 22px;
}

.psicodex-blog-aside-block:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}


/* Ajuste de includes antiguos del lateral */

.psicodex-blog-aside ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.psicodex-blog-aside li {
    margin-bottom: 9px;
}

.psicodex-blog-aside a {
    color: #12385c;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.psicodex-blog-aside a:hover {
    color: #2f6092;
    text-decoration: none;
}

.psicodex-blog-aside h2,
.psicodex-blog-aside h3,
.psicodex-blog-aside h4 {
    color: #063866;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 700;
}


/* Responsive */

@media (max-width: 991px) {
    .psicodex-blog-list-page {
        padding: 42px 0 55px;
    }

    .psicodex-blog-aside {
        position: static;
        margin-top: 28px;
    }
}

@media (max-width: 767px) {
    .psicodex-blog-list-card {
        padding: 18px;
    }

    .psicodex-blog-list-image {
        height: 220px;
        margin-bottom: 18px;
    }

    .psicodex-blog-list-content h2 {
        font-size: 22px;
    }

    .psicodex-blog-btn {
        width: 100%;
        justify-content: center;
    }
}
/* =========================================================
   PSICODEX - DETALLE BLOG / NOTICIA
========================================================= */

.psicodex-blog-detail-page {
    background: #f4f7fb;
    padding: 55px 0 70px;
}

.psicodex-blog-detail-page .psicodex-container {
    max-width: 1080px;
}

.psicodex-blog-detail-card {
    background: #ffffff;
    border: 1px solid #dce5ef;
    border-radius: 18px;
    box-shadow: 0 8px 22px rgba(31, 63, 99, 0.10);
    padding: 38px;
}


/* HEADER */

.psicodex-blog-detail-header {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid #dce5ef;
}

.psicodex-blog-detail-header h1 {
    color: #063866;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 18px;
}


/* TAGS */

.psicodex-blog-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.psicodex-blog-detail-tags .psicodex-blog-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}


/* RESUMEN */

.psicodex-blog-detail-resum {
    background: #f8fbfd;
    border-left: 5px solid #2f6092;
    border-radius: 10px;
    padding: 20px 24px;
    color: #111111;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 32px;
}

.psicodex-blog-detail-resum p {
    margin-bottom: 0;
}


/* TEXTO */

.psicodex-blog-detail-text {
    margin-top: 10px;
}


/* IMAGEN LATERAL */

.psicodex-blog-detail-aside {
    background: #f8fbfd;
    border: 1px solid #dce5ef;
    border-radius: 16px;
    padding: 22px;
    top: 25px;
}

.psicodex-blog-detail-image {
    border-radius: 14px;
    overflow: hidden;
    background: #e3edf7;
    margin-bottom: 22px;
}

.psicodex-blog-detail-image img {
    width: 100% !important;
    height: auto !important;
    display: block;
}

.psicodex-blog-detail-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


/* VIDEO RESPONSIVE */

.psicodex-blog-video {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    margin: 38px 0;
    border-radius: 14px;
    overflow: hidden;
    background: #e3edf7;
    box-shadow: 0 8px 22px rgba(31, 63, 99, 0.10);
}

.psicodex-blog-video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}


/* AUTOR */

.psicodex-blog-author-box {
    margin-top: 38px;
    padding-top: 30px;
    border-top: 1px solid #dce5ef;
}


/* ACCIONES */

.psicodex-blog-detail-actions {
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid #dce5ef;
}


/* Ajuste de inc_read_more antiguo dentro del detalle */

.psicodex-blog-detail-actions .btn,
.psicodex-blog-detail-actions .btn-primary {
    background: #2f6092;
    border-color: #2f6092;
    color: #ffffff;
    border-radius: 24px;
    padding: 10px 22px;
    font-weight: 700;
}

.psicodex-blog-detail-actions .btn:hover,
.psicodex-blog-detail-actions .btn-primary:hover {
    background: #12385c;
    border-color: #12385c;
    color: #ffffff;
}


/* RESPONSIVE */

@media (max-width: 991px) {
    .psicodex-blog-detail-card {
        padding: 28px;
    }

    .psicodex-blog-detail-aside {
        position: static;
        margin-top: 28px;
    }

    .psicodex-blog-detail-header h1 {
        font-size: 31px;
    }
}

@media (max-width: 767px) {
    .psicodex-blog-detail-page {
        padding: 42px 0 55px;
    }

    .psicodex-blog-detail-card {
        padding: 22px;
    }

    .psicodex-blog-detail-header h1 {
        font-size: 26px;
    }

    .psicodex-blog-detail-resum {
        padding: 18px 20px;
        font-size: 15px;
    }

    .psicodex-secondary-btn {
        width: 100%;
        justify-content: center;
        text-align: center;
    }
}