.am-widget-wrap-43d60e74 {
    position: relative;
    width: 100%;
    --am-hover-color: #0f384a; /* default fallback, overridden by Elementor inline CSS */
}

.am-header-43d60e74 {
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #fff;
    transition: height 0.3s ease;
    border-bottom: 1px solid #eee;
    z-index: 10;
    position: relative;
    padding: 0 20px;
    box-sizing: border-box;
}

.is-scrolled .am-header-43d60e74 {
    height: 80px;
}

.am-header-inner-43d60e74 {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 1200px;
}

.am-logo-container-43d60e74 {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.am-logo-container-43d60e74 img {
    width: auto;
    max-width: 380px; /* safeguard: caps runaway width if Logo Max Height is set very high on a wide/flat logo */
    transition: max-height 0.3s ease;
}

.am-separator-43d60e74 {
    width: 2px;
    height: 60px; /* Adjusted height to fit within 100px header */
    background-color: #dddddd;
    margin-right: 15px;
    border-radius: 2px; /* rounded ends */
    transition: height 0.3s ease, background-color 0.3s ease;
}

.am-nav-sep-43d60e74 .am-separator-43d60e74 {
    margin-right: 0;
}

.is-scrolled .am-separator-43d60e74 {
    height: 40px;
}

.am-primary-nav-43d60e74 {
    flex-grow: 1;
}

.am-primary-nav-43d60e74 ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 10px;
    align-items: center;
}

.am-item-link-wrap {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
	min-width:160px;
}

.am-item-title-43d60e74 {
    color: #1b5e7e; /* Updated color, managed by Elementor */
    font-weight: 800;
    font-size: 18px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.am-item-subtext-43d60e74 {
    color: #888;
    font-size: 12px;
    margin-top: 5px;
    transition: opacity 0.3s, max-height 0.3s, margin-top 0.3s;
    opacity: 1;
    max-height: 30px;
}

.is-scrolled .am-item-subtext-43d60e74 {
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
}

/* Mega Menu Dropdown */
.am-mega-dropdown-43d60e74 {
    position: fixed;
    top: 100px;
    left: 0;
    width: 100vw;
    min-height: 50vh;
    background: #fdfdfd;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: none;
    grid-template-columns: 41.66666667% 33.33333333% 25%;
    gap: 0;
    padding: 0;
    z-index: 9;
    box-sizing: border-box;
    transition: top 0.3s ease;
}

.is-scrolled .am-mega-dropdown-43d60e74 {
    top: 80px;
}

.am-mega-dropdown-43d60e74.is-active {
    display: grid;
}

.am-mega-col {
    min-width: 0;
    box-sizing: border-box;
    padding: 40px;
}

.am-mega-col-1 {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0; /* image only */
}

.am-mega-col-3 {
    background-color: #f5f5f5; /* default gray, overridden by elementor settings */
}

/* Link Lists inside Mega Menu */
.am-mega-link-list-43d60e74 {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.am-mega-link-list-43d60e74 li {
    margin: 0;
}

.am-mega-link-list-43d60e74 a {
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    line-height: 1.3;
    transition: color 0.3s ease;
}

/* Link principal: primer ítem de cada lista */
.am-mega-link-list-43d60e74 li:first-child a {
    font-size: 1.5rem;
    font-weight: 700;
}

.am-mega-link-list-43d60e74 a:hover {
    color: var(--am-hover-color);
}

/* ── Icon Link List (col 3 bottom) ── */
.am-icon-link-list-43d60e74 {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-top: 1px solid #e0e0e0;
    padding-top: 20px;
}

.am-icon-link-list-43d60e74 a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.am-icon-link-list-43d60e74 a:hover {
    color: var(--am-hover-color);
}

.am-icon-link-icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    font-size: 1.1em;
}

.am-icon-link-text {
    flex: 1;
}

.am-icon-link-arrow {
    font-size: 1em;
    line-height: 1;
}
