@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=League+Spartan:wght@100..900&family=Lexend:wght@100..900&display=swap');
**{
    margin: 0;
    padding: 0;
}

body{
    font-size: monserrat, sans-serif;
    font-weight: 500;
    background-color:#0f0f0f;
}

nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    background-color: #0000006d;
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    z-index: 999;
    border-radius: 0;
}

.logo{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    gap: 10px;
}

.logo img{
  width: 30px;
  height: auto;
  margin-left: 30px;
}
/* Hamburger button */
.hamburger{
    display: inline-flex;
    flex-direction: column;
    justify-content: space-between;
    width: 44px;
    height: 30px;
    padding: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    border-radius: 8px;
    transition: background .18s ease, transform .18s ease;
    -webkit-tap-highlight-color: transparent;
    z-index: 1000;
}

.hamburger:focus{
    outline: none;
    box-shadow: 0 0 0 4px rgba(218,41,28,0.14);
}

/* Bars */
.hamburger .bar{
    display: block;
    height: 3px;
    width: 100%;
    background: #ffffff;
    border-radius: 3px;
    transition: transform .36s cubic-bezier(.2,.7,.2,1), opacity .2s ease, background .24s ease;
    transform-origin: center;
}

/* Optional visual rhythm */
.hamburger .bar:nth-child(2){
    width: 72%;
    align-self: flex-end;
}

/* Active / open state (add/remove class "open" with JS) */
.hamburger.open{
    background: rgba(255,255,255,0.03);
}

.hamburger.open .bar:nth-child(1){
    transform: translateY(9px) rotate(45deg);
    background: #DA291C;
}

