/* =========================================
   CONFIGURACIÓN GENERAL
========================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background-color: #0b0d17;
    color: white;

    font-family: Arial, sans-serif;
}


/* Evita que el navbar tape las secciones */

#home,
#why,
#about,
#services,
#resources,
#estimate {
    scroll-margin-top: 110px;
}

/* =========================================
   GET A FREE ESTIMATE
========================================= */

.estimate {
    width: 100%;
    padding: 110px 6%;
    background-color: #080b13;
}

.estimate-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================================
   ENCABEZADO
========================================= */

.estimate-heading {
    max-width: 850px;
    margin-bottom: 55px;
}

.estimate-label {
    display: flex;
    align-items: center;
    gap: 15px;

    margin: 0 0 20px;

    color: #0099ff;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
}

.estimate-label::before {
    content: "";

    width: 50px;
    height: 3px;

    background-color: #0099ff;
}

.estimate-heading h2 {
    margin: 0 0 25px;

    color: white;

    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.08;
    letter-spacing: -1.5px;
}

.estimate-heading h2 span {
    display: block;
}

.estimate-title-blue {
    color: #0099ff;
}

.estimate-description {
    max-width: 750px;

    margin: 0;

    color: #b7bccb;

    font-size: 18px;
    line-height: 1.7;
}


/* =========================================
   FORMULARIO
========================================= */

.estimate-form {
    padding: 50px;

    background-color: #0d1019;

    border: 1px solid #242735;
}


/* NOMBRE, TELÉFONO, EMAIL Y ZIP */

.estimate-form-grid {
    display: grid;

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

    gap: 30px;

    margin-bottom: 45px;
}


/* CAMPOS */

.estimate-field {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.estimate-field label {
    color: white;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.estimate-field input,
.estimate-field textarea {
    width: 100%;

    padding: 17px 18px;

    background-color: #080b13;

    border: 1px solid #303543;

    color: white;

    font-family: inherit;
    font-size: 16px;

    outline: none;

    transition:
        border-color 0.3s ease,
        background-color 0.3s ease;
}

.estimate-field input {
    height: 58px;
}

.estimate-field textarea {
    min-height: 160px;

    resize: vertical;
}


/* CUANDO SE SELECCIONA UN CAMPO */

.estimate-field input:focus,
.estimate-field textarea:focus {
    border-color: #0099ff;

    background-color: #0b101b;
}


/* =========================================
   GRUPOS DE OPCIONES
========================================= */

.estimate-group {
    margin-bottom: 45px;
}

.estimate-group-title {
    margin: 0 0 18px;

    color: #0099ff;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
}


/* OPCIONES */

.estimate-options {
    display: grid;

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

    gap: 15px;
}

.estimate-option {
    min-height: 65px;

    padding: 15px 18px;

    display: flex;
    align-items: center;

    gap: 12px;

    background-color: #080b13;

    border: 1px solid #303543;

    color: #c4c8d4;

    font-size: 15px;

    cursor: pointer;

    transition:
        border-color 0.3s ease,
        background-color 0.3s ease,
        color 0.3s ease;
}

.estimate-option:hover {
    border-color: #0099ff;

    color: white;
}


/* RADIO BUTTON */

.estimate-option input[type="radio"] {
    width: 18px;
    height: 18px;

    margin: 0;

    accent-color: #0099ff;

    cursor: pointer;
}

.estimate-option:has(input:checked) {
    border-color: #0099ff;

    background-color: rgba(0, 153, 255, 0.08);

    color: white;
}


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

.estimate-full {
    margin-bottom: 35px;
}


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

.estimate-submit {
    display: flex;
    justify-content: flex-start;

    margin-top: 10px;
}

.estimate-button {
    min-width: 280px;

    padding: 18px 28px;

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

    gap: 30px;

    background-color: #0099ff;

    border: 1px solid #0099ff;

    color: white;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.7px;

    cursor: pointer;

    transition:
        background-color 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.estimate-button span:last-child {
    font-size: 22px;
}

.estimate-button:hover {
    background-color: transparent;

    color: #0099ff;

    transform: translateY(-2px);
}

/* =========================================
   NAVBAR
========================================= */

nav {
    height: 110px;

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

    padding: 0 70px;

    border-bottom: 1px solid #242735;

    /* NAVBAR SIGUE AL USUARIO */
    position: sticky;
    top: 0;

    background-color: rgba(11, 13, 23, 0.96);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    z-index: 900;
}


/* LOGO */

.logo img {
    width: 110px;
    display: block;
}


/* MENÚ */

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

    gap: 42px;
}


.menu a {
    color: white;

    text-decoration: none;

    font-size: 16px;
    font-weight: bold;

    transition: color 0.25s;
}


.menu a:hover {
    color: #0099ff;
}


/* =========================================
   SELECTOR DE IDIOMA
========================================= */

.language {
    position: relative;
}


.language button {
    background-color: transparent;

    color: white;

    border: 1px solid #0099ff;

    padding: 14px 22px;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;
}


.language button:hover {
    background-color: #0099ff;

    color: #0b0d17;

    transform: none;
}


.language-options {
    display: none;

    position: absolute;

    top: 100%;
    right: 0;

    width: 100%;

    background-color: white;

    z-index: 1000;
}


.language-options a {
    display: block;

    padding: 12px;

    color: #0b0d17;

    text-align: center;
    text-decoration: none;
}


.language-options a:hover {
    background-color: #d4d7df;
    color: #0b0d17;
}


.language:hover .language-options {
    display: block;
}


/* =========================================
   BOTÓN HAMBURGUESA
========================================= */

.menu-toggle {
    display: none;

    width: 45px;
    height: 45px;

    padding: 10px;

    background-color: transparent;

    border: 1px solid #242735;

    cursor: pointer;
}


.menu-toggle:hover {
    background-color: transparent;

    border-color: #0099ff;

    transform: none;
}


.menu-toggle span {
    display: block;

    width: 100%;
    height: 2px;

    margin: 5px 0;

    background-color: white;

    transition: 0.3s;
}


/* ANIMACIÓN A X */

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}


.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}


