/* =====================================================
   PLUMBER SERVICIOS
   ESTILOS GENERALES
===================================================== */

:root {
    --navy: #07376b;
    --navy-dark: #05284f;
    --navy-light: #164d80;

    --blue: #087bd3;
    --blue-dark: #0566b3;
    --blue-light: #eaf5fd;

    --orange: #ff6500;
    --orange-dark: #e95700;

    --white: #ffffff;

    --gray-bg: #f6f8fa;
    --gray-border: #dfe5eb;
    --gray-text: #626a73;

    --green: #18bd59;

    --shadow: 0 10px 30px rgba(5, 40, 79, 0.10);
}


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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    color: var(--navy-dark);
    background: var(--white);
    line-height: 1.5;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font: inherit;
}

.container {
    width: min(1180px, 90%);
    margin: 0 auto;
}


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

.header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.97);
    border-bottom: 1px solid var(--gray-border);

    backdrop-filter: blur(10px);

    transition: box-shadow 0.25s ease;
}

.header.scrolled {
    box-shadow: 0 5px 20px rgba(5, 40, 79, 0.08);
}

.nav-container {
    height: 88px;

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

    gap: 25px;
}


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

.logo {
    display: flex;
    align-items: center;

    height: 80px;

    flex-shrink: 0;
}

.logo-img {
    width: 185px;
    height: 76px;

    object-fit: contain;
    object-position: left center;
}


/* =====================================================
   NAVEGACIÓN
===================================================== */

.nav {
    display: flex;
    align-items: center;

    gap: 28px;

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

.nav a {
    position: relative;

    padding: 8px 0;

    transition: color 0.2s ease;
}

.nav a:hover {
    color: var(--orange);
}

.nav a::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 0;
    height: 2px;

    background: var(--orange);

    transition: width 0.2s ease;
}

.nav a:hover::after {
    width: 100%;
}


/* =====================================================
   BOTONES
===================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 9px;

    font-weight: 700;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-header {
    padding: 12px 22px;

    color: var(--white);
    background: var(--blue);

    box-shadow: 0 5px 15px rgba(8, 123, 211, 0.20);
}

.btn-header:hover {
    background: var(--blue-dark);
}

.btn-primary {
    padding: 15px 24px;

    color: var(--white);
    background: var(--blue);

    box-shadow: 0 8px 20px rgba(8, 123, 211, 0.25);
}

.btn-primary:hover {
    background: var(--blue-dark);
}

.btn-whatsapp {
    padding: 15px 26px;

    color: var(--white);
    background: var(--green);

    box-shadow: 0 8px 20px rgba(24, 189, 89, 0.20);
}


/* =====================================================
   MENÚ MOBILE
===================================================== */

.menu-toggle {
    display: none;

    border: 0;
    background: transparent;

    color: var(--navy);

    font-size: 28px;

    cursor: pointer;
}


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

