



/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* BODY */
body {
  background-color: var(--bg-color);
  overflow-x: hidden;
  font-family: var(--font-pangram);
  color: var(--primary-color);
}


/* HEADER */
/* HEADER BASE */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1.5rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  z-index: 100;
}

.logo-img {
  height: 140px;
  width: auto;
}

.header-buttons {
  display: flex;
  gap: 1.2rem;
  align-items: center;
}


/* === BOTÓN MENÚ === */
.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 2px solid #f5f5f5;
  border-radius: 50px;
  background: transparent;
  padding: 14px 65px;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 64px;
}

.menu-text {
  font-family: "Pangram", sans-serif;
  font-weight: 300;
  font-size: 18px;
  color: #f5f5f5;
  letter-spacing: 0.5px;
}

/* Icono hamburguesa */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 20px;
  transition: all 0.3s ease;
}

.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: #f5f5f5;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hover: las líneas se expanden */
.menu-btn:hover .hamburger span:nth-child(1) {
  width: 26px;
}
.menu-btn:hover .hamburger span:nth-child(2) {
  width: 18px;
}
.menu-btn:hover .hamburger span:nth-child(3) {
  width: 26px;
}

/* === BOTÓN CONTACTO === */
.contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 2px solid #00254D;
  border-radius: 50px;
  background-color: #00254D;
  color: #f5f5f5;
  padding: 14px 36px;
  text-decoration: none;
  font-family: "Pangram", sans-serif;
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
  height: 64px;
  overflow: hidden;
  position: relative;
}

/* Círculo con flecha */
.circle-arrow {
  width: 40px;
  height: 40px;
  border-radius: 100%;
  background-color: #FDDF8B;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.arrow {
  color: #00254D;
  font-size: 21px;
  position: absolute;
  transition: transform 0.6s ease, opacity 0.3s ease;
  font-weight: 10;
}

/* Animación de flecha al hover */
.contact-btn:hover .arrow {
  animation: arrow-slide 0.6s ease;
}

@keyframes arrow-slide {
  0%   { transform: translateX(0); opacity: 1; }
  40%  { transform: translateX(15px); opacity: 0; }
  60%  { transform: translateX(-15px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}


/* ==============================
   FULLSCREEN MENU OVERLAY
============================== */
/* ==============================
   FULLSCREEN MENU OVERLAY
============================== */
/* === OVERLAY: versión centrada y compatible con animaciones originales === */
.menu-overlay {
  position: fixed;
  inset: 0;                    /* top:0; right:0; bottom:0; left:0 */
  width: 100vw;
  height: 100dvh;              /* dinámico para móviles */
  background-color: #00254D;
  z-index: 99999;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.45s ease, visibility 0.2s ease;
  pointer-events: none;        /* inactivo mientras oculto */
  overflow: visible;           /* evita recortes del interior */
  -webkit-font-smoothing: antialiased;
}

/* cuando está visible */
.menu-overlay.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;        /* habilita interacción */
}

/* botón cerrar (mantiene tu estilo) */
.menu-overlay .close-btn {
  position: absolute;
  top: 40px;
  right: 50px;
  font-size: 2.5rem;
  color: #f5f5f5;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 100000;
  transition: transform 0.35s ease;
}
.menu-overlay .close-btn:hover { transform: rotate(90deg); }

/* CONTENEDOR INTERNO: centra TODO, sin tocar tu nav */
.overlay-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%); /* centro exacto */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  padding: 0 5vw; /* mantiene espacio lateral en móviles */
  pointer-events: none; /* por seguridad; los links individuales tendrán pointer-events:auto */
}

/* nav centrado y con gap responsive (mantiene tu reducción cuando .active) */
.overlay-nav {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 6vw, 100px); /* mantiene el feeling grande pero responsivo */
  text-align: center;
  pointer-events: auto; /* habilita interacción dentro */
  margin: 0;
  padding: 0;
}

/* LINKS: mantengo fonts grandes, pseudo + y hover, pero aseguro line-height y pointer */
.overlay-link {
  position: relative;
  font-family: "Pangram", sans-serif;
  font-weight: 300;
  font-size: clamp(48px, 8vw, 80px); /* conserva tu escala original */
  color: #f5f5f5;
  text-decoration: none;
  letter-spacing: -2px;
  line-height: 0.95;       /* compacto pero legible */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15em 0.6em;   /* evita que el texto quede inaccesible para hover */
  transition: color 0.25s ease, transform 0.25s ease;
  pointer-events: auto;
  -webkit-tap-highlight-color: transparent;
}

/* Pseudos '+' laterales (mantengo tu animación, solo uso transform para movimiento) */
/* Íconos + laterales visibles y con movimiento suave */
.overlay-link::before,
.overlay-link::after {
  content: "+";
  position: absolute;
  font-size: 3rem;
  color: #f5f5f5;
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.3s ease;
  pointer-events: none;
}

