/* =====================================================
   ISLAND NAV — Liquid Glass / iOS Dynamic Island style
   ===================================================== */

/* --- Entrance animation --- */
@keyframes island-drop {
    from {
        opacity: 0;
        transform: translateY(-14px) scale(0.94);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- Header wrapper (transparent, just positions pills) --- */
.island-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    pointer-events: none;
}

.island-header > *,
.island-pills > * {
    pointer-events: auto;
}

/* -------------------------------------------------- */
/* LIQUID GLASS base — shared by logo + every pill    */
/* -------------------------------------------------- */
.island-logo,
.island-pill {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.11) 0%, transparent 60%),
        rgba(8, 15, 30, 0.55);

    backdrop-filter: blur(32px) saturate(200%) brightness(1.06);
    -webkit-backdrop-filter: blur(32px) saturate(200%) brightness(1.06);

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-bottom-color: rgba(255, 255, 255, 0.05);
    border-radius: 999px;

    box-shadow:
        0 6px 28px rgba(0, 0, 0, 0.42),
        0 1px 4px  rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.17),
        inset 0 -1px 0 rgba(0, 0, 0, 0.24);
}

/* -------------------------------------------------- */
/* LOGO pill                                          */
/* -------------------------------------------------- */
.island-logo {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    font-size: 17px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.02em;
    animation: island-drop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s both;
    transition: box-shadow 0.25s ease, transform 0.2s ease;
    flex-shrink: 0;
}

.island-logo span {
    color: var(--color-primary);
}

.island-logo:hover {
    transform: translateY(-1px);
    box-shadow:
        0 8px 36px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

/* -------------------------------------------------- */
/* PILLS container                                    */
/* -------------------------------------------------- */
.island-pills {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* -------------------------------------------------- */
/* Individual PILL                                    */
/* -------------------------------------------------- */
.island-pill {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 10px 14px;
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
    white-space: nowrap;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;

    transition:
        background    0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
        border-color  0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
        box-shadow    0.38s cubic-bezier(0.34, 1.56, 0.64, 1),
        color         0.28s ease,
        padding       0.42s cubic-bezier(0.34, 1.56, 0.64, 1),
        transform     0.28s cubic-bezier(0.34, 1.56, 0.64, 1);

    animation: island-drop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.island-pill:nth-child(1) { animation-delay: 0.10s; }
.island-pill:nth-child(2) { animation-delay: 0.16s; }
.island-pill:nth-child(3) { animation-delay: 0.22s; }
.island-pill:nth-child(4) { animation-delay: 0.28s; }
.island-pill:nth-child(5) { animation-delay: 0.34s; }

.island-pill:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.island-pill i {
    font-size: 14px;
    flex-shrink: 0;
    transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
    line-height: 1;
}

.island-pill__label {
    margin-left: 7px;
    pointer-events: none;
}

/* ---- HOVER (inactive) ---- */
.island-pill:not(.is-active):hover {
    color: #cbd5e1;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.15) 0%, transparent 60%),
        rgba(14, 24, 46, 0.70);
    transform: translateY(-1px);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.island-pill:not(.is-active):active {
    transform: scale(0.93) translateY(0);
}

/* ---- ACTIVE ---- */
.island-pill.is-active {
    color: #fff;
    padding-left: 16px;
    padding-right: 16px;

    background:
        radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.20) 0%, transparent 60%),
        rgba(6, 182, 212, 0.24);

    border-color: rgba(6, 182, 212, 0.40);

    box-shadow:
        0 4px 28px rgba(6, 182, 212, 0.28),
        0 0 0 1px rgba(6, 182, 212, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        inset 0 -1px 0 rgba(0, 0, 0, 0.14);
}

.island-pill.is-active i {
    transform: scale(1.12);
}

/* ---- CTA "Contactar" pill (always tinted) ---- */
.island-pill--cta {
    color: var(--color-primary);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(6,182,212,0.14) 0%, transparent 60%),
        rgba(6, 182, 212, 0.10);
    border-color: rgba(6, 182, 212, 0.24);
}

.island-pill--cta:not(.is-active):hover {
    color: #020617;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.22) 0%, transparent 60%),
        rgba(6, 182, 212, 0.88);
    border-color: var(--color-primary);
    box-shadow:
        0 4px 28px rgba(6, 182, 212, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

/* ---- Hamburger button (hidden on desktop) ---- */
.island-hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 16px;
    pointer-events: auto;
    border-radius: 999px;
    flex-shrink: 0;

    /* Same liquid glass as pills */
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.11) 0%, transparent 60%),
        rgba(8, 15, 30, 0.55);
    backdrop-filter: blur(32px) saturate(200%) brightness(1.06);
    -webkit-backdrop-filter: blur(32px) saturate(200%) brightness(1.06);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-bottom-color: rgba(255, 255, 255, 0.05);
    box-shadow:
        0 6px 28px rgba(0, 0, 0, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.17),
        inset 0 -1px 0 rgba(0, 0, 0, 0.24);

    transition: color 0.2s ease, background 0.2s ease, transform 0.18s ease;
    -webkit-tap-highlight-color: transparent;
}

.island-hamburger:hover {
    color: #e2e8f0;
    transform: scale(1.05);
}

.island-hamburger i {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- Mobile dropdown menu ---- */
.island-mobile-menu {
    position: fixed;
    top: 68px;
    left: 14px;
    right: 14px;
    z-index: 999;
    border-radius: 20px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;

    /* Liquid glass — slightly denser than pills */
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.09) 0%, transparent 55%),
        rgba(6, 12, 26, 0.82);
    backdrop-filter: blur(36px) saturate(180%) brightness(1.04);
    -webkit-backdrop-filter: blur(36px) saturate(180%) brightness(1.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom-color: rgba(255, 255, 255, 0.05);
    box-shadow:
        0 12px 48px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -1px 0 rgba(0, 0, 0, 0.22);

    /* Hidden by default */
    opacity: 0;
    transform: translateY(-10px) scale(0.97);
    pointer-events: none;
    transition:
        opacity   0.28s ease,
        transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.island-mobile-menu.is-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Mobile menu links */
.island-mobile-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 14px;
    color: #64748b;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.01em;
    transition: background 0.22s ease, color 0.22s ease;
    -webkit-tap-highlight-color: transparent;
}

.island-mobile-link i {
    font-size: 15px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.island-mobile-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #cbd5e1;
}

.island-mobile-link.is-active {
    background: rgba(6, 182, 212, 0.16);
    color: #fff;
    border: 1px solid rgba(6, 182, 212, 0.22);
}

.island-mobile-link.is-active i {
    color: var(--color-primary);
}

/* CTA link in mobile menu */
.island-mobile-link--cta {
    color: var(--color-primary);
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.18);
    margin-top: 4px;
}

