/* =========================
   RESET
========================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    color: #111111;
}

input,
textarea,
button {
    font-family: 'Poppins', sans-serif;
}


/* =========================
   WHATSAPP FLOTANTE
========================= */

.whatsapp-float {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #25D366;
    color: #ffffff;

    border-radius: 50%;

    text-decoration: none;

    font-size: 30px;

    z-index: 9999;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.20);

    animation: whatsappMove 2s ease-in-out infinite;

    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}


/* MOVIMIENTO */

@keyframes whatsappMove {

    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }

    100% {
        transform: translateY(0);
    }

}


/* =========================
   HEADER
========================= */

.header {
    width: 100%;
    height: 80px;

    position: fixed;
    top: 0;
    left: 0;

    z-index: 1000;

    background: #ffffff;
    
}

.header-container {
    width: 90%;
    max-width: 1400px;
    height: 100%;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =========================
   LOGO
========================= */

.logo {
    text-decoration: none;
    color: #111111;

    font-size: 24px;
    font-weight: 700;
}

.logo img {
    width: 150px;
    height: auto;
    display: block;
}

/* =========================
   NAV
========================= */

.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav a {
    text-decoration: none;
    color: #111111;

    font-size: 15px;
    font-weight: 600;

    transition: opacity 0.3s ease;
}

.nav a:hover {
    opacity: 0.5;
    font-size: 16px;
    text-decoration: underline;
    text-decoration-color: #000000;
    text-underline-offset: 5px;
}


/* =========================
   BOTÓN HEADER
========================= */

.header-button {
    text-decoration: none;

    padding: 12px 22px;

    background: #ffffff;
    color: #000000;

    border-radius: 30px;

    font-size: 14px;
    font-weight: 600;
    

    transition: all 0.3s ease;
    border: 1.5px solid #055651;
}

.header-button:hover {
    background: #0a0a0a;
    color: #ffffff;
    border: 1.5px solid #0a0a0a;
    transform: translateY(-2px);
}


/* =========================
   HERO
========================= */

/* =========================
   HERO / CARRUSEL
========================= */

/* =========================
   HERO / CARRUSEL
========================= */

.hero {
    width: 100%;
    position: relative;
    overflow: hidden;
    margin-top: 7%; /* Ajusta este valor según la altura de tu header */
}

.hero-carousel {
    position: relative;
    width: 100%;
}

.hero-slide {
     position: relative; 
    width: 100%; 
    display: none; 
    opacity: 0;
}

.hero-slide.active {
    display: block; 
    opacity: 1;
    animation: heroFade 1.2s ease-in-out;

}

.hero-slide:first-child {
    position: relative;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Imagen/botón superpuesto */
.hero-overlay {
    position: absolute;
    left: 7%;
    bottom: 15%;
    z-index: 10;
    width: 600px;

    opacity: 0.75;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-overlay img {
    width: 100%;
    height: auto;
    display: block;
}

.hero-overlay:hover {
    opacity: 1;
    transform: scale(1.05);
}



@keyframes heroFade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
 
.hero-image { 
    width: 100%; 
    height: auto; 
    display: block; 
} 
 
/* Imagen/botón superpuesto */ 
.hero-overlay { 
    position: absolute; 
    left: 5%; 
    bottom: 15%; 
    z-index: 10; 
    width: 300px; 
    opacity: 0.75; 
    transition: opacity 0.3s ease, transform 0.3s ease; 
} 
 
.hero-overlay img { 
    width: 100%; 
    height: auto; 
    display: block; 
} 
 
.hero-overlay:hover { 
    opacity: 1; 
    transform: scale(1.05); 
}




/* =========================
   RESPONSIVE - MOBILE
========================= */

@media (max-width: 768px) {

    .hero {
        margin-top: 80px;
    }

    .hero-image {
        width: 100%;
        height: auto;
    }

    .hero-slide:first-child {
        padding: 0;
        margin: 0;
    }

    .hero-slide:first-child .hero-image {
        display: block;
        width: 100%;
        height: auto;
        margin: 0;
    }

    .hero-slide.active:has(.hero-overlay) {
        background-color: #123c3a;
        padding-bottom: 12px;
        height: auto;
    }

    .hero-slide.active:has(.hero-overlay) .hero-overlay {
        position: relative;
        left: auto;
        bottom: auto;
        display: block;
        width: 120px;
        margin: 8px auto 0;
    }

    .hero-slide {
        height: auto;
    }
}

/* =========================
   PORTFOLIO
========================= */

.portfolio {
    width: 100%;
    padding: 90px 0 80px;

    background: #ffffff;
}


/* TÍTULO */

.portfolio-title {
    text-align: center;
    margin-bottom: 15px;
}

.portfolio-title h2 {
    margin: 0;

    font-size: 50px;
    font-weight: 400;
    line-height: 1.2;

    color: #111111;
}

.portfolio-title p {
    margin-top: 12px;

    font-size: 18px;
    font-weight: 400;

    color: #777777;
}


/* GRILLA */

.portfolio-grid {
    width: 80%;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}


/* IMÁGENES */

.portfolio-item {
    width: 100%;
    overflow: hidden;

    aspect-ratio: 1.55 / 1;

    background: #eeeeee;

    cursor: pointer;
}

.portfolio-item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.4s ease;
}


/* HOVER */

.portfolio-item:hover img {
    transform: scale(1.03);
}


/* =========================
   LIGHTBOX PORTFOLIO
========================= */

.portfolio-lightbox {
    position: fixed;
    inset: 0;

    width: 100%;
    height: 100vh;

    background: rgba(0, 0, 0, 0.92);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 40px;

    opacity: 0;
    visibility: hidden;

    transition: opacity 0.3s ease,
                visibility 0.3s ease;

    z-index: 9999;
}


/* LIGHTBOX ABIERTO */

.portfolio-lightbox.active {
    opacity: 1;
    visibility: visible;
}


/* IMAGEN AMPLIADA */

.portfolio-lightbox img {
    display: block;

    max-width: 90%;
    max-height: 90vh;

    width: auto;
    height: auto;

    object-fit: contain;

    transform: scale(0.85);

    transition: transform 0.35s ease;
}


/* ANIMACIÓN */

.portfolio-lightbox.active img {
    transform: scale(1);
}


/* BOTÓN CERRAR */

.lightbox-close {
    position: absolute;

    top: 25px;
    right: 35px;

    width: 50px;
    height: 50px;

    background: transparent;
    border: none;

    color: #ffffff;

    font-size: 45px;
    font-weight: 300;

    line-height: 1;

    cursor: pointer;

    z-index: 10000;

    transition: transform 0.2s ease;
}

.lightbox-close:hover {
    transform: scale(1.15);
}


/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .portfolio-lightbox {
        padding: 20px;
    }

    .portfolio-lightbox img {
        max-width: 95%;
        max-height: 80vh;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;

        font-size: 38px;
    }

}

/* =========================
   SERVICIOS
========================= */

.servicios {
    width: 100%;
    padding: 90px 0;

    background: #eeeeee;

    transition: background-color 0.15s ease;
}


/* TÍTULO */

.servicios-title {
    width: 80%;
    margin: 0 auto 50px;

    text-align: center;
}

.servicios-title h2 {
    font-size: 50px;
    font-weight: 400;

    color: #111111;
}

.servicios-title p {
    margin-top: 10px;

    font-size: 18px;

    color: #777777;
}


/* GRID */

.servicios-grid {
    width: 80%;
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 25px;
}


/* TARJETAS */

.servicio-card {
    min-height: 270px;

    padding: 30px;

    background: #ffffff;

    border: 1px solid #e5e5e5;
    border-radius: 15px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    transition: box-shadow 0.3s ease;
}




/* NÚMERO */

.servicio-card span {
    font-size: 11px;

    color: #888888;
}


/* TÍTULO */

.servicio-card h3 {
    margin-top: 25px;

    font-size: 24px;
    font-weight: 600;

    color: #111111;
}


/* DESCRIPCIÓN */

.servicio-card p {
    margin-top: 12px;

    font-size: 13px;
    line-height: 1.6;

    color: #111111;
}


/* BOTÓN */

.servicio-button {
    display: block;

    margin-top: auto;
    align-self: center;

    padding: 11px 20px;

    background: #111111;
    color: #ffffff;

    border-radius: 30px;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition: all 0.3s ease;
}

.servicio-button:hover {
    background: #055651;
    transform: translateY(-2px);
}


/* HOVER TARJETA */

.servicio-card:hover {
    transform: translateY(-4px);
    border-color: #111111;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.22);

}


/* =========================
   CONTACTO
========================= */

.contacto {
    width: 100%;
    padding: 70px 0;
    background: #163f39;
}

.contacto-container {
    width: 80%;
    max-width: 1400px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: 50% 50%;

    align-items: center;
}


/* IMAGEN */

.contacto-imagen {
    width: 100%;
    height: 550px;

    overflow: hidden;
}

.contacto-imagen img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}


