/* ======= Box sizing global para evitar solapamientos inesperados ======= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ======= Estilos base ======= */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  font-size: 0.9rem;
  overflow-x: hidden;
}

/* ======= Encabezado y logo ======= */
header {
  background-color: #003366;
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

header img {
  height: 140px;
}

header .tagline {
  font-style: normal;
  font-size: 1.05rem;
  margin-top: 5px;
}

.tech-orange {
  color: #F47C2B;
}

/* ======= Navegación ======= */
nav {
  background-color: #003366;
  padding: 10px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 15px;
  flex-wrap: nowrap;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-weight: bold;
  transition: color 0.3s;
  font-size: clamp(0.72rem, 2vw, 0.88rem);
  display: inline-block;
  white-space: nowrap;
}

nav a:hover,
nav a.active {
  color: #F47C2B;
  text-decoration: underline;
}

/* ======= Contenido principal ======= */
main {
  padding: 40px 20px;
  max-width: 1200px;
  margin: auto;
  margin-top: 160px;
  box-sizing: border-box;
}

section {
  margin-bottom: 50px;
}

h1, h2, h3 {
  color: #003366;
}

h1 {
  font-size: 1.6rem;
}

h2 {
  font-size: 1.3rem;
}

h3 {
  font-size: 1.05rem;
}

/* ======= Títulos con acento naranja ======= */
.section-title {
  border-left: 6px solid #F47C2B;
  padding-left: 12px;
  color: #003366;
  font-size: 1.3rem;
  transition: transform 0.3s;
}

.section-title:hover {
  transform: translateX(5px);
}

/* ======= Columnas generales (index.php) ======= */
.columns,
.specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.column,
.specialties div {
  flex: 1 1 250px;
  background: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  font-size: 0.85rem;
  line-height: 1.4;
}

.column:hover,
.specialties div:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.column img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* ======= Grilla de 3 columnas (index.php) ======= */
.updated-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1140px;
  margin: 0 auto;
}

