/* =========================================================
   RLJARDIN SAC
   STYLE.CSS
========================================================= */


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --green-dark: #0b2d22;
    --green-dark-2: #123d2f;

    --green: #2d6a4f;
    --green-light: #74c69d;

    --white: #ffffff;

    --light: #f5f7f5;
    --gray: #66736d;
    --dark: #17231e;

    --border: #dfe7e2;

    --shadow:
        0 15px 40px rgba(11, 45, 34, 0.10);

    --radius: 18px;

}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    background: var(--white);

    color: var(--dark);

    line-height: 1.6;

}


img {
    max-width: 100%;
    display: block;
}


a {
    text-decoration: none;
    color: inherit;
}


button {
    font-family: inherit;
}


/* =========================================================
   CONTAINER
========================================================= */

.container {

    width: min(1180px, 92%);

    margin: 0 auto;

}


/* =========================================================
   NAVBAR
========================================================= */

.navbar {

    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    height: 82px;

    background:
        rgba(11, 45, 34, 0.96);

    backdrop-filter: blur(10px);

    z-index: 1000;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.08);

}


.nav-container {

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;

}


/* =========================================================
   LOGO SUPERIOR
========================================================= */

.logo {

    display: flex;

    align-items: center;

    justify-content: flex-start;

    text-decoration: none;

    height: 70px;

    flex-shrink: 0;

}


.logo-image {

    width: 210px;

    height: auto;

    max-height: 62px;

    object-fit: contain;

    object-position: left center;

    display: block;

}


/* =========================================================
   MENU
========================================================= */

.nav-menu {

    display: flex;

    align-items: center;

    gap: 28px;

}


.nav-menu a {

    color: #ffffff;

    font-size: 14px;

    font-weight: 600;

    transition: 0.3s ease;

}


.nav-menu a:hover {

    color: var(--green-light);

}


.nav-button {

    padding:
        11px 20px;

    background:
        var(--green-light);

    color:
        var(--green-dark) !important;

    border-radius:
        30px;

}


.nav-button:hover {

    background:
        #95dcb8;

    color:
        var(--green-dark) !important;

}


/* =========================================================
   BOTÓN MENÚ MOBILE
========================================================= */

.menu-toggle {

    display: none;

    border: none;

    background: transparent;

    color: #ffffff;

    font-size: 28px;

    cursor: pointer;

    line-height: 1;

}


/* =========================================================
   HERO
========================================================= */

.hero {

    min-height: 720px;

    position: relative;

    display: flex;

    align-items: center;

    background-image:
        url("../img/j1.jpeg");

    background-size: cover;

    background-position: center;

    color: #ffffff;

}


.hero-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(5, 29, 21, 0.88) 0%,
            rgba(5, 29, 21, 0.65) 45%,
            rgba(5, 29, 21, 0.25) 100%
        );

}


.hero-content {

    position: relative;

    z-index: 2;

    padding-top: 82px;

    max-width: 760px;

}


.hero-tag {

    display: inline-block;

    margin-bottom: 18px;

    color: var(--green-light);

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 2px;

}


.hero h1 {

    font-size:
        clamp(44px, 6vw, 76px);

    line-height: 1.02;

    letter-spacing: -2px;

    margin-bottom: 25px;

}


.hero h1 span {

    color: var(--green-light);

}


.hero p {

    max-width: 650px;

    font-size: 18px;

    color:
        rgba(255, 255, 255, 0.88);

    margin-bottom: 35px;

}


/* =========================================================
   BOTONES
========================================================= */

.hero-buttons {

    display: flex;

    flex-wrap: wrap;

    gap: 14px;

}


.btn {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 48px;

    padding:
        13px 24px;

    border-radius:
        30px;

    font-size: 14px;

    font-weight: 700;

    transition:
        transform 0.3s ease,
        background 0.3s ease;

}


.btn:hover {

    transform:
        translateY(-2px);

}


