/*
Theme Name: Navas del Rey (Vantage)
Template: vantage
Author: Ayuntamiento de Navas del Rey
Author URI: https://navasdelrey.es/
Description: Tema hijo limpio basado en Vantage para el Ayuntamiento de Navas del Rey.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vantage-ndr
*/




/* Tipografías locales RGPD: Source Sans 3 (cuerpo) + Source Serif 4 (titulares) */
@font-face {
	font-family: 'Source Sans 3';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(fonts/source-sans-3-400.woff2) format('woff2');
}
@font-face {
	font-family: 'Source Sans 3';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url(fonts/source-sans-3-600.woff2) format('woff2');
}
@font-face {
	font-family: 'Source Sans 3';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(fonts/source-sans-3-700.woff2) format('woff2');
}
@font-face {
	font-family: 'Source Serif 4';
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url(fonts/source-serif-4-400.woff2) format('woff2');
}
@font-face {
	font-family: 'Source Serif 4';
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url(fonts/source-serif-4-600.woff2) format('woff2');
}
@font-face {
	font-family: 'Source Serif 4';
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url(fonts/source-serif-4-700.woff2) format('woff2');
}

body, button, input, select, textarea,
.site-navigation.main-navigation.primary,
.entry-content {
	font-family: 'Source Sans 3', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.entry-content {
	line-height: 1.6;
}
h1, h2, h3,
.entry-title,
.widget-title,
.sp-wpcpro-section-title {
	font-family: 'Source Serif 4', Georgia, serif;
}

/* Ajustes base heredados de vantage-child */
body, button, input, select, textarea {
	font-size: 16px;
}
.layout-full #page-wrapper .full-container,
body.responsive.layout-full #page-wrapper .full-container {
	max-width: none;
}
#masthead {
	padding: 0;
}
#masthead h1 {
	font-family: 'Source Serif 4', Georgia, serif;
}
#masthead h1.logo-title {
	display: inline-block;
	margin-left: 20px;
}
#masthead.masthead-logo-in-menu .logo {
	margin-left: calc(76px + (100vw - 1080px)*0.09);
}
#masthead.masthead-logo-in-menu .logo > img {
	width: auto;
	height: 160px;
	max-height: none;
}
#main {
	background: #f6f6f6;
	padding: 10px 35px 35px 35px;
}
.vantage-layout-width-normal #primary,
.page-template-default #primary {
	width: 75.287%;
}
#secondary {
	width: 19.762%;
}
#search-icon #search-icon-icon {
	background-color: transparent !important;
}
article.post .entry-categories a,
article.page .entry-categories a {
	font-weight: bold;
	font-size: 15px;
	color: #3a507c;
	text-decoration: none;
}
#yoast-breadcrumbs,
#navxt-breadcrumbs {
	background: transparent;
	margin-top: -10px;
	margin-bottom: 10px;
}
#yoast-breadcrumbs a,
#navxt-breadcrumbs a {
	font-weight: bold;
}
#scroll-to-top {
	background: rgb(58, 80, 124);
}
#scroll-to-top.displayed {
	opacity: 0.9 !important;
	border: 1px #f6f6f6 solid;
}

