/* ==========================================================================
   ESTILOS GENERALES, MENÚ MODERNO CON FONDO Y ACCESOS RÁPIDOS
   ========================================================================== */

/* Protección multimedia general */
img, iframe, object, embed {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header Fijo */
.site-header-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #ffffff;
    border-bottom: 3px solid #004d25;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 6%;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-img {
    height: 55px;
    width: auto;
    display: block;
}

/* ==========================================================================
   DISEÑO DE MENÚ DE NAVEGACIÓN (ESTILO MÓDULO CON FONDO Y ALINEACIÓN)
   ========================================================================== */
.main-navigation .nav-menu {
    list-style: none;
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 5px 8px;
    align-items: center;
    background-color: #f4f7f5; /* Fondo tenue tipo cápsula/módulo */
    border-radius: 30px;
    border: 1px solid #e1e8e3;
}

.nav-menu .menu-item {
    position: relative;
}

/* Enlaces base del menú */
.nav-menu .menu-item > a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 8px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
}

/* Efectos Hover en el Menú */
.nav-menu .menu-item > a:hover {
    background-color: #004d25;
    color: #ffffff !important;
}

/* Formato Flexbox para que la flecha no altere la alineación */
.menu-link-has-arrow {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.arrow {
    font-size: 0.72rem;
    line-height: 1;
    display: inline-block;
    transition: transform 0.2s ease;
}

.has-dropdown:hover .arrow {
    transform: rotate(180deg); /* Gira la flecha suavemente al abrir */
}

/* Desplegables (Submenús) */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background-color: #ffffff;
    min-width: 230px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    list-style: none;
    padding: 8px 0;
    margin: 0;
    display: none;
    z-index: 1001;
    border-top: 3px solid #004d25;
}

.dropdown-menu li a {
    display: block;
    padding: 10px 18px;
    color: #333333;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.dropdown-menu li a:hover {
    background-color: #f0f7f2;
    color: #004d25;
    padding-left: 22px; /* Efecto sutil de desplazamiento al pasar el ratón */
}

.has-dropdown:hover .dropdown-menu {
    display: block;
}

/* Botones de Acción Header (Saeko y Plataforma) */
.header-action-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-header {
    text-decoration: none;
    font-weight: bold;
    font-size: 0.85rem;
    padding: 9px 16px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.btn-saeko {
    background-color: #004d25;
    color: #ffffff !important;
}

.btn-saeko:hover {
    background-color: #003319;
    box-shadow: 0 3px 8px rgba(0, 77, 37, 0.3);
}

.btn-plataforma {
    background-color: #ffffff;
    color: #004d25 !important;
    border: 1.5px solid #004d25;
}

.btn-plataforma:hover {
    background-color: #004d25;
    color: #ffffff !important;
}

/* ==========================================================================
   ESTILOS DE ACCESOS RÁPIDOS (QUICK LINKS CON FONDO Relleno Y CONTRASTE)
   ========================================================================== */
.quick-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f0f7f2 0%, #e3efe6 100%); /* Fondo degradado suave institucional */
    border: 1px solid #c8dec3;
    padding: 22px 15px;
    border-radius: 12px;
    text-decoration: none;
    color: #004d25;
    font-weight: bold;
    transition: transform 0.25 ease, box-shadow 0.25s ease, background 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 77, 37, 0.05);
}

.quick-link-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
    transition: transform 0.2s ease;
}

.quick-link-text {
    font-size: 0.95rem;
    color: #004d25;
    text-align: center;
}

.quick-link-card:hover {
    transform: translateY(-4px);
    background: #004d25;
    color: #ffffff !important;
    border-color: #004d25;
    box-shadow: 0 8px 20px rgba(0, 77, 37, 0.2);
}

.quick-link-card:hover .quick-link-text {
    color: #ffffff !important;
}

.quick-link-card:hover .quick-link-icon {
    transform: scale(1.15);
}

/* Estilos de Carrusel Swiper */
.swiper-button-next,
.swiper-button-prev {
    color: #ffffff !important;
    background-color: rgba(0, 77, 37, 0.65);
    width: 44px !important;
    height: 44px !important;
    border-radius: 50%;
    backdrop-filter: blur(4px);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(0, 77, 37, 0.95);
    transform: scale(1.08);
}

.swiper-button-next::after,
.swiper-button-prev::after {
    font-size: 1.1rem !important;
    font-weight: bold;
}

.swiper-pagination-bullet-active {
    background-color: #004d25 !important;
    width: 22px !important;
    border-radius: 4px !important;
}

/* Espaciado del contenido principal */
.site-main-content {
    padding: 30px 6%;
    max-width: 1400px;
    margin: 0 auto;
    min-height: 70vh;
}