/* ===============================
   HEADER ENTERPRISE DARK
================================ */

.site-header{
  position: fixed;
  top: 0;
  z-index: 100;
  width: 100vw;
  height: 64px;

  display: flex;
  align-items: center;
  padding: 0 28px;

  /* MISMO COLOR QUE NAV */
  background: linear-gradient(
    180deg,
    rgba(3,3,3,.92),
    rgba(6,6,6,.98)
  );
}

/* ===============================
   LOGO / TITLE
================================ */

.header-link{
  display: inline-flex;
  align-items: center;
  gap: 4px;

  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .9px;
  text-transform: uppercase;

  color: #f9fafb;
  text-decoration: none;
}

.header-link::after{
  content:"";
  width: 6px;
  height: 6px;
  background: #ffffff;
  border-radius: 2px;
  margin-left: 6px;
}

.header-link span{
  font-weight: 400;
  color: #9ca3af;
}

.header-link:hover{
  color: #ffffff;
}

.header-link:hover span{
  color: #e5e7eb;
}

/* ===============================
   NAV DESKTOP
================================ */

.header-nav{
  margin-left: auto;
  display: flex;
  gap: 28px;
}

.dropdown{
  position: relative;
}

.drop-btn{
  font-family: inherit;
  font-weight: 500;

  background: none;
  border: none;
  cursor: pointer;

  color: #ffffff;
  letter-spacing: .6px;
  padding: 6px 10px;

  transition: color .2s ease;
}

.drop-btn:hover{
  color: #cbd5e1;
}

/* ===============================
   DESKTOP DROPDOWN
================================ */

.drop-content{
  position: absolute;
  top: 130%;
  right: 0;

  width: 200px;
  padding: 8px 0;

  display: flex;
  flex-direction: column;

  background: linear-gradient(
    180deg,
    rgba(8,8,8,.95)
  );

  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;

  transition: .22s ease;
}