/* CircleIcon widgets y variante huge para archivos */
.widget_circleicon-widget .circle-icon-box h4 {
	margin-top: 0;
	margin-bottom: 20px;
}
.widget_circleicon-widget .circle-icon-box.circle-icon-position-top {
	padding-top: 65px;
}
.widget_circleicon-widget .circle-icon-box.circle-icon-position-top .circle-icon {
	box-shadow: #3a507c 1px 1px 5px;
}
.widget_circleicon-widget .circle-icon-box.circle-icon-size-huge .circle-icon {
	width: 200px;
	height: 200px;
	-webkit-border-radius: 100px;
	-moz-border-radius: 100px;
	border-radius: 100px;
	-webkit-transition: all 0.5s ease;
	-moz-transition: all 0.5s ease;
	-o-transition: all 0.5s ease;
	transition: all 0.5s ease;
}
.widget_circleicon-widget .circle-icon-box.circle-icon-size-huge .circle-icon [class^="fa fa-"] {
	font-size: 44px;
	line-height: 1.1em;
}
.widget_circleicon-widget .circle-icon-box.circle-icon-size-huge.circle-icon-position-top {
	padding-top: 200px;
}
.widget_circleicon-widget .circle-icon-box.circle-icon-size-huge.circle-icon-position-top .circle-icon {
	top: 0;
	left: 50%;
	margin-left: -100px;
}
.widget_circleicon-widget .circle-icon-box.circle-icon-size-huge.circle-icon-position-top .circle-icon:hover {
	opacity: 0.6;
}
.widget_circleicon-widget .circle-icon-box.circle-icon-size-huge.circle-icon-position-bottom {
	padding-bottom: 200px;
}
.widget_circleicon-widget .circle-icon-box.circle-icon-size-huge.circle-icon-position-bottom .circle-icon {
	bottom: 0;
	left: 50%;
	margin-left: -100px;
}
.widget_circleicon-widget .circle-icon-box.circle-icon-size-huge.circle-icon-position-left {
	text-align: left;
	padding-left: 200px;
}
.widget_circleicon-widget .circle-icon-box.circle-icon-size-huge.circle-icon-position-left .circle-icon {
	left: 0;
	top: 50%;
	margin-top: -200px;
}
.widget_circleicon-widget .circle-icon-box.circle-icon-size-huge.circle-icon-position-right {
	text-align: left;
	padding-right: 200px;
}
.widget_circleicon-widget .circle-icon-box.circle-icon-size-huge.circle-icon-position-right .circle-icon {
	right: 0;
	top: 50%;
	margin-top: -200px;
}

/* Carrusel Vantage */
.vantage-carousel-wrapper .vantage-carousel li.carousel-entry {
	width: 259px;
}
.vantage-carousel-wrapper .vantage-carousel li.carousel-entry .thumbnail a {
	width: auto;
	height: auto;
	background-size: 99% auto;
	background-repeat: no-repeat;
	margin: auto;
}
.vantage-carousel-wrapper .vantage-carousel li.carousel-entry .thumbnail a img {
	visibility: hidden;
	width: 259px;
	height: 370px;
}
.vantage-carousel-wrapper .vantage-carousel li.carousel-entry .thumbnail a:hover {
	background-size: 90% auto;
	background-repeat: no-repeat;
}
.vantage-carousel-wrapper .vantage-carousel li.carousel-entry .default-thumbnail {
	width: 259px;
	height: 173px;
}
.vantage-carousel-wrapper .vantage-carousel li.carousel-entry h3 {
	margin: 10px auto 0;
}
.vantage-carousel-wrapper .vantage-carousel li.loading {
	width: 259px;
	height: 173px;
	background-image: url(../vantage/images/carousel-loader.gif);
}

/* Cabecera panorámica superior (fila 1 del masthead) */
.ndr-banner-header {
	width: 100%;
	height: 320px;
	background-color: #e2e2e2;
	background-image: url(../../../wp-content/uploads/2021/08/placituela-panoramica.jpg);
	background-size: cover;
	background-repeat: no-repeat;
	background-position: calc(50% + 100px) center;
	position: relative;
}
.ndr-banner-inner {
	display: flex;
	align-items: center;
	height: 100%;
}
#masthead .ndr-banner-header .escudo-navas-del-rey {
	height: 320px;
	width: 320px;
	background-size: contain;
	background-repeat: no-repeat;
}
@media (max-width: 800px) {
	.ndr-banner-header {
		height: 140px;
		background-position: center center;
	}
	#masthead .ndr-banner-header .escudo-navas-del-rey {
		height: 140px;
		width: 140px;
	}
}

/***************************************************/
/* Para Vantage Child */

body.layout-full {
	background-color: #e2e2e2 !important;
}

/* .menu visible para el menú principal */

.sticky-ndr {
/* .site-navigation.main-navigation.primary { */
    position: fixed;
    z-index: 9999;
    top: 0;
    width: 100%;
    -webkit-animation: fadeInDown 1.50s;
    animation: fadeInDown 1.50s;
	background-image: url(../../../wp-content/uploads/2021/08/NavasDelRey-ayto-cabecera.png);
	background-size: contain;
    background-position: left top;
}
.main-because-of-sticky-ndr {
    /* margin-top: 320px; */
}