.overlay-link::before {
  left: -1.8em;
  transform: translateX(-15px);
}

.overlay-link::after {
  right: -1.8em;
  transform: translateX(15px);
}

.overlay-link:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.overlay-link:hover::after {
  opacity: 1;
  transform: translateX(0);
}


/* efecto visual de hover (preserva tu no-cambio-de-color si quieres mantenerlo, aquí doy una ligera escala) */
.overlay-link:hover {
  color: #f5f5f5; /* mantenemos mismo color por defecto */
  transform: translateY(-4px) scale(1.03);
}

/* cuando overlay activo podrías reducir gap (si necesitas el efecto original, mantiene reducción) */
.menu-overlay.active .overlay-nav {
  gap: clamp(1rem, 3vw, 35px);
}





/* ===== Overlay centrado sin alterar tipografía ni diseño ===== */
.menu-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-overlay .overlay-inner {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh; /* usa toda la altura visible */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* <-- centra verticalmente */
  transform: none !important; /* elimina desplazamientos previos */
}

.menu-overlay .overlay-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.8rem);
}

#menuOverlay,
#menuOverlay .overlay-inner,
#menuOverlay .overlay-nav {
  min-height: 100vh !important; /* garantiza altura total */
  height: 100vh !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

#menuOverlay .overlay-inner {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100%;
}








/* === SERVICIOS === */

*{
    box-sizing: border-box;
}

html, body{
  
    margin: 0;
    padding: 0;
    background: #1b1b1b;
    color: #f5f5f5;
    font-size: 30px;
    font-family: "Pangram", sans-serif;
}

h1 {

font-size: 90px;
margin: 0px;
line-height: 75px;
font-weight: 700;
}

h2 {
    font-size: 60px;
    margin: 0px;
    font-weight: 700;
}

a {
    color: #000000;
    text-decoration: none;
    font-weight: 300;
}

p{
    font-weight: 100;
    color: #000000;
    margin-top: 0vh; 
}


section {
    position: relative;
    width:100%;
    height: calc(100vh -100px);
    top: 100px;
    z-index: 2;
}

section.sticky {
    position: sticky;
    margin-top: 100px;
}

section.full-screen {
    height: 100vh;
    top: 0;
    margin-top: 0;
    z-index: 3;
}

/* navigation */
nav{
    position: fixed;
    width: 100%;
    height: 100px;
    top: 0;
    left: 0;
    font-size: 20px;
    z-index: 1;
}

nav ul {
    display: flex;
    align-items: center;
    width: 100%;
    height:100%;
    margin: 0;
    padding: 0;
}

nav ul li {
    list-style: none;
    margin-left: 45px;
}

nav ul li a {
    color: #ffffff;
    
}

/* about section */

section.about {
    display: flex;
    width: 100%;
    height: 91vh;
    padding-top: 100px; /* aumenta este valor para más espacio arriba */
}

section.about .empty {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-basis: 37.5vw;       /* ancho fijo relativo, igual que abajo */
    margin: 0;                /* quita márgenes */
    background: #FDDF8B;
    border-radius: 100px;
    padding: 6.25vw;
}

section.about article {
    flex: 1;
    display: flex;
    flex-direction: column;
    
}

section.about article .title { 
    flex: 2;
    display: flex;
    align-items: flex-end;
    background: #013D7A;
    border-radius: 100px;
    padding: 5.25vw;
}

section.about article .description {
    flex: 1;
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 100px;
    padding: 5.25vw;
    color: #000000;
    
}

section.service figure {
    display: flex;
    flex-direction: column; /* importante para que figure sea columna */
    align-items: center;    /* mantiene la imagen centrada */
    justify-content: center;
}

section.service figure .figure-text {
    align-self: flex-start;  /* alinea el texto a la izquierda */
    margin-top: 12vh;        /* separación de la imagen */
    padding-left: 5vw;      /* separación del borde izquierdo */
    font-size: clamp(16px, 3.5vw, 30px);
       /* tamaño del texto */
    color: #f5f5f5;          /* color del texto */
    font-weight: 350;
}

section.service .text h3 {
    font-size: 36px;
    margin: 10px 0 5px 0;
    font-weight: 600;
    color: #013D7A; /* o el color que quieras */
    margin-top: 5vh; 
}





/* service section */

section.service article {
    display: flex;
    width: 100%;
    height: 90vh
}

section.service figure {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-basis: 45vw; /* más pequeño que antes */
    margin: 0;
    background: #d0ff94;
    border-radius: 100px;
}

section.service figure img {
    width:50%;
}

section.service .text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 2;
    background: #f5f5f5;
    padding: 5.25vw;
    border-radius: 100px;
}

