/* Archivo styles.css */

@font-face {
  font-family: 'Fira Sans';
  src: url('fonts/FiraSans-Medium.ttf') format('truetype'),
       url('fonts/FiraSans-Medium.ttf') format('truetype');
  font-weight: 600;
}

@font-face {
  font-family: 'Fira Sans';
  src: url('fonts/FiraSans-Regular.ttf') format('truetype'),
       url('fonts/FiraSans-Regular.ttf') format('truetype');
  font-weight: 400;
}

body {
  font-family: 'Fira Sans', sans-serif;
}

/* ======= Global Styles ======= */
html {
  scroll-behavior: smooth;
  font-size: 16px; /* Sets the base font size to 16px */
  }

  
@media (max-width: 2560px) {
  html {
    font-size: 125%; /* 1rem = 20px */
  }
}

@media (max-width: 1920px) {
  html {
    font-size: 16px; /* 1rem = 16px */
  }
}

@media (max-width: 768px) {
  html {
    font-size: 87.5%; /* 1rem = 14px */
  }
}

@media (max-width: 450px) {
  html {
    font-size: 75%; /* 1rem = 12px */
  }
}
  

body {
  font-family: 'Fira Sans', sans-serif;
  margin: 0;
  background: #F2F2F2;
  color: #1C1C1C;
}
h1, h2, h3 {
  /* font-family: 'Jost', sans-serif;  */
  font-family: 'Fira Sans', sans-serif; 
  font-weight: 600; /* Negrita moderada */
  color: #005F7F;
}

p, li, a, aa {
  font-family: 'Fira Sans', sans-serif;
  font-weight: 400; /* Peso normal */
  color: #333333;
}

/* Footer */

/* Estilos generales del footer */
.footer {
  background-color: #005F7F; /* Color de fondo */
  color: #E4E4E4; /* Texto en gris claro */
  padding: 2rem;
}

.footer a:hover {
  text-decoration: underline;
}

/* Contenedor principal */
.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Alinea las columnas en la parte superior */
  flex-wrap: wrap; /* Se adapta en dispositivos pequeños */
  color: #E4E4E4; /* Texto color gris claro */
}

/* Elementos de texto en las columnas */
.footer-container p {
  color: #E4E4E4;
}

/* Columna de información de contacto */
.contact-info {
  flex: 1; /* Ocupa todo el espacio disponible si es necesario */
  max-width: 48%; /* En pantallas grandes, ocupa el 48% */
  padding: 2rem;
}
/* Restaurar estilo de los enlaces (correo y teléfono) */
.footer-column a {
  color: #E4E4E4; /* Color del texto */
  text-decoration: none; /* Eliminar subrayado por defecto */
}

.footer-column a:hover {
  color: #ffffff; /* Color blanco al pasar el mouse */
  text-decoration: underline; /* Subrayado en hover */
}
.footer-column h3 {
  margin-top: 0;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  color: #E4E4E4;
}

.footer-column i {
  margin-right: 1rem;
}

.info-item {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}

.info-item i {
  margin-right: 1.8rem;
}

.info-item p,
.info-item a {
  margin: 0;
  line-height: 1.5;
}

/* Columna de mapa */
.map {
  flex: 1; /* Ocupa todo el espacio disponible si es necesario */
  max-width: 48%; /* En pantallas grandes, ocupa el 48% */
  padding: 2rem;
}

/* Mapa */
.map iframe {
  width: 100%; /* Se ajusta al ancho de su contenedor */
  height: 50vh; /* Altura fija */
  border: none;
}

/* Parte inferior del footer (copyright e imagen larga) */
.image-bottom {
  text-align: center; /* Center the image horizontally */
  margin-bottom: 1rem; /* Add space between the two rows */
}

.footer-bottom {
  display: flex;
  align-items: center; /* Center items vertically */
  justify-content: center; /* Center items horizontally */
}

.afip-logo {
  margin-right: 1rem; /* Space between the AFIP logo and the text */
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom p {
  margin: 0;
  color: #E4E4E4;
  text-align: left;
}
.footer-bottom a {
  margin: 0;
  color: #E4E4E4;
  text-decoration: none;
}

.image-bottom img {
  width: 100%; /* Imagen ocupa todo el ancho */
  height: auto;
  margin-top: 1rem;
}

/* Responsividad para pantallas pequeñas */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column; /* Las columnas se apilan */
    align-items: center;
  }

  .footer-column {
    max-width: 100%; /* Cada columna ocupa el 100% del ancho */
    margin-bottom: 2rem; /* Separación entre columnas */
  }
  .footer-bottom p {
    margin: 0;
    color: #E4E4E4;
    text-align: center;
  }
  .map iframe {
    height: 45vh; /* Ajusta la altura del mapa en dispositivos pequeños */
  }
}