#masthead h1.site-title.logo-title {
	font-family: "Rockwell Nova Cond", "Georgia";
	font-size: 35px !important;
	font-weight: bold;
	padding: 32px 0px 0px 0px;
	letter-spacing: -2px;
	-webkit-text-stroke: 2px black;
    font-size-adjust: 0.9;
}

article.post .entry-header .entry-thumbnail img {
	/* width: 100%; */
	width: 50%;
	margin: auto;
}

.vantage-carousel-title-text {
	color: #3a507c;
}

.vantage-carousel-title a.next, .vantage-carousel-title a.previous {
	background: #3a507c;
}

.entry-content .wp-block-columns.ndr-options-columns {
/* .circle-icon < .wp-block-columns { */
	margin-bottom: 0px;
}
.wp-block-columns.ndr-options-columns .wp-block-column {
	margin-left: 0em;
}
.wp-block-columns.ndr-options-columns-3 {
	margin-left: 12.5%;
    margin-right: 12.5%;
}

.circle-icon {
    margin: auto;
    text-decoration: none;
}
.widget_circleicon-widget .circle-icon-box > .circle-icon-wrapper .circle-icon:not(.icon-style-set, .circle-icon-small):hover + .circle-icon-box .ndr-home-link h4 {
    color: green;
}
.widget_circleicon-widget .circle-icon-wrapper .circle-icon:not(.icon-style-set, .circle-icon-small):hover {
	background-color: #e2e2e2;
}

.circle-icon:hover > .fas:not(.circle-icon-small),
.circle-icon:hover > a .fas:not(.circle-icon-small),
.circle-icon:hover > .far:not(.circle-icon-small),
.circle-icon:hover > a .far:not(.circle-icon-small),
.circle-icon:hover > .fab:not(.circle-icon-small), 
.circle-icon:hover > a .fab:not(.circle-icon-small) {
	color: #3a507c;
}


.more-icon {
	display: inline-block;
	width: 5px;
	height: 8px;
	/* margin-left: 3px; */
	background: url(../vantage/images/sprites/more-icon.png) no-repeat;
}

.ndr-home-link {
	text-decoration: none;
}
.ndr-home-link h4:hover {
	color: #a0a0a0;
}
.ndr-home-link h4:hover + .circle-icon-wrapper .more-button .circle-icon {
	/* background-color: #ed7f09; */
	background-color: #e2e2e2;
}

.entry-content .fa,
.entry-content .fas,
.entry-content .fab,
.entry-content .far {
	/* color: #ed7f09; */
	color: #e2e2e2;
	position:relative;
	/* top: 25%; */
	top: 0.5em;
	font-size: 32px;
}


.wpcp-carousel-preloader {
	display: none;
}

.wpcp-carousel-wrapper .sp-wpcpro-section-title {
	/* margin-left: 30px; */
	font-weight: bold;
	text-align: center;
	text-transform: uppercase;
	color: #3a507c;
}

.wpcp-carousel-wrapper .wpcp-carousel-section .slick-slide {
	float: left;
}

.slick-slide img {
    /* float: left; */
	/* width: 260px; */
	/* height: 300px !important; */
	width:auto !important;
}
.wpcp-slide-image {
    height: auto;
}

.slick-track .slick-slide .wpcp-single-item {
	border: 0 !important;
}

.wpcp-post-title {
    padding-left: 5%;
    padding-right: 5%;
}
.wpcp-post-title a {
    text-decoration: none;
	color: #e2e2e2 !important;
	cursor: pointer;
}
.wpcp-post-meta .entry-date {
	font-size: 75%;
	color: #cccccc;
}

.wpcp-post-thumb {
	visibility: hidden;
	width: 193px;
    height: 320px !important;
}
@media (max-width: 800px) {
    .wpcp-post-thumb {
        height: 230px !important;
    }
}

.wpcp-slide-image a {
    display: block;
	transition: all 0.35s ease;
    margin: auto;
	background-position: center center;
    background-size: contain;
    background-repeat: no-repeat;
	/* padding: 5%; */
	/* margin: 0%; */
	margin: 5%;
	outline: none;
}
.wpcp-slide-image a:hover {
	/* padding: 0%; */
	/* margin: 5%; */
	/* background-size: 90%; */
}

