:root {
  --negro: #0d0d0d;
  --amarillo: #f5b800;
  --gris: #f4f4f4;
}

/* ================= TEXTOS ================= */
p {
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.7;
}

/* RESET GLOBAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  color: #333;
  line-height: 1.6;
}
/* ================= HERO ================= */
.hero {
  min-height: 90vh;
  background: url('img/portada.jpg') center/cover no-repeat;
  position: relative;
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px; /* espacio lateral */
}

/* OVERLAY */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(1px);
  z-index: 1;
}

/* NAV */
.navbar {
  position: absolute;
  top: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 2;
}

.logo {
  height: 50px; /* un poquito más visible */
}

/* HERO CONTENT */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px; /* espacio uniforme entre elementos */
  max-width: 900px; /* que no se vea gigante en pantallas grandes */
}

/* TITULO */
.hero h1 {
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1.2;
  margin: 0;
}

/* LINEA DECORATIVA */
.line {
  width: 100px;
  height: 4px;
  background: var(--amarillo);
  margin: 15px 0; /* espacio arriba y abajo */
}

/* BOTÓN HERO */
.hero-cta .btn {
  padding: 14px 34px;
  font-size: 1rem;
}

/* ================= RESPONSIVE ================= */

/* TABLET */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .line {
    width: 80px;
    height: 4px;
  }
}

/* MÓVIL */
@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
    padding: 15px;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .logo {
    height: 40px;
  }

  .hero-content {
    gap: 18px;
  }

  .line {
    width: 70px;
    margin: 10px 0;
  }

  .hero-cta .btn {
    padding: 12px 24px;
    font-size: 0.95rem;
  }
}

/* MÓVIL PEQUEÑO */
@media (max-width: 480px) {
  .hero {
    min-height: 50vh;
    padding: 10px;
  }

  .hero h1 {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .line {
    width: 60px;
    margin: 8px 0;
  }

  .hero-cta .btn {
    padding: 10px 20px;
    font-size: 0.85rem;
  }
}



/* ================= BOTONES ================= */
.btn {
  padding: 14px 34px;
  background: var(--amarillo);
  color: var(--negro);
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: 0.3s;
  white-space: nowrap;
}

.btn:hover {
  background: #d9a300;
}

.whatsapp {
  background: #25D366;
  color: #fff;
}

/* ================= SECCIONES ================= */
.section {
  padding: 90px 10%;
  text-align: center;
}

.section.gray {
  background: var(--gris);
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.intro p {
  max-width: 900px;
  margin: 0 auto 30px;
  font-size: 1.05rem;
}

/* ================= COLUMNAS ================= */
.columns {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  max-width: 400px;
}

/* ================= CONTACTO ================= */
.contact {
  margin-top: 30px;
}

.contact-info {
  max-width: 320px;
  text-align: left;
}

.contact-info p {
  margin-bottom: 20px;
}

.contact-info .btn {
  display: inline-block;
  margin-bottom: 30px;
}

.contact-form {
  max-width: 420px;
  width: 100%;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  margin-top: 20px;
  width: 100%;
}

/* ================= MAPA ================= */
.map {
  width: 100%;
  margin-top: 50px;
}

.map-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 6px;
}

.map-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ================= NAVBAR FIJA ================= */
.topnav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 5%;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.topnav.scrolled {
  background: rgba(13, 13, 13, 0.97);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.topnav .logo {
  height: 40px;
}

.topnav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.topnav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.85;
  transition: opacity 0.2s, color 0.2s;
}

.topnav-links a:hover {
  opacity: 1;
  color: var(--amarillo);
}

/* Hamburger móvil */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

.topnav-links.open {
  display: flex;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .topnav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: rgba(13,13,13,0.97);
    padding: 20px 5%;
    gap: 18px;
  }
}

/* ================= WHATSAPP FLOTANTE ================= */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
  font-size: 1.6rem;
  color: #fff;
}

/* ================= LIGHTBOX ================= */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 300;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}

