:root {
  /* =========================
     COLORES BASE
     ========================= */

  /* Texto */
  --color-title: #000000; /* Títulos */
  --color-text: #727272; /* Párrafos */

  /* Branding / Acciones */
  --color-primary: #051622; /* Botón primario, fondos oscuros */
  --color-secondary: #ffffff; /* Botón secundario */
  --color-accent: #deb992; /* Líneas, iconos, hover, banners */
  --color-success: #1ca099; /* Iconos y líneas footer */

  /* Fondos */
  --bg-light: #f5f5f5; /* Secciones claras */
  --bg-dark: #051622; /* Secciones oscuras */

  /* Estados */
  --link-hover: #e3c6a6;
  --link-active: #e3c6a6;

  /* Bordes / divisores */
  --border-color: #e3c6a6;

  /* =========================
     BOOTSTRAP OVERRIDES
     ========================= */

  /* Body */
  --bs-body-color: var(--color-text);
  --bs-body-bg: #ffffff;

  /* Colores principales */
  --bs-primary: var(--color-primary);
  --bs-secondary: var(--color-secondary);
  --bs-success: var(--color-success);

  /* Links */
  --bs-link-color: var(--color-primary);
  --bs-link-hover-color: var(--link-hover);

  /* Borders */
  --bs-border-color: var(--border-color);
}

/* =========================
   HERO SLIDER (FONDO FIJO)
   ========================= */

.hero-slider {
  position: relative;
  height: 85vh;
  overflow: hidden;
}

/* Fondo fijo */
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../img/home/banner-home.jpg") center / cover no-repeat;
  filter: grayscale(100%);
  z-index: 0;
}

/* Overlay oscuro */
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

/* Swiper encima del fondo */
.heroSwiper {
  position: relative;
  z-index: 2;
  height: 100%;
}

/* Slide solo para contenido */
.swiper-slide {
  height: 85vh !important;
  display: flex !important;
  align-items: center;
}

.swiper-slide-custom-h {
  height: 50vh !important;
}

/* =========================
   HERO – SWIPER ARROWS
   ========================= */

.hero-slider .swiper-button-next,
.hero-slider .swiper-button-prev {
  width: 56px;
  height: 56px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(2px);
  border-radius: 0; /* cuadrado */
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  transition: background 0.3s ease;
}

/* Hover */
.hero-slider .swiper-button-next:hover,
.hero-slider .swiper-button-prev:hover {
  background: rgba(0, 0, 0, 0.65);
}

/* Flecha */
.hero-slider .swiper-button-next::after,
.hero-slider .swiper-button-prev::after {
  font-size: 18px;
  font-weight: 700;
}

/* Posición */
.hero-slider .swiper-button-prev {
  left: 0px;
}

.hero-slider .swiper-button-next {
  right: 0px;
}

/* =========================
   HERO CONTENT
   ========================= */

.hero-content {
  width: 100%;
  color: #ffffff;
}

.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 5rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-secondary);
}

.hero-content p {
  margin-top: 20px;
  font-size: 18px;
  max-width: 100%;
}

.text-accent {
  color: var(--color-accent);
}

/* =========================
   HEADER GENERAL
   ========================= */

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  color: #ffffff;
}

/* Top bar */
.header-top {
  font-size: 13px;
  padding: 8px 0;
}

.header-top a {
  color: #ffffff;
  text-decoration: none;
}

.header-top a:hover {
  color: var(--color-accent);
}

/* Main bar */
.header-main {
  padding: 15px 0;
}

/* Navbar */
.navbar-nav .nav-link {
  color: #ffffff;
  text-transform: uppercase;
  font-size: 14px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--color-accent);
}

/* Hamburger */
.navbar-toggler {
  border: none;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  filter: invert(1);
}

/* =========================
   HEADER OSCURO (PÁGINAS INTERNAS)
   ========================= */

.page-id-9 .site-header,   /* Servicios */
.page-id-11 .site-header,  /* Domos */
.page-id-13 .site-header,  /* Cristal */
.page-id-15 .site-header,  /* Cancelería */
.page-id-17 .site-header,  /* Automatizaciones */
.page-id-20 .site-header,  /* Proyectos */
.page-id-32 .site-header,  /* Casa Oacalco */
.page-id-34 .site-header,  /* El Chuletas */
.page-id-28 .site-header,  /* Fachada Cristal */
.page-id-30 .site-header,  /* Fonda Argentina */
.page-id-26 .site-header,  /* Hospital Constituyentes */
.page-id-24 .site-header   /* Roof Garden */ {
  position: relative;
  background-color: var(--color-primary);
}

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