/* Header */
/* General Header Styles */
.header {
  position: fixed;
  display: flex;
  top: 0;
  width: 100%;
  background: none; /* Default background */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.8rem 1rem; /* Taller header */
  transition: background 0.3s ease, color 0.3s ease, padding 0.3s ease;
  z-index: 1000;
  overflow: visible;
  /* background: rgba(0, 95, 127, 0.35); */
}

.header li a{
  font-family: 'Fira Sans';
  font-weight: 400; /* Negrita moderada */
}


.header.scrolled {
  background: white; /* White background when scrolled */
  color: #005F7F; /* Change text color to black when scrolled */
  padding: 1rem 1rem; /* Smaller padding when scrolled */
  
}

.header .logo {
  width: 8.5rem;
  height: auto;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.header:hover {
  background: white; /* Same as scrolled for hover effect */
  color:#005F7F;
}

/* When Header is Hovered or Scrolled */
.header.scrolled a, .header:hover a,.header.scrolled aa, .header:hover aa {
  color: #005f7f; /* Change link color to black when header is white or hovered */
}

.header.scrolled .logo, .header:hover .logo {
  content: url('assets/wasser.svg'); /* Inverts the logo color to black when on a light background */
}


/* Navigation Links */
.nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.nav ul li {
  margin-left: 2.0rem;
  margin-right: 3.75rem;
}

.nav ul li a {
  text-decoration: none;
  font-size: 1.0rem;
  color: white; /* Default color for links */
  transition: color 0.3s ease;
}
.nav ul li aa {
  text-decoration: none;
  color: white; /* Default color for links */
  transition: color 0.3s ease;
}

.nav ul li a:hover {
  color: #80581A; /* Accent color */
}


/* ======= Mobile Menu ======= */
/* Hide hamburger icon initially */
.hamburger {
  display: none;
  font-size: 2.0rem;
  cursor: pointer;
}
/* Cambiar a azul oscuro (#005f7f) cuando el header está scrolleado */
header.scrolled .hamburger span {
  color: #005f7f; /* Azul oscuro */
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%; /* Just below the header */
  right: 0;
  background-color: white; /* Matches header */
  color: #00425a;
  width: 100%;
  text-align: center;
  z-index: 1000;
  box-shadow: 0 0.25rem 0.4rem rgba(0, 0, 0, 0.1);
}

.mobile-menu a {
  display: block;
  padding: 1rem;
  color: #00425a;
  text-decoration: none;
  font-size: 1.2rem;
  transition: background-color 0.3s ease;
}

.mobile-menu a:hover {
  background-color: #00425a; /* Darker blue on hover */
  color: white;
}

/* Active menu state */
.mobile-menu.active {
  display: block;
  color: white;
}

/* Secciones */

/* About Section */
.about {
  /* background-image: url('assets/tunel.jpg'); Imagen de fondo */
  background-size:cover; /* Asegura que la imagen cubra todo el contenedor */
  background-position: top left; /* Centra la imagen en el contenedor */
  /*background-attachment: fixed;  Mantiene la imagen fija al hacer scroll */
  padding: 6.3rem 0.62rem; /* Espaciado de la sección */
  color: white; /* Color de texto en blanco */
  position: relative; /* Permite el uso de elementos posicionados */
  height: 19rem; /* Ajusta la altura para que cubra la pantalla completa */
  z-index: 1;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 95, 127, 0.3);/* Color negro con 50% de opacidad */
  z-index: -1; /* Coloca el pseudo-elemento detrás del contenido */
}


.highlighted-lineOLD {
  position: relative; /* Posiciona el fondo relativo al contenedor padre */
  display: inline-block; /* Asegura que el fondo se ajuste solo al texto contenido */
  background-color: rgb(128, 88, 26, 0.3); /* Color de fondo con transparencia */
  padding: 0.0rem 0.5rem 0.5rem 0rem ; /* Espaciado interno del fondo */
  margin-bottom: 0.2rem; /* Desplaza ligeramente el fondo hacia abajo */
  border-radius: 0.0rem; /* Esquinas redondeadas para el fondo */
}