/* ================= CTA INTERMEDIO ================= */
.section-cta {
  margin-top: 40px;
  padding: 40px;
  background: var(--negro);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.section-cta p {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 500;
  text-align: left;
  margin: 0;
}

@media (max-width: 768px) {
  .section-cta {
    flex-direction: column;
    text-align: center;
    padding: 30px 20px;
  }

  .section-cta p {
    text-align: center;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .whatsapp-float i {
    font-size: 1.4rem;
  }
}

footer {
  background: var(--negro);
  color: #fff;
  text-align: center;
  padding: 25px;
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

footer p {
  font-weight: 500;
}

footer .footer-sub {
  font-size: 0.5rem;
  font-weight: 400;
  color: #ccc;
}

/* ================= RESPONSIVE ================= */

/* TABLET */
@media (max-width: 1024px) {
  .section {
    padding: 70px 8%;
  }

  .hero h1 {
    font-size: 2rem;
  }
}

/* MÓVIL */
@media (max-width: 768px) {
  .hero {
    min-height: 60vh;
  }

  .hero h1 {
    margin-top: 60px;
    font-size: 2rem;
    white-space: normal;
    line-height: 1.3;
  }

  .logo {
    height: 30px;
  }

  .hero-content {
    top: 60%;
    gap: 18px;
  }

  .section {
    padding: 70px 6%;
  }

  .columns {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-info {
    text-align: center;
  }
  .btn {
    width: 100%;
  }
}

/* MÓVIL PEQUEÑO */
@media (max-width: 480px) {
  .hero {
    min-height: 50vh;
  }

  .hero h1 {
    font-size: 1.6rem;
    line-height: 1.3;
  }

  .hero-content {
    top: 60%;
    gap: 15px;
  }

  .line {
    margin: 5px 0;
  }

  .hero-cta .btn {
    padding: 8px 18px;
    font-size: 0.85rem;
  }
}

/* ================= BOTONES ICONOS ================= */
.btn-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  vertical-align: middle;
}

.btn i {
  margin-right: 10px;
  font-size: 18px;
  vertical-align: middle;
}

/* ================= BOTÓN DE ARCHIVOS ================= */
.file-upload-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  width: 100%;
}

.btn-clip {
  background: #ddd;
  color: #333;
  padding: 10px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.7rem;
  text-align: center;
  text-decoration: none;
  border: 1px solid #ccc;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.btn-clip i {
  font-size: 0.7rem;
  margin-right: 5px;
}

.btn-clip:hover {
  background: #ccc;
}

#file-count {
  font-weight: 400;
  font-size: 0.7rem;
  color: #666;
}

.address-footer p {
  text-align: center !important;
}


/* ================= AJUSTE MÓVIL ================= */

@media (max-width: 768px) {
  .gallery-grid img {
    min-width: 100%; /* Una foto a la vez en móvil */
    width: 100%;
    aspect-ratio: 4 / 3; /* Un poco más cuadrada en móvil para destacar detalles */
  }

  .gallery-arrow {
    width: 35px;
    height: 35px;
  }
}
.footer-sub a {
  color: inherit;           /* usa el color del texto */
  text-decoration: none;    /* quita el subrayado */
  font-weight: 600;
}

.footer-sub a:hover {
  text-decoration: underline;
  opacity: 0.8;
}
.services-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}
.service-card {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-top: 5px solid var(--amarillo);
}
.service-card i {
  font-size: 2rem;
  color: var(--amarillo);
  margin-bottom: 15px;
}
/* ================================================================
   SECCIÓN CONTACTO - GERENTES (DELTA XX)
   Optimizado para nombres largos y visualización móvil
   ================================================================ */

/* Contenedor Principal */
.managers-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 15px; /* Espacio de seguridad para móviles */
}

