/* ========================================
   NAVBAR STYLES - Danixpert
   ======================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #010F20;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.navbar {
    height: 135px;
    width: 100%;
}

.navbar-container {
    max-width: 1920px;
    height: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* ========================================
   LOGO
   ======================================== */
.navbar-logo {
    flex-shrink: 0;
}

.navbar-logo a {
    display: block;
    line-height: 0;
}

.navbar-logo img {
    width: 121px;
    height: 94px;
    object-fit: contain;
}

/* ========================================
   MENÚ DE NAVEGACIÓN
   ======================================== */
.navbar-menu {
    display: flex;
    list-style: none;
    gap: 40px;
    margin: 0;
    padding: 0;
    flex-grow: 1;
    justify-content: center;
}

.navbar-menu-contact {
    display: none;
}

.navbar-backdrop {
    display: none;
}

.navbar-menu li {
    margin: 0;
}

.nav-link {
    font-family: 'Roboto', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #FFFFFF;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    transition: all 0.3s ease;
    letter-spacing: 0;
    line-height: 100%;
}

.nav-link:hover {
    color: #4FC3F7;
    transform: translateY(-2px);
}

.nav-link:active {
    transform: translateY(0);
}

/* ========================================
   INFORMACIÓN DE CONTACTO
   ======================================== */
.navbar-contact {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    margin-left: 20px;
}

.contact-icon {
    position: relative;
    flex-shrink: 0;
    width: 81px;
    height: 81px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 69px;
    height: 69px;
    background-image: url('../../assets/images/Ellipse 2.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 1;
}

.contact-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 81px;
    height: 81px;
    background-image: url('../../assets/images/Ellipse 1.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 0;
}

.contact-icon img {
    position: relative;
    width: 37px;
    height: 38px;
    object-fit: contain;
    z-index: 2;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-phone {
    font-family: 'Roboto', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #FFFFFF;
    line-height: 100%;
    letter-spacing: 0;
}

.contact-email {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 100%;
    letter-spacing: 0;
}

/* ========================================
   BOTÓN HAMBURGUESA (Móvil)
   ======================================== */
.navbar-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #FFFFFF;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.navbar-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
}

.navbar-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-9.5px) rotate(-45deg);
}

/* ========================================
   ESPACIADO PARA CONTENIDO (Fixed navbar)
   ======================================== */
#main-content {
    margin-top: 135px;
}

/* ========================================
   RESPONSIVE - TABLET (1024px y menos)
   ======================================== */
@media screen and (max-width: 1024px) {
    .navbar-container {
        padding: 0 30px;
        gap: 30px;
    }

    .navbar-menu {
        gap: 25px;
    }

    .nav-link {
        font-size: 14px;
        padding: 8px 12px;
    }

    .contact-phone {
        font-size: 18px;
    }

    .contact-email {
        font-size: 13px;
    }
}

/* ========================================
   RESPONSIVE - MÓVIL (768px y menos)
   ======================================== */
