
/* =======================
   VARIABLES / RESET
======================== */
:root {
  --color-azul: #00609C;
  --color-naranja: #F47D30;
  --color-celeste: #00a8e8;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #fff;
}

/* =======================
   HEADER
======================== */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5%;
  background: white;
  height: 80px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  height: 50px;
}

.separator {
  width: 1px;
  height: 30px;
  background: #ccc;
}

.menu-trigger {
  background: none;
  border: none;
  color: var(--color-azul);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 500;
}

.email-box {
  color: var(--color-azul);
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.email-box a {
  text-decoration: none;
  color: inherit;
}

.email-box i {
  color: var(--color-celeste);
  font-size: 20px;
}

/* =======================
   SIDEBAR + BACKDROP
======================== */
.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
}

.sidebar-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100vh;
  background: white;
  z-index: 1001;
  padding: 40px 20px;
  transform: translateX(-100%);
  transition: 0.35s ease;
  box-shadow: 5px 0 15px rgba(0, 0, 0, 0.12);
}

.sidebar.active {
  transform: translateX(0);
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.sidebar-logo {
  width: 80%;
  margin-bottom: 30px;
}

.social-icons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 30px;
}

.social-icons a {
  background: var(--color-azul);
  color: white;
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 4px;
  text-decoration: none;
}

/* =======================
   SECCIÓN PRINCIPAL (HERO)
======================== */
.proyecto-hero {
  position: relative;
  height: 350px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: url('aireacondicionado.jpg') no-repeat center center;
  background-size: cover;
}

.proyecto-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 51, 102, 0.9) 0%, rgba(0, 51, 102, 0.4) 50%, transparent 100%);
  z-index: 1;
}

.proyecto-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.proyecto-hero__title {
  color: white;
  font-size: 2.5rem;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 2px;
}

.proyecto-hero__line {
  width: 90px;
  height: 4px;
  background: var(--color-naranja);
  margin-top: 12px;
  border-radius: 2px;
}

/* =======================
   SECCIÓN DE SERVICIOS
======================== */
#servicios {
  background-color: #002b4e;
  padding: 15px 0;
}

.servicios-container {
  max-width: 1200px;
  margin: 0 auto;
}

.servicios-list {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.servicios-list li a {
  text-decoration: none;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.3s ease;
}

.servicios-list li a:hover,
.servicios-list li a.active {
  color: #00a8e8;
}

/* Ajuste para dispositivos móviles */
@media (max-width: 768px) {
  .servicios-list {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
}

/* =======================
   FOOTER
======================== */
.main-footer {
  background-color: #003354;
  color: white;
  padding: 60px 5% 40px;
  position: relative;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-col h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.footer-line {
  width: 40px;
  height: 3px;
  background-color: var(--color-naranja);
  margin-bottom: 25px;
}

.footer-description {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 20px 0;
  color: #cbd5e0;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.footer-social a {
  background: white;
  color: #003354;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: 0.3s;
}

.footer-social a:hover {
  background: var(--color-naranja);
  color: white;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul li a {
  color: #cbd5e0;
  text-decoration: none;
  font-size: 0.9rem;
  transition: 0.3s;
}

.footer-col ul li a:hover {
  color: white;
  padding-left: 5px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-item i {
  font-size: 1.5rem;
  color: #00a8e8;
}

.contact-item .info span {
  display: block;
  font-size: 0.8rem;
  color: #00a8e8;
  text-transform: uppercase;
  font-weight: bold;
}

.contact-item .info p {
  font-size: 0.95rem;
  margin-top: 3px;
}

/* Botón subir */
.scroll-top-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  color: #003354;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s ease;
}

.scroll-top-btn.show {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

/* WhatsApp (si ya lo tenías, queda igual) */
.whatsapp-fixed {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 35px;
  text-decoration: none;
  z-index: 9999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.whatsapp-fixed:hover {
  transform: scale(1.1);
  background-color: #20ba5a;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

@media (max-width: 600px) {
  .whatsapp-fixed {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 30px;
  }
}




/* =======================
   NAV LINKS (sidebar/menu)
======================= */
.nav-links ul{
  list-style:none;
  padding:0;
  margin:0;
}

.nav-links li{
.submenu li{ margin:6px 0; }                 /* antes 10px 0 */
}

.nav-links a{
  text-decoration:none;
  color:var(--color-azul);
  font-weight:500;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:8px 6px;
  border-radius:6px;
  transition:0.25s ease;
}

.nav-links a:hover{
  background:#f3f7fb;
}

/* link activo (si usas class="active" en el HTML) */
.nav-links a.active{
  color:var(--color-naranja);
}

/* también soporta tu clase anterior is-active */
.nav-links a.is-active{
  color:var(--color-naranja);
}

/* =======================
   DROPDOWN + ICONO
======================= */
.nav-links .dropdown > a{
  cursor:pointer;
}

.transition-icon{
  transition:transform .25s ease;
}

/* cuando abras el submenu, ponle .rotated al ícono con JS */
.transition-icon.rotated{
  transform:rotate(180deg);
}

/* =======================
   SUBMENU (colapsable)
======================= */
.submenu{
  max-height:0;
  overflow:hidden;
  transition:max-height .3s ease, padding .3s ease;
  background:#f9f9f9;
  padding-left:15px;
  border-radius:6px;
}

/* clase para mostrar (tu JS debe agregar/quitar .show) */
.submenu.show{
  max-height:400px;
  padding-top:10px;
  padding-bottom:10px;
  margin-top:8px;
}

.submenu li{
  margin:10px 0;
}

.submenu li a{
  font-size:14px;
  color:#666;
  padding:2px 4px;
  justify-content:flex-start; /* para que no intente separar iconos */
}

.submenu li a:hover{
  background:#eef3f8;
  color:#333;
}

.hvac-section {
    padding: 80px 20px;
    background-color: #ffffff;
}

.hvac-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Contenedor de las dos listas */
.hvac-content {
    flex: 2;
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dos columnas de texto */
    gap: 20px;
}

.check-list-hvac {
    list-style: none;
    padding: 0;
}

.check-list-hvac li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 20px;
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: left;
}

/* Icono de Check Azul */
.check-list-hvac li::before {
    content: '✔';
    position: absolute;
    left: 0;
    top: 2px;
    width: 22px;
    height: 22px;
    border: 1px solid #3498db;
    color: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border-radius: 2px;
}

/* Imagen lateral */
.hvac-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hvac-image img {
    max-width: 100%;
    height: auto;
    /* Ajuste para que se vea limpio como en la imagen */
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.05));
}

/* Responsivo */
@media (max-width: 1024px) {
    .hvac-content {
        grid-template-columns: 1fr; /* Una sola columna en tablets */
    }
}

@media (max-width: 768px) {
    .hvac-container {
        flex-direction: column;
    }
    
    .hvac-image {
        order: -1; /* La imagen sube en celulares */
        justify-content: center;
        margin-bottom: 30px;
    }
}