@media (max-width: 991.98px) {
  .hero-slider,
  .swiper-slide {
    height: 70vh;
  }

  .hero-content {
    text-align: center;
    padding: 0 20px;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
}

/* =========================
   BUTTONS
   ========================= */

.btn-primary {
  background-color: var(--bg-dark);
  color: var(--color-secondary);
  border: none;
  padding: 12px 35px;
  text-transform: uppercase;
}

.btn-primary:hover {
  background-color: var(--bg-dark);
  color: var(--color-success);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--color-primary);
  border: none;
  padding: 12px 35px;
  text-transform: uppercase;
}

.btn-secondary:hover {
  background-color: var(--bg-light);
  color: var(--color-success);
}

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

@media (max-width: 991.98px) {
  .hero-content {
    text-align: center;
    padding: 0 20px;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
}

/* =========================
   MOBILE NAVBAR BACKGROUND
   ========================= */

@media (max-width: 991.98px) {
  /* Fondo negro cuando menú está abierto */
  .navbar-collapse {
    background-color: #000000;
    padding: 20px;
  }

  .navbar-nav .nav-link {
    padding: 12px 0;
  }

  .header-top {
    background-color: var(--color-accent);
  }
}

/* =========================
   MOBILE SOCIAL CURTAIN
   ========================= */

.header-top {
  position: relative;
}

/* Banda toggle */
.header-top-toggle {
  width: 100%;
  background: transparent;
  border: none;
  padding: 10px 0;
  display: flex;
  justify-content: center;
  cursor: pointer;
}

/* Flecha */
.toggle-arrow {
  width: 14px;
  height: 14px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg);
  transition: transform 0.3s ease;
}

/* Cortina */
.header-top-content {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
}

/* Estado abierto */
.header-top.open .header-top-content {
  height: auto;
}

.header-top.open .toggle-arrow {
  transform: rotate(135deg);
}

/* Desktop: siempre visible */
@media (min-width: 992px) {
  .header-top-toggle {
    display: none;
  }

  .header-top-content {
    height: auto !important;
  }
}

/* =========================
   SERVICES SECTION
   ========================= */

.services-section {
  background-color: #f5f5f5;
}

/* Card link wrapper */
.service-card {
  display: block;
  text-decoration: none;
  height: 100%;
  background-color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: inherit;
}

/* Hover */
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

/* Image */
.service-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.08);
}

/* Content */
.service-content {
  padding: 30px 20px 40px;
  text-align: center;
}

.service-content h3 {
  font-size: 20px;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-title);
}

/* Accent line */
.service-line {
  display: block;
  width: 40px;
  height: 2px;
  background-color: var(--color-accent);
  margin: 0 auto 15px;
}

/* Text */
.service-content p {
  font-size: 14px;
  color: var(--color-text);
  margin: 0;
  line-height: 1.6;
}

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

@media (max-width: 767.98px) {
  .service-content {
    padding: 25px 15px 30px;
  }
}

/* =========================
   SECTION BANNER
   ========================= */

.section-banner {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.section-banner-bg {
  position: absolute;
  inset: 0;
  background: url("../img/home/banner-intersection.jpg") center / cover
    no-repeat;
  filter: grayscale(100%);
  transform: translateY(0);
  will-change: transform;
}

/* =========================
   PROJECT TYPES SECTION
   ========================= */

.projects-types-section {
  background-color: #ffffff;
}

.projects-image {
  height: 480px;
}

/* Imagen */
.projects-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

/* Item */
.project-type-item {
  align-items: flex-start;
}

.project-icon {
  width: 98px;
  height: 98px;
  background-color: var(--color-primary);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  flex-shrink: 0;
}

/* Texto */
.project-type-item h4 {
  font-size: 20px;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-title);
}

.project-type-item p {
  font-size: 14px;
  color: var(--color-text);
  margin: 0;
  line-height: 1.6;
}

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

@media (max-width: 991.98px) {
  .projects-image {
    text-align: center;
  }

  .project-type-item {
    align-items: flex-start;
  }
}