.island-mobile-link--cta:hover {
    background: rgba(6, 182, 212, 0.18) !important;
    color: #e0f7fa !important;
}

/* ---- Responsive: hide pills on mobile, show hamburger ---- */
@media (max-width: 767px) {
    .island-pills     { display: none; }
    .island-hamburger { display: flex; }
    .island-header    { padding: 12px 14px; }
    .island-logo      { padding: 9px 16px; font-size: 15px; }
}

@media (min-width: 768px) {
    .island-hamburger    { display: none !important; }
    .island-mobile-menu  { display: none !important; }
}

/* ---- Body top padding ---- */
body { padding-top: 80px; }
@media (max-width: 767px) { body { padding-top: 68px; } }


/* =====================================================
   LIQUID GLASS SYSTEM — global utilities
   ===================================================== */

/* Background gradient orbs — give glass something to blur */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 35% at  8%  8%,  rgba(6,  182, 212, 0.13) 0%, transparent 70%),
        radial-gradient(ellipse 45% 55% at 92%  25%, rgba(59, 130, 246, 0.10) 0%, transparent 70%),
        radial-gradient(ellipse 60% 38% at 50%  72%, rgba(168,85,  247, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 38% 48% at 82%  88%, rgba(255,138, 40,  0.07) 0%, transparent 60%);
}

/* ---- Glass Card ---- */
.gl-card {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.07) 0%, transparent 55%),
        rgba(12, 20, 38, 0.50) !important;
    backdrop-filter: blur(20px) saturate(160%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(160%) !important;
    border-color: rgba(255, 255, 255, 0.09) !important;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 255, 255, 0.10),
        inset 0 -1px 0 rgba(0, 0, 0, 0.18) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
}

.gl-card:hover {
    transform: translateY(-3px) !important;
    border-color: rgba(6, 182, 212, 0.25) !important;
    box-shadow:
        0 8px 36px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(6, 182, 212, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.13),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15) !important;
}

/* ---- Glass Section background ---- */
.gl-section {
    background: rgba(10, 16, 32, 0.58) !important;
    backdrop-filter: blur(24px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(150%) !important;
    border-top-color:    rgba(255, 255, 255, 0.07) !important;
    border-bottom-color: rgba(255, 255, 255, 0.04) !important;
}

/* ---- Glass primary button (white CTA) ---- */
.gl-btn {
    background: rgba(255, 255, 255, 0.93) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
    transition: background 0.22s ease, box-shadow 0.22s ease, transform 0.18s ease !important;
}
.gl-btn:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: translateY(-1px) !important;
    box-shadow:
        0 6px 28px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

/* ---- Glass CTA button (brand-primary) ---- */
.gl-btn-cta {
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    box-shadow:
        0 4px 28px rgba(6, 182, 212, 0.48),
        0 0 0 1px rgba(6, 182, 212, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.28),
        inset 0 -1px 0 rgba(0, 0, 0, 0.12) !important;
}
.gl-btn-cta:hover {
    box-shadow:
        0 6px 36px rgba(6, 182, 212, 0.60),
        0 0 0 1px rgba(6, 182, 212, 0.40),
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        inset 0 -1px 0 rgba(0, 0, 0, 0.10) !important;
}
