:root {
  --text-color: #111;
  --background-color: #fff;
  --highlight-color: #d52b1e;
  --font-main: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--font-main);
  color: var(--text-color);
  background-color: var(--background-color);
  height: 100%;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.navbar {
  position: relative;
  display: flex;
  justify-content: center; /* centramos el contenido por default */
  align-items: center;
  z-index: 100;
}

.logo {
  position: absolute;
  left: 2rem;
  top: 2rem;
  height: 40px;
  width: auto;
  max-width: 100%;
  display: block;
}

.nav-links {
  display: none !important;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.nav-link {
  text-decoration: none;
  color: var(--text-color);
  font-size: 1.1rem;
  padding: 1rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 12px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.nav-link:hover {
  border: 2px solid var(--highlight-color);
}

.nav-link.active {
  border: 2px solid var(--highlight-color);
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-size: 1rem;
  position: relative;
}

/* .nav-links a::after {
  content: '';
  display: block;
  width: 0%;
  height: 2px;
  background: var(--highlight-color);
  transition: width 0.3s ease;
  position: absolute;
  bottom: -4px;
  left: 0;
}

.nav-links a:hover::after {
  width: 100%;
} */

.section {
  min-height: 100vh;
  padding: 6rem 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #eee;
}

/* Estilo base del botón (lo que ya tienes) */
.menu-toggle {
  position: absolute;
  right: 2rem;
  top: 2rem;
  background: none;
  gap: 2rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 2rem;
  cursor: pointer;
  border: 2px solid;
  transition: all 0.3s ease;
}

/* Tema oscuro: blanco */
.menu-toggle.dark {
  color: black;
  border-color: black;
}

/* Tema claro: negro */
.menu-toggle.light {
  color: white;
  border-color: white;
}




/* Mobile menu full screen */
.mobile-menu {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;

  /* 👇 Estas son las líneas nuevas */
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;

  position: fixed;
  inset: 0;
  background-color: white;
  z-index: 200;
}

.close-menu {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-color);
}


.mobile-menu .nav-link {
  font-size: 1.5rem;
  padding: 1rem 2rem;
  border: 2px solid transparent;
  border-radius: 12px;
}

.mobile-menu .nav-link:hover {
  border: 2px solid var(--highlight-color);
}

.mobile-menu.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}


/* Responsive styles */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .navbar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    height: auto;
  }

  .menu-toggle{
    color: var(--text-color);
    font-size: 1.5rem;
    top: 0.8rem;
    right: 1.25rem;
    padding: 0.5rem 0.5rem;
  }

  .menu-toggle.light {
    color: black;
    border-color: black;

  }

  .logo {
    height: 32px;
    position: static;
  }


}

.work-columns {
  display: flex;
  height: 100vh;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  transition: background-image 0.5s ease;
}

.column {
  flex: 1;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.4);
  transition: background-color 0.3s ease;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}

/* Contenedor del título */
.column-content {
  z-index: 2;
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.column-inner {
  position: relative;
  width: 100%; /* ocupa todo el ancho */
  max-width: 100%;
}

.column h2 {
  font-size: 2.8rem;
  margin: 0;
  transition: transform 0.3s ease;
}

.column:hover h2 {
  transform: translateY(-10px);
}

/* Submenu debajo del título */
.submenu {
  list-style: none;
  position: absolute;
  width: 100%; /* ocupa todo el ancho */
  transform: translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
}

.column:hover .submenu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.submenu a {
  color: white;
  text-decoration: none;
  font-size: 1.95rem;
  overflow: hidden;
  display: inline-block;
  max-width: 100%;
}

.column:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2px;
  height: 60%;
  background: white;
  clip-path: polygon(
    50% 0%,
    100% 10%, 
    100% 90%, 
    50% 100%, 
    0% 90%, 
    0% 10%
  );
}

@media (max-width: 1360px) {
  .column {
    padding: 1rem;
  }
  
}

/* Sección Stay Up To Date */
.stay-up {
  background-color: white;
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stay-up-content {
  max-width: 600px;
  animation: fadeUp 1s ease-out both;
}

.stay-up h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.stay-up p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 2rem;
}

.stay-up-form {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.stay-up-form input {
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  flex: 1;
  min-width: 240px;
}

.stay-up-form button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background-color: var(--highlight-color);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.stay-up-form button:hover {
  background-color: #a01212;
  transform: scale(1.05);
}

/* Animación fadeUp */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer {
  background-color: #111;
  color: #ccc;
  padding: 3rem 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}


.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
  gap: 2rem;
}