.hero {
    position: relative;

    min-height: 600px;

    display: flex;
    align-items: center;

    background-image:
        linear-gradient(
            90deg,
            rgba(5, 40, 79, 0.98) 0%,
            rgba(5, 40, 79, 0.93) 42%,
            rgba(5, 40, 79, 0.48) 72%,
            rgba(5, 40, 79, 0.25) 100%
        ),
        url("img/hero-plumber.png");

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.hero::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 4px;

    background: linear-gradient(
        90deg,
        var(--orange),
        var(--blue)
    );
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-text {
    max-width: 620px;

    color: var(--white);
}


/* =====================================================
   TEXTOS DESTACADOS
===================================================== */

.eyebrow {
    display: block;

    margin-bottom: 8px;

    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
}

.eyebrow.blue {
    color: var(--orange);
}


/* =====================================================
   HERO - TÍTULOS
===================================================== */

.hero h1 {
    margin-bottom: 7px;

    color: var(--white);

    font-size: clamp(50px, 7vw, 80px);
    font-weight: 800;
    line-height: 0.9;

    letter-spacing: -1px;
}

.hero h1 span {
    display: block;

    color: var(--blue);
}

.hero h2 {
    margin-bottom: 14px;

    color: var(--white);

    font-size: 28px;
}

.hero-text > p {
    max-width: 540px;

    margin-bottom: 28px;

    color: #e1e8ef;

    font-size: 18px;
}


/* =====================================================
   HERO - CARACTERÍSTICAS
===================================================== */

.hero-features {
    margin-top: 38px;

    display: flex;
    flex-wrap: wrap;

    gap: 30px;
}

.hero-feature {
    display: flex;
    align-items: center;

    gap: 10px;
}

.hero-feature > span {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    color: var(--white);

    border: 2px solid rgba(255, 255, 255, 0.90);
    border-radius: 50%;
}

.hero-feature p {
    color: var(--white);

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


/* =====================================================
   ICONOS SVG
===================================================== */

.icon-svg {
    width: 38px;
    height: 38px;

    fill: none;

    stroke: var(--blue);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-svg.orange {
    stroke: var(--orange);
}

.service-icon {
    height: 48px;

    margin-bottom: 16px;

    display: flex;
    align-items: center;
}

.hero-feature .icon-svg {
    width: 23px;
    height: 23px;

    stroke: var(--white);
}


/* =====================================================
   SECCIONES GENERALES
===================================================== */

.section {
    padding: 80px 0;
}

.section-heading {
    margin-bottom: 35px;

    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    gap: 30px;
}

.section-heading h2,
.about h2,
.consorcios h2 {
    color: var(--navy-dark);

    font-size: clamp(32px, 4vw, 46px);
    line-height: 1.05;
}

.section-heading h2 span,
.consorcios h2 span {
    color: var(--orange);
}

.section-heading > p {
    max-width: 400px;

    color: var(--gray-text);
}


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

.services {
    background: var(--gray-bg);
}

.services-grid {
    display: grid;

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

    gap: 14px;
}

.service-card {
    min-height: 230px;

    padding: 25px 18px;

    background: var(--white);

    border: 1px solid var(--gray-border);
    border-top: 3px solid transparent;
    border-radius: 10px;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.service-card:hover {
    transform: translateY(-5px);

    border-top-color: var(--orange);

    box-shadow: var(--shadow);
}

.service-card h3 {
    margin-bottom: 10px;

    color: var(--navy-dark);

    font-size: 17px;
}

.service-card p {
    color: var(--gray-text);

    font-size: 14px;
}


/* =====================================================
   REHABILITACIÓN DE GAS
===================================================== */

.gas-extra {
    margin-top: 22px;

    padding: 25px;

    display: flex;
    align-items: center;

    gap: 20px;

    background: var(--white);

    border: 1px solid var(--gray-border);
    border-left: 4px solid var(--orange);
    border-radius: 8px;

    box-shadow: 0 5px 20px rgba(5, 40, 79, 0.04);
}

.gas-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;
}

.gas-extra h3 {
    margin-bottom: 5px;

    color: var(--navy-dark);
}

.gas-extra p {
    color: var(--gray-text);
}


/* =====================================================
   CONSORCIOS
===================================================== */

.consorcios {
    min-height: 480px;

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

    background: linear-gradient(
        90deg,
        #e3f2fc,
        #f8fbfd
    );
}


/*
   IMPORTANTE:
   El archivo debe estar dentro de la carpeta "img"
   con este nombre exacto:

   consorcios-plumber.png
*/

.consorcios-image {
    position: relative;

    min-height: 480px;

    background-color: #e8f1f7;

    background-image: url("./img/consorcios-plumber.png");
    background-size: calc(100% - 40px) auto;
    background-position: center;
    background-repeat: no-repeat;
}

.consorcios-image::after {
    content: "";

    position: absolute;

    top: 0;
    right: 0;

    width: 4px;
    height: 100%;

    background: var(--orange);
}

.consorcios-content {
    max-width: 720px;

    padding: 70px 7%;
}

.consorcios-description {
    max-width: 650px;

    margin: 15px 0 25px;

    color: var(--gray-text);

    font-size: 17px;
}


/* =====================================================
   CHECKS
===================================================== */

.check-grid {
    margin-bottom: 30px;

    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 14px 35px;

    color: var(--navy-dark);

    font-weight: 600;
}

/* =====================================================
   GALERÍA
===================================================== */

.gallery {
    background: var(--white);
}

.gallery-carousel {
    position: relative;
}

.gallery-viewport {
    overflow: hidden;
}

.gallery-track {
    display: flex;

    gap: 18px;

    transition: transform 0.4s ease;
}

.gallery-slide {
    min-width: calc((100% - 36px) / 3);

    overflow: hidden;

    border-radius: 12px;

    background: var(--gray-bg);

    box-shadow: 0 6px 20px rgba(5, 40, 79, 0.08);
}

.gallery-slide img {
    width: 100%;
    height: 330px;

    display: block;

    object-fit: cover;

    transition: transform 0.35s ease;
}

.gallery-slide:hover img {
    transform: scale(1.03);
}


/* FLECHAS */

.gallery-arrow {
    position: absolute;
    top: 50%;

    z-index: 5;

    width: 46px;
    height: 46px;

    display: grid;
    place-items: center;

    transform: translateY(-50%);

    border: 0;
    border-radius: 50%;

    color: var(--navy);
    background: var(--white);

    box-shadow: 0 5px 18px rgba(5, 40, 79, 0.18);

    font-size: 32px;
    line-height: 1;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        color 0.2s ease;
}

.gallery-arrow:hover {
    color: var(--orange);

    transform:
        translateY(-50%)
        scale(1.07);
}

.gallery-prev {
    left: -23px;
}

.gallery-next {
    right: -23px;
}


/* PIE DE GALERÍA */

.gallery-footer {
    margin-top: 25px;

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

    gap: 25px;
}

.gallery-footer p {
    color: var(--gray-text);

    font-size: 14px;
}

.gallery-instagram {
    color: var(--orange);

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

    transition: color 0.2s ease;
}

.gallery-instagram:hover {
    color: var(--orange-dark);
}



/* =====================================================
   SOBRE NOSOTROS
===================================================== */

.about {
    background: var(--gray-bg);
}

.about-grid {
    display: grid;

    grid-template-columns: 1.2fr 0.8fr;

    gap: 70px;
}

.about p,
.service-area p {
    max-width: 650px;

    margin-top: 15px;

    color: var(--gray-text);
}

.about-features {
    margin-top: 30px;

    display: flex;
    flex-wrap: wrap;

    gap: 25px;

    color: var(--navy);

    font-weight: 700;
}

.about-features span::first-letter {
    color: var(--orange);
}


/* =====================================================
   ZONA DE ATENCIÓN
===================================================== */

.service-area {
    padding-left: 50px;
    border-left: 1px solid var(--gray-border);
}

.service-area p {
    max-width: 520px;
}



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

.contact {
    position: relative;

    padding: 38px 0;

    color: var(--white);
    background: var(--navy);
}

.contact::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: var(--orange);
}

.contact-grid {
    display: grid;

    grid-template-columns: 1.2fr auto 1fr;

    align-items: center;

    gap: 35px;
}

.contact h2 {
    margin-bottom: 5px;

    color: var(--white);

    font-size: 24px;
}

.contact p {
    color: #dce6ef;

    font-size: 14px;
}

.contact-data {
    display: flex;
    justify-content: flex-end;

    gap: 25px;
}

.contact-data a {
    transition: color 0.2s ease;
}

.contact-data a:hover {
    color: var(--orange);
}


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

.footer {
    padding: 30px 0 18px;

    color: #cbd7e2;
    background: var(--navy-dark);

    font-size: 13px;
}

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

    gap: 30px;
}

.footer-brand {
    display: flex;
    flex-direction: column;

    gap: 3px;
}

.footer-brand strong {
    color: var(--white);

    font-size: 15px;
    letter-spacing: 0.5px;
}

.footer-brand span {
    color: #aebdcc;
}

.footer-links {
    display: flex;

    gap: 22px;
}

.footer-links a {
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--orange);
}