.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


/* =========================================
   MAIN
========================================= */

main {
    margin: 0;
    padding: 0;

    width: 100%;
}


/* =========================================
   ELEMENTOS GENERALES
========================================= */

h1 {
    font-size: 55px;

    max-width: 800px;

    margin: 0 auto 25px;
}


p {
    font-size: 20px;

    color: #d4d7df;

    margin-bottom: 35px;
}


button {
    background-color: white;

    color: #0b0d17;

    border: none;

    padding: 18px 35px;

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

    letter-spacing: 1px;

    cursor: pointer;

    transition: 0.3s;
}


button:hover {
    background-color: #d4d7df;

    transform: translateY(-3px);
}


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

.hero {
    min-height: 650px;

    width: 100%;

    display: flex;

    align-items: center;

    padding: 70px 5%;

    background:
        linear-gradient(
            90deg,
            rgba(3, 17, 34, 0.98) 0%,
            rgba(3, 17, 34, 0.95) 20%,
            rgba(3, 17, 34, 0.82) 35%,
            rgba(3, 17, 34, 0.45) 50%,
            rgba(3, 17, 34, 0.10) 70%,
            rgba(3, 17, 34, 0) 100%
        ),
        url("../img/spray-foam2.jpg");

    background-size: cover;

    background-position: center center;

    background-repeat: no-repeat;

    position: relative;
}


.hero-content {
    width: 58%;

    max-width: 900px;

    text-align: left;

    position: relative;

    z-index: 2;
}


/* TEXTO SUPERIOR */

.hero-subtitle {
    color: #d8dde7;

    font-size: 15px;

    font-weight: 700;

    letter-spacing: 4px;

    margin: 0 0 25px;
}


.hero-subtitle::before {
    content: "";

    display: inline-block;

    width: 55px;
    height: 3px;

    background-color: #0099ff;

    margin-right: 20px;

    vertical-align: middle;
}


/* TÍTULO */

.hero h1 {
    color: white;

    font-size: clamp(48px, 4.2vw, 72px);

    font-weight: 700;

    line-height: 1.05;

    margin: 0 0 28px;

    max-width: 900px;
}


.hero h1 > span {
    display: block;
}

.hero h1 .hero-title-main {
    color: white;
    margin-top: 0;
}

.hero h1 > span:last-child {
    color: #0099ff;
    margin-top: 5px;
}

/* DESCRIPCIÓN */

.hero-text {
    color: #e0e4eb;

    font-size: 19px;

    line-height: 1.7;

    max-width: 680px;

    margin: 0 0 35px;
}