.wpcp-carousel-wrapper #sp-wp-carousel-free-id-4121.wpcp-post-carousel .wpcp-single-item {
	/* background-color: #e4e4e4; */
}

/* 
background-image: url('../../uploads/2021/05/JuzgadosNavasDelRey.png');
height: 406px;
background-size: cover;
background-position-y: -80px;
*/ 



/* Circle Icons Small */
.widget_circleicon-widget.circle-icon-small {
	float: left;
}

.widget_circleicon-widget .circle-icon-box.circle-icon-position-top .circle-icon.circle-icon-small {
	margin-left: 0px;
	height: 36px;
	width: 36px;
}

.entry-content .fas.circle-icon-small,
.entry-content .far.circle-icon-small,
.entry-content .fab.circle-icon-small {
	font-size: 18px;
}

.circle-icon-desc.circle-icon-small {
    padding-left: 50px;
    padding-top: 20px;
}

.entry-content h4.circle-icon-small {
	font-weight: bold;
    margin: 0;
}

.widget.circle-icon-small {
	margin: 0px;
	padding-top: 15px;
}

.widget_circleicon-widget .circle-icon-box.circle-icon-position-top.circle-icon-list {
	padding-top: 10px
}



a.anchor {
    display: block;
    position: relative;
    top: -250px;
    visibility: hidden;
}


#cont_816bc95803fc8ba755f46db8902fbd9a {
	border: 1px solid black;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
	box-shadow: black 1px 1px 5px;
	width: 75% !important; 
	min-width: 180px;
	text-align: center !important;
}


.custom-header_8, 
.fc-calendar-container_8 .fc-calendar .fc-head,
.fc-row > div.fc-today {
	background-color: #3a507c !important;
	border-style: solid;
    border-width: 0 1px;
    border-color: black;
}
.custom-header_8 {
    border: 1px black solid !important;
    /* box-shadow: black 1px 1px 5px; */
    border-top-left-radius: 3px !important;
    border-top-right-radius: 3px !important;
}
.custom-header_8 h3.custom-month #custom-month_8 {
	font-family: inherit !important;
}
.fc-calendar-container_8 .fc-calendar .fc-body {
    border: 1px solid black !important;
    box-shadow: black 1px 1px 5px;
}

.escudo-navas-del-rey {
	background-image: url('../../uploads/2021/08/NavasDelRey-logo-fondo-2.jpg');
	background-size: contain;
	height: 320px;
	width: 320px;
}

#secondary .widget.acx-smw-social-icon-desc {
	margin-top: 32px;
}


.wpcp-carousel-section .slick-next,
.wpcp-carousel-section .slick-prev {
	width: 50px;
	height: 50px;
}
.slick-prev .fa-angle-left,
.slick-next .fa-angle-right {
	color: #e2e2e2 !important;
	background-color: #3a507c;
    border-radius: 15px;
    font-weight: bold;
}
.slick-prev .fa-angle-left:hover,
.slick-next .fa-angle-right:hover {
	color: #3a507c !important;
	background-color: #e2e2e2;
}
.slick-next .fa-angle-right {
    padding: 0px 8px 2px 10px;
}
.slick-prev .fa-angle-left {
    padding: 0px 10px 2px 8px;
}


.custom-header {
	height: 50px !important;
}
.custom-header_8 h3#custom-month_8 {
    font-family: inherit !important;
	font-size: 18px !important;
}
.custom-header_8 h3#custom-year_8 {
    font-family: inherit !important;
	font-size: 20px !important;
}

.fc-calendar-container {
    height: 180px !important;
}
.fc-calendar-container_8 .fc-calendar .fc-head {
    font-family: inherit !important;
	font-size: 13px !important;
	height: 22px;
    line-height: 22px;
}
.fc-calendar .fc-body {
	height: 146px !important;
}
.fc-six-rows .fc-row {
	height: 24px !important;
}
.fc-calendar .fc-row > div > span.fc-date {
	font-size: 16px !important;
	top: inherit !important;
	bottom: 2px !important;
}
.custom-header nav i {
    top: 7px !important;
}
.custom-header nav i:hover::before {
    color: #ed7f09 !important;
}


