/* Reset y base */

@font-face {
    font-family: bebasneue;
    src: url(fuentes/BebasNeue-Regular.ttf) format(woff2);
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: Roboto;
    src: url(fuentes/Roboto_Condensed-Regular.ttf) format(woff2);
    font-weight: normal;
    font-style: normal;
}
body {
    font-family: Roboto;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background-color: #ffffff;
    color: #333;
}

/* Header */
header {
    background: #ffffff;
    color: #414141;
    padding: 20px 0;
    text-align: center;
}

/* Navegación */
nav {
    background: #1f92aa;
    padding: 0.8rem;
    text-align: center;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    font-family: bebasneue;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

/* Secciones */
section {
    padding: 2rem 10%;
    background-color: #fff;
    margin-bottom: 2rem;
}

#que_hacemos {
    max-width: 1200px;
    margin: auto;
    text-align: center;
    padding: 40px 20px;
    gap: 40px;
    font-size: 1.2rem;
}
.explicacion_servicios {
    flex: 1;
    min-width: 300px;

}

/* Sección BIM */
#que_es_bim {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
    gap: 40px;
    background-color: #f4f4f4;
    font-size: 1.2rem;
}

.explicacion_bim {
    flex: 1;
    min-width: 300px;
}

.carport {
    flex: 1;
    min-width: 450px;
    display: flex;
    justify-content: center;
}

.carport img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

/* Proyectos */
.proyecto {
    margin-bottom: 2rem;
}

.proyecto img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Slider */
.slider {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    text-align: center;
    position: relative;
}

.slider img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    transition: opacity 0.5s ease-in-out;
}

.project-slider {
    width: 100%;
    max-width: 600px;
    margin: 1rem auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.slider-image {
    width: 100%;
    height: auto;
    transition: opacity 0.5s ease-in-out;
}

/* Contacto */
#contact {
    background-color: #f0f0f0;
    text-align: center;
}

/* Footer */
footer {
    background: #74b9c7;
    color: white;
    text-align: center;
    padding: 1rem;
}

.instalacion_hvac {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem auto;
    max-width: 500px;
    padding: 1rem;
}

.instalacion_hvac img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;

}

header {
    text-align: center;
    padding: 5px 0;
}
 .logo {
    width: 250px;
    max-width: 100%;

 }
 .logo{
    width: 250px;
    max-width: 100%;
    margin: 0;
 }

.slogan{
    font-size: 18px;
    margin-top: 3px;

}

#que_es_bim {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 40px 20px;
}

.explicacion_bim {
  flex: 1 1 400px;
  
}

#quienes_somos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
    gap: 40px;
    background-color: #ffffff;
}

#quienes_somos h2 {
  margin-bottom: 0px; /* o 1rem para que sea relativo */
}
#quienes_somos p {
  margin-top: 0;
}

.explicacion_del_equipo{
    flex: 1;
    min-width: 300px;
}

.columna_proyectos_1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
  gap: 20px;
  margin: 20px 0;
}

.columna_1 {
  background: #ddd;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

/* Responsive: stack on small screens */
@media (max-width: 768px) {
  .columna_proyectos_1 {
    grid-template-columns: 1fr;
  }
}

/*APARTADO DE COLUMNAS 1*/

.columna_proyectos_2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
  gap: 20px;
  margin: 20px 0;
}

.columna_2 {
  background: #ddd;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}

/* Responsive: stack on small screens */
@media (max-width: 768px) {
  .columna_proyectos_2 {
    grid-template-columns: 1fr;
  }
}

.columna_1 img {
    max-width: 100%;
    display: flex;
    border-radius: 8px;

}

.columna_2 img {
    max-width: 100%;
    display: flex;
    border-radius: 8px;

}

.columna_1 {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #ddd;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.2s ease;
}
.columna_1:hover {
  transform: scale(1.03);
  background: #ccc;
}

.columna_2 {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #ddd;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.2s ease;
}
.columna_2:hover {
  transform: scale(1.03);
  background: #ccc;
}

/* MODAL CON GALERÍA RESPONSIVA */

/* ==== MODAL STYLES ==== */
.modal {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 1000; /* above everything */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* if content is taller */
  background-color: rgba(0, 0, 0, 0.8); /* dark overlay */
  animation: fadeIn 0.3s ease-in-out;
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 20px;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  text-align: center;
  position: relative;
  animation: scaleUp 0.3s ease-in-out;
}

/* Close button */
.cerrar {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #333;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s;
}
.cerrar:hover {
  color: #e74c3c;
}

/* Title and description */
#modalTitulo {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #222;
}
#modalTexto {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: #555;
  line-height: 1.5;
  text-align: left;
}

