/* Reset global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Añade padding al body para navbar fijo */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-top: 0px; /* ESSENCIAL para navbar fijo */
    overflow-x: hidden;
}

/* Header */
.hero {
    padding-top: 0px;
    width: 100%;
    height: 100vh;
    max-height: 720px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: rgba(7, 8, 70, 0.9);
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    height: 70px;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.menu {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    padding: 0.5rem 0;
}

.menu {
      display: flex;
      list-style: none;
      gap: 30px;
    }

.menu li a {
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 400;
    transition: color 0.3s;
}

.menu li a:hover {
    color: #ccc;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2rem;
    height: 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 2rem;
    height: 0.25rem;
    background: white;
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

/* Estilos del menú hamburguesa activo */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.logo {
    display: flex;
    justify-content: left;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.logo img {
    height: 65px;
    width: auto;
    margin-top: 1.2rem;
    margin-left: 0;
    object-fit: contain;
}

.logos {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}


.hero-content h1 {
    font-size: 2.5rem;
    margin-top: 2.5rem;
}

/* Serviços */
.servicos {
    padding: 3rem 1rem;
    text-align: center;
    color: rgb(255, 255, 255);
    font-family: 'Cinzel', serif;
    background-color: #070846;
}

.servicos h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.card {
    background: #070846;
    padding: 1.5rem;
    width: 100%;
    max-width: 300px;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
}

.card h3 {
    font-size: 1.1rem;
}

/* Estatísticas */
.estatisticas {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    padding: 2.5rem 1rem;
    background: #acacac;
    color: white;
    text-align: center;
    font-family: 'Cinzel', serif;
}

.box {
    padding: 1rem;
    margin: 0.5rem;
    flex: 1 1 200px;
    min-width: 200px;
    border-radius: 8px;
    background: rgba(7, 8, 70, 0.8);
}

/* Projetos */
.projetos {
    padding: 3rem 1rem;
    text-align: center;
    color: white;
    font-family: 'Cinzel', serif;
    background-color: #070846;
}

.projetos h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.galeria {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
}

.item {
    width: 160px;
    height: 160px;
    background: #070846;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ccc;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

/* CTA */
.cta1, .cta2 {
    background: #acacac;
    color: white;
    text-align: center;
    padding: 2.5rem 1rem;
    font-family: 'Cinzel', serif;
}

.cta1 h2, .cta2 h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.btn {
    background-color: #070846;
    color: #ffffff;
    padding: 0.8rem 1.5rem;
    margin-top: 1.5rem;
    display: inline-block;
    text-decoration: none;
    font-weight: bold;
    border-radius: 15px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #0a0a63;
    transform: translateY(-2px);
}

/* Clientes */
.clientes {
    padding: 3rem 1rem;
    text-align: center;
    color: white;
    font-family: 'Cinzel', serif;
    background-color: #070846;
}

.clientes h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.cliente1 {
    display: block;
    margin: 0 auto;
    max-width: 100%;
}

.cliente1 img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Galería horizontal */
.galeria-horizontal {
    overflow-x: auto;
    padding: 3rem 1rem;
    background-color: #070846;
}

.carrete {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    list-style: none;
    padding: 1.5rem;
    margin: 0;
}

.carrete li {
    flex: 0 0 auto;
    width: 280px;
}

.carrete img {
    width: 100%;
    height: auto;
    border-radius: 1.2rem;
    display: block;
    transition: transform 0.3s ease;
}

.carrete img:hover {
    transform: scale(1.05);
}

.titulo-feedbacks {
    text-align: center;
    font-size: 2rem;
    margin-top: 0;
    color: white;
    font-family: 'Cinzel', serif;
    background-color: #070846;
    padding: 2.5rem 0;
}

/* Videos */
.background-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
}

.segundo-video {
    display: block;
    max-width: 100%;
    height: auto;
    width: 100%;
    max-height: 720px;
    object-fit: cover;
}

/* Items de proyectos */
.item {
    position: relative;
    width: 180px;
    height: 180px;
    overflow: hidden;
    font-family: 'Cinzel', serif;
    border-radius: 10px;
    cursor: pointer;
}

.item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.item p {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0.6rem;
    background-color: rgba(7, 8, 70, 0.7);
    color: white;
    text-align: center;
    font-size: 1rem;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.3s ease;
    border-radius: 0 0 10px 10px;
}

.item:hover img {
    transform: scale(1.05);
}

.item:hover p {
    opacity: 1;
    transform: translateY(0);
}

/* WhatsApp */
.link-whatsapp img {
    height: 60px;
    position: fixed;
    right: 1.2rem;
    bottom: 1.2rem;
    z-index: 999;
    transition: transform 0.3s ease;
}

.link-whatsapp img:hover {
    transform: scale(1.1);
}



/* Formulario */
.formulario-fale-conosco {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    gap: 1.2rem;
    flex-direction: column;
    position: fixed;
    left: -400px;
    top: 50%;
    transform: translateY(-50%);
    padding: 2.5rem 1.8rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    width: 380px;
    max-width: 90vw;
}

.formulario-fale-conosco.visible {
    left: 50%;
    transform: translate(-50%, -50%);
}

.formulario-fale-conosco input,
.formulario-fale-conosco textarea {
    padding: 1rem 1.2rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.8rem;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    color: #333;
}

.formulario-fale-conosco input:focus,
.formulario-fale-conosco textarea:focus {
    outline: none;
    border-color: #3a7bd5;
    box-shadow: 0 0 0 3px rgba(58, 123, 213, 0.1);
    transform: translateY(-1px);
}

.formulario-fale-conosco textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.formulario-fale-conosco button[type="submit"] {
    background: linear-gradient(135deg, #3a7bd5, #00d2ff);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.6rem;
}

.formulario-fale-conosco button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(58, 123, 213, 0.3);
}

.redes-sociales {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.2rem;
}

.redes-sociales a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: rgba(7, 8, 70, 0.7);
    font-size: 1.4rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.redes-sociales a:hover {
    background-color: #acacac;
    transform: translateY(-5px);
}


/* Footer */
.footer {
    background-color: #222222;
    padding: 2.5rem 1rem;
    text-align: center;
    border-top: 1px solid #acacac;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.logo-red-social {
    width: 60px;
    height: 60px;
    transition: all 0.3s ease;
}


.redes-sociales {
    display: flex;
    justify-content: center;
    gap: 3.5rem;
    margin-bottom: 1.2rem;
}

.logo-red-social:hover {
    transform: scale(1.1);
    opacity: 0.8;
}

.redes-sociales a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    color: rgba(7, 8, 70, 0.7);
    font-size: 1.4rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.redes-sociales a:hover {
    background-color: rgba(26, 26, 26, 0.7);
    transform: translateY(-5px);
}

.footer-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 1.2rem;
}

.footer-info div {
    text-align: center;
}

.footer-info h4 {
    color: #acacac;
    margin-bottom: 0.6rem;
    font-size: 1.2rem;
    font-family: 'Cinzel', serif;
}

.footer-info p {
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: white;
}

.footer-info a {
    color: white;
    text-decoration: none;
}

.copyright {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #acacac;
    font-size: 0.9rem;
}

.mascara-formulario {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mascara-formulario.visible {
    opacity: 1;
    visibility: visible;
}

/* ========== RESPONSIVIDAD MEJORADA ========== */
@media (max-width: 1200px) {
    .navbar {
        padding: 1rem 3%;
    }
    
    .menu li a {
        font-size: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
}

@media (max-width: 992px) {
    .hero {
        height: 80vh;
    }
    
    .cards {
        gap: 1rem;
    }
    
    .card {
        max-width: 45%;
    }
    
    .estatisticas .box {
        flex: 1 1 45%;
    }
    
    .galeria {
        gap: 0.8rem;
    }
    
    .item {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    /* Menú hamburguesa */
    .hamburger {
        display: flex;
        z-index: 1001; /* ✅ Mayor que el menú */
        position: relative; /* ✅ Asegura que esté por encima */
    }
    
    .menu {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 220px;
        background: rgba(7, 8, 70, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease;
        padding: 2rem;
        gap: 4rem;
        z-index: 999; /* ✅ Menor que el hamburguesa */
    }
    
    .menu.active {
        right: 0;
    }
    
    /* Ajustes generales */
    .servicos, .projetos, .clientes, .cta1, .cta2 {
        padding: 2rem 1rem;
    }
    
    .servicos h2, .projetos h2, .clientes h2, .cta1 h2, .cta2 h2 {
        font-size: 1.6rem;
    }
    
    .cards {
        flex-direction: column;
        align-items: center;
    }
    
    .card {
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .estatisticas {
        flex-direction: column;
    }
    
    .box {
        flex: 1 1 100%;
        margin: 0.5rem 0;
    }
    
    .galeria {
        justify-content: center;
    }
    
    .item {
        width: 140px;
        height: 140px;
    }
    
    .item p {
        font-size: 0.9rem;
        padding: 0.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .redes-sociales {
        justify-content: center;
        margin-bottom: 1.5rem;
    }
    
    .footer-info {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .carrete {
        justify-content: flex-start;
        padding: 1rem;
    }
    
    .carrete li {
        width: 250px;
    }
    
    .btn {
        padding: 0.7rem 1.2rem;
        font-size: 1rem;
    }
    
    .formulario-fale-conosco {
        width: 50%;
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .navbar {
        padding: 0.8rem 4%;
    }
    
    .logo img {
        height: 40px;
    }
    
    .hero {
        height: 70vh;
    }
    
    .hero-content h1 {
        font-size: 1.8rem;
        margin-top: 1.5rem;
    }
    
    .servicos h2, .projetos h2, .clientes h2, .cta1 h2, .cta2 h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .card h3 {
        font-size: 1rem;
    }
    
    .item {
        width: 120px;
        height: 120px;
    }
    
    .item p {
        font-size: 0.8rem;
        padding: 0.4rem;
    }
    
    .carrete {
        padding: 0.5rem;
        gap: 1rem;
    }
    
    .carrete li {
        width: 220px;
    }
    
    .link-whatsapp img {
        height: 50px;
        right: 1rem;
        bottom: 1rem;
    }
    
    .titulo-feedbacks {
        font-size: 1.5rem;
        padding: 2rem 0;
    }
    
    .footer {
        padding: 2rem 1rem;
    }
    
    .footer-info h4 {
        font-size: 1.1rem;
    }
    
    .copyright {
        font-size: 0.8rem;
    }
}

@media (max-width: 400px) {
    .navbar {
        padding: 0.5rem 3%;
    }
    
    .hero {
        height: 60vh;
    }
    
    .servicos, .projetos, .clientes, .cta1, .cta2 {
        padding: 1.5rem 0.8rem;
    }
    
    .servicos h2, .projetos h2, .clientes h2, .cta1 h2, .cta2 h2 {
        font-size: 1.3rem;
    }
    
    .item {
        width: 100px;
        height: 100px;
    }
    
    .item p {
        font-size: 0.7rem;
        padding: 0.3rem;
    }
    
    .carrete li {
        width: 200px;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .formulario-fale-conosco input,
    .formulario-fale-conosco textarea {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .formulario-fale-conosco button[type="submit"] {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .link-whatsapp img {
        height: 45px;
    }
}

/* Animaciones para el menú */
.menu {
    transition: right 0.3s ease-in-out;
}