.highlighted-line3 {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.highlighted-line3::before,
.highlighted-line3::after {
  content: "["; /* Left bracket for ::before */
  position: absolute;
  font-size: 120%;
  font-weight: bold;
  color: rgb(128, 88, 26, 0.3); /* Bracket color */
}

.highlighted-line3::after {
  content: "]"; /* Right bracket for ::after */
}

.highlighted-line3::before {
  left: 3%; /* Adjust distance to the left */
  top: 10%; /* Align with the text */
}

.highlighted-line3::after {
  right: -5%; /* Adjust distance to the right */
  top: 10%; /* Align with the text */
}

.highlighted-line {
  position: relative;
  display: inline-block;
  z-index: 1;
}

.highlighted-line::before {
  content: "";
  position: absolute;
  top: 35%; /* Ajusta este valor para desplazar el resaltado */
  left: 3%;
  right: -3%;
  bottom: 3%;
  background-color: rgb(128, 88, 26, 0.3); /* Color del resaltado */
  z-index: -1;
  /*padding: 0% 10% 10% 0%;  Desplazamiento en todos los lados */
  padding-bottom: 1rem;
  padding-right: 10rem;
  border-radius: 0px; /* Opcional, para esquinas redondeadas */
}

.highlight {
  color: #80581A; /* Color diferente para destacar */
}


.about-content {
  padding: 0.63rem 0.63rem;
  width: 62.5rem;
  max-width: 95%;
  margin: auto;
  margin-top: 3.12rem;
  text-align: left;
  border-radius: 0.63rem 0.63rem 0.63rem 0.63rem;
}

.about h1 {
  font-size: 2.5rem;
  margin-bottom: 0.31rem;
  margin-top: 0.63rem;
  color:white;
  text-shadow: 0.19rem 0.19rem 0.19rem rgba(0, 0, 0, 0.8);
  text-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.8); /* Halo effect (shadow) */
}
.about h2 {
  margin-bottom: 0.31rem;
  margin-top: 0.63rem;
  color:white;
  text-shadow: 0 0 0.5rem rgba(0, 0, 0, 0.8); /* Halo effect (shadow) */
}

.about p {
  font-size: 1.2rem;
  color: rgb(0, 0, 0);
  margin-top: 0.31rem;
}

/* Contenedor del botón */
.button-container {
  text-align: right; /* Alinea el contenido dentro del contenedor a la derecha */
  margin-top: 1.25rem; /* Añadir separación del texto anterior */
  margin-right: 15%; /* Añadir separación del texto anterior */
}

/* Botón "Contáctenos ahora" */
.contact-button {
  display: inline-block;
  padding: 0.75rem 3.13rem;
  background-color: #80581A; /* Color del botón */
  color: #ffffff; /* Color del texto */
  text-decoration: none; /* Sin subrayado */
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 0.32rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

/* Hover del botón */
.contact-button:hover {
  background-color: #6c4a17; /* Color más oscuro al pasar el ratón */
  transform: scale(1.05); /* Efecto de agrandamiento */
}

/* Ajustes para pantallas grandes */
@media (min-width: 768px) {
  .about-content {
    align-items: flex-start; /* Alinea el contenido a la izquierda */
    text-align: left; /* Texto alineado a la izquierda */
  }
  .about-button {
    margin-top: 1.9rem;
    align-self: flex-end; /* Botón alineado a la izquierda */
  }
}


/* About extended Section */
.aboutextended {
  background-size: cover; /* Asegura que la imagen cubra todo el contenedor */
  background-position: top center; /* Centra la imagen en el contenedor */
  padding: 2rem 2rem; /* Espaciado de la sección */
  color: #005F7F; /* Color del texto */
  position: relative; /* Permite el uso de elementos posicionados */
}

.aboutextended-content {
  padding: 1rem;
  width: 62.5rem;
  max-width: 95%;
  margin: auto;
  margin-top: 0.3rem;
  text-align: justify;
  border-radius: 0.63rem;
}

.aboutextended h1 {
  font-size: 2.0rem;
  margin-bottom: 0.2rem;
  color:#005F7F;
  text-align: center;
}

.about-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.about-text {
  flex: 1 1 60%; /* El texto ocupa el 60% del ancho */
  padding: 1rem;
}

.about-image {
  flex: 1 1 40%; /* La imagen ocupa el 40% del ancho */
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.2);
}

.aboutextended p {
  font-size: 1.2rem;
  color: rgb(0, 0, 0);
  margin-top: 0.5rem;
  
}