.btn-primary {

    background:
        var(--green);

    color:
        #ffffff;

}


.btn-primary:hover {

    background:
        #39805f;

}


.btn-outline {

    border:
        1px solid rgba(255, 255, 255, 0.65);

    color:
        #ffffff;

    background:
        rgba(255, 255, 255, 0.05);

}


.btn-outline:hover {

    background:
        rgba(255, 255, 255, 0.12);

}


.btn-light {

    background:
        #ffffff;

    color:
        var(--green-dark);

}


.btn-light:hover {

    background:
        #edf5ef;

}


/* =========================================================
   TRUST
========================================================= */

.trust-section {

    background:
        var(--green-dark);

    color:
        #ffffff;

    padding:
        38px 0;

}


.trust-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 30px;

}


.trust-item {

    display: flex;

    gap: 18px;

    align-items: flex-start;

}


.trust-number {

    color:
        var(--green-light);

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 1px;

}


.trust-item h3 {

    font-size: 16px;

    margin-bottom: 5px;

}


.trust-item p {

    color:
        rgba(255, 255, 255, 0.68);

    font-size: 13px;

}


/* =========================================================
   SECCIONES
========================================================= */

.section {

    padding:
        100px 0;

}


.section-tag {

    display: inline-block;

    color:
        var(--green);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 2px;

    margin-bottom: 12px;

}


.section h2 {

    font-size:
        clamp(32px, 4vw, 52px);

    line-height: 1.08;

    letter-spacing: -1px;

}


.section-heading {

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 40px;

    margin-bottom: 45px;

}


.section-heading > p {

    max-width: 420px;

    color:
        var(--gray);

}


/* =========================================================
   NOSOTROS
========================================================= */

.about-grid {

    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 70px;

    align-items: center;

}


.about-image {

    position: relative;

}


.about-image img {

    width: 100%;

    height: 540px;

    object-fit: cover;

    border-radius:
        var(--radius);

    box-shadow:
        var(--shadow);

}


.image-label {

    position: absolute;

    bottom: 25px;

    left: 25px;

    background:
        rgba(11, 45, 34, 0.92);

    color:
        #ffffff;

    padding:
        15px 20px;

    border-radius:
        12px;

}


.image-label span {

    display: block;

    font-size: 14px;

    font-weight: 800;

}


.image-label small {

    color:
        rgba(255, 255, 255, 0.72);

    font-size: 12px;

}


.about-content p {

    color:
        var(--gray);

    margin-top: 20px;

    max-width: 560px;

}


.text-link {

    display: inline-block;

    margin-top: 28px;

    color:
        var(--green);

    font-weight: 800;

    font-size: 14px;

}


.text-link:hover {

    color:
        var(--green-dark);

}


/* =========================================================
   SERVICIOS
========================================================= */

.services-section {

    background:
        var(--light);

}


.services-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 20px;

}


.service-card {

    background:
        #ffffff;

    border-radius:
        var(--radius);

    overflow: hidden;

    box-shadow:
        0 10px 30px rgba(11, 45, 34, 0.07);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;

}


.service-card:hover {

    transform:
        translateY(-7px);

    box-shadow:
        0 18px 40px rgba(11, 45, 34, 0.13);

}


.service-image {

    height: 220px;

    overflow: hidden;

}


.service-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform 0.5s ease;

}


.service-card:hover
.service-image img {

    transform:
        scale(1.06);

}


.service-content {

    padding:
        25px;

}


.service-number {

    color:
        var(--green-light);

    font-size: 12px;

    font-weight: 900;

    letter-spacing: 1px;

}


.service-content h3 {

    font-size: 19px;

    line-height: 1.2;

    margin:
        10px 0 12px;

}


.service-content p {

    color:
        var(--gray);

    font-size: 14px;

}


/* =========================================================
   WHY RLJARDIN
========================================================= */

