* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --blue: #086bdc;
    --dark: #071c33;
    --red: #e84850;
    --yellow: #ffc928;
    --green: #16a36b;
    --orange: #ef7927;
    --purple: #7551b5;
    --beige: #f2ece3;
    --light: #faf8f4;
    --gray: #667381;
    --border: #e5e0d9;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #182230;
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

section {
    scroll-margin-top: 90px;
}


/* HEADER */

.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.97);
    border-bottom: 1px solid #eee;
}

.header-container {
    width: min(1220px, calc(100% - 36px));
    min-height: 88px;
    margin: auto;
    display: flex;
    align-items: center;
    gap: 25px;
}

.logo {
    width: 145px;
    height: 70px;
    object-fit: contain;
}

.header-container > a:first-child {
    margin-right: auto;
}

.navbar {
    display: flex;
    gap: 20px;
    align-items: center;
}

.navbar a {
    font-size: 13px;
    font-weight: 800;
}

.navbar a:hover {
    color: var(--blue);
}

.header-button {
    padding: 12px 20px;
    background: var(--blue);
    color: white;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 900;
}

.menu-button {
    display: none;
    border: 0;
    background: transparent;
    font-size: 28px;
}


/* HERO */

.hero {
    padding: 50px 0 65px;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(0,120,255,.12),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            white,
            #faf7f0 60%,
            #eef7ff
        );
}

.hero-container {
    width: min(1240px, calc(100% - 36px));
    margin: auto;

    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: 50px;
    align-items: center;
}

.small-title {
    color: var(--blue);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
}

.hero-text h1 {
    margin-top: 15px;
    color: var(--dark);
    font-size: clamp(44px,5vw,70px);
    line-height: 1;
    letter-spacing: -2px;
}

.hero-text h1 span {
    color: var(--blue);
}

.hero-text > p {
    max-width: 580px;
    margin-top: 22px;
    color: var(--gray);
    font-size: 18px;
}

.hero-points {
    margin-top: 22px;
    display: grid;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
}

.hero-buttons {
    margin-top: 28px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    min-height: 50px;
    padding: 0 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 900;
}

.btn-blue {
    background: var(--blue);
    color: white;
}

.btn-white {
    background: white;
    color: var(--dark);
    border: 1px solid #dce1e6;
}


/* FOTO HERO COMPLETA SIN ZOOM */

.hero-photo {
    width: 100%;
    height: 735px;
    padding: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--beige);
    border-radius: 24px;
    overflow: hidden;

    box-shadow: 0 20px 50px rgba(0,0,0,.12);
}

.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: none !important;
    border-radius: 16px;
}


/* COLOR LINE */

.color-line {
    height: 10px;
    display: grid;
    grid-template-columns: repeat(6,1fr);
}