#yoast-breadcrumbs, 
#yoast-breadcrumbs a {
	color: #b3b3b3;
	font-weight: bold;
}
.breadcrumb_last {
	font-size: 160%;
	color: #3a507c;
}
.breadcrumb_last::before {
    content: "\a";
    white-space: pre;
}


.float-img-izq {
	float: left;
	max-width: 34.4% !important;
	margin-right: 1.5em;
	margin-bottom: 0.5em !important;
}
.float-img-der {
	float: right;
	max-width: 34.4% !important;
	margin-left: 1.5em;
	margin-bottom: 0.5em !important;
}
.float-img-izq-mob > img,
.float-img-der-mob > img {
	width: 100%;
}

/* Si tenemos migas de pan, no es la pagina inicio y ponemos margenes mayores */
#yoast-breadcrumbs ~ .content-area {
	width: 86% !important;
	margin-left: 7%;
	margin-right: 7%;
}

.text-justify {
	text-align: justify;
}


.instagram-social-btn-top {
	background-color: #3a507c;
	width: 190px;
	border: 1px solid black;
	border-radius: 3px;
	box-shadow: #3a507c 1px 1px 5px;
}

.box-shadow-black-1px-1px-5px img {
    box-shadow: black 1px 1px 5px;
}



.ndr-dropdown-content {
    display: none;
    min-width: 420px;
    z-index: 1;
    position: absolute;
    border-radius: 5px;
    margin-left: 5px;
}
@media (min-width: 1580px) {
	.ndr-dropdown-content {
        background: -moz-linear-gradient(top left, rgba(226,226,226,0) 0%, rgba(226,226,226,1) 30%); /* FF3.6-15 */
        background: -webkit-linear-gradient(top left, rgba(226,226,226,0) 0%, rgba(226,226,226,1) 30%); /* Chrome10-25,Safari5.1-6 */
        background: linear-gradient(to right bottom, rgba(226,226,226,0) 0%, rgba(226,226,226,1) 30%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
        box-shadow: 1px 2px 2px 0px rgba(0,0,0,0.2);
        left: 60px;
    }
}
@media (min-width: 782px) and (max-width: 1580px) {
	.ndr-dropdown-content {
        background: -moz-linear-gradient(top, rgba(226,226,226,0) 0%, rgba(226,226,226,1) 30%); /* FF3.6-15 */
        background: -webkit-linear-gradient(top, rgba(226,226,226,0) 0%, rgba(226,226,226,1) 30%); /* Chrome10-25,Safari5.1-6 */
        background: linear-gradient(to left bottom, rgba(226,226,226,0) 0%, rgba(226,226,226,1) 30%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
        box-shadow: -1px 1px 1px 0px rgba(0,0,0,0.2);
        left: -424px;
    }
}
@media (min-width: 601px) and (max-width: 782px) {
	.ndr-dropdown-content {
        background: -moz-linear-gradient(top left, rgba(226,226,226,0) 0%, rgba(226,226,226,1) 30%); /* FF3.6-15 */
        background: -webkit-linear-gradient(top left, rgba(226,226,226,0) 0%, rgba(226,226,226,1) 30%); /* Chrome10-25,Safari5.1-6 */
        background: linear-gradient(to right bottom, rgba(226,226,226,0) 0%, rgba(226,226,226,1) 30%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
        box-shadow: 1px 2px 2px 0px rgba(0,0,0,0.2);
        left: 60px;
    }
}
@media (max-width: 600px) {
	.ndr-dropdown-content {
        background: rgba(226,226,226,1);
        top: 60px;
        left: -152px;
        margin-top: 10px;
    }
}
.ndr-dropdown-content a {
    color: black;
    /* padding: 12px 16px; */
    text-decoration: none;
    display: block;
}
/* Change color of dropdown links on hover */
.ndr-dropdown-content a:hover > div h4 {
	color: #8b8b8b !important;
}

/* Show the dropdown menu on hover */
.circle-icon:hover .ndr-dropdown-content {
	display: block;
}

/* Change the background color of the dropdown button when the dropdown content is shown */
.circle-icon:hover .dropbtn {
	background-color: #3e8e41;
	color: #3e8e41;
}

.widget_circleicon-widget .circle-icon-box .circle-icon.ndr-dropdown-parent {
	display: flex;
}
.widget_circleicon-widget .circle-icon-box .circle-icon.ndr-dropdown-parent .fas:not(.circle-icon-small .fas) {
	left: 0.35em;
}

.ndr-dropdown-content .circle-icon-wrapper {
    height: 42px;
	display: flex;
    align-items: center;
}
.ndr-dropdown-content .circle-icon-wrapper .circle-icon {
	left: 0px;
}

.ndr-dropdown-content .circle-icon-wrapper .circle-icon.circle-icon-small {
    position: relative;
	left: 5px;
	margin-right: 12px;
}
.ndr-dropdown-content .circle-icon-wrapper .circle-icon .fas {
	left: 0.04em;
	top: 6px;
}
.ndr-dropdown-content .circle-icon-wrapper .circle-icon-div-h4 {
    position: relative;
	/* left: 50px; */
	text-align: left;
}
.ndr-dropdown-content .circle-icon-wrapper .circle-icon-div-h4 h4{
	font-size: 15px;
}





/* ROUNDABOUT CAROUSEL STYLES */
	.roundabout-holder {
		padding: 0;
		margin: 0 auto;
		height: 470px;
		width: 920px;
	}
		
	.roundabout-moveable-item {
        /* height: 580px; */
        /* height: 470px; */
		/* width: 808px; */
		width: 30%;
		/* cursor: pointer; */
		border:1px solid black;
		display:block;
	}
	.roundabout-moveable-item:not(.roundabout-in-focus) {
        opacity: 1 !important;
		height: 445px !important;
		margin-top: 15px;
		background-color: #8e99af !important;
	}

    @media (max-width: 800px) {
        .roundabout-moveable-item:not(.roundabout-in-focus) {
            height: 390px !important;
        }
        .roundabout-moveable-item.roundabout-in-focus {
            height: 415px !important;
        }
    }

	.roundabout-moveable-item img {
		height: 100%;
		width: 100%;
	}
		
	.roundabout-in-focus {
		cursor: auto;
	}
		

@media (min-width: 680px) {
    #carousel {
		left: calc(100vw/25.7 - 40.88px);
	}
}
@media (max-width: 680px) {
    #carousel {
		width: 100vw !important;
		left: calc(100vw/5.72 - 63px);
	}
}


#carousel li {
    /* height: 580px; */
    height: 470px;
	/* width: 808px; */
	width: 40%;
    text-align: center;
    color: #e2e2e2;
    box-shadow: 0px 0px 10px 2px #000;
    /* cursor: pointer; */
    overflow: hidden;
    background: #3a507c;
    opacity: 1;
    -webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
}