section.service .text a {
    font-family: monospace;
}

/* service section overrides */

section.service.service-html figure {
    background: #013D7A;
}


section.service.service-html .text h2,
section.service.service-html .text a {
    color: #013D7A;
}

section.service.service-css figure {
    background: #00254D;
}

section.service.service-css .text h2,
section.service.service-css .text a {
    color: #00254D;
}

section.service.service-js figure {
    background: #013D7A;
}

section.service.service-js .text h2,
section.service.service-js .text a {
    color: #013D7A;
}

section.service.service-sis figure {
    background: #00254D;
}

section.service.service-sis .text h2,
section.service.service-sis .text a {
    color: #00254D;
}

section.service.service-pro figure {
    background: #013D7A;
}

section.service.service-pro .text h2,
section.service.service-pro .text a {
    color: #013D7A;
}


/* contact section  */

section.contact {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #00254D;
    border-radius: 45px;
    width: 100%;
    height: 100vh

}

section.contact a {
    font-size: 100px;
    color: #ffffff;
}












/* SOLO ÍCONO EN MÓVIL */
@media (max-width: 768px) {
  .menu-btn .menu-text {
    display: none !important;   /* esconde la palabra MENÚ */
  }

  .menu-btn {
    padding: 0 !important;       /* quita bordes extra */
    background: none !important; /* sin rectángulo */
  }

  .hamburger span {
    background-color: #f5f5f5;   /* asegúrate del color */
  }
}