@media (max-width: 991px) {
  .updated-columns {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .updated-columns {
    grid-template-columns: 1fr;
  }
}

/* ======= Galería de Portfolio ======= */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 10px 0;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.item {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  font-size: 0.88rem;
  color: #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.item h3 {
  font-size: 1rem;
  margin: 10px 0;
  color: #003366;
}

.item a {
  color: #00449C;
  font-weight: bold;
  text-decoration: none;
  font-size: 0.88rem;
}

.item a:hover {
  color: #F47C2B;
}

/* Carrusel dentro de item */
.item .carrusel {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  margin-bottom: 10px;
  border-radius: 8px;
  background-color: #f5f5f5;
}

.item .carrusel-contenedor {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.item .carrusel-imagen {
  width: 100%;
  object-fit: contain;
  flex-shrink: 0;
}

/* ======= Highlight ======= */
.highlight {
  background-color: #fff;
  border-left: 6px solid #ff6600;
  border-right: 6px solid #005f99;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  font-size: 0.95rem;
  margin: 40px auto;
  text-align: center;
  max-width: 800px;
  animation: fadeIn 1s ease-in-out;
}

/* ======= Footer ======= */
footer {
  background-color: #003366;
  color: white;
  padding: 20px;
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  width: 100%;
  padding: 0 20px;
}

.footer-text {
  font-size: 0.85rem;
}

.footer-text em {
  font-style: italic;
}

.social-icons a {
  color: white;
  font-size: 1.1rem;
  margin-left: 15px;
  transition: color 0.3s;
}

.social-icons a:hover {
  color: #F47C2B;
}

/* ======= Botón volver ======= */
.boton-volver {
  display: block;
  text-align: center;
  margin: 30px auto 0;
  font-size: 0.85rem;
  color: #00449C;
  text-decoration: none;
  background-color: #f1f1f1;
  padding: 10px 18px;
  border-radius: 8px;
  width: fit-content;
  transition: background-color 0.3s, color 0.3s;
}

.boton-volver:hover {
  background-color: #00449C;
  color: white;
}

/* ======= Animación fade-in ======= */
.fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ======= Formulario contacto ======= */
.contact-form {
  max-width: 600px;
  margin: 40px auto;
  padding: 30px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-form h2 {
  text-align: center;
  color: #003366;
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.contact-form label {
  display: block;
  margin: 10px 0 5px;
  font-weight: bold;
  color: #003366;
  font-size: 0.88rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 0.88rem;
  margin-bottom: 15px;
  box-sizing: border-box;
}

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

.contact-form button {
  background-color: #00449C;
  color: white;
  border: none;
  padding: 12px 20px;
  font-size: 0.9rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

.contact-form button:hover {
  background-color: #F47C2B;
}

/* ======= Header estructural ======= */
.site-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 20px;
}

.site-header img {
  height: 90px;
}

/* ======= Menú principal ======= */
.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  background-color: #003366;
  padding: 8px 12px;
}

.main-nav a {
  color: white;
  background-color: #003366;
  padding: 6px 10px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.78rem;
  text-decoration: none !important;
  transition: background-color 0.3s ease, color 0.3s ease;
  white-space: nowrap;
}

.main-nav a:hover {
  background-color: #F47C2B;
  color: white;
}

.main-nav a.active {
  background-color: #002754;
  color: white;
}

/* ======= Texto flotante de fondo ======= */
.floating-words {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.floating-word {
  position: absolute;
  font-size: 2rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.05);
  animation-iteration-count: infinite;
  animation-timing-function: ease-in-out;
  white-space: nowrap;
  user-select: none;
}

/* Trayectorias distintas */
.floating-word:nth-child(1) { top: 20%; left: 10%; font-size: 2rem; animation: float1 18s infinite; }
.floating-word:nth-child(2) { top: 40%; left: 60%; font-size: 2.4rem; animation: float2 20s infinite; }
.floating-word:nth-child(3) { top: 65%; left: 30%; font-size: 1.8rem; animation: float3 22s infinite; }
.floating-word:nth-child(4) { top: 10%; left: 80%; font-size: 2.2rem; animation: float4 24s infinite; }

/* Animaciones de palabras flotantes */
@keyframes float1 { 0% {transform: translate(0,0) scale(1);} 25% {transform: translate(20px,-10px) scale(1.1);} 50% {transform: translate(-15px,15px) scale(1.05);} 75% {transform: translate(10px,-5px) scale(0.95);} 100% {transform: translate(0,0) scale(1);} }
@keyframes float2 { 0% {transform: translate(0,0) scale(1);} 30% {transform: translate(-25px,10px) scale(1.05);} 60% {transform: translate(15px,-20px) scale(1.1);} 90% {transform: translate(-10px,10px) scale(0.95);} 100% {transform: translate(0,0) scale(1);} }
@keyframes float3 { 0% {transform: translate(0,0) scale(1);} 20% {transform: translate(10px,-15px) scale(1.05);} 50% {transform: translate(-10px,10px) scale(0.95);} 80% {transform: translate(5px,-5px) scale(1);} 100% {transform: translate(0,0) scale(1);} }
@keyframes float4 { 0% {transform: translate(0,0) scale(1);} 25% {transform: translate(-20px,-10px) scale(1.1);} 50% {transform: translate(15px,10px) scale(1);} 75% {transform: translate(-10px,5px) scale(0.9);} 100% {transform: translate(0,0) scale(1);} }

/* ======= Margen dinámico para header fijo en móvil ======= */
@media (max-width: 768px) {
  main {
    margin-top: 80px;
  }
}


@media (max-width: 768px) {
  body {
    padding-top: 90px;
  }
  main {
    margin-top: 0;
  }
}

.linkeable {
  position: relative;
}

.linkeable .overlay-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}







/* #############################################3  */

/* ===== Header y menú lateral ===== */
.fixed-header { background-color: #003366; }
.fixed-header .site-header{
  position: relative;
  display: flex; align-items: center; justify-content: flex-start;
  padding: .5rem 1rem; min-height: 60px;
  overflow: hidden;
}

.dt-menu-toggle{
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 32px; height: 28px; padding: 0; background: none; border: none; cursor: pointer;
  z-index: 3;
}
.dt-menu-toggle .dt-bar{
  display:block; height:2px; width:100%;
  background: rgba(255,255,255,0.75); border-radius: 2px;
  transition: background .2s ease, transform .2s ease;
}
.dt-menu-toggle:hover .dt-bar{ background: #F47C2B; }
body.dt-menu-open .dt-menu-toggle .dt-bar{ background: #002754; }

.fixed-header .site-header > img{
  height: 40px; margin-left: 48px; position: relative; z-index: 2;
}

.dt-hex-wrap{ position: absolute; inset: 0; pointer-events: none; z-index: 1; }
#dtHex{
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  background: transparent; mix-blend-mode: screen; opacity: 0.22;
}

.dt-side-overlay{
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  opacity: 0; pointer-events: none; transition: opacity .2s ease; z-index: 9998;
}
.dt-side-menu{
  position: fixed; top: 0; left: 0; height: 100dvh; width: min(86vw, 340px);
  background: #0b1a2b; color: #e8f3ff;
  transform: translateX(-100%); transition: transform .25s ease; z-index: 10000;
  display: flex; flex-direction: column; padding: 1rem .75rem 2rem;
  box-shadow: 16px 0 32px rgba(0,0,0,.35);
}
.dt-side-header{
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding-bottom: .6rem; border-bottom: 1px solid rgba(255,255,255,.08);
}
.dt-side-header h2{ font-size: 1rem; margin: 0; font-weight: 600; letter-spacing: .04em; opacity: .92; }

.dt-side-close{
  position: relative; width: 36px; height: 36px; border: none; border-radius: 8px;
  background: none; color: #e8f3ff; cursor: pointer;
}
.dt-side-close .dt-x,
.dt-side-close .dt-x::before{
  position: absolute; top: 50%; left: 50%; width: 18px; height: 2px; content: "";
  background: rgba(255,255,255,0.9); transform-origin: center;
}
.dt-side-close .dt-x{ transform: translate(-50%, -50%) rotate(45deg); }
.dt-side-close .dt-x::before{ transform: translate(-50%, -50%) rotate(-45deg); }

.dt-side-list{ list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.dt-side-list a{
  display: flex; align-items: center; gap: .6rem;
  text-decoration: none; color: #e8f3ff; padding: .7rem .6rem; border-radius: 8px;
  transition: background .15s ease, color .15s ease, transform .08s ease;
}
.dt-side-list a:hover{
  background: rgba(244,124,43,.15);
  color: #F47C2B;
}
.dt-side-list a:active{ transform: translateY(1px); }
.dt-side-list a.active{
  background: #002754;
  color: #ffffff;
}

body.dt-menu-open .dt-side-overlay{ opacity: 1; pointer-events: auto; }
body.dt-menu-open .dt-side-menu{ transform: translateX(0); }









/* ====== Header fijo + menú lateral (parcial header.php) ====== */
:root{
  --header-bg: #003366;          /* color del fondo del header (ajusta si cambia tu paleta) */
  --header-h: 88px;              /* alto visual del header (logo grande) */
  --gap-below-header: 12px;      /* “aire” leve entre header y contenido */
  --menu-bg: #0b1a2b;
  --menu-text: #e8f3ff;
  --hover-orange: #F47C2B;
  --active-blue: #002754;
}

/* El header queda fijo y no tapa el contenido gracias al padding-top */
.fixed-header{
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  background-color: var(--header-bg);
}
.fixed-header .site-header{
  display: flex; align-items: center; justify-content: space-between;
  padding: .5rem 1rem; min-height: var(--header-h);
}

/* Espaciado global: leve debajo del header en todas las páginas */
body{
  padding-top: calc(var(--header-h) + var(--gap-below-header));
}

/* Logo grande (ajustá el alto si querés) */
.fixed-header .site-header img{
  height: 80px;
}

/* Botón hamburguesa */
.menu-toggle{
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 34px; height: 28px; background: none; border: none; cursor: pointer; outline: none;
}
.menu-toggle .bar{
  height: 2px; width: 100%;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: background .2s ease;
}
.menu-toggle:hover .bar{ background: var(--hover-orange); }

/* Menú lateral (izquierda), VERTICAL y sin subrayado */
.side-menu{
  position: fixed; top: 0; left: -280px; width: 280px; height: 100%;
  background: var(--menu-bg); color: var(--menu-text);
  padding: 20px; box-shadow: 4px 0 12px rgba(0,0,0,.3);
  transition: left .3s ease; z-index: 10000; overflow-y: auto;
}
.side-menu.open{ left: 0; }

.side-menu .side-list{
  list-style: none; margin: 0; padding: 0;
  display: flex !important; flex-direction: column !important; gap: 8px !important;
}
.side-menu .side-list > li{ display: block !important; }

.side-menu .side-list > li > a{
  display: block !important; width: 100% !important;
  text-decoration: none !important;
  color: var(--menu-text) !important;
  padding: 10px 0; border-radius: 6px;
  transition: color .15s ease, background-color .15s ease, transform .08s ease;
}
.side-menu .side-list > li > a:hover{
  color: var(--hover-orange) !important;
  background: rgba(244,124,43,.15) !important;
}
.side-menu .side-list > li > a:active{ transform: translateY(1px); }



/* refuerzo suave por si alguna vista pisa márgenes de títulos */
main h1, main h2, main h3 { margin-top: 0.4em; }



/* ===== Espaciado global seguro para header fijo ===== */
:root{
  /* Alto real del header (logo 80px + paddings). Ajustá si tu header crece o achica. */
  --header-h: 92px;
  /* “Aire” leve extra entre header y contenido */
  --gap-below-header: 20px;
}

/* Asegura que el contenedor del header tenga ese alto mínimo */
.fixed-header .site-header{
  min-height: var(--header-h);
}

/* Empuja TODO el contenido por debajo del header fijo + un respirito */
body{
  padding-top: calc(var(--header-h) + var(--gap-below-header)) !important;
}

/* Si alguna página tenía márgenes negativos o muy chicos en títulos, suavizamos */
h1, h2, h3{
  margin-top: 0.4em;
}

/* Cuando navegás a anclas (#seccion), evita que el header tape el título */
[id]{
  scroll-margin-top: calc(var(--header-h) + var(--gap-below-header));
}

/* ===== Menú hamburguesa lateral: columna y sin subrayado (por si algún global lo pisa) ===== */
.side-menu .side-list{
  list-style: none; margin: 0; padding: 0;
  display: flex !important; flex-direction: column !important; gap: 8px !important;
}
.side-menu .side-list > li{ display: block !important; }
.side-menu .side-list > li > a{
  display: block !important;
  text-decoration: none !important;
  padding: 10px 0;
}

/* Si en alguna hoja había reglas que ponían el menú horizontal, esto gana prioridad. */




/* ==== ESPACIADO GLOBAL BAJO HEADER + MENU LATERAL SEGURO ==== */
:root{
  /* Alto real del header. Con logo 80px, 92–96px suele ir bien */
  --header-h: 96px;
  /* Aire suave entre header y contenido */
  --gap-below-header: 14px;
}

/* Header fijo y alto mínimo */
.fixed-header{
  position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
  /* tu color ya está definido en tu CSS; no lo tocamos */
}
.fixed-header .site-header{ min-height: var(--header-h); }

/* Empuja TODO el contenido por debajo del header + aire */
html, body{ overflow-x: hidden; } /* evita scroll horizontal si hay off-canvas */
body{ padding-top: calc(var(--header-h) + var(--gap-below-header)) !important; }

/* ===== Menú lateral (cerrado NO tapa nada) ===== */
.side-menu{
  position: fixed; top: 0; left: 0; height: 100dvh; width: 280px;
  background: #0b1a2b; color: #e8f3ff;
  /* en lugar de mover con left:-280px, usamos transform + visibility */
  transform: translateX(-100%); 
  visibility: hidden; 
  pointer-events: none;
  transition: transform .3s ease, visibility 0s linear .3s; /* visible al final de la animación inversa */
  z-index: 10000; 
  padding: 20px; box-shadow: 4px 0 12px rgba(0,0,0,.3);
  overflow-y: auto;
}
/* Abierto: aparece, recibe clics y no tapa fuera de lo visible */
.side-menu.open{
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
  transition: transform .3s ease; /* sin delay al abrir */
}

/* Lista SIEMPRE VERTICAL y sin subrayado (vence reglas globales) */
.side-menu .side-list{
  list-style: none; margin: 0; padding: 0;
  display: flex !important; flex-direction: column !important; gap: 8px !important;
}
.side-menu .side-list > li{ display: block !important; }
.side-menu .side-list > li > a{
  display: block !important; width: 100% !important;
  text-decoration: none !important;
  color: #e8f3ff !important;
  padding: 10px 0; border-radius: 6px;
  transition: color .15s ease, background-color .15s ease, transform .08s ease;
}
.side-menu .side-list > li > a:hover{
  color: #F47C2B !important;
  background: rgba(244,124,43,.15) !important;
}
.side-menu .side-list > li > a:active{ transform: translateY(1px); }