/* =========================
   FEATURED PROJECTS
   ========================= */

.featured-projects-section {
  background-color: var(--color-primary);
  padding: 80px 0;
}

/* Title */
.section-title {
  font-size: 20px;
  letter-spacing: 1.5px;
  color: #ffffff;
  margin: 0;
}

/* Nav buttons */
.featured-nav {
  display: flex;
  gap: 6px;
}

.featured-nav button {
  width: 36px;
  height: 36px;
  background-color: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.featured-nav button:hover {
  background-color: rgba(255, 255, 255, 0.35);
}

/* Slides */
.featured-project-card {
  display: block;
  overflow: hidden;
}

.featured-project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 10;
  transition: transform 0.6s ease;
}

.featured-project-card:hover img {
  transform: scale(1.08);
}

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

@media (max-width: 991.98px) {
  .featured-projects-section {
    padding: 60px 0;
  }
}

/* =========================
   FEATURED PROJECT HOVER
   ========================= */

.featured-project-card {
  position: relative;
  display: block;
  overflow: hidden;
}

/* Overlay */
.featured-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* Title */
.project-title {
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Hover */
.featured-project-card:hover .featured-overlay {
  opacity: 1;
}

/* Imagen un poco más oscura en hover */
.featured-project-card:hover img {
  filter: brightness(0.8);
}

/* =========================
   ABOUT / VALUES SECTION
   ========================= */

.about-values-section {
  background-color: #ffffff;
}

/* Frase */
.about-quote {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  max-width: 900px;
  margin: 0 auto;
  color: var(--color-title);
  line-height: 1.4;
}

/* Valores */
.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.value-icon {
  width: 70px;
  height: 70px;
  background-color: var(--color-primary);
  color: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.value-item h4 {
  font-size: 20px;
  letter-spacing: 1px;
  font-weight: 600;
  margin: 0;
  color: var(--color-title);
}

/* Subtítulos */
.about-subtitle {
  font-size: 20px;
  letter-spacing: 1.2px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--color-title);
}

/* Texto */
.about-values-section p {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.7;
  max-width: 520px;
}

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

@media (max-width: 767.98px) {
  .about-quote {
    padding: 0 15px;
  }
}

/* =========================
   FOOTER
   ========================= */

.site-footer {
  color: #ffffff;
}

/* Main */
.footer-main {
  background: var(--bg-dark);
}

/* Titles */
.footer-title {
  font-size: 20px;
  letter-spacing: 1.2px;
  margin-bottom: 20px;
  position: relative;
  color: var(--color-secondary);
}

.footer-title::after {
  content: "";
  width: 28px;
  height: 2px;
  background-color: var(--color-success);
  display: block;
  margin-top: 10px;
}

/* Text */
.footer-text {
  font-size: 14px;
  color: #ffffff;
  line-height: 1.6;
}

/* Social */
.footer-social a {
  width: 46px;
  height: 46px;
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  font-size: 24px;
}

.footer-social > a:hover {
  color: #168079 !important;
}

.link-footer {
  color: var(--color-secondary);
  text-decoration: none;
}

.link-footer:hover {
  color: var(--color-success);
}

/* Contact list */
.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  display: flex;
  gap: 12px;
  margin-bottom: 18px;
}

.footer-icon {
  color: var(--color-success);
  font-size: 18px;
}

/* Schedule */
.footer-schedule {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-schedule li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 14px;
}

.footer-schedule .closed {
  color: var(--color-accent);
}

/* Bottom bar */
.footer-bottom {
  background-color: #000000;
  padding: 15px 0;
  font-size: 13px;
  color: #ffffff;
}

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

