/*==========================================================
  style.css â€” Estilos para MIGDATA
==========================================================*/

/*---------------------
  Importar tipografÃ­as
---------------------*/

@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;600;700&family=Inter:wght@300;400;600&family=Orbitron:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Orbitron:wght@400;700&display=swap');

/*---------------------
  Variables de color
---------------------*/
:root {
  /* Fondo y texto */
  --bg-color:      #070a0f;
  --text-color:    #e0e0e0;
  --subtext-color: #a0a0a5;

  /* Neon colors */
  --neon-blue:     #00d9ff;
  --neon-cyan:     #00D4FF;
  --neon-purple:   #c86dd7;
  --neon-green:    #39ff14;

  /* Espaciados */
  --spacer:        1.5rem;

  /* Ancho mÃ¡ximo */
  --max-width:     1200px;
}

/*---------------------
  Reset & Base
---------------------*/
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Exo 2', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/*---------------------
  Contenedor central
---------------------*/
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/*---------------------
  Header / Navbar
---------------------*/
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative; /* importante para el menú desplegable */
  padding: var(--spacer) 0;
  flex-wrap: nowrap; /* evita que los hijos bajen de línea */

}

.logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.75rem;
  color: var(--neon-blue);
  text-shadow: 0 0 8px var(--neon-blue), 0 0 16px var(--neon-blue);
}

.nav-links li {
  display: inline-block;
  margin-left: var(--spacer);
}

.nav-links a {
  font-weight: 500;
  transition: color .3s;
}

.nav-links a:hover {
  color: var(--neon-cyan);
}

.btn-contact {
  padding: .5rem 1.25rem;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple)), rgba(0, 0, 0, 0.2);
  background-blend-mode: multiply;
  color: #fff;
  font-weight: 500;
  transition: filter .3s;
}

.btn-contact:hover {
  box-shadow: 0 0 8px var(--neon-cyan);
}


/*---------------------
  Botones generales
---------------------*/
.btn {
  display: inline-block;
  font-weight: 600;
  border-radius: 30px;
  text-align: center;
  transition: all .3s;
}

.btn-primary {
  padding: .75rem 2rem;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-cyan));
  color: #000;
  box-shadow: 0 0 8px var(--neon-cyan);
}

.btn-primary:hover {
  padding: .75rem 2rem;
  color: var(--neon-cyan);
  background: transparent;
  box-shadow: 0 0 8px var(--neon-cyan);
}

.btn-outline {
  padding: .75rem 2rem;
  border: 2px solid var(--neon-purple);
  color: var(--neon-purple);
  background: transparent;
  box-shadow: 0 0 8px var(--neon-purple);
}

.btn-outline:hover {
  background: var(--neon-purple);
  color: #000;
}

.ancho-fijo {
  width: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/*---------------------
  SecciÃ³n Hero
---------------------*/
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.grid-bg {
  position: absolute;
  inset: 0;
  background: url(../Images/bg-grid.png) center center / cover no-repeat;
  opacity: 0.2;
  z-index: 0; /* no estaba antes */
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 4rem; /* para compensar el header fijo */
}

.hero__title {
  font-family: 'Orbitron', sans-serif;
  font-size: 5.5rem;
  margin-bottom: 0.rem;
}

.glow-text {
  text-shadow: 0 0 2px currentColor, 0 0 10px currentColor;
}

.glow-text-less {
  text-shadow: 0 0 0.5px currentColor, 0 0 10px currentColor;
}

.text-neon-blue   { color: var(--neon-blue); }
.text-neon-cyan   { color: var(--neon-cyan); }
.text-neon-purple { color: var(--neon-purple); }
.text-neon-green  { color: var(--neon-green); }

.hero__subtitle {
  font-size: 1.5rem;
  max-width: 700px;
  margin: 0 auto var(--spacer);
  margin-bottom: .8rem;
}

.hero__description {
  color: var(--subtext-color);
  max-width: 600px;
  margin: 0 auto 4rem;
}

.hero__buttons {
  margin-top: var(--spacer);
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  margin-top: 3rem;
}

.scroll-icon {
  display: inline-block;
  width: 24px;
  height: 40px;
  border: 2px solid var(--neon-cyan);
  border-radius: 12px;
  position: relative;
}
.scroll-icon::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: var(--neon-cyan);
  border-radius: 2px;
  animation: scroll-pulse 2s infinite;
}
@keyframes scroll-pulse {
  0%   { top: 6px; opacity: 0; }
  50%  { top: 18px; opacity: 1; }
  100% { top: 30px; opacity: 0; }
}