.aboutextended ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0.5rem;
}

.aboutextended ul li {
  
  font-size: 1.2rem;
  color: rgb(0, 0, 0);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.aboutextended ul li::before {
  content: '✔'; /* Agrega un símbolo de verificación */
  position: absolute;
  left: 0;
  color: #005F7F;
  font-size: 1.2rem;
  
}

.aboutextended h2 {
  font-size: 1.8rem;
  margin-top: 1.5rem;
  color: #005F7F;
  text-align: center;
}

/* Estilo para la sección "Somos service MSA" */
.official-representatives {
  background-color: #F2F2F2;/* Fondo gris claro */
  padding: 1.56rem 1.25rem; /* Espaciado para que la sección sea amplia */
  text-align: center;
  position: relative;
  margin-left: 5%;
  margin-right: 5%;
  margin-bottom: 5%;
  margin-top: 0%;
  
}

.official-representatives h2 {
  font-size: 2rem;
  color: #005F7F; /* Color de texto acorde con el esquema de la marca */
  margin-bottom: 1.25rem;
  margin-left: 5%;
  margin-right: 5%;
  text-align: left;
}

.official-representatives p {
  font-size: 1.2rem;
  color: #1C1C1C; /* Texto más oscuro para mejor legibilidad */
  margin-bottom: 0.94rem;
  max-width: 50rem;
  margin-left: 5%;
  margin-right: 5%;
}

/* Contenedor principal para la imagen y el texto */
.official-representatives .content {
  display: flex;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 0.63rem 0.63rem 0.63rem 0.63rem;
  justify-content: space-between;
  align-items: center;
  gap: 2.0rem;
  margin: 0.25rem;
  box-shadow: 0 0.5rem 0.5rem rgba(0, 0, 0, 0.2);
  position: relative; /* Ensure that the ::before pseudo-element is positioned relative to this container */
  z-index: 1; /* Ensure content is above the background image */
}

.official-representatives .content::before {
content: "";
/* background-image: url('assets/GALAXYGX2.jpg'); */
background-size:cover;
background-position:center;
background-repeat: no-repeat;
opacity: 0.15; /* Adjust the opacity to make the image transparent */
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: -1; /* Ensure the background image is behind the content */
}

/* Estilo para la imagen de la izquierda (40% del ancho) */
.official-representatives .image-left img {
  width: 22rem;        /* Hacer que la imagen ocupe el 100% del contenedor */
  height: auto;       /* Mantener la proporción de la imagen */
  max-width: 100%;   /* Opcional: Limitar el tamaño máximo */
  display: block;     /* Asegurarse de que se comporte como un bloque */
  padding: 1.25rem 1.25rem ;
  
}


/* Estilo para el texto de la derecha (aproximadamente 64.8% del ancho, en proporción áurea) */
.official-representatives .text-right {
  width: 64%; /* 64.8% del ancho, en proporción áurea con la imagen */
  font-size: 1.2rem;
  color: #1C1C1C;
  text-align: justify;
}
.official-representatives .text-right a {
  width: 64%; /* 64.8% del ancho, en proporción áurea con la imagen */
  font-size: 1.2rem;
  color: #1C1C1C;
  text-align: justify;
  text-decoration: none;
}

/* Imagen larga debajo */
.official-representatives .image-bottom img {
  width: 100%; /* Imagen larga ocupa el 100% del ancho */
  height: auto;
  margin-top: 0.62rem;
  margin-bottom: 0;
}

.foto {
  /* background-image: url('assets/tunel.jpg'); Imagen de fondo */
  background-size:cover; /* Asegura que la imagen cubra todo el contenedor */
  background-position: top left; /* Centra la imagen en el contenedor */
  /*background-attachment: fixed;  Mantiene la imagen fija al hacer scroll */
  padding: 6.3rem 0.62rem; /* Espaciado de la sección */
  color: white; /* Color de texto en blanco */
  position: relative; /* Permite el uso de elementos posicionados */
  height: 9rem; /* Ajusta la altura para que cubra la pantalla completa */
  z-index: 1;
}


/* Services Section */
.services {
  padding: 2.5rem 1.25rem 2.5rem 1.25rem;
  text-align: center;
  position: center;
  /* background: #E4E4E4; */
  background: #005F7F;
}

.services h1 {
  font-size: 2.0rem;
  margin-bottom: 1.25rem;
  margin-top: 0.62rem;
  color:white;
}

.service h3 {
  color: #005F7F;
  font-size: 1.3rem;
  margin: 1rem 0;
}

/* Formulario */
.contact {
  padding: 0.63rem 1.25rem 1.25rem 1.25rem;
  text-align: center;
  /* background: #E4E4E4; */
  background: #F2F2F2;
}
.contact h1 {
  font-size: 2.0rem;
  margin-bottom: 0.63rem;
  margin-top: 0.63rem;
  color:#005F7F;
  text-align: center;
}
.contact-form {
  max-width: 37.5rem;
  margin: 0 auto;
  text-align: left;
}

.contact-form label {
  font-weight: bold;
  display: block;
  margin-bottom: 0.32rem;
}

.contact-form input, 
.contact-form select, 
.contact-form textarea {
  width: 100%;
  padding: 0.63rem;
  margin-bottom: 0.94rem;
  background-color: white;
  border: 0.0625rem solid #ddd;
  border-radius: 0.31rem;
}

.contact-form button {
  background: #005F7F;
  color: white;
  padding: 0.63rem 1.25rem;
  border: none;
  border-radius: 0.32rem;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #80581A;
}


/* ========================================== */

/* Media Query for smaller screens (e.g., tablets and mobile devices) */
@media (max-width: 850px) {
  /* Stack elements vertically on small screens */
  header {
    flex-direction: flex;
    padding: 1.25rem;
  }

  /* Adjust the logo size */
  .logo img {
    max-width: 
    9.34rem;
    
  }

  /* Navigation links: hide initially on small screens */
  nav {
    display: none;
    flex-direction: column;
    width: 100%;
    align-items: center;
    margin-top: 1.25rem;
  }

  nav a {
    padding: 0.63rem;
    font-size: 1.5rem;
  }

  /* Show hamburger menu on small screens */
  .hamburger {
    display: flex;
    color: white;
    position: fixed; /* Keeps the hamburger in a fixed position relative to the viewport */
    top: 1.25rem;       /* Adjust these values to position it correctly */
    right: 2.5rem;     /* Ensures it's fully within the view */
  }

  /* When the hamburger is clicked, show the nav links */
  .hamburger.active + nav {
    display: flex;
  }
  /* Change hamburger color when header is hovered */
  header:hover .hamburger span {
    color: #005f7f; /* Change to blue */
  }

  .official-representatives .content {
    flex-direction: column; /* Cambia la dirección de flex a columna */
    align-items: center;    /* Centra los elementos en la columna */
    position: relative; /* Ensure that the ::before pseudo-element is positioned relative to this container */
    z-index: 1; /* Ensure content is above the background image */
  }
  
  .official-representatives .content::before {
    content: "";
    /* background-image: url('assets/GALAXYGX2.jpg'); */
    background-size:auto;
    background-position:center;
    background-repeat: no-repeat;
    opacity: 0.15; /* Adjust the opacity to make the image transparent */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1; /* Ensure the background image is behind the content */
  }
  
  .official-representatives .image-left img {
    width: 25rem;
    height: auto; /* Mantén la proporción de la imagen */
    max-width: 85%; 
    display: center;
    padding: none;
    margin-bottom: 0.63rem; /* Añade un margen inferior para separar la imagen del texto */
  }

  .official-representatives .text-right {
    width: 100%; /* El texto toma el 100% del ancho en pantallas pequeñas */
    text-align: justify; /* Centra el texto */
    border-top: 0.3rem solid #ffffff; /* Añade una línea debajo de la imagen */
  }

  .about h1 {
    font-size: 2.0rem;
    margin-bottom: 0.32rem;
    margin-top: 0.63rem;
    color: white;
  }
  
  /* Adjust heading size for mobile screens */
  @media (max-width: 768px) {
    .about h1 {
      font-size: 2.0rem; /* Adjust this value as needed for smaller screens */
      margin-bottom: 0.32rem;
      margin-top: 0.63rem;
    }
  }
   
}

@media (max-width: 480px) {
  .about h1 {
    font-size: 2.0rem; /* Further adjust for very small screens */
    margin-bottom: 0.32rem;
    margin-top: 0.63rem;
  }
}


/* General Styles for the Section */
/* Section Styles */
#calibracion {
  background-color: #f2f2f2;
  padding: 4rem 2rem;
  font-family: 'Fira Sans', sans-serif;
}