/* FORMULARIO */

.contacto-formulario {
    padding: 50px;

    color: #ffffff;
}

.contacto-formulario h2 {
    margin: 0;

    display: grid;
    justify-items: left;

    font-size: 49px;
    font-weight: 300;

    letter-spacing: 1px;
}

.contacto-formulario p {
    margin-top: 15px;
    margin-bottom: 40px;

    display: grid;
    justify-items: left;

    font-size: 13px;
    line-height: 1.6;

    color: #bdbdbd;
}


/* =========================
   CAMPOS
========================= */

.campo {
    margin-bottom: 25px;

    background: transparent;

    border-radius: 15px;
}

.campo label {
    font-family: 'Poppins';
    display: block;

    margin-bottom: 8px;

    letter-spacing: 2px;

    font-size: 12px;
    font-weight: 600;
}

.campo input,
.campo textarea {
    width: 100%;

    padding: 17px 22px;

    border: none;
    border-radius: 15px;

    background: #ffffff;

    color: #111111;

    font-size: 14px;

    outline: none;

    transition: all 0.3s ease;
}

.campo textarea {
    resize: none;

    min-height: 120px;
}

.campo input::placeholder,
.campo textarea::placeholder {
    color: #888888;
}

.campo input:focus,
.campo textarea:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.25);
}