.dropdown.active .drop-content{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.drop-content a{
  padding: 12px 18px;
  font-size: 13px;
  letter-spacing: .4px;

  color: #cbd5e1;
  text-decoration: none;

  transition: background .15s ease, color .15s ease;
}

.drop-content a:hover{
  background: rgba(255,255,255,.04);
  color: #ffffff;
}

/* ===============================
   HAMBURGER BUTTON
================================ */

.menu-toggle{
  display: none;
  margin-left: auto;

  font-size: 22px;
  background: none;
  border: none;

  color: #e5e7eb;
  cursor: pointer;
  z-index: 1100;
}

/* ===============================
   MOBILE + TABLET NAV
================================ */

@media (max-width: 1100px){

  .menu-toggle{
    display: block;
  }

  .header-nav{
    position: fixed;
    top: 64px;
    left: 0;

    width: 100vw;
    height: calc(100vh - 64px);

    display: none;
    flex-direction: column;

    /* 🔥 EXACTAMENTE EL MISMO FONDO QUE EL HEADER */
    background: #000000 !important;

    overflow-y: auto;
    -webkit-overflow-scrolling: touch;

    z-index: 999;
  }

  .header-nav.active{
    display: flex;
  }

  .dropdown{
    width: 100%;
  }

  .drop-btn{
    width: 100%;
    min-height: 56px;

    text-align: left;
    padding: 0 20px;

    /* 🔥 elimina la pestaña gris */
    background: transparent;
    border: none;
    box-shadow: none;
  }

  .drop-content{
    position: static;

    opacity: 1;
    transform: none;
    pointer-events: auto;

    display: none;

    /* MISMO FONDO, SIN GRIS */
    background: linear-gradient(
      180deg,
      rgba(3,3,3,.92),
      rgba(6,6,6,.98)
    );
  }

  .dropdown.active .drop-content{
    display: flex;
  }
}

/* ===============================
   LOCK SCROLL WHEN MENU OPEN
================================ */

body.menu-open{
  overflow: hidden;
}



/* ===============================
   TITLE SERVICE 
================================ */

.services-title{
  margin: 20px 0 24px;
  text-align: center;
  letter-spacing: 6px;
  font-size: 22px;
  font-weight: 500;
  color: #ffffff;
}

/* ===============================
   GRID
================================ */

.services-grid{
  max-width: 1280px;
  margin: 0 auto 24px;
  padding: 0 24px;

  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 48px;
  row-gap: 40px;
}

/* ===============================
   CARD
================================ */

.service-card{
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 420px;
  margin: 0 auto;
}

.service-card img{
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 20px;
}

/* ===============================
   TEXT
================================ */

.card-content h3{
  font-size: 14px;
  margin-bottom: 12px;
  color: #ffffff;
  text-align: center;
}

.card-content p{
  font-size: 11px;
  line-height: 1.6;
  color: #cbd5e1;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.card-content h2{
  font-size: 13px;
  margin-bottom: 12px;
  color: #ffffff;
  text-align: justify;
}
/* ===============================
   LISTS INSIDE SERVICE CARD
================================ */

.card-content ul{
  margin: 0 0 11px;
  padding-left: 0;
  list-style: none;
}

.card-content li{
  font-size: 11px;
  line-height: 1;
  color: #cbd5e1;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  margin-bottom: 6px;
}
.card-content li::before{
  content: "✓ ";
  color: #ffffff;
  font-weight: 600;
}
/* ===============================
   PANEL CLOSE (X)
================================ */
.panel-close{
  position: fixed;
  bottom: 24px;
  right: 24px;

  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 20px;
  line-height: 1;

  color: #ffffff;
  background: rgba(255,255,255,.08);

  border: none;
  border-radius: 50%;

  cursor: pointer;
  z-index: 120;

  backdrop-filter: blur(6px);
  transition: transform .2s ease, background .2s ease;
}

.panel-close:hover{
  background: rgba(255,255,255,.16);
  transform: scale(1.08);
}










/* ===============================
   TYPOGRAPHY BASE CONTACT
================================ */
.contact-info h2,
.contact-info p,
.contact-form,
.contact-form input,
.contact-form textarea,
.contact-form button{
  font-family: inherit;
  color: #ffffff;
}

/* ===============================
   CONTENT WRAPPER
================================ */
.contact-wrapper{
  max-width:1280px;
  margin:0 auto;
  padding:48px 14px;

  display:grid;
  grid-template-columns:1fr 1.4fr;
  gap:64px;

  min-height:100%;
  align-items:center;
}

/* ===============================
   LEFT INFO
================================ */
.contact-info h2{
  margin: 20px 0 24px;
  
  letter-spacing: 6px;
  font-size: 22px;
  font-weight: 500;
  color: #ffffff;
}

.contact-info p{
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom:8px;
  line-height: 1.6;
  
}

.contact-info h2,
.contact-info p{
  position:relative;
  top:-32px;
}


  
/* ===============================
   FORM LAYOUT
================================ */
.contact-form{
  display:flex;
  flex-direction:column;
  gap:22px;
  width:100%;
  max-width:100%;
}

.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
}

/* ===============================
   FIELD
================================ */
.field{
  position:relative;
  width:100%;
}

/* ===============================
   INPUT & TEXTAREA (WRITE SAFE)
================================ */
.contact-form input,
.contact-form textarea{
  width:100%;
  background:transparent !important;

  font-size:15.5px;
  line-height:1.5;
  padding:7px 0 11px 0;

  color:#e5e7eb !important;
  caret-color:#e5e7eb !important;

  border:none !important;
  outline:none !important;
  box-shadow:none !important;

  appearance:none !important;
  -webkit-appearance:none !important;
}

/* TEXTAREA */
.contact-form textarea{
  min-height:120px;
  resize:none;
}

/* ===============================
   FIELD LINE (PROPORTIONAL)
================================ */
.field::after{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;

  height:1px;
  background:rgba(255,255,255,.55);
  pointer-events:none;
}

/* ===============================
   FOCUS
================================ */
.contact-form input:focus,
.contact-form textarea:focus{
  color:#ffffff !important;
}

/* ===============================
   AUTOFILL FIX
================================ */
.contact-form input:-webkit-autofill,
.contact-form textarea:-webkit-autofill{
  -webkit-box-shadow:0 0 0 1000px transparent inset !important;
  -webkit-text-fill-color:#e5e7eb !important;
  caret-color:#e5e7eb !important;
  transition:background-color 9999s ease-in-out 0s;
}

/* ===============================
   PLACEHOLDER
================================ */
.contact-form input::placeholder,
.contact-form textarea::placeholder{
  color:rgba(255,255,255,.45) !important;
  opacity:1;
}

/* Chrome / Safari */
.contact-form input::-webkit-input-placeholder,
.contact-form textarea::-webkit-input-placeholder{
  color:rgba(255,255,255,.45) !important;
  -webkit-text-fill-color:rgba(255,255,255,.45) !important;
}