/* Images inside modal */
.modal-imagenes {
  position: relative;
}
.modal-imagenes img {
  max-width: 100%;
  height: 350px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}


/* Prev / Next buttons */
.controles {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}
.controles button {
  background-color: #333;
  color: white;
  border: none;
  padding: 10px 18px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 18px;
  transition: background 0.3s;
}
.controles button:hover {
  background-color: #555;
}

/* Animations */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}
@keyframes scaleUp {
  from {transform: scale(0.9);}
  to {transform: scale(1);}
}

/* Responsive tweaks */
@media (max-width: 600px) {
  .modal-content {
    padding: 15px;
  }
  #modalTitulo {
    font-size: 1.4rem;
  }
  #modalTexto {
    font-size: 0.9rem;
  }
  .controles button {
    padding: 8px 12px;
    font-size: 16px;
  }
}

model-viewer {
  width: 50vh;
  height: 50vh;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
}

#modelo_3d {
 max-width: 1200px;
    margin: auto;
    text-align: center;
    padding: 40px 20px;
    gap: 40px;
    background-color: #f4f4f4;
}

.proyectos_elaborados {
  min-width: 300px;
  flex: 1;
}

.imagen_proyecto {
  width: 500px;
  height: 300px;
}

#proyectos {
   max-width: 1200px;
    margin: auto;
    text-align: left;
    padding: 40px 20px;
    gap: 40px;
}

p{
  font-size: 1.1rem;
}

h2{ 
  font-size: 1.6rem;
}


/* VISUALIZACIÓN DEL APARTADO DE CONTACTANOS */
/*@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");*/

/** Variables **/

:root {
  --color-background: #e7e7e7;
  --color-background-alt: #888888;
  --color-border-active: #da7105;
  --color-border-default: #d1d1d1;
  --color-highlight: #fdcf4c;
  --color-primary: #b64e08;
  --color-primary-active: #79320e;
  --color-text-default: #262626;
  --color-text-muted: #4f4f4f;

  --font-family-body: "Figtree", system-ui, sans-serif;
  --font-family-display: "Poppins", system-ui, sans-serif;
}

/** Base **/

*,
::before,
::after {
  box-sizing: border-box;
}

* {
  border: 0;
  margin: 0;
  padding: 0;
}

body {
  -webkit-font-smoothing: antialiased;
  font-family: var(--font-family-body);
  font-optical-sizing: auto;
  font-style: normal;
}

button,
input,
optgroup,
select,
textarea {
  font-family: inherit;
  font-feature-settings: inherit;
  font-variation-settings: inherit;
  font-size: 100%;
  font-weight: inherit;
  line-height: inherit;
  color: inherit;
  margin: 0;
  padding: 0;
}

[type="checkbox"],
[type="radio"],
[type="range"] {
  appearance: none;
  flex-shrink: 0;
  padding: 0;
  user-select: none;
}

[type="checkbox"]:focus,
[type="radio"]:focus,
[type="range"]:focus {
  outline: none;
}

/** Components **/

.fs-form {
  display: grid;
  row-gap: 1.5rem;
}

.fs-form:where(.fs-layout__2-column) {
  column-gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
}

fieldset {
  display: grid;
  margin: 1.5rem 0;
  row-gap: 1.5rem;
}

.fs-form:where(.fs-layout__2-column) fieldset {
  column-gap: 1.5rem;
  grid-template-columns: 1fr 1fr;
  grid-column: 1 / -1;
}

.fs-fieldset-title {
  color: var(--color-text-default);
  font-family: var(--font-family-display);
  font-size: 1.25rem;
  line-height: 1.75rem;
  margin-bottom: 1.5rem;
  grid-column: 1 / -1;
}

.fs-field {
  display: flex;
  flex-direction: column;
  row-gap: 0.5rem;
}

.fs-label {
  color: var(--color-text-default);
  display: block;
  font-family: var(--font-family-display);
  font-size: 1rem;
  line-height: 1.25rem;
}

.fs-description {
  color: var(--color-text-muted);
  display: block;
  font-size: 1rem;
  line-height: 1.25rem;
}

.fs-button-group {
  display: flex;
  flex-direction: row-reverse;
  column-gap: 1.5rem;
}

.fs-form:where(.fs-layout__2-column) .fs-button-group {
  grid-column: 1 / -1;
}

