:root  {
   --green-dark: #0B2E22;      /* más profundo */
   --green-main: #145A3A;      /* base */
   --green-accent: #22C55E;    /* MÁS VIVO (botones) */
   --green-soft: #86EFAC;      /* hover / detalles */

   --white: #FFFFFF;
   --grey: #E5E5E5;
   --black: #0e0d0d;
}
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}
a{
    text-decoration: none;
    color: var(--white);
}

body { 
    font-family: 'Montserrat', sans-serif; 
    color: var(--white); 
    background: var(--green-dark); 
    
}
/* NAVBAR MOBILE FIRST */
.menu-toggle {
    display: block;
    font-size: 24px;
    cursor: pointer;
}
/* NAVBAR */ 
.navbar { 
    display: flex; 
    justify-content: space-between; 
    padding: 1rem 1.5rem; 
    position: fixed; 
    width: 100%; 
    z-index: 10; 
    align-items: center;
    gap:.5rem;
    background: rgba(11,46,34,0.6);
    backdrop-filter: blur(10px);
   
}
.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 260px;
    background: var(--green-dark);
    flex-direction: column;
    padding: 60px 20px;
    gap: 20px;
    display: flex;  
    transition: right 0.4s ease;
    z-index: 999;
}   
.nav-links a {
    margin: 10px 0;
    text-decoration: none;
    color: var(--white);
}
.nav-links a:hover{
    color: var(--green-accent);
}
.logo { font-family: 'Oswald', sans-serif; 
    font-size: 22px; 
    letter-spacing: 1px; 
  
}
/* cuando está abierto */
.nav-links.active {
    right: 0;
    opacity: 1;
    transform: translateX(0);
}
.logo-mobile {
    height: 60px;
}

/* navbar alineado */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.close-menu {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 26px;
    cursor: pointer;
    color: white;
}
.logo-menu{
    position: absolute;
    top:15px;
    font-size: 10px;

}
.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.menu-header img {
    height: 35px;
}

/* HERO */ 
 .hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;

    background: 
        linear-gradient(rgba(11,46,34,0.7), rgba(11,46,34,0.7)),
        url('../images/hero.jpg') center/cover no-repeat;
} 
.hero-content { 
    max-width: 600px; 
} 
.hero h1 { 
    font-family: 'Oswald', sans-serif; 
    font-size: 50px; 
    line-height: 1.1; 
    text-transform: uppercase; 
    color: var(--white);
} 
.hero h1 span { 
    color: var(--green-accent); 
} 
.hero p { 
    margin: 20px 0; 
    font-size: 18px; 
} 
.btn { 
    display: inline-block; 
    padding: 12px 20px; 
    background: var(--green-accent);
    color: var(--black);
    font-weight: bold; 
    text-decoration: none; 
    border-radius: 5px; 
    margin-top: 10px; 
    transition: 0.3s; 
    text-align: center;
} 
.btn:hover { 
    background: var(--green-soft);
} 
/* SERVICES PRO */
.services { 
    padding-top: 100px;
    /*background: var(--green-main);*/
    text-align: center; 
} 

.services h2 { 
    font-family: 'Oswald', sans-serif; 
    font-size: 40px; 
    margin-bottom: 60px; 
} 

.cards { 
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px; 
} 

.card { 
    background: rgba(255,255,255,0.05);
    padding: 40px 25px; 
    border-radius: 15px; 
    transition: 0.3s;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.08);
    margin: 25px;
}

/* iconos */
.card i {
    font-size: 35px;
    color: var(--green-accent);
    margin-bottom: 20px;
}

/* titulo */
.card h3 { 
    font-size: 20px;
    margin-bottom: 10px;
} 

/* texto */
.card p {
    font-size: 14px;
    color: #ccc;
    margin-bottom: 20px;
}

/* link */
.link {
    color: var(--greenlight);
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

/* hover effect */
.card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.1);
}
/* PORTFOLIO */
.portfolio {
    padding-top: 100px;
    text-align: center;
    margin: 25px;
}

.portfolio h2 {
    font-family: 'Oswald', sans-serif;
    font-size: 40px;
    margin-bottom: 60px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.portfolio-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: 0.5s;
}

/* MODAL PROJECTS */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #0B2E22;
    padding: 20px;
    border-radius: 10px;
    max-width: 500px;
    text-align: center;
}

.modal img {
    width: 100%;
    border-radius: 10px;
}

.close {
    cursor: pointer;
    float: right;
    font-size: 24px;
}

/* overlay elegante */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.4s;
    padding: 20px;
    text-align: center;
}

.overlay h3 {
    font-size: 20px;
    margin-bottom: 5px;
}

.overlay p {
    font-size: 14px;
    margin-bottom: 15px;
    color: #ccc;
}

.btn-small {
    padding: 8px 18px;
    background: var(--green-accent);
    color: var(--black);
    text-decoration: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: bold;
}

/* efectos hover */
.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item:hover .overlay {
    opacity: 1;
}
/* CTA */ 
.contact {
    padding-top:100px;
    margin: 25px;
    
}

.contact-container {
    display: flex;
    justify-content: center;
}

/* card principal */
.contact-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;

    background: rgba(255,255,255,0.05);
    padding: 50px;
    border-radius: 20px;

    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);

    max-width: 1100px;
    width: 100%;
}

/* texto */
.contact-text h2 {
    font-size: 38px;
    margin-bottom: 15px;
}

.contact-text p {
    color: #ccc;
    margin-bottom: 20px;
}

/* info */
.contact-info p {
    margin: 10px 0;
}

/* botones agrupados */
.contact-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    flex-direction: column;
}

/* imagen mejorada */
.contact-img {
    width: 260px;
    height: 260px;
    position: relative;
}

.contact-img img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;

    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

/* SECTION */
.section {
    opacity: 1;
    transform: translateY(0px);
    transition: all 0.6s ease;
}

.section.hidden {
    opacity: 0;
    transform: translateY(40px);
}

/* cuando aparece */
.section.show {
    opacity: 1;
    transform: translateY(0);
}

.footer { 
    padding: 20px; 
    text-align: center; 
    font-size: 14px; 
    background: #081c15;
    color: #aaa; 
}


@media (min-width: 768px) {

    .menu-toggle {
        display: none;
    }
    .logo-menu{
        display: none;
    }

    .nav-links {
        display: flex !important;
        position: static;
        right: 0;
        height: auto;
        flex-direction: row;
        background: transparent;
        width: auto;
        padding: 0;
      
    }
    .card{
         padding: 60px 40px; 
    }
    .cards{
        gap: 60px;
    }

    .nav-links a {
        margin-left: 15px;
        text-decoration: none;
        color: var(--white);
    }
    .contact-container {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }
    .contact-img img{
        object-fit: contain;
    }
    .close-menu {
    display: none;
    }
    .btn { 
        width: 200px;
        height: 50px;
        padding: 15px 20px;
        text-align: center;
    } 
    .hero h1 { 
    font-family: 'Oswald', sans-serif; 
    font-size: 80px; 
    line-height: 1.1; 
    text-transform: uppercase; 
    color: var(--white);
    } 
    .hero h1 span { 
        color: var(--green-accent); 
    }
    .services{
        padding-top: 200px;
    }
    .portfolio{
        padding-top: 200px;
    }
    .contact{
        padding-top: 200px;
        padding-bottom: 200px;
    }
    .services h2{
        font-size: 45px;
    
    }
    .portfolio h2{
        font-size: 45px;
      
    }
   

}