/*---------------------
  Secciones generales
---------------------*/
section {
  padding: 6rem 0;
}
.text-center { text-align: center; }

/*---------------------
  Servicios
---------------------*/
.section-header h2 {
  font-size: 2.75rem;
  margin-bottom: .5rem;
}
.section-subtitle {
  color: var(--subtext-color);
  margin-bottom: 2rem;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
  gap: 2rem;
  margin-top: 2rem;
}
.card {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 2rem;
  color: var(--text-color);
  transition: transform .3s, border-color .3s;
}
.card:hover {
  transform: scale(1.03);
  border-color: var(--neon-cyan);
}
.card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  margin-bottom: .75rem;
}
.card p {
  color: var(--subtext-color);
  margin-bottom: 1rem;
}
.card-list li {
  margin-bottom: .5rem;
  position: relative;
  padding-left: 1.5rem;
  color: var(--subtext-color);
}
.card-list li::before {
  content: 'âœ”';
  position: absolute;
  left: 0; top: 0;
  color: var(--neon-green);
}

/* -------------------------
   Metodología - Flow Layout
---------------------------- */
.methodology-flow {
  padding: 5rem 1rem;
  background-color: var(--bg-color);
  color: #fff;
}
.flow-steps {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.flow-step {
  flex: 1 1 0;
  min-width: 200px;
  text-align: center;
  position: relative;
}
.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 30px;
  right: -1rem;
  width: calc(100% + 2rem);
  max-width: 120px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-blue), var(--neon-purple));
  z-index: -1;
}
.flow-number {
  display: inline-block;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  width: 48px;
  height: 48px;
  line-height: 48px;
  border-radius: 50%;
  /*box-shadow: 0 0 10px currentColor; */
  margin-bottom: 0.75rem;
  font-family: 'Exo 2', sans-serif;
}
.flow-step h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.1rem;
  margin-bottom: .5rem;
}
.flow-step p {
  font-size: 0.95rem;
  color: var(--subtext-color);
  max-width: 300px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .flow-steps {
    flex-direction: column;
    align-items: center;
  }
  .flow-step {
    max-width: 100%;
  }
  .flow-step:not(:last-child)::after {
    top: auto;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
    width: 2rem;
    height: 2px;
  }
}

/*---------------------
  Portfolio
---------------------*/
.portfolio .section-header h2 {
  font-size: 2.75rem;
  margin-bottom: .5rem;
}
.project-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform .3s;
}
.project-card:hover img {
  transform: scale(1.05);
}
.project-card .card-content {
  padding: 1.5rem;
  background: rgba(255,255,255,0.02);
  flex: 1;
}
.project-card .tags {
  margin-top: 1rem;
}
.project-card .tags span {
  display: inline-block;
  margin-right: .5rem;
  padding: .25rem .75rem;
  background: rgba(0,255,255,0.1);
  color: var(--neon-cyan);
  border-radius: 6px;
  font-size: .85rem;
}
/*---------------------
  Contacto - Layout
---------------------*/
.contact .contact-grid {
  display: flex; /* antes grid (grilla) */
  justify-content: center; /* antes no estaba */
  align-items: center; /* antes no estaba */
  flex-direction: column; /* antes no estaba */
  /*grid-template-columns: 1fr 1fr;*/
  gap: 2rem;/* antes 3 */
  min-height: 100vh;/* antes no estaba */
  position: relative; /* antes no estaba */
  z-index: 1; /* antes no estaba */
}

/*---------------------
  Formulario de contacto
---------------------*/
.contact-form {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 2rem;
}

.contact-form h2 {
  font-family: 'Orbitron', sans-serif;
  color: var(--neon-purple);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 4px var(--neon-purple), 0 0 16px var(--neon-purple);
  text-align: center;
}

/*---------------------
  Inputs y Textareas con Floating Labels
---------------------*/
.contact-form .form-group {
  position: relative;
  margin-bottom: 1.5rem;
}

/* Campo sin padding extra, tamaño base */
.contact-form .form-group input,
.contact-form .form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem; /* Sin aumentar el alto */
  border: 1px solid var(--neon-cyan);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1rem;
  outline: none;
  font-family: inherit;
  resize: none;
}

/* Placeholder visible cuando no hay foco */
.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder {
  color: var(--subtext-color);
  transition: color 0.2s ease;
}

