/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    padding: 10px 5%;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    height: 100%;
    transition: padding 0.3s ease;
}

.logo-link {
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-img {
    height: 50px;
}

.company {
    color: var(--primary-green);
    font-size: 1.6rem;
    font-weight: 900;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    font-size: 1rem;
    font-weight: 700;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-green);
}

/* ---------------------------  Menú responsivo  --------------------------- */

/* 1 - Ocultamos el checkbox visualmente */
.nav-toggle {
    display: none;
}

/* 2 - Hamburguesa base (visible solo en pantallas pequeñas) */
.hamburger {
    display: none;
    /* desktop */
    width: 2rem;
    height: 1.6rem;
    position: relative;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    /* evita flash en móvil */
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--dark-gray);
    transition: transform .35s ease, top .35s ease, opacity .35s ease;
}

/* Colocamos las tres barras */
.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span:nth-child(3) {
    bottom: 0;
}

/* 3 - Estado abierto: transformamos en “X” */
.nav-toggle:checked+.hamburger span:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.nav-toggle:checked+.hamburger span:nth-child(2) {
    opacity: 0;
}

.nav-toggle:checked+.hamburger span:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

@media (max-width: 768px) {

    /* ---------- Icono hamburguesa fijo y sobre el panel ---------- */
    .hamburger {
        display: block;
        position: fixed;
        top: 1.2rem;
        right: 1.5rem;
        width: 2rem;
        height: 1.6rem;
        z-index: 1002;
        /* por encima del menú y overlay */
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .hamburger span {
        position: absolute;
        left: 0;
        width: 100%;
        height: 3px;
        background: var(--dark-gray);
        transition: transform .35s ease, top .35s ease, opacity .35s ease;
    }

    .hamburger span:nth-child(1) {
        top: 0;
    }

    .hamburger span:nth-child(2) {
        top: 50%;
        transform: translateY(-50%);
    }

    .hamburger span:nth-child(3) {
        bottom: 0;
    }

    /* Cruce a “X” */
    .nav-toggle:checked+.hamburger span:nth-child(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }

    .nav-toggle:checked+.hamburger span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle:checked+.hamburger span:nth-child(3) {
        bottom: auto;
        top: 50%;
        transform: translateY(-50%) rotate(-45deg);
    }

    /* ---------- Panel lateral ---------- */
    .nav-menu {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        padding-top: 6rem;
        /* deja hueco bajo el header */
        box-shadow: -6px 0 15px rgba(0, 0, 0, .10);
        transform: translateX(100%);
        transition: transform .35s ease;
        z-index: 1000;
        /* bloquea scroll interno */
    }

    .nav-toggle:checked~.nav-menu {
        transform: translateX(0);
    }

    /* Enlaces táctiles más cómodos */
    .nav-menu a {
        padding: .6rem 0;
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background-image: linear-gradient(to right, var(--primary-green), rgba(0, 0, 0, 0.6)), url('../images/hero-image.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    padding: 100px 5%;
    color: var(--white);
}

.hero-content {
    max-width: 50%;
}

.hero-content h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.arrow-icon {
    margin-left: 0.5rem;
}

/* About Section */
.about-section {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.about-image {
    flex: 0 0 40%;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 2.5rem;
}

.about-content p {
    margin: 2rem 0;
}

.key-points {
    display: flex;
    gap: 2rem;
}

.key-point {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.key-point img {
    width: 24px;
    height: 24px;
}

/* Services Section */
.services-section {
    background-color: var(--light-gray);
    text-align: center;
}

.services-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    display: flex;
    flex-direction: column;
    justify-content: stretch;
    align-items: center;
    background-color: var(--white);
    min-height: 200px;
    border-radius: 0 0 2px 2px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    cursor: pointer;
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.service-card-image {
    width: 100%;
    height: 180px;
    background: #000;
    border-radius: 2px 2px 0 0;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    border-radius: 2px 2px 0 0;
    transition: 0.2s;
}

.service-card:hover .service-card-image img {
    scale: 1.1;
}

.service-card-icon-container {
    width: 100%;
    height: 40px;
    display: none;
    /* display: flex; */
    justify-content: center;
    align-items: center;
    position: relative;
}

.service-card-icon-image {
    width: 80px;
    height: 80px;
    position: absolute;
    top: -50px;
    padding: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-icon {
    width: 100%;
    height: 100%;
}

.service-card-text {
    width: 100%;
    min-height: 100px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-card h3 {
    font-size: 1.2rem;
}

/* Projects Section */
.projects-section {
    text-align: center;
}

.projects-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.projects-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    /* Simple horizontal scroll for now */
    padding-bottom: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-slide {
    flex: 0 0 350px;
    height: 450px;
    border-radius: 10px;
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--white);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.project-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 15%, transparent);
    border-radius: 10px;
}

.project-content {
    z-index: 1;
}

.project-content h3 {
    font-size: 1.2rem;
    margin: 10px 0;
}

.project-content p {
    font-size: 1rem;
}

/* Team Section */
.team-section {
    background-color: var(--light-gray);
    text-align: center;
}

.team-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 2px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 1px solid var(--primary-green);
}

.team-card h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.team-contact-icon img {
    width: 24px;
    margin-top: 1rem;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.team-contact-icon img:hover {
    opacity: 1;
}

/* Contact Section */
.contact-section {
    display: flex;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info,
.contact-form {
    flex: 1;
}

.contact-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.contact-info ul {
    margin-top: 2rem;
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-info img {
    width: 24px;
    height: 24px;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .cta-button {
    border-color: var(--primary-green);
    color: var(--primary-green);
    width: 100%;
}

/* Footer */
.footer {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 4rem 2rem 2rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--white);
}

.footer-col {
    flex: 1;
}

.footer-col h4 {
    margin-bottom: 1rem;
}

.footer-col ul li {
    list-style: none;
    margin-bottom: 0.5rem;
}

.footer-col a:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
}

.service-details ol,
.service-details li {
    margin-top: 10px;
    margin-left: 2rem;
}

.service-details {
    position: relative;
    max-width: 900px;
    margin: 4rem auto;
    padding: 3rem;
    background: var(--white);
    border-radius: 2px;
    box-shadow: 0 3px 9px rgba(0, 0, 0, .08);
    display: none;
    /* Oculto por defecto   */
}

.service-details.active {
    /* Visible al activar   */
    display: block;
    animation: fadeIn .4s ease;
}

.service-details h2,
.service-details h3 {
    margin-top: 2rem;
}

.service-details p {
    margin-bottom: 0.5rem;
}

.service-details ol,
.service-details ul {
    margin-bottom: 1rem;
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .header {
        padding: 10px 1.25rem;
    }

    .nav-menu a {
        font-size: 1.1rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .about-section {
        flex-direction: column;
        /* de fila a columna */
        padding: 4rem 1.5rem;
        text-align: center;
    }

    .about-image,
    .about-content {
        width: 100%;
    }

    .about-content h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact-section {
        flex-direction: column;
        gap: 2rem;
        padding: 4rem 1.5rem;
    }

    .contact-info,
    .contact-form {
        width: 100%;
    }

    .contact-info h2 {
        font-size: 2rem;
    }

    body:has(#nav-toggle:checked) {
        overflow: hidden;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding-bottom: 1.5rem;
    }

    .footer-col {
        width: 100%;
    }

    .footer-col h4 {
        margin-top: 1rem;
    }

    .footer-bottom {
        padding-top: 1rem;
        font-size: .9rem;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.1rem;
    }

    .hero-content p {
        font-size: .95rem;
    }
}