.fs-button {
  background-color: #1f92aa;
  border-radius: 9999px;
  color: white;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.5rem;
  padding: 0.75rem 2rem;
  transition-duration: 200ms;
  transition-property: background-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.fs-button:hover {
  background-color: var(--color-primary-active);
}

.fs-button:focus-visible {
  background-color: var(--color-primary-active);
  outline: 4px solid var(--color-highlight);
}

.fs-input,
.fs-select {
  appearance: none;
  border-radius: 9999px;
  border-width: 0;
  box-shadow: var(--color-border-default) 0 0 0 1px inset;
  color: var(--color-text-default);
  font-size: 1rem;
  height: 3rem;
  line-height: 1.5rem;
  outline: none;
  padding-left: 1rem;
  padding-right: 1rem;
}

.fs-input:focus-visible,
.fs-select:focus-visible {
  box-shadow: var(--color-border-active) 0 0 0 1px inset;
}

.fs-input::placeholder {
  color: var(--color-text-muted);
}

.fs-checkbox-group,
.fs-radio-group {
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
}

.fs-checkbox-field,
.fs-radio-field {
  column-gap: 0.5rem;
  display: flex;
}

:is(.fs-checkbox-field, .fs-radio-field) .fs-label + .fs-description {
  margin-top: 0.25rem;
}

.fs-checkbox-wrapper,
.fs-radio-wrapper {
  align-items: center;
  display: flex;
  height: 1.25rem;
}

.fs-checkbox,
.fs-radio {
  background-color: #fff;
  border: 1px solid var(--color-border-default);
  height: 1.25rem;
  width: 1.25rem;
}

.fs-checkbox {
  border-radius: 0.25rem;
}

.fs-radio {
  border-radius: 100%;
}

.fs-checkbox:checked,
.fs-radio:checked {
  background-color: var(--color-primary);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  border-color: transparent;
}

.fs-checkbox:checked {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
}

.fs-radio:checked {
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='8' cy='8' r='3'/%3e%3c/svg%3e");
}

.fs-checkbox:focus-visible,
.fs-radio:focus-visible {
  border-color: var(--color-border-active);
  outline: 4px solid var(--color-highlight);
  outline-offset: 0;
}

.fs-checkbox:checked:focus-visible,
.fs-radio:checked:focus-visible {
  border-color: transparent;
}

.fs-select {
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.625em 1.625em;
  padding-right: 2.875rem;
}

.fs-slider {
  background: transparent;
  cursor: pointer;
  height: 1.25rem;
  width: 100%;
}

.fs-slider::-moz-range-track {
  background-color: var(--color-background);
  border-radius: 0.5rem;
  height: 0.5rem;
}

.fs-slider::-webkit-slider-runnable-track {
  background-color: var(--color-background);
  border-radius: 0.5rem;
  height: 0.5rem;
}

.fs-slider::-moz-range-thumb {
  background-color: var(--color-primary);
  border: none; /* Removes extra border that FF applies */
  border-radius: 50%;
  height: 1.25rem;
  width: 1.25rem;
}

.fs-slider::-webkit-slider-thumb {
  appearance: none;
  background-color: var(--color-primary);
  border-radius: 50%;
  height: 1.25rem;
  margin-top: -0.375rem; /* Centers thumb on the track */
  width: 1.25rem;
}

.fs-slider:focus-visible::-moz-range-thumb {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.fs-slider:focus-visible::-webkit-slider-thumb {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.fs-switch {
  background-color: var(--color-background-alt);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2.75' fill='white'/%3e%3c/svg%3e");
  background-position: left center;
  background-repeat: no-repeat;
  border-radius: 1.25rem;
  cursor: pointer;
  height: 1.25rem;
  transition-duration: 200ms;
  transition-property: background-color, background-position;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  width: 2.5rem;
}

.fs-switch:checked {
  background-color: var(--color-primary);
  background-position: right center;
}

.fs-switch:focus-visible {
  outline: 4px solid var(--color-highlight);
  outline-offset: 0;
}

.fs-textarea {
  appearance: none;
  border-radius: 0.75rem;
  border-width: 0;
  box-shadow: var(--color-border-default) 0 0 0 1px inset;
  color: var(--color-text-default);
  font-size: 1rem;
  line-height: 1.5rem;
  outline: none;
  padding: 0.5rem 0.75rem;
  resize: vertical;
}

.fs-textarea:focus-visible {
  box-shadow: var(--color-border-active) 0 0 0 1px inset;
}

.fs-textarea::placeholder {
  color: var(--color-text-muted);
}

/** Utilities **/

.col-span-full {
  grid-column: 1 / -1;
}

.fs-textarea::placeholder {
  color: var(--color-text-muted);
}

.slider-label-container {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 0.25rem;
}

.slider-label-text {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
  white-space: nowrap;
}

form{
   max-width: 1200px;
    margin: auto;
    text-align: left;
    padding: 40px 20px;
    gap: 40px;
    background-color: #ffffff;
}

.contacto {
  text-align: center;
}