/* Placeholder invisible al hacer foco */
.contact-form .form-group input:focus::placeholder,
.contact-form .form-group textarea:focus::placeholder {
  color: transparent;
}

/* Label arriba, fuera del campo, oculto inicialmente */
.contact-form .form-group label {
  position: absolute;
  left: 0.75rem;
  top: -0.75rem; /* Posición arriba del campo */
  font-size: 0.75rem;
  color: var(--text-color);
  background-color: #050608; /* igual que el fondo del input */
  padding: 0 0.3rem;
  border-radius: 3px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* Label visible solo cuando el input o textarea está en foco */
.contact-form .form-group input:focus + label,
.contact-form .form-group textarea:focus + label {
  opacity: 1;
}
/*---------------------
  Botón Enviar
---------------------*/
.btn-contact-full {
  width: 100%;
  padding: 0.75rem 0;
  background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple)), rgba(0, 0, 0, 0.2);
  background-blend-mode: multiply;
  color: #fff;
  font-weight: 600;
  border-radius: 30px;
  border: none;
  transition: filter 0.3s;
  font-size: 1rem;
  font-family: inherit;
}

.btn-contact-full:hover {
  /*box-shadow: 0 0 8px var(--neon-cyan);*/
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 0 8px var(--neon-cyan);
}

/*---------------------
  Información de contacto
---------------------*/
.contact-info .info-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  white-space: nowrap;
  overflow-wrap: normal;
}

.contact-info .icon {
  width: 48px;
  height: 48px;
  margin-right: 1rem;
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: center;
  filter: invert(1);
}

.mail-icon    { background-image: url('images/icon-mail.svg'); }
.phone-icon   { background-image: url('images/icon-phone.svg'); }
.map-icon     { background-image: url('images/icon-map.svg'); }

/*---------------------
  Redes sociales
---------------------*/
.social-links {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}

.social-links .icon {
  width: 40px;
  height: 40px;
  border: 2px solid currentColor;
  border-radius: 8px;
  padding: 0.5rem;
  transition: background 0.3s, color 0.3s;
}

.linkedin-icon { color: var(--neon-cyan); }
.twitter-icon  { color: var(--neon-purple); }
.github-icon   { color: var(--neon-green); }

.social-links a:hover .linkedin-icon { background: var(--neon-cyan); color: #000; }
.social-links a:hover .twitter-icon  { background: var(--neon-purple); color: #000; }
.social-links a:hover .github-icon   { background: var(--neon-green); color: #000; }

/*---------------------
  Footer
---------------------*/
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer .footer-logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  color: var(--neon-blue);
  margin-bottom: .5rem;
  text-shadow: 0 0 8px var(--neon-blue), 0 0 16px var(--neon-blue);
}
.footer p {
  color: var(--subtext-color);
  margin-bottom: .5rem;
  white-space: nowrap;
}
.footer .copyright {
  font-size: .85rem;
}

/*---------------------
  Responsive
---------------------*/
@media (max-width: 768px) {
  .contact .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero__title {
    font-size: 2.75rem;
  }
  .hero__subtitle {
    font-size: 1.1rem;
  }
  .section-header h2 {
    font-size: 2rem;
  }
}

/* Ocultar hamburguesa por defecto */
.hamburger {
  display: none; /* oculto en desktop */
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  z-index: 1100;
  width: 30px;  /* tamaño fijo */
  height: 25px; /* altura para que no baje */
  flex-shrink: 0; /* que no se reduzca */
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--neon-blue);
  box-shadow: 0 0 6px var(--neon-blue);
  transition: all 0.3s ease;
}

/* Menú móvil oculto */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.95);
  position: absolute;
  top: 100%;
  right: 0;
  width: 100%;
  padding: 1rem;
  text-align: right;
  z-index: 1050;
}

.mobile-menu li {
  margin-bottom: 1rem;
}

.mobile-menu a {
  color: #fff;
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links,
  .btn-contact {
    display: none; /* Oculta menú desktop y botón en móvil */
  }

  .hamburger {
    display: flex; /* Mostrar hamburguesa */
  }

  .mobile-menu.show {
    display: flex; /* Mostrar menú móvil cuando tiene clase show */
  }
}

/*---------------------
  Iconos
---------------------*/

.card-list {
  list-style: none;
  padding-left: 0;
}

.card-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 0.5em;
}

.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  background-image: url('check_circle_outline_24dp_75FB4C.svg');
  background-size: contain;
  background-repeat: no-repeat;
}