/* ==========================================================
   COMPONENTS.CSS — Estilos compartidos del sitio Llakik Wasi
   Extraídos para evitar duplicación en cada HTML
   ========================================================== */

/* =========================
   MENÚ PRINCIPAL PRO
   ========================= */
.main-menu nav > ul {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* items */
.main-menu nav > ul > li {
    position: relative;
    list-style: none;
}

/* links */
.main-menu nav > ul > li > a {
    display: block;
    padding: 12px 14px;
    font-size: 14px;
    color: #0b2c5f;
    text-decoration: none;
    font-weight: 500;
}

/* hover */
.main-menu nav > ul > li:hover > a {
    color: #ff3d00;
}

/* =========================
   SUBMENÚ PRO
   ========================= */
.main-menu nav ul ul {
    position: absolute;
    top: 100%;
    left: 0;
    display: none;
    background: #fff;
    min-width: 280px;
    padding: 10px 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-top: 3px solid #ff3d00;
    z-index: 999;
    max-height: 70vh;
    overflow-y: auto;
    min-width: 340px;
}

/* mostrar */
.main-menu nav ul li:hover > ul {
    display: block;
}

/* items */
.main-menu nav ul ul li {
    display: block;
}

/* links */
.main-menu nav ul ul li a {
    padding: 10px 20px;
    display: block;
    color: #0b2c5f;
}

/* hover */
.main-menu nav ul ul li a:hover {
    background: #f5f5f5;
    color: #ff3d00;
}

/* =========================
   FIX DESBORDE
   ========================= */
.main-menu nav > ul > li:last-child > ul {
    left: auto;
    right: 0;
}

/* =========================
   REDES SOCIALES PRO
   ========================= */
.header-social a {
    font-size: 16px;
    margin: 0 6px;
    transition: 0.3s;
}

.header-social a:hover {
    color: #ff3d00;
}

/* =========================
   MENÚ ACTIVO
   ========================= */
.main-menu nav > ul > li.active > a {
    color: #ff3d00;
    font-weight: 600;
    border-bottom: 2px solid #ff3d00;
}

/* icono activo */
.main-menu nav > ul > li.active > a i {
    color: #ff3d00;
}

/* =========================
   LOGO
   ========================= */
.logo img {
    max-height: 100%;
    width: auto;
}

/* =========================
   GALERÍA FOOTER
   ========================= */
.insta-feed {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.insta-feed li {
    width: 30%;
}

/* ==============================
   CAROUSEL MEJORADO - LLAKIK WASI
   ============================== */

.carousel-img {
    height: 420px !important;
    object-fit: cover;
    object-position: center top;
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(5, 20, 60, 0.72) 0%,
        rgba(5, 20, 60, 0.35) 60%,
        rgba(5, 20, 60, 0.08) 100%
    );
    z-index: 1;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(calc(-50% + 30px)); }
    to   { opacity: 1; transform: translateY(-50%); }
}

/* Etiqueta pequeña arriba */
.caption-tag {
    display: inline-block;
    background: #ff3d00;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 2px;
    margin-bottom: 18px;
}

/* Título principal */
.carousel-caption.custom-caption h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.15;
    margin-bottom: 16px;
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

/* Subtítulo */
.carousel-caption.custom-caption p {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 32px;
    font-weight: 400;
    line-height: 1.6;
}

/* Botón CTA */
.btn-carousel {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #ff3d00;
    color: #fff;
    padding: 14px 28px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    transition: background 0.25s, transform 0.2s;
}

.btn-carousel:hover {
    background: #e03600;
    color: #fff;
    transform: translateX(4px);
    text-decoration: none;
}

.btn-carousel i {
    font-size: 13px;
    transition: transform 0.2s;
}

.btn-carousel:hover i {
    transform: translateX(4px);
}

/* Flechas de navegación rediseñadas */
.carousel-arrow-btn {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    transition: background 0.25s, border-color 0.25s;
    backdrop-filter: blur(4px);
}

.carousel-arrow-btn:hover {
    background: #ff3d00;
    border-color: #ff3d00;
}

.carousel-control-prev,
.carousel-control-next {
    width: auto;
    opacity: 1;
}

.carousel-control-prev { left: 20px; }
.carousel-control-next { right: 20px; }

/* Indicadores tipo barra delgada */
.carousel-indicators-custom {
    bottom: 22px;
    margin: 0;
    justify-content: center;
    gap: 6px;
}

.carousel-indicators-custom li {
    width: 32px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.4);
    border: none;
    margin: 0;
    transition: background 0.3s, width 0.3s;
}

.carousel-indicators-custom li.active {
    width: 56px;
    background: #ff3d00;
}

/* ==============================
   HEADER COMPACTO: logo + menú
   ============================== */

/* Ocultar completamente el header-mid (donde estaba la imagen) */
.header-mid {
    display: none !important;
}

/* Contenedor flex para logo + menú en una sola fila */
.header-flex-new {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0;
}

/* Logo inline */
.logo-inline {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 6px 0;
}

.logo-inline img {
    height: 100px !important;
    width: auto;
    display: block;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.15));
}

/* Ajuste del menú para que ocupe el espacio restante */
.header-flex-new .main-menu {
    flex: 1;
}

/* Reducir padding de los links para que entren todos */
.header-flex-new .main-menu nav > ul > li > a {
    padding: 18px 10px;
    font-size: 13px;
}

/* Sticky: ocultar sticky-logo porque ya está el logo-inline */
.sticky-logo {
    display: none !important;
}

/* Que la barra del menú tenga altura suficiente para el logo */
.header-bottom {
    padding: 4px 0 !important;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 768px) {
    .carousel-img {
        height: 280px !important;
    }
    .logo-inline img {
        height: 54px !important;
    }
}