.footer-contact, .footer-socials {
  flex: 1 1 300px;
  text-align: center;
}

.footer-contact h4, .footer-socials h4 {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1rem;
}

.footer-contact p, .footer-socials p, .footer-copy {
  font-size: 1rem;
  line-height: 1.8;
  color: #aaa;
}

.footer-contact a, .footer-socials a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover, .footer-socials a:hover {
  color: var(--highlight-color);
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons a i {
  font-size: 1.5rem;
  color: #ccc;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover i {
  color: var(--highlight-color);
  transform: scale(1.2);
}

.footer-copy {
  border-top: 1px solid #333;
  padding-top: 1rem;
  font-size: 0.9rem;
  color: #777;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Ocultar versión mobile por default */
.work-columns-mobile {
  display: none;
}

/* Mobile version styles */
@media (max-width: 1000px) {
  .work-columns {
    display: none; /* Oculta desktop */
  }

  .work-columns-mobile {
    display: flex;
    flex-direction: column;
    height: 100vh;
  }

  .mobile-block {
    flex: 1;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #444;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    padding: 1rem;
  }

  .mobile-block h2 {
    margin: 0;
    font-size: 1.2rem;
  }

  .submenu-mobile {
    display: none;
    list-style: none;
    padding: 1rem 0 0;
  }

  .submenu-mobile li {
    margin: 0.5rem 0;
  }

  .submenu-mobile a {
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
  }

  .mobile-block.active {
    flex: 2; /* se expande */
    background-color: rgba(0, 0, 0, 0.85);
  }

  .mobile-block.active .submenu-mobile {
    display: block;
  }
}

/* Fondos con imágenes para cada bloque móvil */
@media (max-width: 1000px) {
  .mobile-block {
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
  }

  /* Overlay oscuro encima de la imagen para legibilidad */
  .mobile-block::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 0;
  }

  /* Asegura que el contenido esté sobre el overlay */
  .mobile-block * {
    position: relative;
    z-index: 1;
  }

  .mobile-block[data-id="commercial"] {
    background-image: url("images/fondo4.png");
  }

  .mobile-block[data-id="multifamily"] {
    background-image: url("images/fondo5.png");
  }

  .mobile-block[data-id="ecology"] {
    background-image: url("images/fondo6.png");
  }

  .mobile-block[data-id="energy"] {
    background-image: url("images/fondo7.png");
  }

  .mobile-block[data-id="telecom"] {
    background-image: url("images/telecom.png");
  }
}

.about-us-main {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Título grande alineado a la izquierda */
.about-title {
  font-size: 3rem;
  margin-bottom: 2rem;
  text-align: left;
  color: var(--text-color);
}

/* Imagen central y responsiva */
.about-image-section {
  text-align: center;
  margin-bottom: 3rem;
}

.about-image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.about-description {
  max-width: 800px;
  margin: 0 auto 0 0;
  padding: 0 2rem 0 0;
  text-align: left;
}

.about-description p {
  font-size: 1.2rem;
  line-height: 2;
  font-weight: 300; /* 👈 más liviano */
  color: #444;
}

.about-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.about-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 4rem auto;
  max-width: 1000px;
  justify-content: space-between;
}

.about-card {
  flex: 1 1 45%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 3rem 2rem;
  border-radius: 16px;
  color: white;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  min-height: 260px;
}

.about-card h3 {
  font-size: 1.8rem;
  margin: 0;
}

/* Botón dentro de la tarjeta */
.card-button {
  align-self: flex-end;
  margin-top: auto;
  width: 48px;
  height: 48px;
  border: 2px solid white;
  border-radius: 50%;
  background: transparent;
  color: white;
  font-size: 1.5rem;
  text-align: center;
  line-height: 44px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.card-button:hover {
  background: white;
  color: black;
  transform: scale(1.1);
}


/* Estilos según fondo */
.about-card.highlight {
  background-color: var(--highlight-color);
}

.about-card.dark {
  background-color: #111;
}

/* Responsive */
@media (max-width: 768px) {
  .about-cards {
    flex-direction: column;
    gap: 1.5rem;
  }

  .about-card {
    flex: 1 1 100%;
  }
}

/* Animación base */
.animate-on-scroll {
  opacity: 0;
  transition: all 0.8s ease-out;
  transition-delay: var(--delay, 0s);
}

/* Direcciones */
.fade-up {
  transform: translateY(30px);
}

.fade-left {
  transform: translateX(-30px);
}

.fade-right {
  transform: translateX(30px);
}

.visible {
  opacity: 1;
  transform: translate(0, 0);
}

.market-page {
  padding: 0;
  margin: 0;
}

/* Hero Section */
.hero-section {
  height: 60vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content h1 {
  font-size: 3rem;
  color: white;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.guide-section {
  padding: 1rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Vision & Approach */
.vision-section,
.approach-section {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.vision-section p,
.approach-section p {
  text-align: justify;
}

.approach-section {
  background-color: #ffb0aa;;
  border-radius: 12px;
  padding: 4rem 2rem;
}

.vision-section h2,
.approach-section h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

/* Articles */
.articles-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.article-card {
  flex: 1 1 calc(33.333% - 2rem);
  background-color: #f9f9f9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: auto;
}

.article-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-content {
  padding: 2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-content h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #111;
}

.card-content p {
  text-align: justify;
  font-size: 1.1rem;
  line-height: 2;
  color: #666;
  margin-bottom: 2rem;
  flex-grow: 1;
}

/* Learn More button */
.learn-more-button {
  align-self: flex-start;
  text-decoration: none;
  background: transparent;
  color: #d52b1e;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s ease;
  flex-grow: 1;
}

.learn-more-button:hover {
  color: #a11212;
}

.article-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.12);
}

/* Responsive */
@media (max-width: 768px) {
  .articles-grid {
    flex-direction: column;
  }

  .article-card {
    flex: 1 1 100%;
  }
}


.hero-article {
  height: 50vh;
  background-size: cover;
  background-position: center;
  position: relative;
}

.article-content {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.article-content h1 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
  color: var(--text-color);
  text-align: left;
}

.article-content h2 {
  font-size: 2rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--highlight-color);
  text-align: left;
}

.article-content h3 {
  margin-bottom: 1rem;
}

.article-content ul {
  font-size: 1.1rem;
  line-height: 2;
  color: #444;
  text-align: justify;
  margin-bottom: 2rem;
}

.article-content p {
  font-size: 1.1rem;
  line-height: 2;
  color: #444;
  text-align: justify;
  margin-bottom: 2rem;
}

.references-section {
  max-width: 900px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.references-section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--highlight-color);
  text-align: left;
}

.references-list {
  list-style: disc;
  padding: 0;
  margin: 0;
}

.references-list li {
  font-size: 1rem;
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.8;
  text-align: justify;
}

.references-list a {
  color: var(--highlight-color);
  text-decoration: none;
}

.references-list a:hover {
  text-decoration: underline;
}

/* Animación base */
.animate {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease-out;
}

/* Cuando el elemento entra en viewport */
.animate.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Tipos de animaciones */

/* Fade In */
.fade-in {
  transform: translateY(20px);
}

/* Slide In Left */
.slide-left {
  transform: translateX(-50px);
}

/* Slide In Right */
.slide-right {
  transform: translateX(50px);
}

/* Slide In Up */
.slide-up {
  transform: translateY(50px);
}

/* Slide In Down */
.slide-down {
  transform: translateY(-50px);
}

/* Zoom In */
.zoom-in {
  transform: scale(0.8);
}

/* Rotación leve */
.rotate-in {
  transform: rotate(-5deg) scale(0.95);
}

/* Delays opcionales */
.delay-1 {
  transition-delay: 0.2s;
}
.delay-2 {
  transition-delay: 0.4s;
}
.delay-3 {
  transition-delay: 0.6s;
}
.delay-4 {
  transition-delay: 0.8s;
}

/* Contact Us Section */
.contact-section {
  padding: 6rem 2rem;
  background-color: #f9f9f9;
  display: flex;
  justify-content: center;
}

.contact-container {
  max-width: 1200px;
  width: 100%;
  text-align: center;
}

.contact-container h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-container p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  color: #555;
}

.contact-content {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
  align-items: flex-start;
}

.contact-form {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.contact-form button {
  padding: 1rem;
  background-color: var(--highlight-color);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #a01212;
}

.contact-info {
  flex: 1 1 300px;
  text-align: left;
}

.contact-info h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-info p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 1rem;
}

.contact-info i {
  margin-right: 0.5rem;
  color: var(--highlight-color);
}