/* BOTÓN */

.hero-button {
    background-color: white;

    color: #071426;

    border: none;

    padding: 20px 30px;

    min-width: 370px;

    font-size: 16px;

    font-weight: 700;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: space-between;

    transition: 0.25s;
}


.hero-button span {
    font-size: 24px;

    margin-left: 25px;
}


.hero-button:hover {
    background-color: #0099ff;

    color: white;

    transform: translateY(-3px);
}


/* =========================================
   ABOUT US
========================================= */

.about {
    background-color: #0b0d17;

    padding: 110px 5%;
}


.about-container {
    max-width: 1500px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    gap: 80px;
}


/* IMAGEN / PLACEHOLDER */
.benefit-item h4 {
    color: white;

    font-size: 19px;
    line-height: 1.4;

    margin: 18px 0 10px;
}

.about-image {
    width: 50%;
    height: 550px;

    position: relative;

    overflow: hidden;

    border: 1px solid #242735;

    background-color: #111421;
}


.about-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transition: transform 0.5s ease;
}


.about-image:hover img {
    transform: scale(1.04);
}



/* CONTENIDO */

.about-content {
    width: 50%;

    max-width: 650px;
}


.section-label {
    color: #0099ff;

    font-size: 14px;

    font-weight: bold;

    letter-spacing: 4px;

    margin: 0 0 20px;
}


.about-content h2 {
    color: white;

    font-size: 48px;

    line-height: 1.15;

    margin: 0 0 30px;
}


.about-content h2 span {
    display: block;

    color: #0099ff;
}


.about-text {
    color: #bfc3d1;

    font-size: 18px;

    line-height: 1.8;

    margin: 0 0 20px;
}


.about-button {
    display: inline-block;

    margin-top: 20px;

    padding: 17px 30px;

    background-color: transparent;

    border: 1px solid #0099ff;

    color: white;

    text-decoration: none;

    font-size: 15px;

    font-weight: bold;

    transition: 0.3s;
}


.about-button:hover {
    background-color: #0099ff;
}


/* =========================================
   SERVICES
========================================= */

.services {
    padding: 110px 5%;

    background-color: #111421;
}


.products-header {
    max-width: 750px;

    margin: 0 auto 60px;

    text-align: center;
}


.products-header h2 {
    color: white;

    font-size: 48px;

    line-height: 1.15;

    margin: 0 0 20px;
}


.products-header h2 span {
    color: #0099ff;
}


.products-header > p:last-child {
    color: #bfc3d1;

    font-size: 18px;

    line-height: 1.7;
}


/* TARJETAS */

.products-grid {
    max-width: 1500px;

    margin: 0 auto;

    display: grid;

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

    gap: 25px;
}


.product-card {
    background-color: #0b0d17;

    border: 1px solid #242735;

    overflow: hidden;

    transition: 0.3s;
}


.product-card:hover {
    transform: translateY(-8px);

    border-color: #0099ff;
}


/* IMAGEN */

.product-image {
    height: 280px;

    overflow: hidden;

    background-color: #161a28;
}


.product-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 0.5s;
}


.product-card:hover .product-image img {
    transform: scale(1.05);
}


/* INFORMACIÓN */

.product-info {
    padding: 30px;
}


.product-number {
    color: #0099ff;

    font-size: 14px;

    font-weight: bold;
}


.product-info h3 {
    color: white;

    font-size: 24px;

    margin: 12px 0 15px;
}


.product-info p {
    color: #bfc3d1;

    font-size: 16px;

    line-height: 1.7;

    margin: 0 0 25px;
}


.product-info a {
    color: #0099ff;

    text-decoration: none;

    font-size: 14px;

    font-weight: bold;
}


.product-info a:hover {
    color: white;
}


/* =========================================
   RESOURCES / GALLERY
========================================= */

.resources {
    padding: 110px 5%;

    background-color: #0b0d17;
}


.resources-header {
    max-width: 800px;

    margin: 0 auto 60px;

    text-align: center;
}


.resources-header h2 {
    color: white;

    font-size: 48px;

    line-height: 1.15;

    margin: 0 0 20px;
}


.resources-header h2 span {
    color: #0099ff;
}