@media screen and (max-width: 768px) {
    .navbar-backdrop {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(1, 15, 32, 0.65);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 999;
    }

    body.navbar-open .navbar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .contact-icon-wrapper {
        width: 45px;
        height: 45px;
    }
    
    .contact-icon-bg {
        width: 100%;
        height: 100%;
    }
    
    .contact-icon-img {
        width: 20px;
        height: 20px;
    }
    
    .navbar-contact span {
        font-size: 12px;
    }
    .navbar {
        height: 80px;
    }

    .navbar-container {
        padding: 0 20px;
        gap: 20px;
    }

    .navbar-logo img {
        width: 70px;
        height: auto;
    }

    /* Mostrar botón hamburguesa */
    .navbar-toggle {
        display: flex;
        order: 3;
    }

    /* Reordenar elementos en móvil */
    .navbar-contact {
        display: none;
    }

    /* Ajustar tamaños del ícono de contacto en móvil */
    .contact-icon {
        width: 38px;
        height: 38px;
    }

    .contact-icon::before {
        width: 32px;
        height: 32px;
    }

    .contact-icon::after {
        width: 38px;
        height: 38px;
    }

    .contact-icon img {
        width: 18px;
        height: 18px;
    }

    .contact-phone {
        font-size: 11px;
    }

    .contact-email {
        font-size: 8px;
    }

    /* Menú móvil */
    .navbar-menu {
        position: fixed;
        top: 80px;
        left: 0;
        width: 65%;
        height: calc(100vh - 80px);
        background-color: #010F20;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 40px 0px;
        gap: 0;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
        order: 4;
        border-right: 1px solid rgba(79, 209, 197, 0.2);
    }

    .navbar-menu.active {
        transform: translateX(0);
    }

    .navbar-menu li {
        width: 100%;
        text-align: left;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link {
        font-size: 16px;
        padding: 20px 20px;
        width: 100%;
        color: #FFFFFF;
        text-align: left;
    }

    /* Sección de contacto en el menú móvil */
    .navbar-menu-contact {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        padding: 20px 0 20px 0;
        border-top: 1px solid rgba(79, 209, 197, 0.2);
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .navbar-menu-contact-item {
        display: flex;
        align-items: center;
        gap: 12px;
        text-decoration: none;
        color: #FFFFFF;
        transition: all 0.3s ease;
        padding: 15px 20px 15px 10px;
        justify-content: flex-start;
        width: 100%;
        margin-left: -8px;
    }

    .navbar-menu-contact-item:hover {
        color: #4FD1C5;
    }

    .navbar-menu-contact-icon {
        width: 56px;
        height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        position: relative;
        margin-left: -10px;
    }

    .navbar-menu-contact-icon::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 33px;
        height: 33px;
        background-image: url('../../assets/images/Ellipse 2.webp');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        z-index: 1;
    }

    .navbar-menu-contact-icon::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 41px;
        height: 41px;
        background-image: url('../../assets/images/Ellipse 1.webp');
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        z-index: 0;
    }

    .navbar-menu-contact-icon img {
        width: 21px;
        height: 21px;
        object-fit: contain;
        z-index: 2;
        position: relative;
    }

    .navbar-menu-contact-text {
        font-family: 'Roboto', sans-serif;
        font-size: 11px;
        font-weight: 600;
        line-height: 120%;
        white-space: nowrap;
    }

    /* Ajustar espaciado del contenido */
    #main-content {
        margin-top: 80px;
    }
}

/* ========================================
   RESPONSIVE - MÓVIL PEQUEÑO (480px y menos)
   ======================================== */
@media screen and (max-width: 480px) {
    .navbar {
        height: 70px;
    }

    .navbar-container {
        padding: 0 15px;
    }

    .navbar-logo img {
        height: 40px;
    }

    .navbar-menu {
        top: 70px;
        height: calc(100vh - 70px);
        padding: 30px 15px;
        width: 65%;
    }

    .nav-link {
        font-size: 14px;
        padding: 18px;
    }

    .navbar-menu-contact {
        padding: 15px;
    }

    .navbar-menu-contact-item {
        padding: 15px 18px 15px 10px;
    }

    #main-content {
        margin-top: 70px;
    }
}

/* ========================================
   SECCIONES (Temporal para prueba)
   ======================================== */
/* Estilos temporales para secciones en desarrollo */
.section-galeria,
.section-marcas,
.section-mis-trabajos,
.section-servicios {
    min-height: 100vh;
    padding: 80px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #010F20;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.section-galeria h2,
.section-marcas h2,
.section-mis-trabajos h2,
.section-servicios h2 {
    font-family: 'Roboto', sans-serif;
    color: #FFFFFF;
    margin-bottom: 20px;
}

.section-galeria p,
.section-marcas p,
.section-mis-trabajos p,
.section-servicios p {
    font-family: 'Roboto', sans-serif;
    color: #FFFFFF;
    font-size: 18px;
}

/* ========================================
   FIX iOS Pull-To-Refresh (sticky header)
   ======================================== */
@supports ((position: sticky) or (position: -webkit-sticky)) {
    .main-header {
        position: -webkit-sticky;
        position: sticky;
    }

    #main-content {
        margin-top: 0;
    }
}