.hamburger.open .bar:nth-child(2){
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.open .bar:nth-child(3){
    transform: translateY(-9px) rotate(-45deg);
    background: #DA291C;
}

/* Small screens tweak */
@media (min-width: 768px){
    .hamburger{ width: 48px; height: 34px; padding: 8px; }
    .hamburger .bar{ height: 3.5px; }
}

    .nav-menu{
        position: fixed;
        top: 40px; /* debajo del nav */
        right: 12px;
        width: 220px;
        background: rgba(0,0,0,0.85);
        backdrop-filter: blur(6px);
        border-radius: 10px;
        padding: 8px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.6);
        transform: translateY(-8px) scale(.98);
        opacity: 0;
        pointer-events: none;
        transition: opacity .22s ease, transform .22s ease;
        z-index: 995;
    }

    /* estado abierto (añade/remueve la clase "open" con JS) */
    .nav-menu.open{
        transform: translateY(0) scale(1);
        opacity: 1;
        pointer-events: auto;
    }

    /* lista de opciones */
    .nav-menu ul{
        list-style: none;
        margin: 0;
        padding: 6px;
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    /* items */
    .nav-menu a{
        display: block;
        padding: 10px 12px;
        color: #ffffff;
        text-decoration: none;
        font-family: "Lexend", sans-serif;
        font-size: 14px;
        border-radius: 8px;
        transition: background .14s ease, color .14s ease, transform .14s ease;
    }

    .nav-menu a:hover,
    .nav-menu a:focus{
        background: rgba(255,255,255,0.04);
        color: #DA291C;
        transform: translateX(4px);
    }

    /* botón destacado dentro del menú */
    .nav-menu .cta{
        margin-top: 6px;
        padding: 10px;
        text-align: center;
        background: #DA291C;
        color: #fff;
        border-radius: 8px;
        font-weight: 700;
    }

    /* en pantallas grandes se muestra horizontal y dentro del nav */
    @media (min-width: 768px){
        .nav-menu{
            position: static;
            display: flex;
            width: auto;
            background: transparent;
            padding: 0;
            box-shadow: none;
            transform: none;
            opacity: 1;
            pointer-events: auto;
        }
        .nav-menu ul{
            flex-direction: row;
            gap: 18px;
            align-items: center;
        }
        .nav-menu a{
            padding: 6px 8px;
            color: #fff;
            background: transparent;
            transform: none;
        }
        .nav-menu a:hover{ background: rgba(255,255,255,0.03); transform: none; color: #DA291C; }
        .nav-menu .cta{ background: #DA291C; padding: 8px 14px; }
    }


    
/*GALERIA*/

.gallery{
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 40px 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    align-items: start;
    justify-items: center;
}

.gallery img{
    width: 150px;
    height: auto;
    border-radius: 20px;
}

.gallery img:hover{
    transform: scale(1.05);
    transition: transform 0.3s ease;
     background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(15,15,15,0.65) 100%) 
}

.gallery h3{
    color: #ffffff;
    font-size: 16px;
    margin-top: 10px;
    font-family: "League Spartan", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}


video{
    width: 200px;
    height: 200px;
    border-radius: 50px;
}


/*Responsive*/
/* Responsive: tablets, laptops y pantallas grandes */

/* Tablet: 768px – 1023px */
@media (min-width: 768px) and (max-width: 1023px) {
    nav { height: 56px; padding: 0 18px; }
    .hamburger { display: none; } /* muestra menú horizontal en esta anchura */
    .logo img { width: 32px; }

    .nav-menu ul { gap: 12px; }
    .nav-menu a { font-size: 15px; padding: 8px 10px; }

    main {
        height: 60vh;
        padding: 32px;
        background-position: center;
    }
    
    h1 { font-size: 100px; margin-top: 170px; margin-left: 24px; }
    h2 { font-size: 36px; }
    p { font-size: 14px; margin-left: 24px; margin-right: 24px; }

    button { padding: 10px 48px; }

    .gallery{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1px;
        margin-top: 2rem;
    }

    .gallery img{
        width: 250px;
    }

    .footer { padding: 24px; }
}

/* Laptop / Desktop: 1024px – 1365px */
@media (min-width: 1024px) and (max-width: 1365px) {
    nav { height: 64px; padding: 0 28px; }
    .hamburger { display: none; }
    .logo img { width: 36px; }

    .nav-menu ul { gap: 20px; }
    .nav-menu a { font-size: 16px; padding: 8px 12px; }

    main {
        height: 520px;
        padding: 48px;
    }
    h1 { font-size: 80px; margin-top: 72px; margin-left: 32px; }
    h2 { font-size: 44px; }
    p { font-size: 15px; margin-left: 32px; margin-right: 32px; }

    button { padding: 12px 44px; }

    .gallery{
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1px;
        margin-top: 2rem;
    }

    .gallery img{
        width: 200px;
    }

    .footer { padding: 32px; }
}

/* Large desktop: 1366px+ */
@media (min-width: 1366px) {
    nav { height: 72px; padding: 0 36px; }
    .hamburger { display: none; }
     .logo img { width: 60px; margin-right: 750px;}

    .nav-menu ul { gap: 24px; }
    .nav-menu a { font-size: 17px; padding: 10px 14px; }

    main {
        height: 640px;
        padding: 64px;
    }
    h1 { font-size: 150px; margin-top: 200px; margin-left: 40px; }
    h2 { font-size: 100px; }
    p { font-size: 25px; margin-left: 40px; margin-right: 40px; }

    button { padding: 20px 100px; font-size: 25px;}

    /* Servicios: 4 columnas si el espacio lo permite */
    .gallery{
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 2.5rem;
        margin-top: 3rem;
    }

    .gallery img{
        width: 400px;
    }
    
/* Footer */
/* Footer - estructura similar a index.html */
footer {
    background-color: #111;
    color: #ddd;
    font-family: 'Montserrat', sans-serif;
    padding: 50px 5% 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    /* margin-top: 200px; <-- ELIMINADO o REDUCIDO */
    margin-top: 60px;
    /* Un valor más razonable para separación */
}

/* Contenedor interno para alinear con el resto del layout */
.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    align-items: start;
}

/* Columnas individuales */
.footer-column h4 {
    margin: 0 0 12px;
    font-size: 25px;
    color: #fff;
    letter-spacing: 0.4px;
}

.footer-column p {
    margin: 0 0 10px;
    color: #cfcfcf;
    font-size: 20px;
    line-height: 1.6;
}

/* Enlaces del footer */
.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li a{
    font-size: 20px;
}

.footer-links li {
    margin: 8px 0;
}

.footer-links a {
    color: #cfcfcf;
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #9ecdff;
}

/* Redes sociales */
.footer-social {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 6px;
}

.footer-social a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    align-items: center;
    justify-content: center;
    transition: transform 0.18s ease, background 0.18s ease;
}

.footer-social a:hover {
    transform: translateY(-3px);
    background: rgba(158, 205, 255, 0.12);
}

.footer-social img {
    width: 18px;
    height: 18px;
    display: block;
}

/* Línea inferior con copyright y enlaces pequeños */
.footer-bottom {
    margin-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 20px;
    color: #bfbfbf;
}

.footer-bottom p{
    font-size: 20px;
}

.footer-bottom .legal-links {
    display: flex;
    gap: 14px;
    align-items: center;
}

.footer-bottom .legal-links a {
    color: #bfbfbf;
    text-decoration: none;
}

.footer-bottom .legal-links a:hover {
    color: #9ecdff;
}

.back-to-top {
    color: #ffffff;
    text-decoration: none;
    list-style: none;
}
}