/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
}

/* CONTAINERS */
.container {
  width: 70%;
  margin: 0 auto;
}

.section {
  padding: 60px 0;
  text-align: center;
}

h1, h2 {
  font-family: Arial Black, Arial Bold, sans-serif;
  color: #f58705;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: white;
  border-bottom: 1px solid #ddd;
  z-index: 1000;
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #f58705;
}

/* Navegación Desktop */
.nav {
  display: flex;
}

.nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

.nav a:hover {
  color: #f58705;
}

/* BOTÓN HAMBURGUESA */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 20px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #333;
  border-radius: 2px;
}

/* RESPONSIVE MENU */
@media (max-width: 900px) {
  .nav {
    position: absolute;
    top: 65px;
    right: 0;
    background: white;
    flex-direction: column;
    width: 200px;
    border-left: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    display: none; /* oculto por defecto */
  }

  .nav a {
    margin: 15px;
  }

  .menu-toggle {
    display: flex;
  }
}

/* CLASE PARA ABRIR EL MENU */
.nav.active {
  display: flex;
}


/* HERO */
.hero {
  height: 100vh;
  background: url("../img/hero.jpg") center/cover no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.5);
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* EMPRESA */
.empresa .flex {
  display: flex;
  align-items: center;
  gap: 40px;
}

.empresa-text {
  flex: 1;
  text-align: left;
}

.empresa-img img {
  max-width: 100%;
  border-radius: 10px;
}

/* ---------- SECCIÓN EMPRESA (mejorada) ---------- */
.empresa-header {
  text-align: center;
  margin-bottom: 50px;
}

.empresa-header h1 {
  font-size: 2rem;       /* más grande */
  font-family: "Arial Black", Arial, sans-serif;
  color: #000;
}

.header-line {
  width: 80px;
  height: 3px;
  background: #000;
  margin: 14px auto 0 auto;
}

/* Ajustes de grid */
.empresa .empresa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 40px;
  align-items: start;
}

/* Top Left */
.top-left .label-top {
  font-size: 1.25rem;
  font-weight: 720;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: #111;
}

.photo-frame {
  background: #000;
  padding: 14px;
  display: inline-block;
  max-width: 100%;
}

.photo-frame img {
  display: block;
  width: 100%;
  border: 6px solid #000;
}

/* Top Right */
.section-subtitle {
  color: #000;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 18px;
  text-align: left;
}

.top-right .rich-text {
  text-align: left;
  color: #000;               /* negro en vez de gris */
  font-size: 1rem;           /* +1 px */
  line-height: 1.6;
}

/* Bottom Left */
.bottom-left .big-headline {
  font-size: 2.2rem;         /* más grande */
  line-height: 1.1;
  margin-bottom: 10px;
  color: #000;
  text-align: left;
}

.bottom-left .decor-line {
  width: 60px;
  height: 3px;
  background: #f58705;
  margin: 14px 0 20px 0;
}

.bottom-left .lead {
  color: #000;               /* negro */
  text-align: left;
  font-size: 1rem;           /* +1 px */
  line-height: 1.6;
}

/* Bottom Right */
.bottom-right {
  padding-left: 30px;
  border-left: 1px solid #dedede;
}

.vertical-texts p {
  color: #000;               /* negro */
  font-size: 0.95rem;        /* +1 px */
  margin-bottom: 18px;
  line-height: 1.6;
  text-align: left;
}

/* Responsive */
@media (max-width: 900px) {
  .empresa .empresa-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .bottom-right {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid #eee;
    padding-top: 20px;
  }

  .empresa-header h1 {
    font-size: 2rem;
  }

  .bottom-left .big-headline {
    font-size: 1.8rem;
  }
}



/* ---------- SERVICIOS ---------- */
.servicios-header {
  text-align: center;
  margin-bottom: 40px;
}

.servicios-header h1 {
  font-size: 2rem;
  font-family: "Arial Black", Arial, sans-serif;
  color: #000;
}

.servicios-header .header-line {
  width: 80px;
  height: 3px;
  background: #000;
  margin: 14px auto 0 auto;
}

/* Grid de iconos */
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;                  /* más juntos */
  justify-items: center;
  align-items: start;
}

