@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #1b1726;
}

img {
    max-width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.header {
    background-image: url(../img/4cc5b305e289491590fa85af043561bd.gif);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding: 100px 0;
    position: relative;
    z-index: 0;
}

.menu {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1100;
}

.menu .navbar ul {
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu .navbar ul li {
    position: relative;
}

.menu .navbar ul li.logo-item img,
.menu .logo img {
    height: 40px;
    display: block;
    transition: transform 0.18s cubic-bezier(.2, .8, .2, 1);
}

.menu .navbar {
    margin-right: auto;
    padding-left: 20px;
}

.logo {
    color: #ff00c8;
    display: flex;
    align-items: center;
    font-size: 28px !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif !important;
}

.menu .navbar ul li a {
    font-size: 19px !important;
    padding: 8px 18px !important;
    color: #ffffff;
    font-weight: 700 !important;
    display: block;
    transition: all 0.3s ease;
    text-transform: capitalize !important;
    opacity: 0.85;
    font-family: 'Poppins', sans-serif !important;
}

.menu .navbar ul li a:hover,
.menu .navbar ul li a.active {
    color: #ff00c8 !important;
    opacity: 1;
    font-size: 19px !important;
    font-weight: 700 !important;
    font-family: 'Poppins', sans-serif !important;
    padding: 8px 18px !important;
    text-transform: capitalize !important;
}

/* ─── USER DROPDOWN (DESKTOP) ─── */
.user-dropdown-container {
    position: relative;
    display: inline-block;
    margin-top: 15px;
}

.user-welcome {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-welcome:hover {
    transform: translateY(-2px) scale(1.02);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
}

.user-welcome img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

.user-welcome .default-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #cccccc;
    display: inline-block;
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: #2a2238;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.user-dropdown-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #ddd;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
    text-align: left;
}

.user-dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.user-dropdown-menu hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

#menu {
    display: none;
}

.menu-icono {
    width: 28px;
}

.menu label {
    cursor: pointer;
    display: none;
}

.header-content {
    display: flex;
    width: 100%;
}

.header-txt {
    flex-basis: 50%;
}

.header-txt h1 {
    font-size: 60px;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 25px;
}

.header-txt span {
    color: #ff00c8;
}

.header-txt p {
    font-size: 17px;
    color: #ffffff;
    margin-bottom: 45px;
}

.butons {
    display: flex;
}

.btn-1,
.btn-2,
.btn-3 {
    display: inline-block;
    padding: 11px 35px;
    border: 2px solid #ff00c8;
    border-radius: 25px;
    margin-right: 25px;
    font-size: 17px;
    color: #ffffff;
    transition: background 0.3s ease;
}

.btn-1:hover {
    background-color: #ff00c8;
}

.popular {
    padding: 100px 0;
    text-align: center;
}

h2 {
    color: #ffffff;
    font-size: 35px;
    margin-top: 80px;
    margin-bottom: 45px;
    text-align: left;
}

.popular-content {
    display: flex;
    flex-direction: column;
    gap: 36px;
    margin: 30px 0 0 0;
}

.popular-row {
    display: flex;
    gap: 36px;
    justify-content: center;
}

.popular-container {
    background-image: linear-gradient(rgba(27, 23, 38, 0.8), rgba(27, 23, 38, 0.8)), url(../img/bg.jpg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-radius: 18px;
    padding: 40px 30px;
    margin-top: 60px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 0, 200, 0.08);
    backdrop-filter: blur(6px);
    margin-bottom: 60px;
}

.popular-card {
    position: relative;
    background: rgba(42, 34, 58, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 28px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(.175, .885, .32, 1.275);
}

.popular-card h3 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
}

.popular-card h3::after {
    content: "";
    display: block;
    width: 48px;
    height: 4px;
    background: linear-gradient(90deg, #ff6ad1, #ff00c8);
    border-radius: 3px;
    margin-top: 10px;
}

.popular-card p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    line-height: 1.6;
}

.popular-card:hover {
    transform: translateY(-12px) scale(1.03);
    background-color: rgba(42, 34, 58, 0.9);
    border-color: #ff00c8;
}

.product-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.product-1 {
    background-color: rgba(42, 34, 58, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 12px;
    transition: all 0.4s ease;
}

.product-1 img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.contact {
    padding: 100px 0;
    background-image: linear-gradient(rgba(27, 23, 38, 0.8), rgba(27, 23, 38, 0.8)), url(../img/bg.jpg);
    background-size: cover;
    background-attachment: fixed;
}

.contact-content {
    background-color: #2a223a;
    text-align: center;
    padding: 50px;
    border-radius: 50px;
}

form {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

input {
    padding: 18px 25px;
    background-color: #3f3456;
    border: 0;
    border-radius: 25px;
    color: #ffffff;
}

.btn-3 {
    background-color: #ff00c8;
    cursor: pointer;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 50px 0;
}

.link ul {
    display: flex;
}

.link ul li a {
    font-size: 17px;
    color: #ffffff;
    margin-right: 20px;
}

/* ──────────────────────────────────────────────────────────────────────────
   ─── MOBILE STYLES (UNIFIED) ──────────────────────────────────────────────
   ────────────────────────────────────────────────────────────────────────── */

@media (max-width: 991px) {

    /* ─── GLOBAL MOBILE HEADER OVERRIDE (EXACT MATCH) ─── */
    header.header .menu,
    header.header-nav .menu {
        padding: 14px 16px !important;
        flex-wrap: wrap;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-bottom: none !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 2000 !important;
    }

    header.header .menu label,
    header.header-nav .menu label {
        display: block !important;
        z-index: 2100 !important;
        order: 0;
    }

    header.header .menu .navbar,
    header.header-nav .menu .navbar {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        background: rgba(22, 14, 34, 0.98) !important;
        padding: 12px 18px !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6) !important;
        margin: 0 !important;
        z-index: 2050 !important;
        border-radius: 0 0 16px 16px;
    }

    header.header .menu #menu:checked~.navbar,
    header.header-nav .menu #menu:checked~.navbar {
        display: block !important;
    }

    header.header .menu .navbar ul,
    header.header-nav .menu .navbar ul {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        align-items: flex-start !important;
    }

    header.header .menu .navbar ul li,
    header.header-nav .menu .navbar ul li {
        width: 100% !important;
        float: none !important;
    }

    header.header .menu .navbar ul li a,
    header.header-nav .menu .navbar ul li a {
        padding: 8px 18px !important;
        font-size: 19px !important;
        color: #ffffff !important;
        display: block !important;
        border-bottom: none !important;
        text-align: left !important;
        font-weight: 700 !important;
        font-family: 'Poppins', sans-serif !important;
        text-transform: capitalize !important;
    }

    header.header .menu .navbar ul li a:hover,
    header.header-nav .menu .navbar ul li a:hover,
    header.header .menu .navbar ul li a.active,
    header.header-nav .menu .navbar ul li a.active {
        color: #ff00c8 !important;
        font-size: 19px !important;
        font-weight: 700 !important;
        font-family: 'Poppins', sans-serif !important;
        padding: 8px 18px !important;
        text-transform: capitalize !important;
    }

    header.header .menu .navbar ul li.logo-item,
    header.header-nav .menu .navbar ul li.logo-item {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        padding: 12px 0 4px 0 !important;
        margin-top: 8px !important;
        border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
        margin-left: 0 !important;
    }

    header.header .menu .navbar ul li.logo-item img,
    header.header-nav .menu .navbar ul li.logo-item img {
        height: 44px !important;
        width: auto !important;
        display: block !important;
        margin: 0 auto !important;
    }

    header.header .menu .menu-icono,
    header.header-nav .menu .menu-icono {
        width: 28px !important;
        height: auto !important;
        display: block !important;
    }

    .user-welcome {
        display: flex !important;
        order: 1 !important;
        margin-left: auto !important;
        font-size: 14px !important;
        padding: 5px 10px !important;
        width: max-content;
        background: transparent !important;
        border: none !important;
    }

    .user-welcome .welcome-text {
        display: none !important;
    }

    .user-welcome img {
        width: 32px !important;
        height: 32px !important;
    }

    /* ─── Page Content (Mobile) ─── */
    .header {
        padding-top: 130px !important;
        min-height: auto;
    }

    .header-txt {
        text-align: center;
        flex-basis: 100%;
    }

    .header-txt h1 {
        font-size: 38px;
    }

    .butons {
        justify-content: center;
    }

    .popular-row {
        flex-wrap: wrap;
        gap: 24px;
    }

    .popular-row .popular-card {
        flex: 1 1 calc(50% - 24px);
        min-width: 240px;
    }

    .popular-container.servicios {
        padding: 40px 24px;
        margin-top: 20px;
    }

    .product-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact {
        padding: 40px 20px;
    }

    form {
        flex-direction: column;
    }

    input {
        margin: 0 0 20px 0;
        width: 100%;
    }

    .footer {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .popular-row .popular-card {
        flex: 1 1 100%;
    }

    .header-txt h1 {
        font-size: 32px;
    }
}

.btn-highlight {
    background-color: #ff00c8;
    color: #ffffff;
    font-weight: 700;
    box-shadow: none;
    transition: all 0.3s ease;
}

.btn-highlight:hover {
    background-color: #ff33d1;
    box-shadow: none;
}