#calibracion h3 {
  font-size: 2rem;
  color: #005F7F;
  margin-bottom: 1rem;
}

.instrument-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.instrument-item {
  position: relative;
  margin-bottom: 1rem;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.instrument-item:hover {
  background-color: #f9f9f9;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.instrument-item .arrow {
  float: right;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.instrument-item.active .arrow {
  transform: rotate(90deg);
}

.instrument-item span {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  color: #333;
}

.instrument-item span i {
  margin-right: 0.5rem;
  color: #005F7F;
  font-size: 1.5rem;
}

.sub-list {
  max-height: 0;
  overflow: hidden;
  margin-top: 0.5rem;
  padding-left: 1.5rem;
  list-style: none;
  transition: max-height 0.4s ease;
}

.instrument-item.active .sub-list {
  max-height: 500px;
}

.sub-list li {
  padding: 0.5rem 0;
  font-size: 1rem;
  color: #555;
}

.sub-list li::before {
  content: "•";
  color: #005F7F;
  font-size: 1.2rem;
  margin-right: 0.5rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .instrument-item {
    padding: 1rem;
    font-size: 1rem;
  }

  .instrument-item span i {
    font-size: 1.2rem;
  }

  .sub-list li {
    font-size: 0.9rem;
  }
}



/* Custom bullets for sub-list items */
.sub-list li {
  position: relative;
  text-align: left;
  padding-left: 0.5rem; /* Space for custom bullet */
  padding-right: 1rem; 
}

.sub-list li::before {
  content: '•'; /* Custom bullet */
  position: absolute;
  left: 0;
  color: #009688; /* Teal color */
  font-size: 1.2rem; /* Bullet size */
}


/* Default styles for items */
.item {
  margin: 0.94rem 0.63rem; 
  width: 19%; 
  height: 28rem;
  display: flex;
  align-items: flex-end;
  justify-content: center; /* Ensure child elements are centered horizontally */
  background: #343434 no-repeat center center / cover;
  border-radius: 0.5rem;
  overflow: hidden;
  position: relative;
  transition: all 0.4s ease-in-out;
  cursor: pointer;
}

.item:after {
  content: "";
  display: block;
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.3));
}

