:root {
  --blanco: #ffffff;
  --oscuro: #212121;
  --primario: #213489;
  --secundario: #ff9a24;
  --gris: #757575;
  --grisclaro: #dfe9f3;
}

html {
  font-size: 62.5%;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

body {
  margin: 0;
  font-size: 1.6rem;
  font-family: "DM Sans", sans-serif;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

/* Barra auxiliar */
.nav-aux {
  width: 100%;
  background-color: var(--primario);
}

.navegacion-auxiliar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.5rem 3rem;
}

.navegacion-auxiliar a {
  padding: 0.7rem 1rem;
  color: var(--secundario);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.navegacion-auxiliar a:hover {
  color: var(--oscuro);
  background-color: var(--blanco);
}

/* Hero */
.contenedor-principal {
  
   position: relative;

    min-height: calc(100vh - 82px);

    overflow: hidden;
}

.fondo-transparente {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
    url("../img/imagen-fondo1.jpg");
  background-size: cover;
  background-position: center;
}

.contenido {

     position: relative;
    z-index: 2;

    min-height: calc(100vh - 82px);

    padding: 0 6% 4rem;

    display: flex;
    flex-direction: column;

    color: var(--blanco);

}

.contenido > section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 2.5rem;
    
}

.header-principal {
   
    position: sticky;
    top: 0;
    z-index: 1000;

    width: 100%;
    min-height: 82px;

    display: flex;
    justify-content: space-between;
    align-items: center;

  /*  padding: 0.4rem 6%;*/
   padding: 0.4rem 4%;

    background-color: var(--blanco);
    border: none;

    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    
}

.logo {
  /*flex: 0 0 auto;*/
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}


.logo a {
    display: block;
}

.logo img {
 
    width: auto;
    height: 7.2rem;
    max-width: 20rem;
    display: block;
    object-fit: contain;
}

.nav-principal {
  margin-left: auto;
}

.nav-principal ul {
  
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;/*evita que contac baje a otra linea*/

    /*gap: clamp(2rem, 3vw, 4.5rem);*/
    gap: clamp(1.5rem, 2.2vw, 3.5rem); /*reduce un poco entre opciones*/
    margin: 0;
    padding: 0;

    list-style: none;

}

.nav-principal a {
 
   position: relative;

    display: block;

    padding: 1rem 0;

    color: var(--primario);

    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.08rem;

    text-decoration: none;
    white-space: nowrap;

    transition: color 0.3s ease;
}

.nav-principal a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: 0.4rem;

    width: 0;
    height: 2px;

    background-color: var(--secundario);

    transition: width 0.3s ease;
}


.nav-principal a:hover {
    color: var(--secundario);
}

.nav-principal a:hover::after {
    width: 100%;
}



.mensaje-principal {
 
    width: 100%;
    max-width: 75rem;

    margin: 0;
    padding: 0;

    color: var(--blanco);

    font-family: "Montserrat", sans-serif;
    text-align: left;
}

.mensaje-principal h1 {
 
    margin: 0;
    font-size: clamp(4rem, 5.5vw, 7rem);
    font-weight: 800;
    line-height: 1.06;
}

.mensaje-principal h1 span {
    display: block;
}

.mensaje-principal p {
 
    max-width: 60rem;
    margin: 2rem 0 0;
    font-size: clamp(1.8rem, 2vw, 2.3rem);
    line-height: 1.45;
}

.contenedor-botones {
   
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2.8rem;
    padding: 0;
}

.boton-comando,
.boton-getquote {
  display: inline-block;
  min-width: 19rem;
  padding: 1.6rem 3rem;
  border-radius: 0.8rem;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.25rem;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease,
    box-shadow 0.3s ease;
}

.boton-comando {
  border: 2px solid var(--blanco);
  color: var(--blanco);
  background: transparent;
}

.boton-comando:hover {
  color: var(--primario);
  background-color: var(--blanco);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.boton-getquote {
  border: 2px solid var(--primario);
  color: var(--blanco);
  background-color: var(--primario);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.boton-getquote:hover {
  transform: translateY(-2px);
  background-color: #1e8490;
  border-color: #1e8490;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
}

/* Servicios */
.services {
  
    padding: 8rem 5%;
    color: var(--oscuro);
    background-color: #f5f6f8;
}

.services-container {
  width: min(1200px, 100%);
  margin: 0 auto;
}

.services-heading {
 
    max-width: 75rem;
    margin: 0 auto 5rem;
    text-align: center;
}

.services-heading span {
  display: block;
  margin-bottom: 1rem;
  color: var(--secundario);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.3rem;
}

.services-heading h2 {
  margin: 0 0 1.8rem;
  color: var(--primario);
  font-family: "Montserrat", sans-serif;
  font-size: clamp(3.2rem, 4vw, 4rem);
  line-height: 1.15;
}

.services-heading p {
  margin: 0;
  color: var(--gris);
  font-size: 1.8rem;
  line-height: 1.7;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
   gap: 2.5rem;
}

.service-card {
  position: relative;
  min-height: 34rem;
  padding: 3.5rem 3rem;
  overflow: hidden;
  background-color: var(--blanco);
  border-bottom: 4px solid var(--primario);
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.14);
}

.service-number {
  position: absolute;
  top: 1.5rem;
  right: 2rem;
  color: rgba(33, 52, 137, 0.1);
  font-size: 5rem;
  font-weight: 800;
}

.service-card h3 {
  position: relative;
  margin: 1.5rem 0 2rem;
  color: var(--primario);
  font-size: 2.2rem;
}

.service-card ul {
  min-height: 13rem;
  margin: 0 0 2.5rem;
  padding-left: 2rem;
  color: var(--gris);
}

.service-card li {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  line-height: 1.6;
}

.service-card a {
  color: var(--secundario);
  font-weight: 700;
  letter-spacing: 0.1rem;
  text-decoration: none;
  text-transform: uppercase;
}

.service-card a:hover {
  color: var(--primario);
}




/***/


/* =========================
   ABOUT SECTION
========================= */

/*#about {
    scroll-margin-top: 90px;
}*/



.about {
    
     padding: 6rem 5%;
}

.about-container {
   
    width: min(1200px, 100%);

    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;

    gap: 5rem;
}

/* Imagen */

.about-image {
    position: relative;
}

.about-image img {
  
    width: 100%;
    height: 440px;

    object-fit: cover;
    object-position: center;

    border-radius: 10px;
}

/* Distintivo sobre la imagen */

.about-badge {
    position: absolute;
    right: -2rem;
    bottom: 2.5rem;

    min-width: 220px;
    padding: 2rem 2.4rem;

    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    background-color: var(--primario);
    color: var(--blanco);

    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}

.about-badge strong {
    font-family: "Montserrat", sans-serif;
    font-size: 2rem;
    line-height: 1.2;
}

.about-badge span {
    font-size: 1.4rem;
    line-height: 1.4;
}

/* Contenido */

.about-content {
    max-width: 58rem;
}

.section-label {
    display: block;
    margin-bottom: 0.8rem;

    color: var(--secundario);

    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.3rem;
}

.about-content h2 {

    margin: 0 0 1.5rem;
    color: var(--primario);
    font-family: "Montserrat", sans-serif;
    font-size: clamp(2.8rem, 3vw, 3.8rem);
    line-height: 1.15;
    
}

.about-content > p {

    margin: 0 0 1rem;
    color: var(--gris);
    font-size: 1.5rem;
    line-height: 1.6;

     margin-bottom: 1.2rem;
}

/* Características */

.about-features {
 
       margin: 2rem 0 2.5rem;
}

.about-feature {
   
    display: flex;
    align-items: flex-start;
    gap: 1.3rem;
    margin-bottom: 1.2rem;
}

.about-feature > span {
    width: 3.4rem;
    height: 3.4rem;
    flex: 0 0 3.4rem;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: var(--primario);
    color: var(--blanco);

    border-radius: 50%;

    font-size: 1.7rem;
    font-weight: 700;
}

.about-feature h3 {
    margin: 0 0 0.2rem;

    color: var(--primario);

    font-family: "Montserrat", sans-serif;
    font-size: 1.6rem;
    line-height: 1.3;
}

.about-feature p {
    margin: 0;
    color: var(--gris);
    font-size: 1.35rem;
    line-height: 1.45;

}

/* Botón */

.about-button {
    display: inline-block;
    padding: 1.4rem 2.8rem;
    background-color: var(--primario);
    color: var(--blanco);
    border-radius: 8px;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.12rem;
    text-decoration: none;
    text-transform: uppercase;
}

.about-button:hover {
    background-color: #1e8490;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}


/* =========================
   PROJECTS
========================= */

.projects{
    
     padding: 5rem 5% 6rem;
    /*background:#2a2f36; un fondo un poco mas oscuro*/
     background:#343a40;

}

.projects .section-header{
    text-align:center;
    max-width:70rem;;
    margin:0 auto 2.5rem;
}

.projects .section-header span{

    display: inline-block;
    margin-bottom: 1rem;
    color: var(--secundario);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.18rem;
}

.projects .section-header span::after{
    content:"";
    display:block;
    width:55px;
    height:3px;
    background:var(--secundario);
    margin:8px auto 0;
    border-radius:2px;
}

.projects .section-header h2{
   
     margin: 1.2rem 0 1.8rem;
    color: var(--blanco);
    font-family: "Montserrat", sans-serif;
    font-size: clamp(3rem, 4vw, 4rem);
    font-weight: 700;
    line-height: 1.15;

    letter-spacing: normal;
}

.projects .section-header p{
   
     max-width: 76rem;

    margin: 0 auto;

    color: #d8d8d8;

    font-size: 1.6rem;
    line-height: 1.7;
}

.projects-grid{
    
     width: min(1200px, 100%);

    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 2.8rem;
}

.project-card{

  
    overflow: hidden;

    background-color: var(--blanco);

    border-radius: 12px;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-7px);

    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.27);
}

.project-card img{
   
    width: 100%;
    height: 26rem;

    display: block;

    object-fit: cover;

    transition: transform 0.5s ease;
}