/* Firefox */
.contact-form input::-moz-placeholder,
.contact-form textarea::-moz-placeholder{
  color:rgba(255,255,255,.45) !important;
}

/* ===============================
   ERROR STATE
================================ */
.field input.error,
.field textarea.error{
  color:#ffb3c1 !important;
}

.field:has(input.error)::after,
.field:has(textarea.error)::after{
  background:#ff4d6d;
}

.error-msg{
  position:absolute;
  bottom:-16px;
  left:0;
  font-size:11px;
  color:#ff8fa3;
  display:none;
  white-space:nowrap;
}

.field input.error + .error-msg,
.field textarea.error + .error-msg{
  display:block;
}

/* ===============================
   BUTTON
================================ */
.contact-form button{
  background: linear-gradient(135deg, #0A6ED1, #0854a0);
  color: #ffffff;
  border: none;
  padding: 14px 36px;
  border-radius: 12px;

  font-weight: 600;
  font-size: 14px;
  letter-spacing: .3px;

  cursor: pointer;
  align-self: center;

  box-shadow:
    0 6px 16px rgba(10,110,209,.35),
    inset 0 1px 0 rgba(255,255,255,.25);

  transition: transform .2s ease, box-shadow .2s ease;
}

.contact-form button:hover{
  transform: translateY(-1px);
  box-shadow:
    0 10px 26px rgba(10,110,209,.45),
    inset 0 1px 0 rgba(255,255,255,.3);
}

/* ===============================
   CLOSE BUTTON
================================ */
.contact-close{
  position: fixed;
  bottom: 24px;
  right: 24px;

  width: 44px;
  height: 44px;

  background: transparent;
  color: #ffffff;
  font-size: 22px;

  border: none;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: color .2s ease, transform .2s ease;
  z-index: 100;
}

.contact-close:hover{
  color: #e5e7eb;
  transform: scale(1.15);
}

/* ===============================
   LOADER (INSIDE PANEL)
================================ */
.form-loader{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.75);

  display: none;
  align-items: center;
  justify-content: center;

  z-index: 200;
}

.form-loader.active{
  display: flex;
}

.spinner{
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255,255,255,.25);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin{
  to{ transform: rotate(360deg); }
}
/* ===============================
   SUCCESS CHECK OVERLAY X
================================ */
.success-check{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.75);

  display: none;
  align-items: center;
  justify-content: center;

  z-index: 300;
}

.success-check.active{
  display: flex;
}

.check-circle{
  width: 140px;
  height: 140px;
  border-radius: 50%;
  color: #ffffff;
  font-size: 72px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popCheck .35s ease-out;
}

@keyframes popCheck{
  from{
    transform: scale(.6);
    opacity: 0;
  }
  to{
    transform: scale(1);
    opacity: 1;
  }
}

/* ===============================
   SUCCESS MODAL (INSIDE PANEL)
================================ */
.success-modal{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.7);

  display: none;
  align-items: center;
  justify-content: center;

  z-index: 300;
}

.success-modal.active{
  display: flex;
}

.success-box{
  background: #0b0f16;
  padding: 32px 40px;
  border-radius: 20px;
  text-align: center;
  color: #e5e7eb;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  max-width: 360px;
}

.success-icon{
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #0A6ED1;
  color: #fff;
  font-size: 36px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.success-box h3{
  margin-bottom: 8px;
}

.success-box button{
  margin-top: 20px;
  padding: 10px 28px;
  border-radius: 10px;
  border: none;
  background: #0A6ED1;
  color: #fff;
  cursor: pointer;
}


/* ===============================
   SERVICES & CONTACT PANELS
================================ */

.services-panel,
.contact-panel{
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  padding-bottom: 32px;
  background: linear-gradient(
    180deg,
    rgba(3,3,3,.92),
    rgba(6,6,6,.98)
  );
  min-height: calc(95vh - 64px);
  max-height: calc(95vh - 64px);
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px);
  transition: opacity .35s ease, transform .35s ease;
  isolation: isolate;
}

.services-panel,
.contact-panel{
  transform: translateY(-48px);
  opacity: 0;
}
/* Hide scrollbar Chrome */
.services-panel::-webkit-scrollbar,
.contact-panel::-webkit-scrollbar{
  display:none;
}

/* OPEN STATE */
.services-panel.active,
.contact-panel.active{
  opacity:1;
  pointer-events:auto;
  transform:translateY(0);
}