/* BOTÓN CONTACTO */

.contacto-button {
    margin-top: 15px;

    width: 100%;

    padding: 13px 24px;

    border: none;
    border-radius: 30px;

    background: #ffffff;
    color: #111111;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition: all 0.3s ease;
}

.contacto-button:hover {
    background: #dddddd;

    transform: translateY(-2px);
}


/* =========================
   FOOTER
========================= */

.footer {
    width: 100%;

    background: #ffffff;

    padding: 45px 0 25px;
}

.footer-container {
    width: 80%;
    max-width: 1400px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* LOGO */

.footer-logo {
    text-decoration: none;

    font-size: 18px;
    font-weight: 700;

    color: #111111;
}
.footer-logo img {
    display: block;
    width: 100px;
    height: auto;
}

@media (max-width: 768px) {

    .footer-logo img {
        width: 80px;
    }

}

/* INSTAGRAM */

.footer-instagram {
    display: flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;

    color: #111111;

    font-size: 22px;

    transition: opacity 0.3s ease,
                transform 0.3s ease;
}

.footer-instagram:hover {
    opacity: 0.5;

    transform: translateY(-2px);
}


/* PARTE INFERIOR */

.footer-bottom {
    width: 80%;
    max-width: 1400px;

    margin: 35px auto 0;

    padding-top: 20px;

    border-top: 1px solid #eeeeee;

    text-align: center;
}

.footer-bottom p {
    margin: 0;

    font-size: 10px;

    color: #999999;
}


/* =========================
   RESPONSIVE TABLET
========================= */

@media (max-width: 768px) {

    /* WHATSAPP */

    .whatsapp-float {
        width: 52px;
        height: 52px;

        right: 18px;
        bottom: 18px;

        font-size: 27px;
    }


    /* HEADER */

    .header {
        height: 70px;
    }

    .header-container {
        width: 90%;
    }

    .nav {
        display: none;
    }

    .logo {
        font-size: 20px;
    }

    .header-button {
        padding: 10px 17px;

        font-size: 13px;
    }


    /* HERO */

    


    /* PORTFOLIO */

    .portfolio {
        padding: 55px 0 60px;
    }

    .portfolio-title {
        margin-bottom: 20px;
    }

    .portfolio-title h2 {
        font-size: 30px;
    }

    .portfolio-title p {
        font-size: 10px;
    }

    .portfolio-grid {
        width: 90%;

        grid-template-columns: repeat(2, 1fr);

        gap: 8px;
    }


    /* SERVICIOS */

    .servicios {
        padding: 70px 0;
    }

    .servicios-grid {
        width: 90%;

        grid-template-columns: repeat(2, 1fr);
    }

    .servicio-card-last {
        grid-column: 1 / -1;

        width: calc(50% - 12.5px);

        justify-self: center;
    }


    /* CONTACTO */

    .contacto {
        padding: 70px 0;
    }

    .contacto-container {
        width: 90%;

        grid-template-columns: 1fr;
    }

    .contacto-imagen {
        height: 350px;
    }

    .contacto-formulario {
        padding: 45px 0 0;
    }

    .contacto-formulario h2 {
        font-size: 34px;
    }


    /* FOOTER */

    .footer {
        padding: 35px 0 20px;
    }

    .footer-container {
        width: 90%;
    }

    .footer-logo {
        font-size: 16px;
    }

    .footer-instagram {
        font-size: 18px;
    }

    .footer-bottom {
        width: 90%;
    }

}


/* =========================
   RESPONSIVE MOBILE
========================= */

@media (max-width: 480px) {

    /* PORTFOLIO */

    .portfolio-grid {
        width: 90%;

        grid-template-columns: 1fr;

        gap: 10px;
    }

    .portfolio-item {
        aspect-ratio: 1.5 / 1;
    }


    /* SERVICIOS */

    .servicios-grid {
        width: 90%;

        grid-template-columns: 1fr;
    }

    .servicio-card-last {
        grid-column: auto;

        width: 100%;
    }

}