@media (max-width: 767.98px) {
  .footer-main {
    text-align: center;
  }

  .footer-title::after {
    margin-left: auto;
    margin-right: auto;
  }

  .footer-list li {
    justify-content: center;
  }

  .footer-schedule li {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}

/* =========================
   SERVICES PAGE
   ========================= */

.services-page {
  background-color: #ffffff;
}

/* Sidebar */
.services-sidebar {
  border-right: 1px solid #eee;
}

.services-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.services-menu li {
  border-bottom: 1px solid #eee;
}

.services-menu a {
  display: block;
  padding: 12px 0;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: 0.5px;
  position: relative;
  padding-right: 20px;
}

.services-menu li.active a,
.services-menu a:hover {
  color: var(--color-accent);
}

/* Flecha */
.services-menu a::after {
  content: "›";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: var(--color-text);
  transition: transform 0.25s ease, color 0.25s ease;
}

/* Hover / activo */
.services-menu li.active a::after,
.services-menu a:hover::after {
  color: var(--color-accent);
  transform: translateY(-50%) translateX(4px);
}

/* Cards */
.service-item img {
  width: 100%;
  height: auto;
  margin-bottom: 15px;
}

.service-item h3 {
  font-size: 14px;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 8px;
}

.service-item p {
  font-size: 13px;
  color: var(--color-text);
  margin-bottom: 12px;
}

.service-item .btn {
  font-size: 12px;
  padding: 8px 16px;
}

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

@media (max-width: 991.98px) {
  .services-sidebar {
    border-right: none;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
  }
}

/* =========================
   GALERÍA SERVICIOS
   ========================= */

.service-gallery-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  width: 100%;
}

/* Columna izquierda – imagen grande */
.gallery-col--large {
  height: 100%;
}

.gallery-col--large .service-gallery-item {
  height: 100%;
}

/* Columna derecha – 2 imágenes apiladas */
.gallery-col--stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
}

/* Item general */
.service-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 2px; /* opcional */
}

/* Imagen */
.service-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

@media (max-width: 991.98px) {
  .service-gallery-layout {
    grid-template-columns: 1fr;
  }

  .gallery-col--stack {
    grid-template-rows: auto;
  }

  .gallery-col--stack .service-gallery-item {
    height: auto;
  }
}

/* =========================
   PORTAFOLIO – FILTROS
   ========================= */

.projects-filters {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  padding-left: 0;
  list-style: none;
  font-size: 14px;
}

.projects-filters li {
  position: relative;
}

.projects-filters li:not(:last-child)::after {
  content: "/";
  margin-left: 12px;
  color: #999;
}

.projects-filters a {
  text-decoration: none;
  color: #999;
  transition: color 0.3s ease;
}

.projects-filters a:hover,
.projects-filters a.active {
  color: var(--color-accent);
  font-weight: 500;
}

/* =========================
   PORTAFOLIO – GRID
   ========================= */

.project-card {
  display: block;
  text-decoration: none;
  color: #fff;
}

.project-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background-color: #000;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  /* 🔥 CLAVE PARA EL ZOOM */
  transition: transform 0.6s ease;
  will-change: transform;
}

/* =========================
   PORTAFOLIO – HOVER
   ========================= */

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.project-overlay h3 {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  padding: 0 12px;
  color: var(--color-secondary);
}

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

.project-card:hover img {
  transform: scale(1.08);
}

/* =========================
   PORTAFOLIO – HOVER
   ========================= */

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.project-overlay h3 {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  padding: 0 12px;
  color: var(--color-secondary);
}

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

.project-card:hover img {
  transform: scale(1.08);
}

/* =========================
   PORTAFOLIO – RESPONSIVE
   ========================= */

@media (max-width: 991.98px) {
  .projects-filters {
    flex-wrap: wrap;
    gap: 8px;
  }

  .projects-filters li:not(:last-child)::after {
    display: none;
  }
}

/* =========================
   PROYECTO SINGLE
   ========================= */

.project-title {
  font-size: 22px;
  font-weight: 500;
  text-transform: uppercase;
}

.project-gallery {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
}

.project-title-gallery {
  font-size: 28px;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--color-title);
}

.project-galery-img {
  width: 700px;
  height: 600px;
}

.project-galery-img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.project-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.project-nav {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* =========================
   WHATSAPP FLOAT BUTTON
   ========================= */

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 25px;
  z-index: 9999;

  display: flex;
  align-items: center;
  gap: 12px;

  text-decoration: none;
  font-family: inherit;
}

/* Texto tipo cinta */
.whatsapp-text {
  background: linear-gradient(135deg, #25d366, #1ebe5d);
  color: #ffffff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Botón circular */
.whatsapp-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 26px;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease;
}

/* Hover */
.whatsapp-float:hover .whatsapp-text {
  transform: translateX(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.whatsapp-float:hover .whatsapp-icon {
  transform: scale(1.08);
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 575px) {
  .whatsapp-text {
    display: none;
  }

  .whatsapp-icon {
    width: 56px;
    height: 56px;
    font-size: 28px;
  }
}