.item-desc {
  padding: 0 1.5rem 0.75rem;
  color: #fff;
  position: relative;
  z-index: 1;
  overflow: hidden;
  /* transform: translate(calc(100% - 11.25rem)); */
  transition: all 0.5s ease padding 0.5s ease-in-out;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center content vertically */
  align-items: center;
  transition: background-color 0.3s ease;
}

.item-desc h3 {
  font-size: 1.8rem;
  margin: 0;
  color: #fff;
  /* text-shadow: #000 0.063rem 0.063rem 0.063rem; */
  position: relative;
  z-index: 1;
  text-align: center;
  /* transform: translateY(0); */
  /* transition: all 0.5s ease-in-out; */
  display: flex;
  /* justify-content: center; */
  /* align-items: center; */
  height: 100%; /* Ensure it fills the card's height */
  justify-content: flex-start;
}

.item-desc p {
  opacity: 0;
  height: 0; /* Make it take no space when hidden */
  overflow: hidden; /* Ensure hidden content doesn't affect layout */
  /* transform: translateY(2rem); */
  transition: opacity 0.4s ease-in-out 0.2s, height 0.4s ease-in-out;
  text-align: left;
}

.items-wrapper {
  display: flex;
  /* transition: transform 0.4s ease-in-out;  */
  justify-content: center;
}

.item:hover {
  transform: scale(1.03); 
}

.item.active {
  width: 70%; 
  
}
.item.active::after {
  background-image: linear-gradient(rgba(220, 220, 220, 0.6), rgba(220, 220, 220, 0.7));
}

.item.active .item-desc {
  transform: all 0.5s ease-in;
}

.item.active .item-desc p {
  opacity: 1;
  height: auto; /* Allow it to expand */
  color: #000000;
  transform: translateY(0);
}

.item.active .item-desc h3 {
  /* transform: translateY(0); */
  text-align: left; /* Align text to the left in active state */
  justify-content: flex-start;
  color: rgb(41, 41, 41);
  text-shadow:none;
}


/* Responsive Design */
@media (max-width: 1200px) {
  .item {
      width: calc(33.33% - 1.25rem);
  }
}

@media (max-width: 800px) {
  .item {
      width: calc(50% - 1.25rem); 
  }
}

@media (max-width: 600px) {
  .item {
      width: calc(100% - 1.25rem); 
  }
}