.footer-location {
    white-space: nowrap;

    color: #aebdcc;
}

.footer-bottom {
    margin-top: 22px;
    padding-top: 15px;

    border-top: 1px solid rgba(255, 255, 255, 0.10);

    color: #8296a8;

    font-size: 12px;
}

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

.floating-whatsapp {
    position: fixed;

    right: 25px;
    bottom: 25px;

    z-index: 1000;

    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    color: var(--white);
    background: var(--green);

    border-radius: 50%;

    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);

    

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.08);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.30);
}

.whatsapp-icon {
    width: 30px;
    height: 30px;

    fill: currentColor;
}


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

@media (max-width: 1050px) {

    .nav {
        gap: 15px;
        font-size: 13px;
    }

    .logo-img {
        width: 160px;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }


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

    .contact-data {
        justify-content: flex-start;
    }

    .gallery-slide {
        min-width: calc((100% - 18px) / 2);
    }
}


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

@media (max-width: 780px) {

    .nav-container {
        height: 76px;
    }

    .logo {
        height: 70px;
    }

    .logo-img {
        width: 145px;
        height: 66px;
    }

    .footer-content {
        align-items: flex-start;
        flex-direction: column;
    
        gap: 18px;
    }
    
    .footer-links {
        flex-wrap: wrap;
    
        gap: 10px 20px;
    }


    /* MENÚ */

    .nav {
        position: absolute;

        top: 76px;
        left: 0;

        width: 100%;

        padding: 25px 5%;

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

        gap: 12px;

        background: var(--white);

        border-bottom: 1px solid var(--gray-border);

        box-shadow: 0 10px 20px rgba(5, 40, 79, 0.08);
    }

    .nav.active {
        display: flex;
    }

    .nav a {
        width: 100%;

        padding: 10px 0;
    }

    .btn-header {
        display: none;
    }

    .menu-toggle {
        display: block;
    }


    /* HERO */

    .hero {
        min-height: 620px;

        background-position: 65% center;
    }

    .hero h1 {
        font-size: 55px;
    }

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

    .hero-features {
        gap: 20px;
    }

    .hero-feature {
        width: calc(50% - 10px);
    }


    /* SECCIONES */

    .section {
        padding: 60px 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }


    /* SERVICIOS */

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


    /* CONSORCIOS */

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

    .consorcios-image {
        min-height: 320px;

        background-position: center center;
    }

    .consorcios-image::after {
        top: auto;
        right: auto;
        bottom: 0;
        left: 0;

        width: 100%;
        height: 4px;
    }

    .consorcios-content {
        padding: 50px 7%;
    }

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


  


    /* SOBRE NOSOTROS */

    .about-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }

    .service-area {
        padding-left: 0;
        padding-top: 40px;

        border-left: 0;
        border-top: 1px solid var(--gray-border);
    }


    /* CONTACTO */

    .contact-data {
        flex-direction: column;

        gap: 12px;
    }

    .gallery-slide {
        min-width: 100%;
    }
    
    .gallery-slide img {
        height: 380px;
    }
    
    .gallery-prev {
        left: 10px;
    }
    
    .gallery-next {
        right: 10px;
    }
    
    .gallery-footer {
        align-items: flex-start;
        flex-direction: column;
    
        gap: 8px;
    }
}