@media (max-width: 768px) {
  .menu-btn {
    width: 40px !important;
    height: 40px !important;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hamburger {
    transform: scale(0.8); /* hace más pequeño el ícono */
  }
}


/* ================================
   HEADER RESPONSIVE PARA MÓVIL
   ================================ */
@media (max-width: 768px) {

  /* Logo más pequeño */
  .logo-img {
    width: 110px !important;   /* antes era ~150–180px */
    height: auto;
  }

  /* Ocultar el texto "CONTACTO" y dejar solo la flecha */
  .contact-btn .contact-text {
    display: none !important;
  }

@media (max-width: 768px) {
  .contact-btn {
    display: none !important;
  }
}

  /* Ajustes de posición del header */
  .header {
    padding: 20px 22px !important;
  }

  .header-buttons {
    gap: 14px;
  }
}





/* ============================================
   TIPOGRAFÍAS RESPONSIVAS - AJUSTE GLOBAL
=============================================== */
h1 {
  font-size: clamp(40px, 8vw, 90px);
  line-height: clamp(40px, 7vw, 75px);
}

h2 {
  font-size: clamp(28px, 6vw, 60px);
}

h3 {
  font-size: clamp(20px, 4vw, 36px);
}

p, .figure-text {
  font-size: clamp(16px, 3vw, 30px);
}


/* ============================================
   SECCION CONTACTO
=============================================== */

/* ============================
   CONTACT — RESPONSIVE
============================= */
@media (max-width: 900px) {

  section.contact {
    flex-direction: column;  /* vertical */
    height: 100vh;           /* sigue ocupando toda la pantalla */
    padding: 40px 20px;
    border-radius: 30px;  /* asegura pantalla completa */
    text-align: center;
  }

  /* FIX para Safari: corregir salto del sticky en section.contact */
section.contact {
    transform: translateZ(0);      /* fuerza nueva capa */
    -webkit-transform: translateZ(0);
    will-change: transform;        /* Safari necesita esto */
    backface-visibility: hidden;   /* previene saltos de pintura */
    -webkit-backface-visibility: hidden;
}


  section.contact a {
    font-size: clamp(25px, 7.5vw, 50px);
    line-height: 1.1;
    word-break: break-word;
  }
}

@media (max-width: 480px) {

  section.contact a {
    font-size: clamp(19px, 8vw, 27px);
  }
}

@media (max-width: 600px) {
  section.service figure .figure-text {
    font-size: clamp(14px, 4vw, 22px);
    padding-left: 4vw;
    padding-left: 7vw;
    margin-top: 6vh;
  }
}






/* ============================================
   MOBILE/TABLET STICKY — Alturas controladas
   Imagen arriba + Texto abajo SIN empalmar
=============================================== */
@media (max-width: 992px) {

  /* Cada sección ocupa pantalla completa */
  section.service {
    height: auto !important;
    min-height: 100vh;
    padding-bottom: 6vh;
    display: flex;
    align-items: stretch;
  }

  /* ARTICLE en columna */
  section.service article {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 1px;
    align-items: stretch;
  }

  /* ========================================
     FIGURE (recuadro de la imagen)
     — altura fija
     — radius completo
  ==========================================*/
  section.service figure {
    width: 100%;
    flex: none;
    min-height: 28vh;
    height: auto;
    padding: 7vw 5vw 6vw;
    border-radius: 40px !important;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  section.service figure img {
    width: min(48vw, 220px);
    max-width: 220px;
  }

  section.service figure .figure-text {
    width: 100%;
    max-width: 34ch;
    font-size: clamp(13px, 3.2vw, 18px);
    margin-top: 1.8vh !important;
    padding-left: 0 !important;
    text-align: center;
    line-height: 1.35;
    align-self: center;
  }

  /* ========================================
     TEXT (recuadro de texto)
     — altura fija
     — radius completo
  ==========================================*/
  section.service .text {
    width: 100%;
    flex: none;
    min-height: 54vh;
    height: auto;
    padding: 5vw 6vw 6vw;
    border-radius: 40px !important;
    margin: 0 !important;
    overflow: visible;
    justify-content: flex-start;
  }

  /* Tipografías más chicas para evitar empalme */
  section.service .text h2 {
    font-size: clamp(24px, 4.8vw, 32px);
    line-height: 1.02;
  }

  section.service .text h3 {
    font-size: clamp(18px, 3.8vw, 23px);
    margin-top: 1.6vh;
    margin-bottom: 0.45rem;
  }

  section.service .text p {
    font-size: clamp(14px, 3.2vw, 17px);
    line-height: 1.42;
    overflow-wrap: break-word;
  }

  /* Radius global */
  section.about article .title,
  section.about article .description,
  section.contact {
    border-radius: 40px !important;
  }
}

@media (max-width: 600px) {
  section.service {
    min-height: auto;
    padding-bottom: 5vh;
  }

  section.service figure {
    min-height: 26vh;
    padding: 8vw 6vw 6vw;
    border-radius: 28px !important;
  }

  section.service figure img {
    width: min(52vw, 200px);
  }

  section.service .text {
    min-height: auto;
    padding: 6vw 6vw 7vw;
    border-radius: 28px !important;
    margin-top: 0 !important;
  }

  section.service .text h2 {
    font-size: clamp(22px, 7.2vw, 28px);
  }

  section.service .text h3 {
    font-size: clamp(16px, 5vw, 20px);
  }

  section.service .text p,
  section.service figure .figure-text {
    font-size: clamp(13px, 3.9vw, 16px);
    line-height: 1.4;
  }
}


/* ============================================
   RESPONSIVE – Ajuste exclusivo para .about .empty
=============================================== */
@media (max-width: 992px) {

  section.about .empty {
    border-radius: 50px !important;   /* antes era 100px */
    padding: 10vw;                     /* reduce la altura visual */
  }


}

@media (max-width: 992px) {

  section.about {
    padding-top: 30px !important; /* antes 100px */
    height: auto !important;
    min-height: 85vh; /* sigue llenando pantalla pero sin tanto espacio vacío */
  }



  
}

/* Safari-friendly viewport fallback y transiciones suaves */
.menu-overlay {
  /* conserva 100dvh si quieres, pero añade fallback para Safari */
  height: 100dvh;
  height: 100vh;
}

/* Transiciones genéricas para secciones para que la aparición sea suave */
section.service,
section.contact {
  will-change: opacity, transform;
  transition: opacity 0.55s cubic-bezier(.2,.9,.3,1),
              transform 0.55s cubic-bezier(.2,.9,.3,1);
  /* estado inicial: invisible hasta que JS active la clase visible */
  opacity: 0;
  transform: translateY(20px);
}

/* Clase que aplicaremos desde JS cuando la sección entre en pantalla */
section.service.visible,
section.contact.visible {
  opacity: 1;
  transform: translateY(0);
}








/* ===== WHATSAPP WRAPPER ===== */
/* ===== WHATSAPP WRAPPER ===== */

.whatsapp-wrapper {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
}

/* ===== BOTÓN VERDE ===== */

.whatsapp-float {
  width: 65px;
  height: 65px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* Hover elegante */
.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

/* ===== MENSAJE ===== */

.whatsapp-tooltip {
  position: absolute;
  right: 80px;
  bottom: 14px;
  background: #00254D;
  color: #fff;
  padding: 12px 16px;
  font-size: 13px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.4s ease;
  pointer-events: none;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.whatsapp-tooltip::after {
  content: "";
  position: absolute;
  right: -6px;
  bottom: 14px;
  width: 12px;
  height: 12px;
  background: #00254D;
  transform: rotate(45deg);
}

.whatsapp-tooltip.active {
  opacity: 1;
  transform: translateX(0);
}

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

@media (max-width: 600px) {

  .whatsapp-wrapper {
    bottom: 18px;
    right: 18px;
  }

  .whatsapp-float {
    width: 58px;
    height: 58px;
  }

  .whatsapp-float img {
    width: 28px;
    height: 28px;
  }

  .whatsapp-tooltip {
    font-size: 12px;
    right: 70px;
  }
}