.resources-header > p:last-child {
    color: #bfc3d1;

    font-size: 18px;

    line-height: 1.7;
}


/* GALERÍA */

.gallery {
    max-width: 1500px;

    margin: 0 auto;

    display: grid;

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

    gap: 20px;
}


.gallery-item {
    height: 330px;

    overflow: hidden;

    border: 1px solid #242735;

    cursor: pointer;
}


.gallery-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform 0.5s;
}


.gallery-item:hover img {
    transform: scale(1.07);
}


/* =========================================
   WHY CHOOSE US
========================================= */

.why {
    background-color: #080b13;

    padding: 100px 6%;
}


.why-container {
    width: 100%;

    max-width: 1500px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: 0.9fr 1.1fr;

    gap: 70px;

    align-items: stretch;
}


/* =========================================
   IMAGEN
========================================= */

.why-image {
    width: 100%;

    min-height: 750px;

    position: relative;

    overflow: hidden;

    background-color: #111421;
}


.why-image img {
    width: 100%;
    height: 100%;

    position: absolute;

    top: 0;
    left: 0;

    display: block;

    object-fit: cover;

    object-position: center;

    transition: transform 0.5s ease;
}


.why-image:hover img {
    transform: scale(1.03);
}


/* =========================================
   CONTENIDO
========================================= */

.why-content {
    display: flex;

    flex-direction: column;

    justify-content: center;
}


/* LABEL */

.why-label {
    position: relative;

    display: flex;

    align-items: center;

    gap: 15px;

    margin: 0 0 20px;

    color: #0099ff;

    font-size: 14px;

    font-weight: 700;

    letter-spacing: 1px;
}


.why-label::before {
    content: "";

    width: 50px;
    height: 3px;

    display: block;

    background-color: #0099ff;
}


/* TÍTULO */

.why-heading h2 {
    margin: 0 0 25px;

    font-size: clamp(42px, 4vw, 64px);

    line-height: 1.08;

    letter-spacing: -1.5px;
}


.why-heading h2 span {
    display: block;
}


.why-title-white {
    color: white;
}


.why-title-blue {
    color: #0099ff;
}


/* DESCRIPCIÓN */

.why-description {
    max-width: 700px;

    margin: 0 0 45px;

    color: #b7bccb;

    font-size: 18px;

    line-height: 1.7;
}


/* =========================================
   ITEMS
========================================= */

.why-item {
    display: grid;

    grid-template-columns: 95px 1fr;

    gap: 30px;

    align-items: center;

    padding: 27px 0;

    border-bottom: 1px solid #303543;
}


.why-item:first-of-type {
    border-top: 1px solid #303543;
}


/* ICONO */

.why-icon {
    width: 95px;
    height: 95px;

    display: flex;

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

    border: 1px solid #0099ff;

    background-color: #0b101b;

    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
}


.why-icon svg {
    width: 42px;
    height: 42px;

    fill: none;

    stroke: #0099ff;

    stroke-width: 1.8;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.why-item:hover .why-icon {
    background-color: rgba(0, 153, 255, 0.08);

    transform: translateY(-3px);
}


/* =========================================
   TEXTO DE CADA ITEM
========================================= */

.why-item-content {
    position: relative;
}


.why-number {
    display: block;

    margin-bottom: 7px;

    color: #0099ff;

    font-size: 15px;

    font-weight: 700;

    letter-spacing: 1px;
}


.why-item h3 {
    margin: 0 0 10px;

    color: white;

    font-size: 21px;

    font-weight: 700;

    letter-spacing: 0.5px;
}


.why-item p {
    max-width: 650px;

    margin: 0;

    color: #b7bccb;

    font-size: 16px;

    line-height: 1.65;
}


.section-title {
    max-width: 800px;

    margin: 0 auto 60px;
}


.section-title p {
    color: #bfc3d1;

    font-size: 14px;

    font-weight: bold;

    letter-spacing: 3px;

    margin-bottom: 15px;
}


.section-title h2 {
    font-size: 40px;

    margin: 0;
}


.cards {
    max-width: 1100px;

    margin: auto;

    display: flex;

    gap: 30px;

    justify-content: center;
}


.card {
    flex: 1;

    padding: 40px 30px;

    background-color: #0b0d17;

    border: 1px solid #242735;

    transition: 0.3s;
}


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

    border-color: #555b70;
}