/* =====================================================
   MOBILE PEQUEÑO
===================================================== */

@media (max-width: 520px) {

    .container {
        width: 88%;
    }

    .logo-img {
        width: 135px;
    }


    /* HERO */

    .hero {
        min-height: 650px;

        background-position: 68% center;
    }

    .hero h1 {
        font-size: 46px;
    }

    .hero h2 {
        font-size: 23px;
    }

    .hero-text > p {
        font-size: 16px;
    }

    .hero-features {
        margin-top: 32px;
    }

    .hero-feature {
        width: calc(50% - 10px);
    }

   

    

    .contact-data a {
        overflow-wrap: anywhere;
    }


    /* SERVICIOS */

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


    /* CONSORCIOS */

    .consorcios-image {
        min-height: 260px;
    }

    .gallery-slide img {
        height: 300px;
    }


   

    /* GAS */

    .gas-extra {
        align-items: flex-start;
    }


    /* NOSOTROS */

    .about-features {
        flex-direction: column;

        gap: 12px;
    }

   /* BOTONES MOBILE */

.hero .btn-primary,
.contact .btn-whatsapp {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;

    text-align: center;
}


/* CONTACTO */

.contact-data a {
    overflow-wrap: anywhere;
}


/* FOOTER */

.footer-links {
    flex-direction: column;
    gap: 8px;
}


   


   

    /* WHATSAPP */

    .floating-whatsapp {
        right: 18px;
        bottom: 18px;

        width: 54px;
        height: 54px;
    }
}