#carousel li.roundabout-in-focus:hover span {
    display: block;
    z-index: 1;
}

#carousel li img {
    opacity: 0.65;
}

#carousel li.roundabout-in-focus{
    cursor: default;
}

#carousel li.roundabout-in-focus img {
    opacity: 1!important;
}
#carousel li.roundabout-in-focus:hover img {
    /* opacity: .5!important; */
}


#carousel li span {
    display: none;
    position: absolute;
    width: 260px;
    border-radius: 5px;
    margin: 270px 88px;
    overflow: hidden;
    box-shadow: 0 0 8px #000;
}

#carousel a.view-project-button {
display: block;
color: #FFF;
font: 34px/1.6em "Helvetica Neue", Arial, sans-serif;
padding: 6px 12px;
text-decoration: none;
background: #9ABE42;
}
#carousel a.view-project-button:hover {
    background: #7E9D32;
}

#carousel li span a.preview {
    background: #BD3B3C;
    border-radius: 5px 0 0 5px;
}
#carousel li span a:hover.preview {
    background: #CE4A4B;
}
#carousel li span a.details {
    background: #A28E5C;
    border-radius: 0 5px 5px 0;
}
#carousel li span a:hover.details {
    background: #B8A169;
}


.wpforms-container.wpforms-container-full .wpforms-confirmation-container-full,
div[submit-success] > .wpforms-confirmation-container-full:not(.wpforms-redirection-message) {
	background: #e2e2e2 !important;
    border: 1px solid #3a507c !important;
}
.wpforms-confirmation-container-full p {
	margin-top: 0px;
}