.card-icon {
    font-size: 40px;

    margin-bottom: 25px;
}


.card h3 {
    font-size: 22px;

    margin-bottom: 15px;
}


.card p {
    font-size: 16px;

    line-height: 1.6;

    margin: 0;
}


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

.lightbox {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

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

    display: none;

    align-items: center;

    justify-content: center;

    padding: 40px;

    overflow: hidden;

    z-index: 2000;
}


.lightbox.active {
    display: flex;
}


/* IMAGEN */

.lightbox img,
#lightboxImage {
    max-width: 90%;
    max-height: 85vh;

    object-fit: contain;

    border: 1px solid #242735;

    transform-origin: center center;

    user-select: none;

    -webkit-user-drag: none;

    cursor: zoom-in;
}


/* CERRAR */

.lightbox-close {
    position: absolute;

    top: 25px;
    right: 35px;

    background: transparent;

    border: none;

    color: white;

    font-size: 45px;

    cursor: pointer;

    z-index: 2001;
}


.lightbox-close:hover {
    color: #0099ff;

    background: transparent;

    transform: none;
}


/* =========================================
   CONTROLES DE ZOOM
========================================= */

.zoom-controls {
    position: absolute;

    bottom: 30px;
    left: 50%;

    transform: translateX(-50%);

    display: flex;

    gap: 10px;

    z-index: 2002;

    background-color: rgba(11, 13, 23, 0.85);

    padding: 8px;
}


.zoom-controls button {
    width: 48px;
    height: 48px;

    padding: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background-color: #111421;

    border: 1px solid #0099ff;

    color: white;

    font-size: 24px;

    cursor: pointer;

    transition: 0.2s;
}


.zoom-controls button:hover {
    background-color: #0099ff;

    color: white;

    transform: none;
}

/* =========================================
   SERVICE - LEARN MORE
========================================= */

.service-learn-more {
    padding: 0;

    background: transparent;

    border: none;

    color: #0099ff;

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

    letter-spacing: 0;

    cursor: pointer;
}


.service-learn-more:hover {
    background: transparent;

    color: white;

    transform: none;
}


/* =========================================
   SERVICE MODAL
========================================= */

.service-modal {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    display: none;

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

    overflow-y: auto;

    z-index: 3000;

    padding: 50px;
}


.service-modal.active {
    display: block;
}


.service-modal-content {
    position: relative;

    width: 100%;
    max-width: 1300px;

    margin: 0 auto;

    background-color: #0b0d17;

    border: 1px solid #242735;
}


/* =========================================
   CLOSE
========================================= */

.service-modal-close {
    position: absolute;

    top: 25px;
    right: 30px;

    width: 50px;
    height: 50px;

    padding: 0;

    background: transparent;

    border: 1px solid #242735;

    color: white;

    font-size: 34px;

    z-index: 5;
}


.service-modal-close:hover {
    background-color: #0099ff;

    border-color: #0099ff;

    color: white;

    transform: none;
}


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

.service-modal-header {
    padding: 70px;

    border-bottom: 1px solid #242735;
}


.service-modal-number {
    color: #0099ff;

    font-size: 14px;

    font-weight: bold;
}


.service-modal-label {
    color: #0099ff;

    font-size: 13px;

    font-weight: bold;

    letter-spacing: 3px;

    margin: 15px 0;
}


.service-modal-header h2 {
    max-width: 750px;

    margin: 0;

    color: white;

    font-size: 55px;

    line-height: 1.1;
}


.service-modal-header h2 span {
    display: block;

    color: #0099ff;
}


/* =========================================
   MAIN INFORMATION
========================================= */

.service-modal-main {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 60px;

    padding: 70px;
}


.service-modal-image {
    min-height: 500px;
}


.service-modal-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}


.service-modal-description {
    display: flex;

    flex-direction: column;

    justify-content: center;
}


.service-modal-description h3,
.service-modal-section h3 {
    color: white;

    font-size: 30px;

    margin: 0 0 20px;
}


.service-modal-description p,
.service-modal-section > p:not(.service-modal-label) {
    color: #bfc3d1;

    font-size: 17px;

    line-height: 1.8;

    margin: 0 0 35px;
}


/* =========================================
   SECTIONS
========================================= */

.service-modal-section {
    padding: 70px;

    border-top: 1px solid #242735;
}