.why-section {

    background:
        var(--green-dark);

    color:
        #ffffff;

}


.why-grid {

    display: grid;

    grid-template-columns:
        0.9fr 1.1fr;

    gap: 80px;

    align-items: start;

}


.why-section .section-tag {

    color:
        var(--green-light);

}


.why-content h2 {

    max-width: 600px;

}


.why-content > p {

    color:
        rgba(255, 255, 255, 0.70);

    margin:
        25px 0 30px;

    max-width: 550px;

}


.why-list {

    border-top:
        1px solid rgba(255, 255, 255, 0.12);

}


.why-item {

    display: grid;

    grid-template-columns:
        50px 1fr;

    gap: 20px;

    padding:
        25px 0;

    border-bottom:
        1px solid rgba(255, 255, 255, 0.12);

}


.why-item > span {

    color:
        var(--green-light);

    font-size: 13px;

    font-weight: 800;

}


.why-item h3 {

    font-size: 17px;

    margin-bottom: 5px;

}


.why-item p {

    color:
        rgba(255, 255, 255, 0.65);

    font-size: 13px;

}


/* =========================================================
   PROYECTOS
========================================================= */

.projects-grid {

    display: grid;

    grid-template-columns:
        1.4fr 1fr;

    grid-template-rows:
        280px 280px;

    gap: 18px;

}


.project-card {

    position: relative;

    overflow: hidden;

    border-radius:
        var(--radius);

}


.project-large {

    grid-row:
        span 2;

}


.project-card img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform 0.5s ease;

}


.project-card:hover img {

    transform:
        scale(1.06);

}


.project-overlay {

    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding:
        25px;

    background:
        linear-gradient(
            transparent,
            rgba(0, 0, 0, 0.78)
        );

    color:
        #ffffff;

}


.project-overlay span {

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.5px;

    color:
        var(--green-light);

}


.project-overlay h3 {

    font-size: 20px;

    margin-top: 4px;

}


/* =========================================================
   CTA
========================================================= */

.cta-section {

    background:
        var(--green);

    color:
        #ffffff;

    padding:
        75px 0;

}


.cta-content {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;

}


.cta-content .section-tag {

    color:
        var(--green-light);

}


.cta-content h2 {

    font-size:
        clamp(30px, 4vw, 50px);

    line-height: 1.1;

    max-width: 700px;

}


.cta-content p {

    color:
        rgba(255, 255, 255, 0.75);

    margin-top: 12px;

}


/* =========================================================
   CONTACTO
========================================================= */

.contact-section {

    background:
        #ffffff;

}


.contact-heading {

    align-items: center;

}


.contact-options {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 430px));

    justify-content: center;

    gap: 25px;

    max-width: 900px;

    margin:
        0 auto;

}


.contact-card {

    min-height: 145px;

    display: flex;

    align-items: center;

    gap: 20px;

    padding:
        25px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    background:
        #ffffff;

    box-shadow:
        0 10px 30px rgba(11, 45, 34, 0.06);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;

}


.contact-card:hover {

    transform:
        translateY(-5px);

    border-color:
        var(--green-light);

    box-shadow:
        0 18px 40px rgba(11, 45, 34, 0.11);

}


.contact-icon {

    width: 54px;

    height: 54px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius:
        50%;

    background:
        var(--green-dark);

    color:
        var(--green-light);

    font-size: 22px;

    font-weight: 900;

}


.whatsapp-icon {

    background:
        #1f8f58;

    color:
        #ffffff;

}


.contact-info {

    flex: 1;

}


.contact-type {

    display: block;

    color:
        var(--green);

    font-size: 10px;

    font-weight: 900;

    letter-spacing: 1.5px;

    margin-bottom: 4px;

}


.contact-info h3 {

    font-size: 18px;

    margin-bottom: 4px;

}


.contact-info p {

    color:
        var(--gray);

    font-size: 13px;

    word-break: break-word;

}