@media (max-width: 1024px){

  /* ===============================
     PANELS = FULLSCREEN REAL
     (SIN TAPAR HEADER)
  ================================ */

 .services-panel,
  .contact-panel{
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;

    height: calc(100svh - 64px); /* 👈 CLAVE */
    max-height: calc(100svh - 64px);

    padding-bottom: 0;           /* 🔥 elimina empuje extra */

    background: #000000 !important;

    overflow-y: auto;
    overscroll-behavior: contain; /* 🔒 no arrastra fondo */
    -webkit-overflow-scrolling: touch;

    z-index: 90;
    isolation: isolate;
  }
  /* ===============================
     SERVICES
  ================================ */

  .services-grid{
    max-width: 420px;
    margin: 0 auto;
    padding: 24px 20px 64px;

    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  /* ===============================
     CONTACT
  ================================ */

  .contact-wrapper{
    max-width: 420px;
    margin: 0 auto;
    padding: 24px 20px 64px;

    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .contact-panel form{
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .contact-panel button{
    width: 100%;
    margin-top: 16px;
  }
  .contact-panel .form-grid{
    grid-template-columns: 1fr;   /* 👈 una sola columna */
    gap: 22px;
  }

  /* asegura que TODOS los fields ocupen el mismo ancho */
  .contact-panel .field{
    width: 100%;
  }
  .form-loader,
.success-check{
  position: fixed;
  top: 0;
  left: 0;

  width: 100vw;
  height: 100vh;        /* fallback */
  height: 100dvh;       /* viewport real mobile */

  background: rgb(0, 0, 0);

  z-index: 2147483647;  /* fuerza por encima de TODO */

  display: none;
  align-items: center;
  justify-content: center;

  /* 💥 CLAVE ABSOLUTA */
  margin: 0;
  padding: 0;
  transform: none;
  max-height: none;
}
.contact-close{
    display: none !important;
  }


}


/* ===============================
   LARGE SCREENS & LOW ZOOM
   (Desktop ≥ 1400px / Zoom < 100%)
================================ */

@media (min-width: 1400px){

  /* 🔑 CONTENEDORES (SERVICES + CONTACT) */
  .services-panel,
  .contact-panel{
    position: fixed;
    top: 64px;                         /* altura real del header */
    left: 0;
    width: 100%;
     height: fit-content;
     max-height: calc(100vh - 96px);     /* 👈 controla la reducción */
     overflow-y: hidden;  

   padding-top: 40px;  
     padding-bottom: 32px;  

    background: linear-gradient(
      180deg,
      rgba(3,3,3,.92),
      rgba(6,6,6,.98)
    );

    overflow-x: hidden;
  

    scrollbar-width: none;
    -ms-overflow-style: none;

    z-index: 90;
  }

  .services-panel{
  overflow-y: hidden !important;
}

  .services-panel::-webkit-scrollbar,
  .contact-panel::-webkit-scrollbar{
    display: none;
  }

  @media (min-width: 1600px){
  .services-panel,
  .contact-panel{
    padding-top: 32px;
    padding-bottom: 28px;
  }
}

  /* ===============================
     SERVICES CONTENT
  ================================ */

  .services-grid{
    max-width: 1480px;                /* aprovecha desktop grande */
    margin: 0 auto;
    padding: 0 48px;

    display: grid;
    grid-template-columns: repeat(3, minmax(380px, 1fr));
    column-gap: 56px;
    row-gap: 48px;
    justify-items: center;
  }

  .service-card{
    width: 100%;
    max-width: 460px;
    text-align: left;
  }

  .service-card img{
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 14px;
  }

  .card-content h3{
    font-size: 15.5px;
    margin-bottom: 8px;
  }

  .card-content p{
    font-size: 13.5px;
    line-height: 1.65;
  }
  .card-content li{
    font-size: 13.5px;
    line-height: 1;
  }

  /* ===============================
     CONTACT CONTENT
  ================================ */

  .contact-panel .contact-wrapper{
    max-width: 1480px;
    gap: 96px;   
    
  }

  .contact-panel form{
    margin-top: 32px;
  }
  .contact-form input,
.contact-form textarea{
  font-size: 16.5px;
  padding: 12px 0 14px;
}
.contact-info h2{
  font-size: 26px;
  letter-spacing: 8px;
}

.contact-info p{
  font-size: 15px;
  line-height: 1.75;
  max-width: 560px;
}


}