/* =========================================
   APPLICATIONS
========================================= */

.application-grid {
    display: grid;

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

    gap: 15px;

    margin-top: 35px;
}


.application-grid div {
    padding: 20px;

    background-color: #111421;

    border: 1px solid #242735;

    color: white;

    font-size: 15px;
}


.application-grid div::first-letter {
    color: #0099ff;
}


/* =========================================
   BENEFITS
========================================= */

.benefits-section {
    background-color: #111421;
}


.benefits-grid {
    display: grid;

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

    gap: 20px;

    margin-top: 40px;
}


.benefit-item {
    min-height: 180px;

    padding: 30px;

    background-color: #0b0d17;

    border: 1px solid #242735;
}


.benefit-item span {
    color: #0099ff;

    font-size: 14px;

    font-weight: bold;
}


.benefit-item p {
    margin: 20px 0 0;

    color: #d4d7df;

    font-size: 16px;

    line-height: 1.6;
}


/* =========================================
   CTA
========================================= */

.service-modal-cta {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 40px;

    padding: 60px 70px;

    border-top: 1px solid #242735;
}


.service-modal-cta h3 {
    max-width: 600px;

    margin: 0;

    color: white;

    font-size: 30px;

    line-height: 1.3;
}


.service-estimate-button {
    min-width: 300px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}


.service-estimate-button:hover {
    background-color: #0099ff;

    color: white;
}


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

@media (max-width: 1024px) {

    nav {
        padding: 0 35px;
    }

            /* GET A FREE ESTIMATE */

        .estimate {
            padding: 90px 5%;
        }

        .estimate-form {
            padding: 40px;
        }

        .estimate-options {
            grid-template-columns: repeat(2, 1fr);
        }

    .menu {
        gap: 22px;
    }


    .menu a {
        font-size: 14px;
    }


    /* HERO */

    .hero {
        min-height: 600px;

        padding: 60px 6%;

        background-position: 60% center;
    }


    .hero-content {
        width: 70%;
    }


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


    /* ABOUT */

    .about-container {
        gap: 45px;
    }


    .about-content h2 {
        font-size: 40px;
    }


    /* SERVICES */

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


    /* GALLERY */

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


    /* WHY US */

    .cards {
        gap: 20px;
    }

}


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

@media (max-width: 768px) {

    /* ANCLAJES */

    #home,
    #about,
    #services,
    #resources {
        scroll-margin-top: 85px;
    }


    /* =====================
       NAVBAR
    ===================== */

    nav {
        min-height: 85px;

        height: 85px;

        padding: 15px 25px;

        flex-direction: row;

        position: sticky;

        top: 0;
    }
/* =========================================
   GET A FREE ESTIMATE - MOBILE
========================================= */

        .estimate {
            padding: 70px 22px;
        }

        .estimate-heading {
            margin-bottom: 40px;
        }

        .estimate-label {
            font-size: 12px;
        }

        .estimate-label::before {
            width: 38px;
            height: 2px;
        }

        .estimate-heading h2 {
            margin-bottom: 20px;

            font-size: 38px;
            line-height: 1.1;

            letter-spacing: -0.8px;
        }

        .estimate-description {
            font-size: 16px;
            line-height: 1.65;
        }

        .estimate-form {
            padding: 25px 20px;
        }

        .estimate-form-grid {
            grid-template-columns: 1fr;

            gap: 25px;

            margin-bottom: 40px;
        }

        .estimate-options {
            grid-template-columns: 1fr;

            gap: 12px;
        }

        .estimate-group {
            margin-bottom: 40px;
        }

        .estimate-option {
            min-height: 60px;
        }

        .estimate-field input {
            height: 55px;
        }

        .estimate-field textarea {
            min-height: 150px;
        }

        .estimate-button {
            width: 100%;
            min-width: 0;

            padding: 17px 20px;
        }
    /* =========================================
   WHY CHOOSE US - MOBILE
========================================= */

.why {
    padding: 0;

    background-color: #080b13;
}


.why-container {
    display: block;

    max-width: none;
}


/* IMAGEN ARRIBA */

.why-image {
    width: 100%;

    min-height: 0;
    height: 360px;
}


.why-image img {
    position: relative;

    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position: center;
}


/* CONTENIDO */

.why-content {
    padding: 50px 22px 70px;
}