.color-line span:nth-child(1) { background:#086bdc; }
.color-line span:nth-child(2) { background:#e84850; }
.color-line span:nth-child(3) { background:#ffc928; }
.color-line span:nth-child(4) { background:#16a36b; }
.color-line span:nth-child(5) { background:#ef7927; }
.color-line span:nth-child(6) { background:#7551b5; }


/* STATS */

.stats {
    background: var(--dark);
    color: white;
}

.stats-grid {
    width: min(1180px, calc(100% - 36px));
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4,1fr);
}

.stats-grid div {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.stats-grid strong {
    color: #66c9f3;
    font-size: 21px;
}

.stats-grid span {
    color: #bbc8d5;
    font-size: 12px;
}


/* GENERAL */

.section {
    padding: 90px 0;
}

.section-heading {
    width: min(760px, calc(100% - 36px));
    margin: 0 auto 45px;
    text-align: center;
}

.section-heading > span {
    color: var(--blue);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
}

.section-heading h2 {
    margin-top: 8px;
    color: var(--dark);
    font-size: clamp(32px,4.5vw,50px);
    line-height: 1.08;
}

.section-heading p {
    margin-top: 13px;
    color: var(--gray);
}


/* SERVICES */

.services {
    background: var(--light);
}

.services-grid {
    width: min(1180px, calc(100% - 36px));
    margin: auto;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 15px;
}

.service {
    min-height: 225px;
    padding: 27px;
    color: white;
    border-radius: 17px;
}

.service > span {
    font-size: 11px;
    font-weight: 900;
    opacity: .75;
}

.service h3 {
    margin-top: 42px;
    font-size: 20px;
    line-height: 1.15;
}

.service p {
    margin-top: 9px;
    font-size: 13px;
}

.blue { background:#086bdc; }
.red { background:#e84850; }
.yellow { background:#ffc928; color:#182230; }
.green { background:#16a36b; }
.orange { background:#ef7927; }
.purple { background:#7551b5; }
.navy { background:#174069; }
.pink { background:#d94d78; }
.teal { background:#128c88; }
.violet { background:#6243a1; }
.coral { background:#e46959; }
.emerald { background:#087d61; }


/* ANTES / DESPUÉS */

.before-after-section {
    background: white;
}

.projects-grid {
    width: min(1100px, calc(100% - 36px));
    margin: auto;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 23px;
}

.project-card {
    padding: 20px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.project-card h3 {
    margin-bottom: 14px;
    color: var(--dark);
}

.comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.comparison-box {
    position: relative;
    height: 245px;
    padding: 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ebe5dc;
    border-radius: 11px;
    overflow: hidden;
}


/* TODAS COMPLETAS, SIN ZOOM NI RECORTE */

.comparison-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: none !important;
}

.tag {
    position: absolute;
    z-index: 5;
    top: 9px;
    left: 9px;
    padding: 5px 8px;
    color: white;
    border-radius: 5px;
    font-size: 9px;
    font-weight: 900;
}

.tag.before {
    background: rgba(7,28,51,.86);
}

.tag.after {
    background: var(--blue);
}


/* TEAM */

.team-section {
    background: var(--light);
}

.team-grid {
    width: min(1100px, calc(100% - 36px));
    margin: auto;
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
}

.team-card {
    overflow: hidden;
    background: white;
    border: 1px solid var(--border);
    border-radius: 17px;
}

.team-photo {
    height: 445px;
    padding: 7px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #ebe5dc;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transform: none !important;
}

.team-card h3 {
    padding: 17px;
    color: var(--dark);
    text-align: center;
}


/* CTA */

.cta {
    padding: 85px 20px;
    color: white;
    text-align: center;

    background:
        linear-gradient(
            110deg,
            #086bdc,
            #7350b3,
            #dd4b5b,
            #ef7927
        );
}

.cta > div {
    max-width: 800px;
    margin: auto;
}

.cta span {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
}

.cta h2 {
    margin: 10px 0;
    font-size: clamp(34px,5vw,52px);
    line-height: 1.05;
}

.cta p {
    margin-bottom: 25px;
}


/* CITIES */

.zones {
    background: white;
}

.cities {
    width: min(1000px, calc(100% - 36px));
    margin: auto;
    display: grid;
    grid-template-columns: repeat(2,1fr);
    gap: 9px;
}

.cities div {
    padding: 15px 16px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 11px;
    color: var(--dark);
    font-size: 14px;
    font-weight: 800;
}


/* MAP */

.map-section {
    background: var(--light);
    text-align: center;
}

.map-wrapper {
    width: min(1140px, calc(100% - 36px));
    margin: auto;
    padding: 9px;

    background:
        linear-gradient(
            110deg,
            #086bdc,
            #15a6e8,
            #ffc928,
            #ef7927
        );

    border-radius: 20px;
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    height: 465px;
    border: 0;
    border-radius: 13px;
}


/* CONTACT */

.contact {
    background: white;
}

.contact-grid {
    width: min(1100px, calc(100% - 36px));
    margin: auto;
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 55px;
}

.contact-info > span {
    color: var(--blue);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
}

.contact-info h2 {
    margin-top: 8px;
    color: var(--dark);
    font-size: clamp(35px,4vw,49px);
    line-height: 1.06;
}

.contact-info > p {
    margin-top: 14px;
    color: var(--gray);
}

.contact-boxes {
    margin-top: 28px;
    display: grid;
    gap: 11px;
}

.contact-boxes a {
    padding: 16px;
    display: flex;
    flex-direction: column;
    background: var(--light);
    border-radius: 11px;
}

.contact-boxes small {
    color: var(--gray);
    font-size: 10px;
    font-weight: 900;
}

.contact-boxes strong {
    margin-top: 3px;
    color: var(--dark);
    font-size: 17px;
}


/* FORM */

.contact-form {
    padding: 30px;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}

.contact-form label {
    display: block;
    margin: 11px 0 6px;
    font-size: 12px;
    font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 13px 14px;
    background: white;
    border: 1px solid #d8d3cb;
    border-radius: 8px;
    outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--blue);
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    width: 100%;
    margin-top: 17px;
    padding: 15px;

    color: white;
    background: var(--blue);

    border: 0;
    border-radius: 9px;

    font-weight: 900;
    cursor: pointer;
}


/* FOOTER */

footer {
    padding: 55px 0 20px;
    color: #cad6e2;
    background: var(--dark);
}

.footer-grid {
    width: min(1100px, calc(100% - 36px));
    margin: auto;

    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
}

.footer-logo {
    width: 170px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 12px;
}

footer p {
    color: #99aabc;
}

footer h3 {
    margin-bottom: 12px;
    color: white;
}

footer a,
footer span {
    display: block;
    margin-bottom: 7px;
    color: #aebdcc;
    font-size: 13px;
}

.copyright {
    width: min(1100px, calc(100% - 36px));
    margin: 40px auto 0;
    padding-top: 18px;

    border-top: 1px solid rgba(255,255,255,.1);

    color: #72879a;
    font-size: 11px;
}


/* WHATSAPP */

.whatsapp {
    position: fixed;
    z-index: 3000;
    right: 20px;
    bottom: 20px;

    width: 60px;
    height: 60px;

    display: grid;
    place-items: center;

    background: #25d366;
    border-radius: 50%;

    font-size: 25px;

    box-shadow: 0 12px 30px rgba(0,0,0,.22);
}


/* TABLET */

@media (max-width: 1000px) {

    .menu-button {
        display: block;
    }

    .navbar {
        display: none;
    }

    .navbar.open {
        position: absolute;
        top: 88px;
        left: 18px;
        right: 18px;

        padding: 22px;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        background: white;
        border: 1px solid var(--border);
        border-radius: 15px;
    }

    .header-button {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr;
    }

    .hero-text {
        text-align: center;
    }

    .hero-text > p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-photo {
        max-width: 750px;
        height: 760px;
        margin: auto;
    }

    .services-grid {
        grid-template-columns: repeat(2,1fr);
    }

    .team-grid {
        grid-template-columns: 1fr 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}


/* MOBILE */

@media (max-width: 650px) {

    .hero-text h1 {
        font-size: 40px;
    }

    .hero-photo {
        height: 590px;
        padding: 7px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .section {
        padding: 70px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    /*
       Antes y Después يبقون جنب بعض
       والصور كاملة
    */

    .comparison {
        grid-template-columns: 1fr 1fr;
    }

    .comparison-box {
        height: 200px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-photo {
        height: 470px;
    }

    .cities {
        grid-template-columns: 1fr;
    }

    .map-wrapper iframe {
        height: 360px;
    }

    .two-columns {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}