.project-card:hover img {
    transform: scale(1.05);
}

.project-info{
   
    position: static;

    min-height: 12rem;

    padding: 2rem 2.2rem;

    background-color: var(--blanco);
}

.project-info h3{
   
     margin: 0 0 0.8rem;
    color: var(--primario);
    font-family: "Montserrat", sans-serif;
    font-size: 1.9rem;
}

.project-info p{
   
    margin: 0;
    color: var(--gris);
    font-size: 1.45rem;
    line-height: 1.5;
}


.project-card:hover img{
    transform:scale(1.08);
}

/* =========================
   CONTACT SECTION
========================= */
/* --------------------------------------------------
   2. POSICIÓN CORRECTA AL NAVEGAR
-------------------------------------------------- */

#services,
#about,
#projects,
#contact {
    scroll-margin-top: 90px;
}


.contact {
    padding: 7rem 5%;
    background-color: #f5f6f8;
}

.contact-container {
  
    width: min(1280px, 100%);

    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);

    gap: 6rem;
    align-items: start;

    
}

/* Contact information */

.contact-information {
   /* padding-top: 1rem;*/
   padding: 0;
}

.contact-label,
.form-label {
    display: block;
    margin-bottom: 1rem;

    color: var(--secundario);

    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.3rem;
}

.contact-information h2 {
    max-width: 55rem;
    margin: 0 0 2rem;

    color: var(--primario);

    font-family: "Montserrat", sans-serif;
    font-size: clamp(3rem, 4vw, 4.5rem);
    line-height: 1.15;
}

.contact-description {
    max-width: 58rem;
    margin: 0 0 3.5rem;

    color: var(--gris);

    font-size: 1.65rem;
    line-height: 1.7;
}

.contact-details {
    display: grid;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.6rem;
}

.contact-icon {
    width: 5.2rem;
    height: 5.2rem;
    flex: 0 0 5.2rem;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--blanco);
    background-color: var(--primario);

    border-radius: 50%;

    font-size: 2rem;
    font-weight: 700;
}

.contact-item span {
    display: block;
    margin-bottom: 0.4rem;

    color: var(--gris);

    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
}

.contact-item a,
.contact-item p {
    margin: 0;

    color: var(--oscuro);

    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--secundario);
}

/* Mobile welding box */

.contact-emergency {
    margin-top: 4rem;
    padding: 2.8rem;

    color: var(--blanco);
    background-color: var(--primario);

    border-radius: 1rem;
    box-shadow: 0 15px 35px rgba(33, 52, 137, 0.2);
}

.contact-emergency h3 {
    margin: 0 0 1rem;

    font-family: "Montserrat", sans-serif;
    font-size: 2.2rem;
}

.contact-emergency p {
    margin: 0 0 2rem;

    font-size: 1.5rem;
    line-height: 1.6;
}

.contact-emergency a {
    display: inline-block;
    padding: 1.2rem 2.2rem;

    color: var(--primario);
    background-color: var(--blanco);

    border-radius: 0.7rem;

    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
    text-decoration: none;
    text-transform: uppercase;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-emergency a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

/* Contact form */

.contact-form-container {
  
    width: 100%;

    padding: 4.5rem;

    background-color: var(--blanco);

    border-radius: 1.2rem;

    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.1);
}

.contact-form-container h3 {
    margin: 0 0 1rem;

    color: var(--primario);

    font-family: "Montserrat", sans-serif;
    font-size: clamp(2.5rem, 3vw, 3.3rem);
    line-height: 1.2;
}

.contact-form-container > p {
    margin: 0 0 3rem;

    color: var(--gris);

    font-size: 1.5rem;
    line-height: 1.65;
}