/* Tarjeta Estilo Captura (Fondo Dorado/Amarillo) */
.manager-card {
  background-color: #d4ae40; /* Color corporativo Delta XX */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 40px;
  text-align: left;
  gap: 20px;
  border-radius: 4px; /* Opcional: suaviza las esquinas */
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Bloque del Nombre y Puesto */
.manager-name {
  flex: 1.2; /* Da prioridad de espacio al nombre */
  min-width: 0; /* Permite que el texto se ajuste sin empujar la caja */
}

.manager-name h3 {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  word-wrap: break-word; /* Crucial para nombres como "Nuñez Villalobos" */
}

.manager-name p {
  font-size: 0.95rem;
  margin: 5px 0 0 0;
  font-weight: 400;
  opacity: 0.9;
  text-transform: uppercase;
  text-align: left !important;
}

/* Línea Vertical Divisoria (Solo escritorio) */
.vertical-line {
  width: 2px;
  height: 70px;
  background-color: #ffffff;
  margin: 0 30px;
  flex-shrink: 0; /* Evita que la línea se adelgace */
}

/* Bloque de Información de Contacto */
.manager-contact {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.manager-contact p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap; /* Mantiene icono y texto en una línea en desktop */
}

.manager-contact p i {
  width: 20px; /* Alineación uniforme de iconos */
  text-align: center;
}

.main-email-container p{
  text-align: center !important;
}

/* ================================================================
   ADAPTACIÓN PARA MÓVIL (RESPONSIVE)
   ================================================================ */

@media (max-width: 768px) {
  .manager-card {
    flex-direction: column; /* Apila nombre arriba y contacto abajo */
    text-align: center;
    padding: 25px 20px;
    gap: 15px;
  }

  .vertical-line {
    /* Cambia de vertical a horizontal corta */
    width: 60px;
    height: 2px;
    margin: 10px auto;
  }

  .manager-name h3 {
    font-size: 1.15rem; /* Ajuste para pantallas pequeñas */
  }

  .manager-contact p {
    justify-content: center; /* Centra iconos y texto */
    font-size: 0.95rem;
    white-space: normal; /* Permite que correos largos bajen de renglón */
    word-break: break-all;
  }
  .manager-name p {
  text-align: center !important;
}
}

/* Estilo para el correo de ventas */
.main-email-container {
  margin-bottom: 30px;
}

.btn-ventas {
  display: inline-block;
  margin-top: 10px;
  padding: 12px 25px;
  background: var(--negro);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 4px;
}

/* ================= GALERÍA PROYECTOS ================= */

/* DESKTOP: grid 3 columnas con imagen destacada */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
  margin-top: 40px;
}

.project-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
  background: #111;
}

.project-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.45s ease, opacity 0.3s ease;
}

.project-item:hover img {
  transform: scale(1.06);
  opacity: 0.85;
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-item:hover .project-overlay {
  opacity: 1;
}

.project-overlay span {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Imagen destacada: 2 cols x 2 filas */
.project-item.featured {
  grid-column: span 2;
  grid-row: span 2;
}

/* TABLET */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
  }
  .project-item.featured {
    grid-column: span 2;
    grid-row: span 1;
  }
}

/* MÓVIL: scroll horizontal tipo carrusel nativo */
@media (max-width: 600px) {
  .projects-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    margin-left: -6%;
    margin-right: -6%;
    padding-left: 6%;
    padding-right: 6%;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .projects-grid::-webkit-scrollbar {
    display: none;
  }

  .project-item,
  .project-item.featured {
    flex: 0 0 78vw;
    min-width: 78vw;
    height: 52vw;
    grid-column: unset;
    grid-row: unset;
    scroll-snap-align: start;
    border-radius: 10px;
  }
}

/* Hint de swipe — solo móvil */
.mobile-gallery-hint {
  display: none;
}

@media (max-width: 600px) {
  .mobile-gallery-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 14px;
    font-size: 0.8rem;
    color: #999;
  }
}

/* ================= LIGHTBOX ================= */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.93);
  z-index: 300;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.lightbox-close:hover {
  opacity: 1;
}


/* ================= animacion web ================= */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}


/* ================= CLIENTES ================= */

.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  align-items: center;
  margin-top: 40px;
}

.clients-grid img {
  width: 100%;
  max-height: 70px;       /* 🔥 altura uniforme */
  object-fit: contain;    /* mantiene proporción */
  filter: grayscale(100%);
  opacity: 0.7;
  transition: 0.4s ease;
}

.clients-grid img:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

/* Tablet */
@media (max-width: 1024px) {
  .clients-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
}

/* Móvil */
@media (max-width: 768px) {
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .clients-grid img {
    max-height: 50px;
  }
}

/* Móvil pequeño */
@media (max-width: 480px) {
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}