/* LABEL */

.why-label {
    margin-bottom: 18px;

    font-size: 12px;
}


.why-label::before {
    width: 38px;

    height: 2px;
}


/* TÍTULO */

.why-heading h2 {
    margin-bottom: 22px;

    font-size: 38px;

    line-height: 1.1;

    letter-spacing: -0.8px;
}


/* DESCRIPCIÓN */

.why-description {
    margin-bottom: 35px;

    font-size: 16px;

    line-height: 1.65;
}


/* ITEMS */

.why-item {
    grid-template-columns: 70px 1fr;

    gap: 20px;

    padding: 25px 0;
}


.why-icon {
    width: 70px;
    height: 70px;
}


.why-icon svg {
    width: 31px;
    height: 31px;
}


.why-number {
    margin-bottom: 5px;

    font-size: 13px;
}


.why-item h3 {
    margin-bottom: 7px;

    font-size: 17px;

    line-height: 1.3;
}


.why-item p {
    font-size: 14px;

    line-height: 1.55;
}

    .logo img {
        width: 100px;
    }


    /* HAMBURGUESA */

    .menu-toggle {
        display: block;
    }


    /* MENÚ DESPLEGABLE */

    .menu {
        position: absolute;

        top: 100%;
        left: 0;

        width: 100%;

        display: none;

        flex-direction: column;

        align-items: stretch;

        gap: 0;

        padding: 15px 25px 25px;

        background-color: rgba(11, 13, 23, 0.98);

        border-top: 1px solid #242735;

        border-bottom: 1px solid #242735;

        z-index: 999;
    }

    /* X FIJA EN MODALES DE SERVICIOS */

    .service-modal-close {
        position: fixed;

        top: 15px;
        right: 15px;

        width: 48px;
        height: 48px;

        padding: 0;

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

        background-color: rgba(11, 13, 23, 0.95);

        border: 1px solid #0099ff;

        color: white;

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

        z-index: 4000;
    }


    .service-modal-close:hover {
        background-color: #0099ff;
        color: white;

        transform: none;
    }

    .menu.active {
        display: flex;
    }


    .menu > a {
        width: 100%;

        padding: 17px 0;

        border-bottom: 1px solid #242735;

        font-size: 15px;
    }


    /* IDIOMA */

    .language {
        margin-top: 15px;
    }


    .language button {
        width: 100%;
    }


    .language-options {
        position: static;

        width: 100%;
    }


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

    .hero {
        min-height: 600px;

        padding: 70px 25px;

        background-position: 65% center;
    }


    .hero-content {
        width: 100%;
    }


    .hero-subtitle {
        font-size: 12px;

        letter-spacing: 2px;
    }


    .hero-subtitle::before {
        width: 35px;

        margin-right: 12px;
    }


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


    .hero-text {
        font-size: 17px;
    }


    .hero-button {
        width: 100%;

        min-width: 0;

        padding: 18px 22px;
    }


    /* =====================
       ABOUT
    ===================== */

    .about {
        padding: 80px 25px;
    }


    .about-container {
        flex-direction: column;

        gap: 45px;
    }


    .about-image {
        width: 100%;

        min-height: 350px;
    }


    .about-content {
        width: 100%;

        max-width: none;
    }


    .about-content h2 {
        font-size: 38px;
    }


    /* =====================
       SERVICES
    ===================== */

    .services {
        padding: 80px 25px;
    }


    .products-header h2 {
        font-size: 38px;
    }


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


    .product-image {
        height: 260px;
    }

    /* CLOSED CELL MODAL */

    .service-modal-header h2 .service-title-white {
    color: white;
}

    .service-modal {
        padding: 15px;
    }


    .service-modal-content {
        width: 100%;
    }


    .service-modal-close {
        top: 15px;
        right: 15px;

        width: 42px;
        height: 42px;

        font-size: 28px;
    }


    .service-modal-header {
        padding: 70px 25px 40px;
    }


    .service-modal-header h2 {
        font-size: 38px;
    }


    .service-modal-main {
        grid-template-columns: 1fr;

        gap: 35px;

        padding: 40px 25px;
    }


    .service-modal-image {
        min-height: 300px;
    }


    .service-modal-section {
        padding: 45px 25px;
    }


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


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


    .benefit-item {
        min-height: auto;
    }


    .service-modal-cta {
        flex-direction: column;

        align-items: stretch;

        padding: 45px 25px;
    }


    .service-estimate-button {
        width: 100%;

        min-width: 0;
    }


    /* =====================
       RESOURCES
    ===================== */

    .resources {
        padding: 80px 25px;
    }


    .resources-header h2 {
        font-size: 38px;
    }


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


    .gallery-item {
        height: 300px;
    }


    /* WHY CHOOSE US */