.contact-form {
    display: grid;
    gap: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form-group label {
    color: var(--oscuro);

    font-size: 1.35rem;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1.4rem 1.5rem;

    color: var(--oscuro);
    background-color: #f8f9fb;

    border: 1px solid #d9dde5;
    border-radius: 0.7rem;
    outline: none;

    font-family: "DM Sans", sans-serif;
    font-size: 1.5rem;

    transition: border-color 0.3s ease, box-shadow 0.3s ease,
        background-color 0.3s ease;
}

.form-group textarea {
    min-height: 15rem;
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background-color: var(--blanco);
    border-color: var(--primario);
    box-shadow: 0 0 0 3px rgba(33, 52, 137, 0.12);
}

.contact-submit {
    width: 100%;
    padding: 1.4rem 2.5rem;

    color: var(--blanco);
    background-color: var(--primario);

    border: 2px solid var(--primario);
    border-radius: 0.8rem;
    cursor: pointer;

    font-family: "DM Sans", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.18rem;
    text-transform: uppercase;

    transition: transform 0.3s ease, background-color 0.3s ease,
        border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-submit:hover {
    transform: translateY(-2px);

    background-color: #1e8490;
    border-color: #1e8490;

    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

.form-note {
    margin: -0.5rem 0 0;

    color: var(--gris);

    font-size: 1.25rem;
    text-align: center;
}


/* =========================
   FOOTER
========================= */

.footer {
    padding: 7rem 5% 0;

    color: #d6d6d6;
    background-color: #111827;
}

.footer-container {
    width: min(1200px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1.5fr 0.8fr 1fr 1.2fr;
    gap: 5rem;

    padding-bottom: 5rem;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 1.5rem;

    padding: 0.8rem 1.5rem;

    background-color: var(--blanco);
    border-radius: 0.8rem;
}

.footer-logo img {
    width: auto;
    height: 8rem;
    object-fit: contain;
}

.footer-company > p {
    max-width: 36rem;
    margin: 0 0 2.5rem;

    color: #b9bec8;

    font-size: 1.45rem;
    line-height: 1.7;
}

.footer-quote-button {
    display: inline-block;
    padding: 1.3rem 2.2rem;

    color: var(--blanco);
    background-color: var(--primario);

    border-radius: 0.7rem;

    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
    text-decoration: none;
    text-transform: uppercase;

    transition: transform 0.3s ease, background-color 0.3s ease;
}

.footer-quote-button:hover {
    transform: translateY(-2px);
    background-color: #1e8490;
}

.footer-column h3 {
    margin: 0 0 2rem;

    color: var(--blanco);

    font-family: "Montserrat", sans-serif;
    font-size: 1.8rem;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-links a,
.footer-contact a {
    width: fit-content;

    color: #b9bec8;

    font-size: 1.4rem;
    text-decoration: none;

    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--secundario);
    transform: translateX(4px);
}

.footer-contact p {
    margin: 0;

    color: #b9bec8;

    font-size: 1.4rem;
    line-height: 1.5;
}

.footer-bottom {
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 2.2rem 0;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;

    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-bottom p {
    margin: 0;

    color: #969ca8;

    font-size: 1.3rem;
}

.back-to-top {
    color: var(--secundario);

    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
}

.back-to-top:hover {
    color: var(--blanco);
}

/* ==================================================
   INTERNAL ABOUT PAGE
================================================== */

/* Página activa en la navegación */

.nav-principal a.nav-active {
    color: var(--secundario);
}

.nav-principal a.nav-active::after {
    width: 100%;
}


/* ==================================================
   INTERNAL HERO
================================================== */

.internal-hero {
    position: relative;
    min-height: 44rem;

    display: flex;
    align-items: center;

    overflow: hidden;

    background-size: cover;
    background-position: center;
}

.internal-hero-about {
    background-image: url("../img/hombre soldando1.jpg");
}

.internal-hero-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(10, 18, 40, 0.9) 0%,
            rgba(10, 18, 40, 0.72) 50%,
            rgba(10, 18, 40, 0.4) 100%
        );
}

.internal-hero-content {
    position: relative;
    z-index: 2;

    width: min(1200px, 90%);
    margin: 0 auto;

    color: var(--blanco);
}

.internal-hero-label {
    display: block;

    margin-bottom: 1.3rem;

    color: var(--secundario);

    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.3rem;
}

.internal-hero-content h1 {
    margin: 0 0 1.5rem;

    font-family: "Montserrat", sans-serif;
    font-size: clamp(4rem, 6vw, 6.5rem);
    font-weight: 800;
    line-height: 1.05;
}

.internal-hero-content > p {
    max-width: 70rem;

    margin: 0 0 2rem;

    color: #eef1f7;

    font-size: clamp(1.7rem, 2vw, 2rem);
    line-height: 1.6;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 1rem;

    font-size: 1.4rem;
}

.breadcrumb a {
    color: var(--blanco);
    font-weight: 600;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--secundario);
}

.breadcrumb span:last-child {
    color: var(--secundario);
}


/* ==================================================
   ABOUT PAGE INTRODUCTION
================================================== */

.about-page-intro {
    padding: 8rem 5%;

    background-color: var(--blanco);
}

.about-page-container {
    width: min(1200px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 6rem;
}

.about-page-image {
    position: relative;
}

.about-page-image img {
    width: 100%;
    height: 52rem;

    object-fit: cover;
    object-position: center;

    border-radius: 1.2rem;

    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
}

.about-page-image-card {
    position: absolute;
    right: -2rem;
    bottom: 3rem;

    width: min(31rem, 80%);
    padding: 2.4rem;

    color: var(--blanco);
    background-color: var(--primario);

    border-left: 5px solid var(--secundario);
    border-radius: 1rem;

    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25);
}

.about-page-image-card strong {
    display: block;

    margin-bottom: 0.7rem;

    font-family: "Montserrat", sans-serif;
    font-size: 2rem;
}

.about-page-image-card span {
    font-size: 1.4rem;
    line-height: 1.5;
}

.about-page-content {
    max-width: 59rem;
}

.about-page-content h2 {
    margin: 0 0 2rem;

    color: var(--primario);

    font-family: "Montserrat", sans-serif;
    font-size: clamp(3.1rem, 4vw, 4.5rem);
    line-height: 1.15;
}

.about-page-content p {
    margin: 0 0 1.8rem;

    color: var(--gris);

    font-size: 1.65rem;
    line-height: 1.75;
}

.about-page-content .about-button {
    margin-top: 1rem;
}


/* ==================================================
   ABOUT VALUES
================================================== */

.about-values {
    padding: 8rem 5%;

    background-color: #f5f6f8;
}

.about-values-container {
    width: min(1200px, 100%);
    margin: 0 auto;
}

.about-values-heading {
    max-width: 76rem;
    margin: 0 auto 5rem;

    text-align: center;
}

.about-values-heading h2 {
    margin: 0 0 1.7rem;

    color: var(--primario);

    font-family: "Montserrat", sans-serif;
    font-size: clamp(3rem, 4vw, 4.3rem);
    line-height: 1.15;
}

.about-values-heading p {
    margin: 0;

    color: var(--gris);

    font-size: 1.7rem;
    line-height: 1.7;
}

.about-values-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
}

.about-value-card {
    position: relative;

    min-height: 29rem;
    padding: 3.5rem 3rem;

    overflow: hidden;

    background-color: var(--blanco);
    border-bottom: 4px solid var(--primario);
    border-radius: 1rem;

    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.about-value-card:hover {
    transform: translateY(-7px);

    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.about-value-number {
    position: absolute;
    top: 1.5rem;
    right: 2rem;

    color: rgba(33, 52, 137, 0.1);

    font-size: 5rem;
    font-weight: 800;
}

.about-value-card h3 {
    position: relative;

    margin: 3rem 0 1.5rem;

    color: var(--primario);

    font-family: "Montserrat", sans-serif;
    font-size: 2rem;
    line-height: 1.3;
}

.about-value-card p {
    margin: 0;

    color: var(--gris);

    font-size: 1.5rem;
    line-height: 1.7;
}


/* ==================================================
   ABOUT CAPABILITIES
================================================== */

.about-capabilities {
    padding: 8rem 5%;

    background-color: var(--blanco);
}

.about-capabilities-container {
    width: min(1200px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 6rem;
}

.about-capabilities-content h2 {
    max-width: 65rem;

    margin: 0 0 2rem;

    color: var(--primario);

    font-family: "Montserrat", sans-serif;
    font-size: clamp(3rem, 4vw, 4.3rem);
    line-height: 1.15;
}

.about-capabilities-content > p {
    max-width: 67rem;

    margin: 0 0 3rem;

    color: var(--gris);

    font-size: 1.65rem;
    line-height: 1.75;
}

.about-capabilities-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 2.5rem;

    margin-bottom: 3rem;
}

.about-capability-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.about-capability-item span {
    width: 3rem;
    height: 3rem;
    flex: 0 0 3rem;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--blanco);
    background-color: var(--primario);

    border-radius: 50%;

    font-size: 1.5rem;
    font-weight: 700;
}

.about-capability-item p {
    margin: 0;

    color: var(--oscuro);

    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.5;
}

.about-secondary-button {
    display: inline-block;

    padding: 1.4rem 2.8rem;

    color: var(--primario);
    background-color: transparent;

    border: 2px solid var(--primario);
    border-radius: 0.8rem;

    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.12rem;
    text-decoration: none;
    text-transform: uppercase;

    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        transform 0.3s ease;
}

.about-secondary-button:hover {
    transform: translateY(-2px);

    color: var(--blanco);
    background-color: var(--primario);
}

.about-capabilities-image img {
    width: 100%;
    height: 52rem;

    object-fit: cover;

    border-radius: 1.2rem;

    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}


/* ==================================================
   ABOUT CALL TO ACTION
================================================== */

.about-cta {
    position: relative;

    padding: 8rem 5%;

    overflow: hidden;

    background:
        linear-gradient(
            rgba(20, 31, 75, 0.92),
            rgba(20, 31, 75, 0.92)
        ),
        url("../img/imagen-fondo1.jpg");

    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.about-cta-content {
    width: min(850px, 100%);
    margin: 0 auto;

    color: var(--blanco);

    text-align: center;
}

.about-cta-content > span {
    display: block;

    margin-bottom: 1.3rem;

    color: var(--secundario);

    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.3rem;
}

.about-cta-content h2 {
    margin: 0 0 2rem;

    font-family: "Montserrat", sans-serif;
    font-size: clamp(3.2rem, 4.5vw, 4.8rem);
    line-height: 1.15;
}

.about-cta-content p {
    max-width: 75rem;

    margin: 0 auto;

    color: #e2e5ec;

    font-size: 1.7rem;
    line-height: 1.7;
}

.about-cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.8rem;

    margin-top: 3rem;
}

.about-cta-primary,
.about-cta-secondary {
    display: inline-block;

    min-width: 21rem;
    padding: 1.5rem 2.5rem;

    border-radius: 0.8rem;

    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
    text-decoration: none;
    text-transform: uppercase;

    transition:
        transform 0.3s ease,
        background-color 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease;
}

.about-cta-primary {
    color: var(--blanco);
    background-color: var(--secundario);

    border: 2px solid var(--secundario);
}

.about-cta-primary:hover {
    transform: translateY(-2px);

    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.about-cta-secondary {
    color: var(--blanco);
    background-color: transparent;

    border: 2px solid var(--blanco);
}

.about-cta-secondary:hover {
    transform: translateY(-2px);

    color: var(--primario);
    background-color: var(--blanco);
}


/* ==================================================
   ABOUT PAGE RESPONSIVE
================================================== */

@media (max-width: 1100px) {

    .about-values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-value-card {
        min-height: 25rem;
    }

}


@media (max-width: 900px) {

    .internal-hero {
        min-height: 40rem;
    }

    .about-page-intro,
    .about-values,
    .about-capabilities,
    .about-cta {
        padding-left: 4%;
        padding-right: 4%;
    }

    .about-page-container,
    .about-capabilities-container {
        grid-template-columns: 1fr;
        gap: 4.5rem;
    }

    .about-page-content {
        max-width: 100%;
    }

    .about-page-image {
        max-width: 75rem;
    }

    .about-page-image img,
    .about-capabilities-image img {
        height: 45rem;
    }

    .about-capabilities-image {
        order: -1;
    }

}


@media (max-width: 768px) {

    .internal-hero {
        min-height: 36rem;

        background-position: center;
    }

    .internal-hero-content {
        width: calc(100% - 6rem);
    }

    .about-page-intro,
    .about-values,
    .about-capabilities,
    .about-cta {
        padding: 6rem 3rem;
    }

    .about-page-image img,
    .about-capabilities-image img {
        height: 40rem;
    }

    .about-capabilities-list {
        grid-template-columns: 1fr;
    }

    .about-cta {
        background-attachment: scroll;
    }

}


@media (max-width: 600px) {

    .internal-hero {
        min-height: 34rem;
    }

    .internal-hero-content {
        width: calc(100% - 4rem);
    }

    .internal-hero-label {
        font-size: 1.2rem;
        letter-spacing: 0.2rem;
    }

    .internal-hero-content h1 {
        font-size: 4rem;
    }

    .internal-hero-content > p {
        font-size: 1.6rem;
    }

    .about-page-intro,
    .about-values,
    .about-capabilities,
    .about-cta {
        padding: 5rem 2rem;
    }

    .about-page-container,
    .about-capabilities-container {
        gap: 3.5rem;
    }

    .about-page-image img,
    .about-capabilities-image img {
        height: 34rem;
    }

    .about-page-image-card {
        position: relative;
        right: auto;
        bottom: auto;

        width: calc(100% - 3rem);
        margin: -4rem auto 0;
    }

    .about-page-content h2,
    .about-values-heading h2,
    .about-capabilities-content h2 {
        font-size: 3rem;
    }

    .about-values-grid {
        grid-template-columns: 1fr;
    }

    .about-value-card {
        min-height: auto;
    }

    .about-cta-buttons {
        flex-direction: column;
        align-items: center;

        width: min(100%, 36rem);
        margin-left: auto;
        margin-right: auto;
    }

    .about-cta-primary,
    .about-cta-secondary {
        width: 100%;
    }

}


@media (max-width: 420px) {

    .internal-hero-content {
        width: calc(100% - 3rem);
    }

    .internal-hero-content h1 {
        font-size: 3.5rem;
    }

    .about-page-intro,
    .about-values,
    .about-capabilities,
    .about-cta {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .about-page-image img,
    .about-capabilities-image img {
        height: 29rem;
    }

    .about-page-image-card {
        width: calc(100% - 2rem);
        padding: 2rem 1.7rem;
    }

    .about-page-content h2,
    .about-values-heading h2,
    .about-capabilities-content h2 {
        font-size: 2.8rem;
    }

    .about-value-card {
        padding: 3rem 2.2rem;
    }

}
/*final pagina about.html*/

/* ==================================================
   INTERNAL SERVICES PAGE
================================================== */

/* Imagen principal de la página Services */

/*.internal-hero-services {
    background-image: url("../img/soldando2.png");
}*/

.internal-hero-services{
    background:
        linear-gradient(rgba(8,15,30,.07), rgba(8,15,30,.07)),
        url("../img/soldando2.png") right center/ cover no-repeat;
        filter:brightness(1.1);
}

/* ==================================================
   SERVICES INTRODUCTION
================================================== */

.services-page-intro {
    padding: 8rem 5%;

    background-color: var(--blanco);
}

.services-page-intro-container {
    width: min(1200px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 6rem;
}

.services-page-intro-content {
    max-width: 59rem;
}

.services-page-intro-content h2 {
    margin: 0 0 2rem;

    color: var(--primario);

    font-family: "Montserrat", sans-serif;
    font-size: clamp(3.1rem, 4vw, 4.5rem);
    line-height: 1.15;
}

.services-page-intro-content p {
    margin: 0 0 1.8rem;

    color: var(--gris);

    font-size: 1.65rem;
    line-height: 1.75;
}

.services-page-intro-content .about-button {
    margin-top: 1rem;
}

.services-page-intro-image {
    position: relative;
}

.services-page-intro-image img {
    width: 100%;
    height: 52rem;

    object-fit: cover;
    object-position: center;

    border-radius: 1.2rem;

    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
}

.services-page-image-badge {
    position: absolute;
    left: -2rem;
    bottom: 3rem;

    width: min(31rem, 80%);
    padding: 2.4rem;

    color: var(--blanco);
    background-color: var(--primario);

    border-right: 5px solid var(--secundario);
    border-radius: 1rem;

    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25);
}

.services-page-image-badge strong {
    display: block;

    margin-bottom: 0.7rem;

    font-family: "Montserrat", sans-serif;
    font-size: 2rem;
}

.services-page-image-badge span {
    font-size: 1.4rem;
    line-height: 1.5;
}


/* ==================================================
   SERVICE DETAIL LIST
================================================== */

.services-page-list {
    padding: 8rem 5%;

    background-color: #f5f6f8;
}

.services-page-list-container {
    width: min(1200px, 100%);
    margin: 0 auto;
}

.services-page-heading {
    max-width: 76rem;
    margin: 0 auto 5rem;

    text-align: center;
}

.services-page-heading h2 {
    margin: 0 0 1.7rem;

    color: var(--primario);

    font-family: "Montserrat", sans-serif;
    font-size: clamp(3rem, 4vw, 4.3rem);
    line-height: 1.15;
}

.services-page-heading p {
    margin: 0;

    color: var(--gris);

    font-size: 1.7rem;
    line-height: 1.7;
}

.service-detail-card {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: stretch;

    margin-bottom: 5rem;

    overflow: hidden;

    background-color: var(--blanco);

    border-radius: 1.2rem;

    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-detail-card:last-child {
    margin-bottom: 0;
}

.service-detail-reverse .service-detail-image {
    order: 2;
}

.service-detail-reverse .service-detail-content {
    order: 1;
}

.service-detail-image img {
    width: 100%;
    height: 100%;
    min-height: 48rem;

    object-fit: cover;
}

.service-detail-content {
    position: relative;

    padding: 5rem;
}

.service-detail-number {
    position: absolute;
    top: 2rem;
    right: 3rem;

    color: rgba(33, 52, 137, 0.09);

    font-size: 7rem;
    font-weight: 800;
}

.service-detail-label {
    display: block;

    margin-bottom: 1rem;

    color: var(--secundario);

    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.25rem;
}

.service-detail-content h3 {
    position: relative;

    margin: 0 0 1.8rem;

    color: var(--primario);

    font-family: "Montserrat", sans-serif;
    font-size: clamp(2.7rem, 3vw, 3.6rem);
    line-height: 1.2;
}

.service-detail-content > p {
    margin: 0 0 1.5rem;

    color: var(--gris);

    font-size: 1.55rem;
    line-height: 1.7;
}

.service-detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem 2rem;

    margin: 2.5rem 0 0;
    padding: 0;

    list-style: none;
}

.service-detail-list li {
    position: relative;

    padding-left: 2.5rem;

    color: var(--oscuro);

    font-size: 1.45rem;
    font-weight: 600;
    line-height: 1.5;
}

.service-detail-list li::before {
    content: "✓";

    position: absolute;
    left: 0;
    top: 0;

    color: var(--secundario);

    font-weight: 800;
}


/* ==================================================
   SERVICES PROCESS
================================================== */

.services-process {
    padding: 8rem 5%;

    background-color: var(--blanco);
}

.services-process-container {
    width: min(1200px, 100%);
    margin: 0 auto;
}

.services-process-heading {
    max-width: 78rem;
    margin: 0 auto 5rem;

    text-align: center;
}

.services-process-heading h2 {
    margin: 0 0 1.7rem;

    color: var(--primario);

    font-family: "Montserrat", sans-serif;
    font-size: clamp(3rem, 4vw, 4.3rem);
    line-height: 1.15;
}

.services-process-heading p {
    margin: 0;

    color: var(--gris);

    font-size: 1.7rem;
    line-height: 1.7;
}

.services-process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
}

.services-process-card {
    position: relative;

    min-height: 27rem;
    padding: 3.5rem 2.7rem;

    background-color: #f5f6f8;

    border-top: 4px solid var(--primario);
    border-radius: 1rem;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.services-process-card:hover {
    transform: translateY(-6px);

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.services-process-card > span {
    display: block;

    margin-bottom: 2rem;

    color: var(--secundario);

    font-size: 3rem;
    font-weight: 800;
}

.services-process-card h3 {
    margin: 0 0 1.3rem;

    color: var(--primario);

    font-family: "Montserrat", sans-serif;
    font-size: 1.9rem;
}

.services-process-card p {
    margin: 0;

    color: var(--gris);

    font-size: 1.45rem;
    line-height: 1.7;
}


/* ==================================================
   SERVICES AREA
================================================== */

.services-area {
    padding: 8rem 5%;

    background-color: #f5f6f8;
}

.services-area-container {
    width: min(1200px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 6rem;
}

.services-area-content h2 {
    margin: 0 0 2rem;

    color: var(--primario);

    font-family: "Montserrat", sans-serif;
    font-size: clamp(3rem, 4vw, 4.3rem);
    line-height: 1.15;
}

.services-area-content > p {
    margin: 0 0 1.7rem;

    color: var(--gris);

    font-size: 1.65rem;
    line-height: 1.75;
}

.services-area-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 2rem;

    margin-top: 3rem;
}

.services-area-feature {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.services-area-feature span {
    width: 3rem;
    height: 3rem;
    flex: 0 0 3rem;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--blanco);
    background-color: var(--primario);

    border-radius: 50%;

    font-weight: 700;
}

.services-area-feature p {
    margin: 0;

    color: var(--oscuro);

    font-size: 1.45rem;
    font-weight: 600;
}

.services-area-image img {
    width: 100%;
    height: 48rem;

    object-fit: cover;

    border-radius: 1.2rem;

    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
}


/* ==================================================
   RESPONSIVE SERVICES PAGE
================================================== */

@media (max-width: 1100px) {

    .services-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-process-card {
        min-height: 23rem;
    }

}


@media (max-width: 900px) {

    .services-page-intro,
    .services-page-list,
    .services-process,
    .services-area {
        padding-left: 4%;
        padding-right: 4%;
    }

    .services-page-intro-container,
    .services-area-container {
        grid-template-columns: 1fr;
        gap: 4.5rem;
    }

    .services-page-intro-content {
        max-width: 100%;
    }

    .services-page-intro-image {
        max-width: 75rem;
    }

    .services-page-intro-image img,
    .services-area-image img {
        height: 44rem;
    }

    .service-detail-card {
        grid-template-columns: 1fr;
    }

    .service-detail-reverse .service-detail-image,
    .service-detail-reverse .service-detail-content {
        order: initial;
    }

    .service-detail-image img {
        min-height: 38rem;
        max-height: 45rem;
    }

    .service-detail-content {
        padding: 4rem;
    }

}


@media (max-width: 768px) {

    .services-page-intro,
    .services-page-list,
    .services-process,
    .services-area {
        padding: 6rem 3rem;
    }

    .service-detail-list {
        grid-template-columns: 1fr;
    }

    .services-area-features {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 600px) {

    .services-page-intro,
    .services-page-list,
    .services-process,
    .services-area {
        padding: 5rem 2rem;
    }

    .services-page-intro-container,
    .services-area-container {
        gap: 3.5rem;
    }

    .services-page-intro-image img,
    .services-area-image img {
        height: 34rem;
    }

    .services-page-image-badge {
        position: relative;
        left: auto;
        bottom: auto;

        width: calc(100% - 3rem);
        margin: -4rem auto 0;
    }

    .service-detail-image img {
        min-height: 30rem;
        max-height: 34rem;
    }

    .service-detail-content {
        padding: 3.5rem 2.5rem;
    }

    .service-detail-number {
        top: 1.5rem;
        right: 2rem;

        font-size: 5.5rem;
    }

    .services-process-grid {
        grid-template-columns: 1fr;
    }

    .services-process-card {
        min-height: auto;
    }

    .services-page-intro-content h2,
    .services-page-heading h2,
    .services-process-heading h2,
    .services-area-content h2 {
        font-size: 3rem;
    }

}


@media (max-width: 420px) {

    .services-page-intro,
    .services-page-list,
    .services-process,
    .services-area {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .services-page-intro-image img,
    .services-area-image img {
        height: 29rem;
    }

    .services-page-image-badge {
        width: calc(100% - 2rem);
        padding: 2rem 1.7rem;
    }

    .service-detail-image img {
        min-height: 26rem;
    }

    .service-detail-content {
        padding: 3rem 2rem;
    }

    .services-page-intro-content h2,
    .services-page-heading h2,
    .services-process-heading h2,
    .services-area-content h2 {
        font-size: 2.8rem;
    }

}
/*final pagina services.html*/

/* ==================================================
   INTERNAL PROJECTS PAGE
================================================== */

.internal-hero-projects {
    background-image: url("../img/refuerzo estructural.jpg");
}


/* ==================================================
   FEATURED PROJECT
================================================== */

.featured-project {
    padding: 8rem 5%;

    background-color: var(--blanco);
}

.featured-project-container {
    width: min(1200px, 100%);
    margin: 0 auto;
}

.featured-project-heading {
    max-width: 78rem;
    margin: 0 auto 5rem;

    text-align: center;
}

.featured-project-heading h2 {
    margin: 0 0 1.7rem;

    color: var(--primario);

    font-family: "Montserrat", sans-serif;
    font-size: clamp(3.1rem, 4vw, 4.5rem);
    line-height: 1.15;
}

.featured-project-heading p {
    margin: 0;

    color: var(--gris);

    font-size: 1.7rem;
    line-height: 1.7;
}

.featured-project-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;
    gap: 0;

    overflow: hidden;

    background-color: #f5f6f8;

    border-radius: 1.2rem;

    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
}

.featured-project-image {
    position: relative;
}

.featured-project-image img {
    width: 100%;
    height: 100%;
    min-height: 60rem;

    object-fit: cover;
}

.featured-project-badge {
    position: absolute;
    left: 2.5rem;
    bottom: 2.5rem;

    width: min(30rem, calc(100% - 5rem));
    padding: 2rem 2.2rem;

    color: var(--blanco);
    background-color: var(--primario);

    border-left: 5px solid var(--secundario);
    border-radius: 0.8rem;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.featured-project-badge strong {
    display: block;

    margin-bottom: 0.5rem;

    font-family: "Montserrat", sans-serif;
    font-size: 1.9rem;
}

.featured-project-badge span {
    font-size: 1.35rem;
    line-height: 1.5;
}

.featured-project-content {
    padding: 5rem;
}

.featured-project-category {
    display: block;

    margin-bottom: 1rem;

    color: var(--secundario);

    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.25rem;
}

.featured-project-content > h3 {
    margin: 0 0 2rem;

    color: var(--primario);

    font-family: "Montserrat", sans-serif;
    font-size: clamp(2.8rem, 3.5vw, 4rem);
    line-height: 1.2;
}

.featured-project-content > p {
    margin: 0 0 3rem;

    color: var(--gris);

    font-size: 1.6rem;
    line-height: 1.75;
}

.featured-project-details {
    display: grid;
    gap: 2rem;

    margin-bottom: 3rem;
}

.featured-project-detail {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.featured-project-detail > span {
    width: 4rem;
    height: 4rem;
    flex: 0 0 4rem;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--blanco);
    background-color: var(--primario);

    border-radius: 50%;

    font-size: 1.4rem;
    font-weight: 700;
}

.featured-project-detail h4 {
    margin: 0 0 0.5rem;

    color: var(--primario);

    font-family: "Montserrat", sans-serif;
    font-size: 1.7rem;
}

.featured-project-detail p {
    margin: 0;

    color: var(--gris);

    font-size: 1.4rem;
    line-height: 1.6;
}


/* ==================================================
   FEATURED PROJECT RESPONSIVE
================================================== */

@media (max-width: 900px) {

    .featured-project {
        padding-left: 4%;
        padding-right: 4%;
    }

    .featured-project-grid {
        grid-template-columns: 1fr;
    }

    .featured-project-image img {
        min-height: 44rem;
        max-height: 48rem;
    }

    .featured-project-content {
        padding: 4rem;
    }

}


@media (max-width: 768px) {

    .featured-project {
        padding: 6rem 3rem;
    }

}


@media (max-width: 600px) {

    .featured-project {
        padding: 5rem 2rem;
    }

    .featured-project-heading {
        margin-bottom: 3.5rem;
    }

    .featured-project-heading h2 {
        font-size: 3rem;
    }

    .featured-project-image img {
        min-height: 33rem;
        max-height: 36rem;
    }

    .featured-project-badge {
        position: relative;
        left: auto;
        bottom: auto;

        width: calc(100% - 3rem);

        margin: -4rem auto 0;
    }

    .featured-project-content {
        padding: 3.5rem 2.5rem;
    }

    .featured-project-content > h3 {
        font-size: 3rem;
    }

}


@media (max-width: 420px) {

    .featured-project {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .featured-project-image img {
        min-height: 28rem;
    }

    .featured-project-badge {
        width: calc(100% - 2rem);
        padding: 1.8rem;
    }

    .featured-project-content {
        padding: 3rem 2rem;
    }

    .featured-project-heading h2,
    .featured-project-content > h3 {
        font-size: 2.8rem;
    }

}

/* ==================================================
   PROJECTS PAGE GALLERY
================================================== */

.projects-page-gallery {
    padding: 8rem 5%;

    background-color: #f5f6f8;
}

.projects-page-gallery-container {
    width: min(1200px, 100%);
    margin: 0 auto;
}

.projects-page-gallery-heading {
    max-width: 78rem;
    margin: 0 auto 4rem;

    text-align: center;
}

.projects-page-gallery-heading h2 {
    margin: 0 0 1.7rem;

    color: var(--primario);

    font-family: "Montserrat", sans-serif;
    font-size: clamp(3rem, 4vw, 4.4rem);
    line-height: 1.15;
}

.projects-page-gallery-heading p {
    margin: 0;

    color: var(--gris);

    font-size: 1.7rem;
    line-height: 1.7;
}


/* Visual project filters */

.projects-filter {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem;

    margin-bottom: 4.5rem;
}

.projects-filter-button {
    padding: 1.1rem 1.8rem;

    color: var(--primario);
    background-color: var(--blanco);

    border: 1px solid #d9dde5;
    border-radius: 0.7rem;

    cursor: pointer;

    font-family: "DM Sans", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.08rem;
    text-transform: uppercase;

    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease,
        transform 0.3s ease;
}

.projects-filter-button:hover,
.projects-filter-active {
    transform: translateY(-2px);

    color: var(--blanco);
    background-color: var(--primario);
    border-color: var(--primario);
}


/* Gallery cards */

.projects-page-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3rem;
}

.projects-page-card {
    overflow: hidden;

    background-color: var(--blanco);

    border-radius: 1.2rem;

    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.09);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.projects-page-card:hover {
    transform: translateY(-7px);

    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.projects-page-card-image {
    position: relative;

    overflow: hidden;
}

.projects-page-card-image img {
    width: 100%;
    height: 30rem;

    object-fit: cover;

    transition: transform 0.5s ease;
}

.projects-page-card:hover img {
    transform: scale(1.06);
}

.projects-page-card-category {
    position: absolute;
    left: 1.7rem;
    bottom: 1.7rem;

    padding: 0.8rem 1.3rem;

    color: var(--blanco);
    background-color: var(--primario);

    border-left: 4px solid var(--secundario);
    border-radius: 0.5rem;

    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.07rem;
    text-transform: uppercase;
}

.projects-page-card-content {
    min-height: 18rem;
    padding: 2.5rem;
}

.projects-page-card-content h3 {
    margin: 0 0 1rem;

    color: var(--primario);

    font-family: "Montserrat", sans-serif;
    font-size: 2rem;
    line-height: 1.3;
}

.projects-page-card-content > p {
    margin: 0 0 2rem;

    color: var(--gris);

    font-size: 1.45rem;
    line-height: 1.65;
}

.projects-page-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.projects-page-card-meta span {
    padding: 0.6rem 1rem;

    color: var(--primario);
    background-color: rgba(33, 52, 137, 0.08);

    border-radius: 2rem;

    font-size: 1.1rem;
    font-weight: 700;
}


/* ==================================================
   PROJECT PROCESS
================================================== */

.projects-process {
    padding: 8rem 5%;

    background-color: var(--blanco);
}

.projects-process-container {
    width: min(1200px, 100%);
    margin: 0 auto;
}

.projects-process-heading {
    max-width: 78rem;
    margin: 0 auto 5rem;

    text-align: center;
}

.projects-process-heading h2 {
    margin: 0 0 1.7rem;

    color: var(--primario);

    font-family: "Montserrat", sans-serif;
    font-size: clamp(3rem, 4vw, 4.3rem);
    line-height: 1.15;
}

.projects-process-heading p {
    margin: 0;

    color: var(--gris);

    font-size: 1.7rem;
    line-height: 1.7;
}

.projects-process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
}

.projects-process-card {
    position: relative;

    min-height: 27rem;
    padding: 3.5rem 2.7rem;

    background-color: #f5f6f8;

    border-top: 4px solid var(--primario);
    border-radius: 1rem;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.projects-process-card:hover {
    transform: translateY(-6px);

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.projects-process-number {
    display: block;

    margin-bottom: 2rem;

    color: var(--secundario);

    font-size: 3rem;
    font-weight: 800;
}

.projects-process-card h3 {
    margin: 0 0 1.3rem;

    color: var(--primario);

    font-family: "Montserrat", sans-serif;
    font-size: 1.9rem;
}

.projects-process-card p {
    margin: 0;

    color: var(--gris);

    font-size: 1.45rem;
    line-height: 1.7;
}


/* ==================================================
   PROJECT QUALITY
================================================== */

.projects-quality {
    padding: 8rem 5%;

    background-color: #f5f6f8;
}

.projects-quality-container {
    width: min(1200px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 6rem;
}

.projects-quality-image img {
    width: 100%;
    height: 54rem;

    object-fit: cover;

    border-radius: 1.2rem;

    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
}

.projects-quality-content h2 {
    margin: 0 0 2rem;

    color: var(--primario);

    font-family: "Montserrat", sans-serif;
    font-size: clamp(3rem, 4vw, 4.3rem);
    line-height: 1.15;
}

.projects-quality-content > p {
    margin: 0 0 1.7rem;

    color: var(--gris);

    font-size: 1.65rem;
    line-height: 1.75;
}

.projects-quality-list {
    margin-top: 3rem;
}

.projects-quality-item {
    display: flex;
    align-items: flex-start;
    gap: 1.4rem;

    margin-bottom: 2rem;
}

.projects-quality-item > span {
    width: 3.4rem;
    height: 3.4rem;
    flex: 0 0 3.4rem;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--blanco);
    background-color: var(--primario);

    border-radius: 50%;

    font-size: 1.6rem;
    font-weight: 700;
}

.projects-quality-item h3 {
    margin: 0 0 0.4rem;

    color: var(--primario);

    font-family: "Montserrat", sans-serif;
    font-size: 1.7rem;
}

.projects-quality-item p {
    margin: 0;

    color: var(--gris);

    font-size: 1.45rem;
    line-height: 1.55;
}


/* ==================================================
   PROJECTS PAGE RESPONSIVE
================================================== */

@media (max-width: 1100px) {

    .projects-page-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .projects-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .projects-process-card {
        min-height: 23rem;
    }

}


@media (max-width: 900px) {

    .projects-page-gallery,
    .projects-process,
    .projects-quality {
        padding-left: 4%;
        padding-right: 4%;
    }

    .projects-quality-container {
        grid-template-columns: 1fr;
        gap: 4.5rem;
    }

    .projects-quality-image img {
        height: 45rem;
    }

}


@media (max-width: 768px) {

    .projects-page-gallery,
    .projects-process,
    .projects-quality {
        padding: 6rem 3rem;
    }

    .projects-page-card-image img {
        height: 27rem;
    }

}


@media (max-width: 600px) {

    .projects-page-gallery,
    .projects-process,
    .projects-quality {
        padding: 5rem 2rem;
    }

    .projects-page-gallery-grid,
    .projects-process-grid {
        grid-template-columns: 1fr;
    }

    .projects-filter {
        justify-content: flex-start;
    }

    .projects-filter-button {
        flex: 1 1 calc(50% - 1.2rem);

        text-align: center;
    }

    .projects-page-card-image img {
        height: 26rem;
    }

    .projects-page-card-content {
        min-height: auto;
    }

    .projects-process-card {
        min-height: auto;
    }

    .projects-quality-container {
        gap: 3.5rem;
    }

    .projects-quality-image img {
        height: 34rem;
    }

    .projects-page-gallery-heading h2,
    .projects-process-heading h2,
    .projects-quality-content h2 {
        font-size: 3rem;
    }

}


@media (max-width: 420px) {

    .projects-page-gallery,
    .projects-process,
    .projects-quality {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .projects-filter-button {
        flex-basis: 100%;
    }

    .projects-page-card-image img {
        height: 23rem;
    }

    .projects-quality-image img {
        height: 29rem;
    }

    .projects-page-gallery-heading h2,
    .projects-process-heading h2,
    .projects-quality-content h2 {
        font-size: 2.8rem;
    }

}
/*final projects for now*/

/* ==================================================
   INTERNAL CONTACT PAGE
================================================== */

.internal-hero-contact {
    background-image: url("../img/trabajo-campo2.JPG");
}

.contact-page-main {
    padding-top: 8rem;
    padding-bottom: 8rem;
}


/* ==================================================
   CONTACT PREFERENCE
================================================== */

.contact-preference {
    margin: 0;
    padding: 1.8rem;

    border: 1px solid #d9dde5;
    border-radius: 0.7rem;
}

.contact-preference legend {
    padding: 0 0.7rem;

    color: var(--oscuro);

    font-size: 1.35rem;
    font-weight: 700;
}

.contact-preference-options {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
}

.contact-preference-options label {
    display: flex;
    align-items: center;
    gap: 0.8rem;

    color: var(--oscuro);

    cursor: pointer;

    font-size: 1.4rem;
    font-weight: 600;
}

.contact-preference-options input {
    width: 1.7rem;
    height: 1.7rem;

    accent-color: var(--primario);
}


/* ==================================================
   CONTACT PREPARATION
================================================== */

.contact-preparation {
    padding: 8rem 5%;

    background-color: var(--blanco);
}

.contact-preparation-container {
    width: min(1200px, 100%);
    margin: 0 auto;
}

.contact-preparation-heading {
    max-width: 78rem;
    margin: 0 auto 5rem;

    text-align: center;
}

.contact-preparation-heading h2 {
    margin: 0 0 1.7rem;

    color: var(--primario);

    font-family: "Montserrat", sans-serif;
    font-size: clamp(3rem, 4vw, 4.3rem);
    line-height: 1.15;
}

.contact-preparation-heading p {
    margin: 0;

    color: var(--gris);

    font-size: 1.7rem;
    line-height: 1.7;
}

.contact-preparation-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
}

.contact-preparation-card {
    min-height: 27rem;
    padding: 3.5rem 2.7rem;

    background-color: #f5f6f8;

    border-top: 4px solid var(--primario);
    border-radius: 1rem;

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.contact-preparation-card:hover {
    transform: translateY(-6px);

    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.contact-preparation-card > span {
    display: block;

    margin-bottom: 2rem;

    color: var(--secundario);

    font-size: 3rem;
    font-weight: 800;
}

.contact-preparation-card h3 {
    margin: 0 0 1.3rem;

    color: var(--primario);

    font-family: "Montserrat", sans-serif;
    font-size: 1.9rem;
}

.contact-preparation-card p {
    margin: 0;

    color: var(--gris);

    font-size: 1.45rem;
    line-height: 1.7;
}


/* ==================================================
   CONTACT SERVICE AREA
================================================== */

.contact-service-area {
    padding: 8rem 5%;

    background-color: #f5f6f8;
}

.contact-service-area-container {
    width: min(1200px, 100%);
    margin: 0 auto;

    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 6rem;
}

.contact-service-area-image img {
    width: 100%;
    height: 52rem;

    object-fit: cover;

    border-radius: 1.2rem;

    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.15);
}

.contact-service-area-content h2 {
    margin: 0 0 2rem;

    color: var(--primario);

    font-family: "Montserrat", sans-serif;
    font-size: clamp(3rem, 4vw, 4.3rem);
    line-height: 1.15;
}

.contact-service-area-content > p {
    margin: 0 0 1.7rem;

    color: var(--gris);

    font-size: 1.65rem;
    line-height: 1.75;
}

.contact-service-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem 2rem;

    margin: 3rem 0;
}

.contact-service-feature {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.contact-service-feature span {
    width: 3rem;
    height: 3rem;
    flex: 0 0 3rem;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--blanco);
    background-color: var(--primario);

    border-radius: 50%;

    font-size: 1.4rem;
    font-weight: 700;
}

.contact-service-feature p {
    margin: 0;

    color: var(--oscuro);

    font-size: 1.45rem;
    font-weight: 600;
}


/* ==================================================
   CONTACT PAGE RESPONSIVE
================================================== */

@media (max-width: 1100px) {

    .contact-preparation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-preparation-card {
        min-height: 23rem;
    }

}


@media (max-width: 900px) {

    .contact-preparation,
    .contact-service-area {
        padding-left: 4%;
        padding-right: 4%;
    }

    .contact-service-area-container {
        grid-template-columns: 1fr;
        gap: 4.5rem;
    }

    .contact-service-area-image img {
        height: 45rem;
    }

}


@media (max-width: 768px) {

    .contact-page-main,
    .contact-preparation,
    .contact-service-area {
        padding: 6rem 3rem;
    }

}


@media (max-width: 600px) {

    .contact-page-main,
    .contact-preparation,
    .contact-service-area {
        padding: 5rem 2rem;
    }

    .contact-preparation-grid {
        grid-template-columns: 1fr;
    }

    .contact-preparation-card {
        min-height: auto;
    }

    .contact-service-area-container {
        gap: 3.5rem;
    }

    .contact-service-area-image img {
        height: 34rem;
    }

    .contact-service-features {
        grid-template-columns: 1fr;
    }

    .contact-preparation-heading h2,
    .contact-service-area-content h2 {
        font-size: 3rem;
    }

}


@media (max-width: 420px) {

    .contact-page-main,
    .contact-preparation,
    .contact-service-area {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .contact-service-area-image img {
        height: 29rem;
    }

    .contact-preparation-heading h2,
    .contact-service-area-content h2 {
        font-size: 2.8rem;
    }

    .contact-preference-options {
        flex-direction: column;
        gap: 1.2rem;
    }

}
/*final contact.hml*/

/* ==================================================
   MEDIA QUERIES DEFINITIVOS
   IRON FORCE WELDING SOLUTIONS
================================================== */


/* ==================================================
   1. TABLET GRANDE Y LAPTOP PEQUEÑA
   Hasta 1100px
================================================== */

@media (max-width: 1100px) {

    /* HEADER */

    .header-principal {
        flex-direction: column;
        justify-content: center;
        gap: 0.5rem;

        min-height: auto;
        padding: 0.8rem 3rem 1.5rem;
    }

    .logo img {
        height: 7.5rem;
        max-width: 19rem;
    }

    .nav-principal {
        width: 100%;
        margin-left: 0;
    }

    .nav-principal ul {
        justify-content: center;
        flex-wrap: wrap;/*para que se ajuste en pantallas mas pequenas*/
        gap: 1rem 2.5rem;
    }

    /* Posición al navegar con el menú */

    #services,
    #about,
    #projects,
    #contact {
        scroll-margin-top: 145px;
    }

    /* HERO */

    .contenedor-principal {
        min-height: calc(100vh - 130px);
    }

    .contenido {
        min-height: calc(100vh - 130px);
    }

    /* SERVICES */

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-card {
        min-height: 32rem;
    }

    /* PROJECTS */

    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ==================================================
   2. TABLET
   Hasta 900px
================================================== */

@media (max-width: 900px) {

    /* HERO */

    .contenido {
        padding: 0 4% 4rem;
    }

    .mensaje-principal {
        max-width: 68rem;
    }

    /* SERVICES */

    .services {
        padding: 7rem 4%;
    }

    .services-heading {
        margin-bottom: 4rem;
    }

    /* ABOUT */

    .about {
        padding: 5rem 4%;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .about-content {
        max-width: 100%;
    }

    .about-image img {
        height: 420px;
    }

    .about-badge {
        right: 2rem;
    }

    /* PROJECTS */

    .projects {
        padding: 5rem 4% 6rem;
    }

    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2.4rem;
    }

    .project-card img {
        height: 25rem;
    }

    /* CONTACT */

    .contact {
        padding: 6rem 4%;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 5rem;
    }

    .contact-information {
        max-width: 70rem;
    }

    .contact-form-container {
        max-width: 75rem;
    }

    /* FOOTER */

    .footer-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 4rem;
    }
}


/* ==================================================
   3. TABLET PEQUEÑA
   Hasta 768px
================================================== */

@media (max-width: 768px) {

    /* BARRA AUXILIAR */

    .navegacion-auxiliar {
        justify-content: center;
        padding-inline: 1rem;
    }

    .navegacion-auxiliar a:not(:last-child) {
        display: none;
    }

    /* HEADER */

    .header-principal {
        padding: 0.8rem 2rem 1.2rem;
    }

    .logo img {
        height: 7rem;
        max-width: 18rem;
    }

    .nav-principal ul {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));

        width: 100%;
        gap: 0.5rem 1rem;
    }

    .nav-principal a {
        padding: 0.6rem 0.3rem;

        font-size: 1.1rem;
        text-align: center;
        white-space: normal;
    }

    /* Posición al navegar */

    #services,
    #about,
    #projects,
    #contact {
        scroll-margin-top: 155px;
    }

    /* HERO */

    .contenedor-principal {
        min-height: auto;
    }

    .contenido {
        min-height: 62rem;
        padding: 4rem 3rem;
    }

    .contenido > section {
        justify-content: center;
        align-items: center;

        width: 100%;
        padding-top: 0;
    }

    .mensaje-principal {
        max-width: 62rem;
        margin: 0 auto;
        text-align: center;
    }

    .mensaje-principal h1 {
        font-size: clamp(3.8rem, 8vw, 5.5rem);
    }

    .mensaje-principal p {
        margin-inline: auto;
        font-size: 1.9rem;
    }

    .contenedor-botones {
        justify-content: center;
        margin: 3rem auto 0;
    }

    /* SERVICES */

    .services {
        padding: 6rem 3rem;
    }

    .services-heading h2 {
        font-size: 3.4rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }

    .service-card {
        min-height: auto;
        padding: 3rem 2.5rem;
    }

    .service-card ul {
        min-height: 12rem;
    }

    /* ABOUT */

    .about {
        padding: 5rem 3rem;
    }

    .about-image img {
        height: 380px;
    }

    /* PROJECTS */

    .projects {
        padding: 5rem 3rem;
    }

    .projects .section-header {
        margin-bottom: 3rem;
    }

    .projects-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 2rem;
    }

    .project-card img {
        height: 23rem;
    }

    .project-info {
        min-height: 11rem;
        padding: 1.8rem;
    }

    /* CONTACT */

    .contact {
        padding: 6rem 3rem;
    }

    .contact-form-container {
        padding: 3.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}


/* ==================================================
   4. TELÉFONO
   Hasta 600px
================================================== */

@media (max-width: 600px) {

    /* HEADER */

    .header-principal {
        position: sticky;
        top: 0;

        padding: 0.7rem 1.5rem 1rem;
    }

    .logo img {
        height: 6rem;
        max-width: 16rem;
    }

    .nav-principal ul {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.4rem;
    }

    .nav-principal a {
        padding: 0.5rem 0.2rem;
        font-size: 1rem;
        letter-spacing: 0.03rem;
    }

    #services,
    #about,
    #projects,
    #contact {
        scroll-margin-top: 140px;
    }

    /* HERO */

    .fondo-transparente {
        background-position: center;
    }

    .contenido {
        min-height: 58rem;
        padding: 4rem 2rem;
    }

    .mensaje-principal h1 {
        font-size: clamp(3.3rem, 11vw, 4.7rem);
        line-height: 1.08;
    }

    .mensaje-principal p {
        max-width: 38rem;
        font-size: 1.7rem;
        line-height: 1.5;
    }

    .contenedor-botones {
        flex-direction: column;
        align-items: center;

        width: min(100%, 34rem);
        gap: 1.4rem;
        margin: 2.8rem auto 0;
    }

    .boton-comando,
    .boton-getquote {
        width: 100%;
        min-width: 0;
        padding: 1.5rem 2rem;
    }

    /* SERVICES */

    .services {
        padding: 5rem 2rem;
    }

    .services-heading {
        margin-bottom: 3.5rem;
    }

    .services-heading span {
        font-size: 1.3rem;
    }

    .services-heading h2 {
        font-size: 3rem;
    }

    .services-heading p {
        font-size: 1.6rem;
        line-height: 1.6;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
        padding: 3rem 2.5rem;
    }

    .service-card ul {
        min-height: auto;
    }

    /* ABOUT */

    .about {
        padding: 5rem 2rem;
    }

    .about-container {
        gap: 3.5rem;
    }

    .about-image img {
        height: 340px;
    }

    .about-badge {
        position: relative;
        right: auto;
        bottom: auto;

        width: calc(100% - 3rem);
        min-width: 0;

        margin: -3.5rem auto 0;
        padding: 1.8rem 2rem;
    }

    .about-content h2 {
        font-size: 3rem;
    }

    .about-content > p {
        font-size: 1.5rem;
    }

    .about-feature {
        gap: 1.2rem;
    }

    .about-button {
        width: 100%;
        text-align: center;
    }

    /* PROJECTS */

    .projects {
        padding: 5rem 2rem;
    }

    .projects .section-header {
        margin-bottom: 3rem;
    }

    .projects .section-header h2 {
        font-size: 3rem;
    }

    .projects .section-header p {
        font-size: 1.5rem;
        line-height: 1.6;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .project-card img {
        height: 24rem;
    }

    .project-info {
        min-height: auto;
        padding: 1.8rem 2rem;
    }

    /* CONTACT */

    .contact {
        padding: 5rem 2rem;
    }

    .contact-container {
        gap: 4rem;
    }

    .contact-information h2 {
        font-size: 3.2rem;
    }

    .contact-description {
        margin-bottom: 3rem;
        font-size: 1.55rem;
    }

    .contact-item {
        align-items: flex-start;
    }

    .contact-icon {
        width: 4.7rem;
        height: 4.7rem;
        flex-basis: 4.7rem;
    }

    .contact-emergency {
        padding: 2.4rem 2rem;
    }

    .contact-form-container {
        padding: 3rem 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* FOOTER */

    .footer {
        padding: 5rem 2rem 0;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .footer-logo img {
        height: 7rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ==================================================
   5. TELÉFONO PEQUEÑO
   Hasta 420px
================================================== */

@media (max-width: 420px) {

    /* HEADER */

    .header-principal {
        padding-inline: 1rem;
    }

    .logo img {
        height: 5.5rem;
        max-width: 15rem;
    }

    .nav-principal ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.4rem;
    }

    .nav-principal a {
        font-size: 1rem;
    }

    #services,
    #about,
    #projects,
    #contact {
        scroll-margin-top: 170px;
    }

    /* HERO */

    .contenido {
        min-height: 56rem;
        padding-inline: 1.5rem;
    }

    .mensaje-principal h1 {
        font-size: 3.3rem;
    }

    .mensaje-principal p {
        font-size: 1.6rem;
    }

    /* SERVICES */

    .services,
    .about,
    .projects,
    .contact {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .services-heading h2,
    .projects .section-header h2 {
        font-size: 2.8rem;
    }

    .service-card {
        padding: 2.8rem 2rem;
    }

    /* ABOUT */

    .about-image img {
        height: 290px;
    }

    .about-badge {
        width: calc(100% - 2rem);
        padding: 1.6rem;
    }

    .about-content h2 {
        font-size: 2.8rem;
    }

    /* PROJECTS */

    .project-card img {
        height: 21rem;
    }

    /* CONTACT */

    .contact-information h2 {
        font-size: 2.8rem;
    }

    .contact-form-container {
        padding: 2.5rem 1.5rem;
    }

    .contact-item {
        gap: 1.2rem;
    }

    .contact-item a,
    .contact-item p {
        overflow-wrap: anywhere;
        font-size: 1.4rem;
    }

    /* FOOTER */

    .footer-logo img {
        height: 6rem;
    }

    .footer-bottom {
        padding: 2rem 0;
    }
} /*cierra @media querys*/

/* ==================================================
   MENÚ HAMBURGUESA RESPONSIVE
   Añadir al final de styles.css
================================================== */

/* El botón permanece oculto en computadora */

.menu-toggle {
    display: none;

    width: 4.8rem;
    height: 4.4rem;

    padding: 0.9rem;

    background-color: transparent;
    border: 2px solid var(--primario);
    border-radius: 0.7rem;

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 100%;
    height: 2px;

    margin: 0.5rem 0;

    background-color: var(--primario);
    border-radius: 2px;

    transition:
        transform 0.3s ease,
        opacity 0.3s ease;
}


/* ==================================================
   MENÚ PARA TABLET PEQUEÑA Y TELÉFONO
================================================== */

@media (max-width: 900px) {

    /* HEADER */

    .header-principal {
        position: sticky;
        top: 0;
        z-index: 1000;

        min-height: 7.8rem;

        flex-direction: row;
        justify-content: space-between;
        align-items: center;

        gap: 2rem;

        padding: 0.7rem 3rem;

        background-color: var(--blanco);
    }

    .logo {
        position: relative;
        z-index: 1002;
    }

    .logo img {
        width: auto;
        height: 6.5rem;
        max-width: 17rem;
    }


    /* BOTÓN HAMBURGUESA */

    .menu-toggle {
        position: relative;
        z-index: 1002;

        display: block;
        flex: 0 0 auto;
    }


    /* NAVEGACIÓN CERRADA */

    .nav-principal {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        width: 100%;
        max-height: 0;

        margin: 0;

        overflow: hidden;

        background-color: var(--blanco);

        border-top: 1px solid rgba(33, 52, 137, 0.1);

        box-shadow: 0 14px 25px rgba(0, 0, 0, 0.12);

        opacity: 0;
        visibility: hidden;

        transition:
            max-height 0.4s ease,
            opacity 0.3s ease,
            visibility 0.3s ease;
    }

    .nav-principal ul {
        width: 100%;

        display: flex;
        flex-direction: column;
        align-items: stretch;

        gap: 0;

        margin: 0;
        padding: 1rem 2rem 1.5rem;

        list-style: none;
    }

    .nav-principal li {
        width: 100%;
    }

    .nav-principal a {
        width: 100%;

        padding: 1.4rem 1rem;

        color: var(--primario);

        border-bottom: 1px solid rgba(33, 52, 137, 0.1);

        font-size: 1.3rem;
        text-align: center;
        white-space: nowrap;
    }

    .nav-principal li:last-child a {
        border-bottom: none;
    }

    .nav-principal a::after {
        bottom: 0.7rem;
    }


    /* NAVEGACIÓN ABIERTA */

    .header-principal.menu-open .nav-principal {
        max-height: 40rem;

        opacity: 1;
        visibility: visible;
    }


    /* ANIMACIÓN DEL ICONO */

    .header-principal.menu-open .menu-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .header-principal.menu-open .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .header-principal.menu-open .menu-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }


    /* Evita desplazamiento mientras el menú está abierto */

    body.menu-is-open {
        overflow: hidden;
    }


    /* HERO DEL HOME */

    .contenedor-principal {
        min-height: auto;
    }

    .contenido {
        min-height: 56rem;
        padding: 4rem 3rem;
    }


    /* HERO DE PÁGINAS INTERNAS */

    .internal-hero {
        min-height: 36rem;
    }

}


/* ==================================================
   TELÉFONO
================================================== */

@media (max-width: 600px) {

    .header-principal {
        min-height: 7rem;
        padding: 0.6rem 2rem;
    }

    .logo img {
        height: 5.8rem;
        max-width: 15rem;
    }

    .menu-toggle {
        width: 4.4rem;
        height: 4rem;
        padding: 0.7rem;
    }

    .nav-principal ul {
        display: flex;
        grid-template-columns: none;

        padding: 0.8rem 1.5rem 1.4rem;
    }

    .nav-principal a {
        padding: 1.25rem 0.8rem;

        font-size: 1.2rem;
        letter-spacing: 0.06rem;
    }


    /* HOME */

    .contenido {
        min-height: 50rem;
        padding: 3.5rem 2rem;
    }

    .mensaje-principal h1 {
        font-size: clamp(3rem, 10vw, 4.2rem);
        line-height: 1.08;
    }

    .mensaje-principal p {
        font-size: 1.65rem;
    }


    /* PÁGINAS INTERNAS */

    .internal-hero {
        min-height: 32rem;
    }

    .internal-hero-content h1 {
        font-size: clamp(3.3rem, 11vw, 4.3rem);
    }

}


/* ==================================================
   TELÉFONO PEQUEÑO
================================================== */

@media (max-width: 420px) {

    .header-principal {
        padding-inline: 1.5rem;
    }

    .logo img {
        height: 5.3rem;
        max-width: 14rem;
    }

    .menu-toggle {
        width: 4.2rem;
        height: 3.8rem;
    }

    .contenido {
        min-height: 48rem;
        padding-inline: 1.5rem;
    }

    .mensaje-principal h1 {
        font-size: 3.1rem;
    }

}

/* ==========================================
   CORRECCIÓN FINAL DEL HEADER Y NAVEGACIÓN
========================================== */

/* Computadora y tablet grande */
@media (min-width: 901px) {

    .header-principal {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        flex-wrap: nowrap;
    }

    .logo {
        flex: 0 0 auto;
    }

    .nav-principal {
        margin-left: auto;
    }

    .nav-principal ul {
        display: flex;
        flex-direction: row;
        grid-template-columns: none;
        justify-content: flex-end;
        align-items: center;
        flex-wrap: nowrap;
        gap: clamp(1.5rem, 2.2vw, 3.5rem);
        margin: 0;
        padding: 0;
    }

    .nav-principal li {
        width: auto;
        flex: 0 0 auto;
    }

    .nav-principal a {
        width: auto;
        white-space: nowrap;
    }
}

/* ==================================================
   PROJECT BEFORE / PROCESS BUTTON
================================================== */

.project-before-button {
    width: 100%;
    margin-top: 2rem;
    padding: 1.2rem 2rem;

    color: var(--blanco);
    background-color: var(--primario);

    border: 2px solid var(--primario);
    border-radius: 0.7rem;

    cursor: pointer;

    font-family: "DM Sans", sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.12rem;
    text-transform: uppercase;

    transition:
        transform 0.3s ease,
        background-color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.project-before-button:hover {
    transform: translateY(-2px);

    background-color: var(--secundario);
    border-color: var(--secundario);

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.project-before-button:focus-visible {
    outline: 3px solid rgba(255, 154, 36, 0.4);
    outline-offset: 3px;
}


/* Completed repair label */

.project-result-label {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;

    padding: 0.8rem 1.2rem;

    color: var(--blanco);
    background-color: rgba(33, 52, 137, 0.92);

    border-radius: 0.5rem;

    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
}


/* ==================================================
   PROJECT MODAL
================================================== */

.project-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 2rem;
}

.project-modal.project-modal-visible {
    display: flex;
}

.project-modal-overlay {
    position: absolute;
    inset: 0;

    background-color: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(3px);
}

.project-modal-content {
    position: relative;
    z-index: 2;

    width: min(90rem, 100%);
    max-height: 92vh;

    padding: 3rem;

    overflow-y: auto;

    background-color: var(--blanco);

    border-radius: 1.2rem;

    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.project-modal-heading {
    padding-right: 4rem;
    margin-bottom: 2rem;
}

.project-modal-heading span {
    display: block;

    margin-bottom: 0.7rem;

    color: var(--secundario);

    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.2rem;
}

.project-modal-heading h2 {
    margin: 0;

    color: var(--primario);

    font-family: "Montserrat", sans-serif;
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    line-height: 1.2;
}

.project-modal-close {
    position: absolute;
    top: 1.4rem;
    right: 1.7rem;

    width: 4rem;
    height: 4rem;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    color: var(--primario);
    background-color: #f1f3f7;

    border: none;
    border-radius: 50%;

    cursor: pointer;

    font-size: 3rem;
    line-height: 1;

    transition:
        color 0.3s ease,
        background-color 0.3s ease,
        transform 0.3s ease;
}

.project-modal-close:hover {
    color: var(--blanco);
    background-color: var(--secundario);
    transform: rotate(90deg);
}


/* Modal image */

.project-modal-image-container {
    position: relative;

    min-height: 35rem;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background-color: #1d2228;

    border-radius: 1rem;
}

.project-modal-image-container img {
    width: 100%;
    max-height: 60vh;

    object-fit: contain;
}


/* Previous and next arrows */

.project-modal-arrow {
    position: absolute;
    top: 50%;
    z-index: 3;

    width: 4.5rem;
    height: 4.5rem;

    display: flex;
    align-items: center;
    justify-content: center;

    color: var(--blanco);
    background-color: rgba(0, 0, 0, 0.6);

    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;

    cursor: pointer;

    font-size: 2.2rem;

    transform: translateY(-50%);

    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
}

.project-modal-arrow:hover {
    background-color: var(--secundario);
    transform: translateY(-50%) scale(1.07);
}

.project-modal-previous {
    left: 1.5rem;
}

.project-modal-next {
    right: 1.5rem;
}

.project-modal-arrow[hidden] {
    display: none;
}


/* Modal footer */

.project-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;

    margin-top: 3rem;
}

.project-modal-footer p {
    margin: 0;

    color: var(--gris);

    font-size: 1.4rem;
    font-weight: 600;
}

.project-modal-close-button {
    padding: 1.1rem 2.2rem;

    color: var(--blanco);
    background-color: var(--primario);

    border: none;
    border-radius: 0.7rem;

    cursor: pointer;

    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
    text-transform: uppercase;

    transition:
        background-color 0.3s ease,
        transform 0.3s ease;
}

.project-modal-close-button:hover {
    background-color: var(--secundario);
    transform: translateY(-2px);
}


/* Prevent page scrolling while modal is open */

body.project-modal-open {
    overflow: hidden;
}

/*responsive para cambio en galeria*/
@media (max-width: 600px) {

    .project-modal {
        padding: 1rem;
    }

    .project-modal-content {
        padding: 2.2rem 1.5rem 1.7rem;
    }

    .project-modal-image-container {
        min-height: 25rem;
    }

    .project-modal-image-container img {
        max-height: 55vh;
    }

    .project-modal-arrow {
        width: 3.8rem;
        height: 3.8rem;

        font-size: 1.8rem;
    }

    .project-modal-previous {
        left: 0.8rem;
    }

    .project-modal-next {
        right: 0.8rem;
    }

    .project-modal-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .project-modal-footer p {
        text-align: center;
    }

    .project-modal-close-button {
        width: 100%;
    }

    .project-result-label {
        right: 1rem;
        bottom: 1rem;

        font-size: 1rem;
    }
}

/* ==================================================
   PROJECTS GALLERY — FINAL INTERACTIVE IMPROVEMENTS
================================================== */

.projects-page-gallery-grid {
    align-items: stretch;
}

.projects-page-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.projects-page-card[hidden] {
    display: none;
}

.projects-page-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        to top,
        rgba(8, 15, 36, 0.42) 0%,
        rgba(8, 15, 36, 0.06) 42%,
        transparent 70%
    );
    opacity: 0.75;
    transition: opacity 0.35s ease;
}

.projects-page-card:hover .projects-page-card-image::after {
    opacity: 1;
}

.projects-page-card-category,
.project-result-label {
    z-index: 2;
}

.project-result-label {
    top: 1.5rem;
    right: 1.5rem;
    bottom: auto;
    background-color: rgba(255, 154, 36, 0.95);
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.2);
}

.projects-page-card-content {
    min-height: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.projects-page-card-content > p {
    flex: 1;
}

.projects-page-card-meta {
    margin-top: auto;
}

.project-before-button {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
}

.project-before-button::before {
    content: "◉";
    font-size: 1.5rem;
    line-height: 1;
}

.project-before-button::after {
    content: "→";
    font-size: 1.7rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.project-before-button:hover::after {
    transform: translateX(5px);
}

.projects-filter-button:focus-visible {
    outline: 3px solid rgba(255, 154, 36, 0.35);
    outline-offset: 3px;
}

.projects-filter-button.projects-filter-active {
    box-shadow: 0 8px 18px rgba(33, 52, 137, 0.2);
}

.project-modal-image-container img {
    opacity: 0;
    transform: scale(0.985);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.project-modal-visible .project-modal-image-container img.project-image-loaded {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 600px) {
    .project-result-label {
        top: 1rem;
        right: 1rem;
        bottom: auto;
    }

    .projects-page-card-image img {
        height: 25rem;
    }
}

/* ==================================================
   CONTACT FORM VALIDATION
================================================== */

.form-error {
    min-height: 18px;
    margin: 6px 0 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #b42318;
}

.contact-form input.form-field-invalid,
.contact-form select.form-field-invalid,
.contact-form textarea.form-field-invalid {
    border-color: #b42318;
    box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
}

.form-status {
    min-height: 24px;
    margin: 18px 0 0;
    padding: 0;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.5;
}

.form-status-error {
    padding: 12px 14px;
    color: #8a1c13;
    background-color: #fff1f0;
    border-left: 4px solid #b42318;
}

.form-status-success {
    padding: 12px 14px;
    color: #176b3a;
    background-color: #edf9f1;
    border-left: 4px solid #238636;
}

.contact-submit:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}
