/* Additional CSS Styles */
.panel-grid {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}
.extra-block,
.extra-block1 {
 min-height:100%;
 margin: 0 auto -38px;
 position:relative; 
}

.extra-block{background:url(../images/tail-bg-cont.png) repeat-x 0 bottom}
.extra-block1{ margin: 0 auto -5%;}

/**********row-top*************/

.row-top{overflow:hidden;background:url(../images/tail-bg-top.png);
padding:4px 0 4px;
position:relative;
height:18px;
z-index:10}
.list-soc{
	float: left;
	margin-left: 30px
}
/* Agrandar */			
.agrandar {
    -webkit-transition-duration: 0.5s;
    -o-transition-duration: 0.5s;
    transition-duration: 0.5s;
    -webkit-transition-property: -webkit-transform;
    -o-transition-property: -o-transform;
    transition-property: transform;
    overflow: hidden;
}  
/* Transformación al pasar el ratón por encima */ 
.agrandar:hover {
    transform: scale(1.08, 1.08) rotate(0deg);
    -ms-transform: scale(1.08, 1.08) rotate(0deg);
    -webkit-transform: scale(1.08, 1.08) rotate(0deg);
    -o-transform: scale(1.08, 1.08) rotate(0deg);
}


.go-top {
	position: fixed;
	bottom: 90px;
	right: 15px;
	text-decoration: none;
	color: #fff;
	background-color: rgba(0, 0, 0, 0.3);
	font-size: 12px;
	padding: 1em;
	display: none;
}

.go-top:hover {
	background-color: rgba(0, 0, 0, 0.6);
}

.art-nav:before 
{
   content:' ';
}

nav.art-nav
{
   border-bottom-right-radius: 0;
   border-bottom-left-radius: 0;
   float:right
}

.google-maps {
    position: relative;
    padding-bottom: 75%; /* Esta es la relación de aspecto */
    height: 0;
    overflow: hidden;
}

.google-maps iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important; /* Utiliza 100% en lugar de 80% para ocupar todo el espacio disponible */
}

.video-responsive {
position: relative;
padding-bottom: 56.25%; /* 16/9 ratio */
padding-top: 30px; /* IE6 workaround*/
height: 0;
overflow: hidden;
}

.video-responsive iframe,
.video-responsive object,
.video-responsive embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}

html {
    scroll-behavior: smooth;
}


/* Tamano del logo de ordenador: cambiar 90px para ajustarlo. */
:root {
    --moraleda-logo-alto: 90px;
    --moraleda-logo-fijo-alto: 60px;
}
.header_wrapper.header_type1:not(.customnav) {
    height: calc(var(--moraleda-logo-alto) + 20px);
}
.header_wrapper.header_type1 .logo #logo_image {
    height: var(--moraleda-logo-alto) !important;
    width: auto !important;
    max-height: none !important;
    max-width: none !important;
    object-fit: contain;
}
.header_wrapper.header_type1.customnav .logo #logo_image {
    height: var(--moraleda-logo-fijo-alto) !important;
}
/* Botones: rojo del logo de Asesoria Moraleda. */
:root {
    --moraleda-rojo: #ff0000;
    --moraleda-rojo-hover: #cc0000;
}
html body .wpresidence_button,
html body #all_wrapper .wpresidence_button {
    background-color: var(--moraleda-rojo) !important;
    background-image: none !important;
    border-color: var(--moraleda-rojo) !important;
    color: #ffffff !important;
}
html body .wpresidence_button:hover,
html body .wpresidence_button:focus,
html body #all_wrapper .wpresidence_button:hover,
html body #all_wrapper .wpresidence_button:focus {
    background-color: var(--moraleda-rojo-hover) !important;
    background-image: none !important;
    border-color: var(--moraleda-rojo-hover) !important;
    color: #ffffff !important;
}
html body .wpresidence_button:focus-visible {
    outline: 2px solid var(--moraleda-rojo-hover);
    outline-offset: 3px;
}

/* Enlace a la asesoria dentro de la cabecera de inicio. */
html body a.moraleda-advisory {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) 22%;
    grid-template-rows: auto auto;
    align-items: center;
    column-gap: 24px;
    row-gap: 16px;
    width: 100%;
    min-height: 200px;
    margin: 24px 0 0;
    padding: 28px;
    border: 1px solid #fff;
    border-radius: 16px;
    background: #fff;
    color: #24262b;
    text-decoration: none;
    text-align: left;
    box-shadow: 0 24px 55px rgba(0,0,0,.32), 0 6px 16px rgba(0,0,0,.18);
    transition: box-shadow .2s ease;
}
html body a.moraleda-advisory::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 25%;
    z-index: -1;
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0) 45%), url("wp-content/uploads/2022/08/fondo-asesoria-moraleda.jpeg") 75% center / cover no-repeat;
    pointer-events: none;
}
.moraleda-advisory__logo { grid-column: 1; grid-row: 1 / 3; display: flex; align-items: center; justify-content: center; }
.moraleda-advisory__logo img { display: block; width: 96px; height: auto; max-width: 100%; }
.moraleda-advisory__copy { grid-column: 2; grid-row: 1; display: grid; gap: 8px; min-width: 0; align-self: end; }
.moraleda-advisory__eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.6px; line-height: 1.4; color: #666; }
.moraleda-advisory__title { font-size: 20px; font-weight: 600; line-height: 1.4; color: #24262b; }
.moraleda-advisory__action { grid-column: 2; grid-row: 2; justify-self: start; align-self: start; display: inline-flex; align-items: center; gap: 14px; padding: 10px 18px; border: 1px solid var(--moraleda-rojo, #ff0000); border-radius: 8px; background: var(--moraleda-rojo, #ff0000); font-size: 13px; font-weight: 600; line-height: 1.5; color: #fff; }
.moraleda-advisory__action > span { font-size: 20px; }
html body a.moraleda-advisory:hover { color: #24262b; box-shadow: 0 28px 65px rgba(0,0,0,.38), 0 8px 20px rgba(0,0,0,.20); }
html body a.moraleda-advisory:hover .moraleda-advisory__action { background: var(--moraleda-rojo-hover, #cc0000); border-color: var(--moraleda-rojo-hover, #cc0000); }
html body a.moraleda-advisory:focus-visible { outline: 3px solid var(--moraleda-rojo, #ff0000); outline-offset: 4px; }
@media (max-width: 600px) {
    html body a.moraleda-advisory { grid-template-columns: 72px minmax(0,1fr); column-gap: 16px; min-height: 270px; padding: 22px 20px 100px; margin-top: 18px; }
    html body a.moraleda-advisory::before { top: auto; width: 100%; height: 85px; background-image: linear-gradient(180deg, #fff 0%, rgba(255,255,255,0) 60%), url("wp-content/uploads/2022/08/fondo-asesoria-moraleda.jpeg"); background-position: center, center 58%; }
    .moraleda-advisory__title { font-size: 17px; }
    .moraleda-advisory__eyebrow { font-size: 10px; }
    .moraleda-advisory__action { padding: 10px 12px; gap: 8px; }
}

/* Entrada suave, una vez al cargar la pagina. */
@keyframes moraleda-advisory-enter {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: no-preference) {
    html body a.moraleda-advisory {
        animation: moraleda-advisory-enter .75s cubic-bezier(.22,1,.36,1) .18s backwards;
    }
    html body a.moraleda-advisory:focus-visible {
        animation: none;
    }
}
@media (prefers-reduced-motion: reduce) {
    html body a.moraleda-advisory { animation: none; transition: none; }
}