.contact-arrow {

    font-size: 22px;

    color:
        var(--green);

}


/* =========================================================
   FOOTER
========================================================= */

.footer {

    background:
        var(--green-dark);

    color:
        #ffffff;

}


.footer-grid {

    display: grid;

    grid-template-columns:
        1.5fr 1fr 1fr;

    gap: 60px;

    padding:
        65px 0;

}


/* =========================================================
   LOGO FOOTER
========================================================= */

.footer-logo {

    display: inline-flex;

    align-items: center;

    justify-content: flex-start;

    text-decoration: none;

    margin-bottom: 15px;

}


.footer-logo-image {

    width: 220px;

    height: auto;

    max-height: 78px;

    object-fit: contain;

    object-position: left center;

    display: block;

}


.footer-brand p {

    max-width: 340px;

    color:
        rgba(255, 255, 255, 0.65);

    font-size: 14px;

}


/* =========================================================
   FOOTER LINKS
========================================================= */

.footer h3 {

    font-size: 15px;

    margin-bottom: 18px;

}


.footer-links,
.footer-contact {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 9px;

}


.footer-links a,
.footer-contact a {

    color:
        rgba(255, 255, 255, 0.68);

    font-size: 13px;

    transition:
        color 0.3s ease;

}


.footer-links a:hover,
.footer-contact a:hover {

    color:
        var(--green-light);

}


/* =========================================================
   FOOTER BOTTOM
========================================================= */

.footer-bottom {

    border-top:
        1px solid rgba(255, 255, 255, 0.10);

    padding:
        20px 0;

}


.footer-bottom p {

    color:
        rgba(255, 255, 255, 0.45);

    font-size: 12px;

    text-align: center;

}


/* =========================================================
   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%;

    font-size: 20px;

    font-weight: 900;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.20);

    z-index: 999;

    transition:
        transform 0.3s ease;

}


.whatsapp-float:hover {

    transform:
        scale(1.08);

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {


    .nav-menu {

        gap: 18px;

    }


    .nav-menu a {

        font-size: 13px;

    }


    .logo-image {

        width: 185px;

    }


    .services-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .about-grid {

        gap: 45px;

    }


    .why-grid {

        gap: 45px;

    }


    .footer-grid {

        gap: 35px;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {


    /* NAVBAR */

    .navbar {

        height: 70px;

    }


    .nav-container {

        gap: 15px;

    }


    .logo {

        height: 58px;

    }


    .logo-image {

        width: 175px;

        max-height: 55px;

    }


    .menu-toggle {

        display: block;

    }


    .nav-menu {

        position: absolute;

        top: 70px;

        left: 0;

        width: 100%;

        padding:
            20px;

        background:
            var(--green-dark);

        display: none;

        flex-direction: column;

        align-items: stretch;

        gap: 5px;

        border-top:
            1px solid rgba(255, 255, 255, 0.08);

    }


    .nav-menu.active {

        display: flex;

    }


    .nav-menu a {

        padding:
            12px 8px;

        text-align: center;

    }


    .nav-button {

        margin-top: 8px;

    }


    /* HERO */

    .hero {

        min-height: 650px;

    }


    .hero-content {

        padding-top: 70px;

    }


    .hero h1 {

        font-size:
            clamp(38px, 11vw, 58px);

        letter-spacing:
            -1.5px;

    }


    .hero p {

        font-size: 16px;

    }


    .hero-buttons {

        flex-direction: column;

        align-items: stretch;

        max-width: 330px;

    }


    .btn {

        width: 100%;

    }


    /* TRUST */

    .trust-grid {

        grid-template-columns:
            1fr;

        gap: 25px;

    }


    /* SECCIONES */

    .section {

        padding:
            75px 0;

    }


    .section-heading {

        flex-direction: column;

        align-items: flex-start;

        gap: 18px;

    }


    /* NOSOTROS */

    .about-grid {

        grid-template-columns:
            1fr;

        gap: 40px;

    }


    .about-image img {

        height: 400px;

    }


    /* SERVICIOS */

    .services-grid {

        grid-template-columns:
            1fr;

    }


    .service-image {

        height: 240px;

    }


    /* WHY */

    .why-grid {

        grid-template-columns:
            1fr;

        gap: 50px;

    }


    /* PROYECTOS */

    .projects-grid {

        grid-template-columns:
            1fr;

        grid-template-rows:
            repeat(3, 300px);

    }


    .project-large {

        grid-row:
            auto;

    }


    /* CTA */

    .cta-content {

        flex-direction: column;

        align-items: flex-start;

    }


    .cta-content .btn {

        width: auto;

    }


    /* CONTACTO */

    .contact-options {

        grid-template-columns:
            1fr;

        max-width:
            600px;

    }


    .contact-card {

        min-height:
            130px;

    }


    /* FOOTER */

    .footer-grid {

        grid-template-columns:
            1fr;

        gap: 40px;

        padding:
            50px 0;

    }


    .footer-logo-image {

        width: 190px;

        max-height: 68px;

    }


    .footer-links,
    .footer-contact {

        gap: 8px;

    }


    /* WHATSAPP */

    .whatsapp-float {

        right: 18px;

        bottom: 18px;

        width: 54px;

        height: 54px;

    }

}