/* Specific adjustments for smaller screens (<850px) */
@media (max-width: 850px) {
  .items-wrapper {
    flex-direction: column; /* Stack items vertically */
    align-items: center;
    gap: 1.25rem;
  }

  .item {
    width: 100%;
    height: auto; /* Let height adjust dynamically */
    margin: 0.63rem 0;
  }
  .item.active {
    width: 100%; /* Keep the same width as regular cards */
    height: auto; /* Allow height to expand dynamically */
  }
  .item-desc {
    padding: 0.63rem 0.63rem 1rem;
    transform: translateY(0); /* Always show description fully */
    justify-content: flex-start; /* Adjust content alignment */
  }

  .item-desc h3 {
    font-size: 1.8rem;
    transform: translateY(0);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    height: auto; /* Adjust height dynamically */
  }

  .item-desc p {
    font-size: 1rem;
    opacity: 0; /* Ensure text is hidden */
    height: 0; /* Collapse space */
    transform: translateY(2rem); /* Keep it out of view */
  }

  .item.active .item-desc p {
    
    opacity: 1; /* Reveal text */
    height: auto; /* Expand to fit content */
    transform: translateY(0);
  }
}


.technical-section {
  padding: 4rem 2rem;
  padding-bottom: 0rem;
  background-color: #f2f2f2;
  /* box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1); */
}

.container {
  max-width: 90%;
  margin: 0 auto;
}

.row {
  display: flex;
  align-items: center;
  margin-bottom: 4rem;
}

.col {
  flex: 1;
  padding: 3rem;
}

.text {
  order: 2;
}

.image {
  order: 1;
  display: flex;
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically if necessary */
  position: relative;
}

.image img {
  width: 75%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0rem 1rem 1rem 0rem rgba(0, 0, 0, 0.2);
  transition: opacity 1s ease-in-out; /* Transition duration matches the setTimeout */
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.image img.active {
  opacity: 1;
  z-index: 1;
}


.row:nth-child(1) .text {
  order: 1;
}

.row:nth-child(1) .image {
  order: 2;
}

.text h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #005F7F;
}

.text ul {
  list-style: none;
  padding: 0;
}

.text ul li {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #666;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
}

.text ul li i {
  color: #005F7F;
  margin-right: 0.5rem;
}

.text p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #666;
}

@media (max-width: 768px) {
  .row {
    flex-direction: column;
  }

  .text, .image {
    order: initial;
  }

  .row:nth-child(1) .text, .row:nth-child(1) .image {
    order: initial;
  }

  .image img { 
    width: 100%; 
    height: auto; 
    position: static; /* Ensures proper positioning on smaller screens */ 
    margin: auto; /* Center the image on smaller screens */
  }
}


.decorative-line {
  width: 40%;
  height: 0.15rem; /* Adjust the height of the line */
  background-color: #80581A; /* Adjust the color of the line */
  margin: 1rem 0; /* Adjust the spacing around the line */
  border-radius: 0.13rem; /* Optional: for slightly rounded edges */

}

/* Optional: Add some styling for different screen sizes */
@media (max-width: 768px) {
  .decorative-line {
    height: 1.5px; /* Adjust for smaller screens */
    margin: 1.5rem 0; /* Adjust the spacing for smaller screens */
  }
}


.process {
  padding: 2rem;
  background-color: #f9f9f9;
  /* background-image: url(assets/tunel.jpg); */
}

.container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem; /* Espacio entre los pasos */


}