.why {
    padding: 90px 5%;
}


.why-container {
    grid-template-columns: 0.85fr 1.15fr;

    gap: 45px;
}


.why-image {
    min-height: 700px;
}


.why-heading h2 {
    font-size: 45px;
}


.why-description {
    font-size: 17px;
}


.why-item {
    grid-template-columns: 80px 1fr;

    gap: 22px;
}


.why-icon {
    width: 80px;
    height: 80px;
}


.why-icon svg {
    width: 35px;
    height: 35px;
}

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

    .lightbox {
        padding: 20px;
    }


    .lightbox img,
    #lightboxImage {
        max-width: 95%;

        max-height: 75vh;
    }


    .lightbox-close {
        top: 10px;

        right: 15px;
    }


    .zoom-controls {
        bottom: 15px;
    }

}


/* =========================================
   RESPONSIVE - CELULAR PEQUEÑO
========================================= */

@media (max-width: 480px) {

    .hero {
        min-height: 550px;

        padding: 60px 20px;
    }


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


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


    .about,
    .services,
    .resources,
    .why-us {
        padding-left: 20px;

        padding-right: 20px;
    }


    .about-content h2,
    .products-header h2,
    .resources-header h2 {
        font-size: 32px;
    }


    .about-placeholder span {
        font-size: 60px;
    }


    .product-image {
        height: 230px;
    }


    .gallery-item {
        height: 260px;
    }

}

.about-content h2 .about-title-main {
    color: white;
}

.products-header h2 .services-title-main {
    color: white;
}

.resources-header h2 .resources-title-main {
    color: white;
}

.language-options .language-option {
    display: block;

    width: 100%;

    padding: 12px;

    background-color: white;

    border: none;

    color: #0b0d17;

    text-align: center;

    font-size: 14px;

    font-weight: bold;

    cursor: pointer;

    transform: none;
}

.language-options .language-option:hover {
    background-color: #d4d7df;

    color: #0b0d17;

    transform: none;
}

/* =========================================
   INSULATION REMOVAL PROCESS
========================================= */

.removal-process {
    display: grid;

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

    gap: 20px;

    margin-top: 40px;
}


.process-item {
    display: flex;

    gap: 25px;

    padding: 30px;

    background-color: #111421;

    border: 1px solid #242735;
}


.process-item > span {
    color: #0099ff;

    font-size: 15px;
    font-weight: bold;
}


.process-item h4 {
    color: white;

    font-size: 20px;

    margin: 0 0 12px;
}


.process-item p {
    color: #bfc3d1;

    font-size: 16px;
    line-height: 1.7;

    margin: 0;
}

/* =========================================
   COPYRIGHT
========================================= */

.copyright {
    width: 100%;

    padding: 22px 20px;

    background-color: #05070c;

    border-top: 1px solid #1c202c;

    text-align: center;
}

.copyright p {
    margin: 0;

    color: #6f7482;

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

    letter-spacing: 1px;
}

.copyright span {
    margin: 0 8px;

    color: #0099ff;
}

/* =========================================
   GALLERY - VIEW MORE
========================================= */

.gallery-hidden {
    display: none;
}

.gallery-hidden.gallery-visible {
    display: block;
    animation: galleryFadeIn 0.5s ease;
}

.gallery-more-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 45px;
}

.gallery-more-button {
    min-width: 190px;
    padding: 16px 25px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    background-color: transparent;
    border: 1px solid #0099ff;

    color: white;

    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;

    cursor: pointer;

    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

.gallery-more-button:hover {
    background-color: #0099ff;
    color: white;
}

#galleryMoreArrow {
    color: #0099ff;
    font-size: 20px;

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

.gallery-more-button:hover #galleryMoreArrow {
    color: white;
}

.gallery-more-button.active #galleryMoreArrow {
    transform: rotate(180deg);
}

@keyframes galleryFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

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

.estimate-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}