/* =========================================================
   MOBILE PEQUEÑO
========================================================= */

@media (max-width: 420px) {


    .container {

        width: 90%;

    }


    .logo-image {

        width: 160px;

        max-height: 52px;

    }


    .hero {

        min-height: 620px;

    }


    .hero h1 {

        font-size:
            40px;

    }


    .hero-tag {

        font-size:
            11px;

        letter-spacing:
            1.5px;

    }


    .about-image img {

        height: 330px;

    }


    .image-label {

        left: 15px;

        bottom: 15px;

        padding:
            12px 15px;

    }


    .contact-card {

        padding:
            18px;

        gap: 13px;

    }


    .contact-icon {

        width: 46px;

        height: 46px;

        font-size:
            18px;

    }


    .contact-info h3 {

        font-size:
            16px;

    }


    .contact-info p {

        font-size:
            12px;

    }


    .contact-arrow {

        font-size:
            18px;

    }


    .footer-logo-image {

        width: 175px;

        max-height: 63px;

    }

}

/* =========================================================
   GALERÍA PROYECTO 1
   AÑADIDO SIN MODIFICAR LOS ESTILOS EXISTENTES
========================================================= */

.project-gallery-trigger {
    cursor: pointer;
}

.project-gallery-trigger:focus {
    outline: 3px solid var(--green-light);
    outline-offset: 4px;
}

.project-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px 90px;
    background: rgba(0, 0, 0, 0.94);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.project-lightbox.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.lightbox-content img {
    display: block;
    max-width: 90vw;
    max-height: 82vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
    user-select: none;
}

.lightbox-counter {
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.10);
    padding: 8px 14px;
    border-radius: 30px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    z-index: 10;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.08);
}

.lightbox-close {
    top: 25px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 32px;
    line-height: 1;
}

.lightbox-prev {
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 26px;
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.08);
}

.lightbox-next {
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    font-size: 26px;
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.08);
}

@media (max-width: 768px) {

    .project-lightbox {
        padding: 25px 60px;
    }

    .lightbox-content img {
        max-width: 88vw;
        max-height: 75vh;
        border-radius: 8px;
    }

    .lightbox-close {
        top: 15px;
        right: 15px;
        width: 42px;
        height: 42px;
        font-size: 28px;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 21px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

}

@media (max-width: 480px) {

    .project-lightbox {
        padding: 20px 50px;
    }

    .lightbox-content img {
        max-width: 86vw;
        max-height: 70vh;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }

}