.step {
  flex: 1 1 calc(22.5% - 1.5rem); /* Columnas responsivas, ajustadas para espacio homogéneo */
  max-width: calc(22.5% - 1.5rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  background-color: #fff;
  border-radius: 0rem;
  /* box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1); */
  position: relative; /* Necesario para posicionar la línea */
  min-height: 9rem; /* Asegurar una altura mínima menor */
}

.process h2{
  font-size: 2.5rem;
  margin-top: 1rem;
  padding-top: 1rem;

}
.icon {
  width:6rem; /* Ajustar el tamaño del icono */
  height:6rem;
  margin-bottom: 0rem;
  margin-bottom: 0;
  padding: 0;
}

.description {
  font-size: 0.9rem; /* Reducir un poco el tamaño del texto */
  color: #333;
}

.line {
  width: 100%; /* Línea que conecta los pasos */
  height: 2px;
  background-color: #005F7F;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

.circle {
  width: 20rem;
  height: 20rem;
  line-height: 1.5rem;
  border-radius: 50%;
  font-size: 1rem;
  color: #005F7F;
  text-align: center;
  background: white;
  border: #005F7F;
  border-width: 5rem;
  vertical-align: middle;
  order:0;
}

.step:last-child .line {
  display: none; /* Ocultar la línea después del último paso */
}

/* Diseño responsivo */
@media (max-width: 768px) {
  .step {
    flex: 1 1 calc(48% - 1.5rem); /* Dos columnas en pantallas medianas */
    max-width: calc(48% - 1.5rem);
    min-height: 130px; /* Ajustar altura mínima */
  }

  .line {
    width: 2px; /* Línea vertical para pantallas medianas y pequeñas */
    height: 40px; /* Ajustar la altura según sea necesario */
    left: 50%;
    top: 100%;
    transform: translateX(-50%) rotate(90deg);
  }

  .step:last-child .line {
    display: none;
  }
}

@media (max-width: 480px) {
  .step {
    flex: 1 1 100%; /* Una sola columna en pantallas pequeñas */
    max-width: 100%;
    min-height: 120px; /* Ajustar altura mínima */
  }

  .line {
    width: 2px; /* Línea vertical para pantallas pequeñas */
    height: 40px; /* Ajustar la altura según sea necesario */
    left: 50%;
    top: 100%;
    transform: translateX(-50%) rotate(90deg);
  }

  .step:last-child .line {
    display: none;
  }
}

.pasos {
  padding: 2rem;
  /* background-image: url(assets/tunel.jpg);  */
  background-color: #005f7f;
  margin:0;
}


:root {
  --circle-size: clamp(2.5rem, 5vw, 3rem);
  --spacing: clamp(0.25rem, 2vw, 0.5rem);
}

.c-stepper {
  display: flex;
  flex-direction:column;  
  gap: 1.5rem;
  /* margin: 0 auto;
  padding: 2rem 0; */

}

.c-stepper__item {
  position: relative;
  display: flex;
  align-items: flex-start; /* Alineación a la izquierda */
  gap: 1.5rem;
  padding-bottom: 1rem;
}

.c-stepper__icon {
  flex: 0 0 var(--circle-size);
  height: var(--circle-size);
  width: var(--circle-size);
  display: flex;
  justify-content: center;
  align-items: center;
}

.c-stepper__icon img {
  max-height: 100%;
  max-width: 100%;
  object-fit: cover;
}

.c-stepper__content {
  max-width: 44rem;
  
}

.c-stepper__title {
  font-weight: bold;
  font-size: clamp(1rem, 4vw, 1.25rem);
  margin-bottom: clamp(0.5rem, 1vw, 1rem);
  margin-top: 0rem;
}

.c-stepper__desc {
  color: grey;
  font-size: clamp(0.85rem, 2vmax, 1rem);
}

.c-stepper__item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(var(--circle-size) + var(--spacing));
  left: calc(var(--circle-size) / 2);
  transform: translateX(-50%);
  height: calc(100% - var(--circle-size) - var(--spacing));
  width: 2px;
  background-color: #e0e0e0;
  z-index: 10;
  
}

/* Wrapping container */
.wrapper {
  max-width: 70%;
  margin: auto;
  padding: 2rem;
  align-content: center;
  object-position: center;
  background-color: #ffffff;
  border-radius: 0.5rem;
}




#calibracion-razones {
  background-color: #005f7f;
  color: #ffffff;
  padding: 2rem;
  margin: 4rem;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;

}
.seccion-titulo {
  text-align: center;
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
}
#calibracion-razones p {
  text-align: left;
  color: #ffffff;
  position: relative;
  padding-bottom: 1rem;
}

.seccion-titulo::after {
  content: "";
  display: block;
  width: 5rem;
  height: 3px;
  background-color: #e4e4e4;
  margin: 0.5rem auto 0;
}

.razones-container {
  display:flex;
  flex-wrap:wrap;
  justify-content: center;
  gap: 1.5rem;

  
}

.razon {
  flex: 1 1 calc(20% - 1.5rem); /* 20% width for large screens */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent background for cards */
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.razon:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.razon i {
  font-size: 2.5rem;
  color: #e4e4e4;
  margin-bottom: 1rem;
}

.razon h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.razon p {
  font-size: 1rem;
  color: #d9d9d9;
}

@media (max-width: 768px) {
  .razon {
    flex: 1 1 100%; /* Full width for small screens */
  }
}