@media (max-width: 600px) {
    .wp-block-image figure.alignleft {
		width: 100%;
        margin: 0 0 1.5em 0;		
	}
    .wp-block-image figure.alignright {
		width: 100%;
        margin: 1.5em 0 0 0;		
	}
    .wp-block-image figure.alignleft img:not(.wp-block-image figure.alignleft img[src*="youtube"],
	                                         .wp-block-image figure.alignleft img[src*="facebook"],
	                                         .wp-block-image figure.alignleft img[src*="twitter"],
											 .wp-block-image figure.alignleft img[src*="instagram"]),
    .wp-block-image figure.alignright img:not(.wp-block-image figure.alignright img[src*="youtube"],
	                                          .wp-block-image figure.alignright img[src*="facebook"],
	                                          .wp-block-image figure.alignright img[src*="twitter"],
	                                          .wp-block-image figure.alignright img[src*="instagram"]) {
		width: 100%;
	}
    .wp-block-columns.ndr-columns-redes-sociales {
		text-align: center;
		display: block ruby;
	}
    .ndr-logo-redes-sociales figure.alignleft, 
    .ndr-logo-redes-sociales figure.alignright {
		text-align: center;
	}

    div.wp-block-columns.are-vertically-aligned-center {
		margin: 0 0 3em 0;
	}
    .wp-block-column.is-vertically-aligned-center {
		margin: 0 0 0.5em 0;
	}
    .wp-block-column.is-vertically-aligned-center p {
		margin: 0;
		text-align: center;
	}
    .wp-block-column.is-vertically-aligned-center p.has-text-align-left strong {
		margin: 0 0 1.5em 0;
	}
    .wp-block-column.is-vertically-aligned-center p.has-text-align-right strong {
		margin: 1.5em 0 0 0;
	}
}

/* Barra de menú continua de lado a lado (fila 2 del masthead) */
#masthead .site-navigation.main-navigation.primary {
	background: #3a507c;
	width: 100%;
	margin: 0;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
	position: relative;
	z-index: 1499;
}
#masthead .site-navigation.main-navigation.primary.sticky {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 9999;
}
#masthead .site-navigation.main-navigation.primary .full-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px;
	box-sizing: border-box;
}
#masthead .site-navigation.main-navigation.primary .main-navigation-container {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	margin-right: 59px;
}
#masthead .site-navigation.main-navigation.primary ul.menu {
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}
#masthead .site-navigation.main-navigation.primary ul.menu > li > a {
	color: #ffffff;
	font-weight: 600;
	font-size: 14px;
	padding: 15px 16px;
	text-decoration: none;
	display: block;
}
#masthead .site-navigation.main-navigation.primary ul.menu > li:hover > a,
#masthead .site-navigation.main-navigation.primary ul.menu > li.current-menu-item > a,
#masthead .site-navigation.main-navigation.primary ul.menu > li.current-menu-ancestor > a {
	background: #283858;
	color: #ffffff;
}
#masthead .site-navigation.main-navigation.primary ul.sub-menu {
	background: #3a507c !important;
	background-color: #3a507c !important;
	opacity: 1 !important;
	min-width: 220px;
	box-shadow: 0 4px 10px rgba(0,0,0,0.25);
	z-index: 99999;
}
#masthead .site-navigation.main-navigation.primary ul.sub-menu li a {
	color: #ffffff;
	font-size: 13px;
	padding: 10px 14px;
	display: block;
	text-decoration: none;
	border-bottom: 1px solid rgba(255,255,255,0.12);
}
#masthead .site-navigation.main-navigation.primary ul.sub-menu li:hover > a {
	background: #283858;
	color: #ffffff;
}
#masthead .site-navigation.main-navigation.primary .menu-mobilenav-container a.mobilenav-main-link {
	color: #ffffff;
	padding: 12px 10px;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	display: block;
}
@media (max-width: 480px) {
	#masthead .site-navigation.main-navigation.primary .main-navigation-container {
		margin-right: 0;
	}
}