.icon-box {
  text-align: center;
}

.icon-box img {
  width: 200px;               /* iconos más grandes */
  max-width: 100%;
  margin-bottom: 10px;
}

.icon-box p {
  font-size: 1.05rem;         /* texto un poco más grande */
  font-weight: bold;
  color: #111;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .icon-grid {
    grid-template-columns: repeat(3, 1fr);  /* 3 por fila en tablets */
    gap: 12px;
  }

  .icon-box img {
    width: 120px;
  }
}

@media (max-width: 600px) {
  .icon-grid {
    grid-template-columns: repeat(2, 1fr);  /* 2 por fila en móvil */
    gap: 12px;
  }

  .icon-box img {
    width: 100px;
  }

  .icon-box p {
    font-size: 0.95rem;
  }
}



/* CTA */
.cta-header {
  text-align: center;
  margin-bottom: 40px;
}

.cta-header h1 {
  font-size: 2rem;
  font-family: "Arial Black", Arial, sans-serif;
  color: #000;
}

.cta-header .header-line {
  width: 80px;
  height: 3px;
  background: #000;
  margin: 14px auto 0 auto;
}

.cta {
  background: #f58705;
  color: white;
  padding: 50px 0; /* más alto */
}

.cta-flex {
  display: flex;
  justify-content: space-around; /* más cerca que space-between */
  align-items: center;
  flex-wrap: wrap;
  gap: 30px; /* controla separación en móvil */
}

.cta-item {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  font-size: 1.75rem;     /* texto más grande */
  font-weight: bold;
  transition: opacity 0.2s ease;
}

.cta-item img {
  width: 70px;          /* iconos más grandes */
  height: 70px;
  margin-right: 15px;
}

.cta-item:hover {
  opacity: 0.85;
}

/* Responsive */
@media (max-width: 768px) {
  .cta-flex {
    flex-direction: column;
    gap: 25px;
  }
  
  .cta-item {
    font-size: 1.3rem;
  }
  
  .cta-item img {
    width: 32px;
    height: 32px;
  }
}



/* HEADER DE LA SECCIÓN TRABAJOS */
.trabajos-header img {
  width: 100%;
  border-radius: 10px;

  display: block;
}

/* GRID DE IMÁGENES */
.grid-trabajos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.grid-trabajos img {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}

.grid-trabajos img:hover {
  transform: scale(1.1);
  filter: brightness(0.8);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

/* RESPONSIVE GRID MEJORADO */
@media (max-width: 1200px) {
  .grid-trabajos {
    grid-template-columns: repeat(3, 1fr); /* 3 columnas en pantallas grandes/medias */
  }
}

@media (max-width: 900px) {
  .grid-trabajos {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
  }
}

@media (max-width: 600px) {
  .grid-trabajos {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas incluso en móvil */
    gap: 15px; /* ajusta espacio para que no quede muy apretado */
  }
}



/* LIGHTBOX */
.lightbox-overlay {
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.9);
  display:flex;
  justify-content:center;
  align-items:center;
  cursor: pointer;
  z-index: 2000;
  padding: 20px;
  box-sizing: border-box;
}

.lightbox-overlay img {
  max-width: 95%;
  max-height: 95%;
  border-radius: 10px;
  box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}



/* FOOTER */
.footer {
  background: #111;
  color: #fff;
  padding: 40px 0 20px;
  text-align: center;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo h3 {
  color: #f58705;
  font-family: "Arial Black", Arial, sans-serif;
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  margin-left: 100px;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s, transform 0.2s;
}

.footer-links a:hover {
  color: #f58705;
  transform: translateY(-3px);
}

.footer-contact p {
  margin-bottom: 5px;
}

.footer-copy {
  margin-top: 20px;
  font-size: 0.9rem;
  color: #aaa;
}

/* RESPONSIVE FOOTER */
@media (max-width: 900px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
  }

  .footer-links {
    margin: 10px 0;
  }
}



/* RESPONSIVE */
@media (max-width: 768px) {
  .container {
    width: 90%;
  }
  .empresa .flex {
    flex-direction: column;
    text-align: center;
  }
}