/* Slider moderno de noticias (5 tarjetas en escritorio, CSS Grid + Scroll Snap) */
.ndr-news-slider {
	margin: 24px auto 32px;
	width: 100%;
	box-sizing: border-box;
}
.ndr-slider-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
	border-bottom: 2px solid #3a507c;
	padding-bottom: 8px;
}
.ndr-slider-title {
	margin: 0;
	font-size: 24px;
	color: #3a507c;
	font-weight: 700;
}
.ndr-slider-controls {
	display: flex;
	gap: 8px;
}
.ndr-slider-btn {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	border: 1px solid #3a507c;
	background: #ffffff;
	color: #3a507c;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 0 2px 0;
	transition: background-color 0.2s ease, color 0.2s ease;
}
.ndr-slider-btn:hover,
.ndr-slider-btn:focus-visible {
	background: #3a507c;
	color: #ffffff;
	outline: 2px solid #283858;
	outline-offset: 2px;
}
.ndr-slider-viewport {
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	-ms-overflow-style: none;
	padding: 16px 8px 22px;
}
.ndr-slider-viewport::-webkit-scrollbar {
	display: none;
}
.ndr-slider-track {
	display: grid;
	grid-auto-flow: column;
	gap: 16px;
	grid-auto-columns: calc((100% - 64px) / 5);
}
.ndr-news-card {
	scroll-snap-align: start;
	background: #dce5f5;
	border: 3px solid #96a8c8;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(58, 80, 124, 0.18);
	display: flex;
	flex-direction: column;
	position: relative;
	z-index: 1;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
}
.ndr-news-card.is-active {
	background: #ffffff;
	border-color: #3a507c;
	transform: scale(1.04);
	z-index: 2;
	box-shadow: 0 10px 24px rgba(58, 80, 124, 0.34);
}
.ndr-news-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(58, 80, 124, 0.28);
}
.ndr-news-card.is-active:hover {
	transform: scale(1.04) translateY(-2px);
	box-shadow: 0 12px 28px rgba(58, 80, 124, 0.38);
}
.ndr-news-card-media {
	display: block;
	position: relative;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: #e9eef7;
}
.ndr-news-card-media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(58, 80, 124, 0.14);
	pointer-events: none;
	transition: opacity 0.25s ease;
}
.ndr-news-card.is-active .ndr-news-card-media {
	background: #f4f6f9;
}
.ndr-news-card.is-active .ndr-news-card-media::after,
.ndr-news-card:hover .ndr-news-card-media::after {
	opacity: 0;
}
.ndr-news-card-media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
	transition: transform 0.3s ease;
}
.ndr-news-card:hover .ndr-news-card-media img {
	transform: scale(1.03);
}
.ndr-news-card-media.ndr-is-fallback img {
	object-fit: contain;
	padding: 12px;
	box-sizing: border-box;
}
.ndr-news-card-body {
	padding: 10px 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1 1 auto;
	background: rgba(58, 80, 124, 0.12);
	transition: background-color 0.25s ease;
}
.ndr-news-card.is-active .ndr-news-card-body,
.ndr-news-card:hover .ndr-news-card-body {
	background: #ffffff;
}
.ndr-news-card-date {
	font-size: 11.5px;
	color: #4b6189;
	font-weight: 600;
}
.ndr-news-card.is-active .ndr-news-card-date {
	color: #5b6575;
}
.ndr-news-card-title {
	margin: 0;
	font-size: 12.5px;
	line-height: 1.3;
	font-weight: 700;
	overflow-wrap: normal;
	word-break: normal;
	hyphens: none;
}
.ndr-news-card-title a {
	color: #2b3f66;
	text-decoration: none;
}
.ndr-news-card.is-active .ndr-news-card-title a {
	color: #1f2937;
}
.ndr-news-card-title a:hover,
.ndr-news-card-title a:focus-visible {
	color: #3a507c;
	text-decoration: underline;
}
.ndr-slider-dots {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}
.ndr-slider-dot {
	width: 10px;
	height: 10px;
	padding: 0;
	border-radius: 50%;
	border: none;
	background: #c7d0dd;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease;
}
.ndr-slider-dot.is-active {
	background: #3a507c;
	transform: scale(1.2);
}
@media (max-width: 1023px) {
	.ndr-slider-track {
		grid-auto-columns: calc((100% - 16px) / 2);
	}
}
@media (max-width: 639px) {
	.ndr-slider-track {
		grid-auto-columns: 100%;
	}
	.ndr-slider-title {
		font-size: 20px;
	}
}
