:root {
  /* Colors */
  --color-primary: #14B8A6;    /* Teal */
  --color-secondary: #0F172A;  /* Deep Blue */
  --color-lime: #14B8A6;       /* Bright Green */

  /* Neutrals */
  --color-dark: #0F172A;
  --color-light: #F8FAFC;
  --color-gray: #94A3B8;

  /* Fonts */
  --font-title: 'Share Tech Mono', monospace;
  --font-body: 'Inter', sans-serif;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
}

a{
  text-decoration: none;
}

/* ================= BODY ================= */
body {
  font-family: var(--font-body);
  background: #0F172A;
  color: var(--color-light);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ================= MATRIX BACKGROUND ================= */
#matrix {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; /* detrás de todo */
}

/* ================= NAVBAR ================= */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 8%;
  background: transparent;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 10;
}

/* Estado scrolled */
.navbar.scrolled {
  background: var(--color-secondary); /* azul oscuro */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2); /* opcional, para efecto */
  transition: background 0.3s ease, box-shadow 0.3s ease;
}


.logo {
  font-weight: bold;
  font-size: 1.6rem;
  color: var(--color-primary);
  font-family: var(--font-title);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--color-light);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--color-lime);
}

.btn-nav {
  border: 1px solid var(--color-light);
  padding: 8px 16px;
  text-decoration: none;
  color: var(--color-light);
  transition: all 0.3s ease;
}

.btn-nav:hover {
  background: var(--color-lime);
  color: #0F172A;
  border-color: var(--color-lime);
}

/* ================= HERO ================= */
.hero {
  position: relative; /* contenedor del hero */
  z-index: 0;         /* hero por debajo de su contenido */
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 140px 10% 60px;
  min-height: 100vh;
  max-width: 1400px;
  margin: 0 auto;
}

/* Capa azul de fondo */
/* Capa azul sobre todo el fondo */
.hero::before {
  content: '';
  position: fixed;  /* fijo sobre toda la ventana */
  top: 0;
  left: 0;
  width: 100vw;     /* todo el ancho de la ventana */
  height: 100vh;    /* toda la altura de la ventana */
  background: #0F172A;
  opacity: 0.80;
  z-index: 0;       /* debajo del contenido */
}

/* Contenido del hero siempre encima de la capa azul */
.hero,
.hero-text,
.hero-img,
.hero-buttons {
  position: relative;
  z-index: 1;       /* todo lo del hero encima de la capa */
}

.hero-text {
  flex: 0 0 60%;
}

.hero-img {
  flex: 0 0 35%;
  display: flex;
  justify-content: flex-start;
}

.hero-text h1 {
  font-size: 3.4rem;
  margin-bottom: 10px;
  font-family: var(--font-title);
  color: var(--color-light);
  line-height: 1.1;
}

.hero-text h2 {
  font-size: 2.5rem;
  font-weight: 600;
  font-family: var(--font-title);
  color: var(--color-light);
}

.highlight {
  color: var(--color-lime);
}

.hero-text h3 {
  font-size: 1.5rem;
  margin: 10px 0 20px;
  color: var(--color-gray);
  text-decoration: line-through;
}

.hero-buttons {
  margin-top: 20px;
}

.btn-dark, .btn-light {
  padding: 12px 20px;
  margin-right: 10px;
  border: 1px solid var(--color-light);
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-dark {
  background: var(--color-light);
  color: var(--color-dark);
}

.btn-dark:hover {
  background: var(--color-lime);
  color: #0F172A;
  border-color: var(--color-lime);
}

.btn-light {
  background: transparent;
  color: var(--color-light);
}

.btn-light:hover {
  background: var(--color-lime);
  color: var(--color-dark);
  border-color: var(--color-lime);
}

/* Hero image */
.hero-img img {
  max-width: 400px;
  border-radius: 50%;
  animation: float 4s ease-in-out infinite;
  border: 4px solid var(--color-primary);
  position: relative;
  z-index: 1;
}

/* Floating animation */
@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}

/* ================= TYPING ANIMATION ================= */
.typing {
  display: inline;
  border-right: 3px solid var(--color-light);
  white-space: nowrap;
  overflow: hidden;
  font-family: var(--font-title);
  font-size: 3.4rem;
  color: var(--color-light);
  width: 0;
  vertical-align: middle;
  animation: typing 3s steps(8) forwards, blink 0.7s step-end infinite alternate, typing-reverse 3s steps(8) 3.5s forwards infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 8ch; }
}

@keyframes typing-reverse {
  from { width: 8ch; }
  to { width: 0; }
}

@keyframes blink {
  50% { border-color: transparent; }
}

/* ================= MENU HAMBURGER ================= */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-light);
  z-index: 1100;
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background: rgba(15, 23, 42, 0.95);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transition: right 0.4s ease;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    font-size: 1.2rem;
  }

  .nav-links.show {
    right: 0;
  }

  .btn-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
    gap: 30px;
  }

  .hero-img {
    margin-top: 20px;
    justify-content: center;
  }

  .hero-text h1 {
    font-size: 3.4rem;
    margin-bottom: 10px;
    line-height: 4rem;
  }

  .hero-text h2 {
    font-size: 2.3rem;
    line-height: 3rem;
  }

  .hero-img img {
    max-width: 280px;
  }
}

/* 🔽 Ajustes extra para iPhone SE y pantallas muy pequeñas */
@media (max-width: 380px) {
   .hero-text h1 {
    font-size: 3rem;
  }

  .hero-text h2 {
    font-size: 2rem;
  }

  .hero-buttons a {
    padding: 10px;
    font-size: 0.85rem;
  }
}

/* ================= TECHNOLOGIES SLIDER ================= */
.tech-slider {
  position: relative; /* siempre encima de hero::before */
  z-index: 1;
  width: 100%;
  overflow: hidden;
  background: #0F172A;
  padding: 30px 0;
}

/* Slider track animación */
.slider-track {
  display: flex;
  width: calc(200%); /* duplicado para efecto infinito */
  animation: scroll 30s linear infinite; /* velocidad por defecto */
}

/* Más rápido en móviles */
@media (max-width: 768px) {
  .slider-track {
    animation: scroll 15s linear infinite; /* más rápido en pantallas pequeñas */
  }
}


.slide-item {
  flex: 0 0 auto;
  color: #F8FAFC;
  font-family: var(--font-title);
  font-weight: bold;
  padding: 0 40px;
  text-transform: uppercase;
  white-space: nowrap;
  border-left: 1px solid var(--color-primary);
  position: relative;
}

.slide-item:first-child {
  border-left: none;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ================= NUEVAS SECCIONES ================= */
section {
  position: relative;
  z-index: 1; /* asegura que todo contenido agregado quede visible */
}

/* ================= ABOUT SECTION ================= */
.about {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 50px;
  padding: 80px 10%;
  color: var(--color-light);
  max-width: 1400px;
  margin: 0 auto;
}

.about-left {
  flex: 1;
}

.about-left h4 {
  font-family: var(--font-title);
  font-size: 1.5rem;
  font-weight: bold;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.about-left h2 {
  font-family: var(--font-title);
  font-size: 2.8rem; /* más grande en escritorio */
  line-height: 1.3;
}

.about-right {
  flex: 1.5;
}

.about-right p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--color-gray);
  max-width: 550px;
  text-align: justify; /* justificar texto */
}

.about-info {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.about-info .label {
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: bold;
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.about-info p {
  font-size: 1.2rem; /* letras más grandes */
  font-weight: 600;
  color: var(--color-light);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .about {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    padding: 60px 5% 10px;
  }

  .about-left h2 {
    font-size: 2rem; /* más pequeño en móvil */
  }

  .about-left h4 {
  font-size: 1.2rem;
}

  .about-right p {
    max-width: 100%;
    text-align: justify; /* centrado en mobile */
  }

  .about-info {
    justify-content: center;
    gap: 20px 40px;
  }
}

/* ===== Services Section ===== */
.services {
  padding: 80px 10%;
  background: var(--color-dark);
  text-align: center;
  color: var(--color-light);
}

.services-header h4 {
  color: var(--color-primary);
  font-family: var(--font-title);
  margin-bottom: 10px;
}

.services-header h2 {
  font-size: 2.5rem;
  font-family: var(--font-title);
  margin-bottom: 20px;
}

.services-header p {
  max-width: 700px;
  margin: 0 auto 50px;
  color: var(--color-gray);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.service-card {
  background: linear-gradient(145deg, #0f172a, #1e293b);
  padding: 30px 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.05);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.service-card.show {
  opacity: 1;
  transform: translateY(0);
}

.service-card i {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 20px;
  display: block;
  transition: color 0.3s ease;
}

.service-card h3 {
  font-family: var(--font-title);
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--color-light);
}

.service-card p {
  color: var(--color-gray);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Hover animation */
.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--color-primary);
  box-shadow: 0 10px 25px rgba(20, 184, 166, 0.2);
}

.service-card:hover i {
  color: var(--color-lime);
  animation: spinShake 0.6s ease-in-out 1;
}

/* Keyframes para giro brusco */
@keyframes spinShake {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(30deg); }
  50% { transform: rotate(-30deg); }
  75% { transform: rotate(20deg); }
  100% { transform: rotate(0deg); }
}

/* En escritorio forzamos 3 columnas */
@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


.experience-section {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding: 4rem 2rem;
  background: transparent; /* fondo transparente */
  color: var(--color-light);
  gap: 2rem;
  font-family: var(--font-body);
  align-items: center; /* centra verticalmente en desktop */
  min-height: 80vh; /* ayuda a centrarlo visualmente */
}

.experience-left {
  flex: 1 1 40%;
  padding-left: 6rem; /* mueve más a la derecha en desktop */
}

.experience-left h3 {
  font-size: 1.3rem; /* un poco más grande */
  letter-spacing: 2px;
  color: var(--color-primary);
  text-transform: uppercase;
  font-family: var(--font-title);
}

.experience-left h1 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.3;
  font-family: var(--font-title);
}

.experience-left h1 span {
  color: var(--color-primary);
}

.experience-right {
  flex: 1 1 50%;
}

.experience-right h3 {
  font-size: 1.3rem; /* también más grande */
  letter-spacing: 2px;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 2rem;
  font-family: var(--font-title);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2rem;
  border-left: 2px solid var(--color-primary);
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-dot {
  position: absolute;
  left: -10px;
  top: 0.5rem;
  width: 14px;
  height: 14px;
  background: var(--color-primary);
  border-radius: 50%;
}

.timeline-content {
  padding-left: 1rem;
}

.timeline-content h4 {
  font-size: 1.2rem;
  font-weight: 600;
  font-family: var(--font-title);
  color: var(--color-light);
}

.timeline-content p {
  font-size: 0.95rem;
  opacity: 0.8;
  color: var(--color-gray);
  font-family: var(--font-body);
}

/* Responsiveness */
@media (max-width: 768px) {
  .experience-section {
    flex-direction: column;
    padding: 2rem 1rem;
    min-height: auto; /* no forzamos altura en móvil */
  }

    .experience-left{
      text-align: center;
    }

  .experience-left, 
  .experience-right {
    flex: 1 1 100%;
    padding-left: 0; /* quitamos padding extra en móvil */
  }

  .experience-right h3 {
    font-size: 1.4rem; /* más grande en móvil también */
    text-align: left;
  }

  .experience-left h1 {
    font-size: 1.8rem;
    text-align: center;
  }

  .timeline {
    padding-left: 1rem;
  }

  .timeline-content h4 {
    font-size: 1rem;
  }
}

/* ================= FOOTER ================= */
.footer {
  position: relative;
  z-index: 10; /* asegura que esté arriba de la capa matrix */
  background: rgba(15, 23, 42, 0.95); /* sólido y ligeramente transparente */
  color: var(--color-light);
  padding: 4rem 2rem 2rem 2rem;
  text-align: center;
  font-family: var(--font-body);
  border-top: 1px solid var(--color-primary); /* línea divisoria arriba */
}

.footer-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-logo {
  font-family: var(--font-title);
  font-size: 1.6rem;
  color: var(--color-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-logo i {
  color: var(--color-primary);
}

/* Two main links */
.footer-main-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-main-links a {
  color: var(--color-light);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.footer-main-links a:hover {
  color: var(--color-primary);
}

/* Footer nav links */
.footer-nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: var(--color-gray);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.footer-nav a:hover {
  color: var(--color-primary);
}

/* Social icons con círculo */
.footer-socials {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}

.footer-socials a {
  color: var(--color-primary);
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.footer-socials a:hover {
  color: var(--color-dark);
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: translateY(-3px);
}

/* Bottom text */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 1.5rem;
}

.footer-bottom p {
  font-size: 0.85rem;
  color: var(--color-gray);
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .footer-main-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-nav {
    gap: 0.8rem;
  }

  .footer-logo {
    font-size: 1.4rem;
  }
}

/* ================= COUNTER SECTION ================= */
.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 20px 10% 90px; /* reducido el espacio superior */
  text-align: center;
  background: transparent;
  color: var(--color-light);
  font-family: var(--font-body);
  position: relative;
  z-index: 1;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* centra verticalmente */
  gap: 10px;
}

/* Normalizamos TODOS los iconos */
.stat-card i,
.stat-card svg {
  font-size: 3rem; /* mismo tamaño para todos */
  color: var(--color-primary);
  line-height: 1; /* evita saltos verticales */
  margin-bottom: 10px; /* mismo margen que los otros */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px; /* asegura la misma altura */
  transition: transform 0.3s ease;
}

/* Hover */
.stat-card i:hover,
.stat-card svg:hover {
  transform: scale(1.2);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--color-light);
  font-family: var(--font-title);
}

.stat-card p {
  font-size: 1rem;
  color: var(--color-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 768px) {
  .stats-section {
    padding: 40px 5%;
  }

  .stat-card i,
  .stat-card svg {
    font-size: 2.5rem;
    min-height: 50px; /* reduce altura en móvil */
  }

  .stat-number {
    font-size: 2rem;
  }
}

/* Animación spinShake ya existe, la reutilizamos */

/* === Animación en ICONOS DEL COUNTER SECTION === */
.stat-card i,
.stat-card svg {
  font-size: 3rem; /* mismo tamaño para todos */
  color: var(--color-primary);
  line-height: 1; /* evita saltos verticales */
  margin-bottom: 10px; /* mismo margen que los otros */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px; /* asegura la misma altura */
  transition: all 0.3s ease; /* transición completa */
}

/* Hover igual que services */
.stat-card:hover i,
.stat-card:hover svg {
  color: var(--color-lime);
  animation: spinShake 0.6s ease-in-out 1;
  transform: translateY(-3px); /* pequeño levantamiento */
}

/* ================= FEATURED PROJECTS ================= */
.projects {
  padding: 80px 10%;
  color: var(--color-light);
  text-align: center;
}

.projects-header h4 {
  color: var(--color-primary);
  font-family: var(--font-title);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.projects-header h2 {
  font-size: 2.5rem;
  font-family: var(--font-title);
  margin-bottom: 15px;
}

.projects-header p {
  max-width: 700px;
  margin: 0 auto 50px;
  color: var(--color-gray);
}

/* Grid de proyectos */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columnas fijo en desktop */
  gap: 40px; /* más espacio entre cards */
}

/* Tarjetas */
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px; /* bordes un poco más grandes */
  background: #1e293b;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Ajustamos la altura y ancho para imágenes grandes */
.project-card img {
  width: 100%;
  height: 320px; /* más alto para aprovechar imagen 1904x915 */
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.project-info {
  padding: 25px;
  text-align: left;
}

.project-info h3 {
  font-family: var(--font-title);
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: var(--color-light);
}

.project-info a {
  color: var(--color-primary);
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 1px;
  font-weight: bold;
  transition: color 0.3s ease;
}

.project-info a:hover {
  color: var(--color-lime);
}

/* Hover efecto */
.project-card:hover img {
  transform: scale(1.05);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 25px rgba(20, 184, 166, 0.2);
  border-color: var(--color-primary);
}

/* Responsive para móvil: 1 columna */
@media (max-width: 1024px) {
  .projects-grid {
    grid-template-columns: 1fr; /* 1 columna en tablets/móviles */
  }

  .project-card img {
    height: 250px; /* menos alto en móvil */
  }

  .project-info {
    text-align: center;
  }
}

/* Ajuste de imágenes en Featured Projects para móvil */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr; /* 1 columna */
    gap: 25px; /* menos espacio entre cards */
  }

  .project-card img {
    width: 100%;
    height: auto; /* que tome altura automática */
    aspect-ratio: 16/9; /* fuerza proporción horizontal */
    object-fit: cover;
    object-position: center;
  }

  .project-info {
    padding: 20px;
    text-align: center;
  }
}


/* ================= CONTACT SECTION ================= */
.contact {
  padding: 80px 10%;
  color: var(--color-light);
  background: transparent;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 32px;
}

.contact-header .chip {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--color-gray);
  margin-bottom: 10px;
}

.contact-header h2 {
  font-family: var(--font-title);
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 10px;
}

.contact-header p {
  color: var(--color-gray);
  max-width: 720px;
  margin: 0 auto;
}

/* En pantallas grandes: 2 columnas fijas */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columnas */
  gap: 20px; /* un poco más de espacio entre cards */
  padding-bottom: 2rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--color-dark), #1e293b);
  border: 1px solid rgba(255,255,255,0.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  color: var(--color-light);
}

.contact-card i {
  font-size: 1.6rem; /* antes 1.4rem */
  color: #14B8A6;
}


.contact-card strong {
  display: block;
  font-size: 1rem; /* antes 0.9rem */
}


.contact-card span {
  font-size: 0.9rem;
  color: var(--color-gray);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(20,184,166,0.18);
  border-color: var(--color-primary);
}

/* Form */
.contact-form {
  background: linear-gradient(145deg, var(--color-dark), #0b1324);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.form-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-control label {
  font-size: 0.9rem;
  color: var(--color-gray);
}

.form-control input,
.form-control textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--color-light);
  padding: 12px 14px;
  border-radius: 10px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
  font-family: var(--font-body);
}

.form-control input::placeholder,
.form-control textarea::placeholder {
  color: var(--color-gray);
}

.form-control input:focus,
.form-control textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(20,184,166,0.15);
}

/* Submit */
.contact-submit {
  width: 100%;
  margin-top: 6px;
  background: var(--color-primary);
  color: var(--color-dark);
  border: 1px solid var(--color-primary);
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.contact-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(20,184,166,0.25);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .contact {
    padding: 60px 6%;
  }

  .contact-header h2 {
    font-size: 2rem;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

/* Fondo Loader */
  #loader {
    position: fixed;
    top:0; left:0;
    width:100%; height:100%;
    background: rgba(15, 23, 42, 0.95); /* Deep Blue con transparencia */
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
    backdrop-filter: blur(6px);
  }

  /* Spinner futurista */
  .spinner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 6px solid var(--color-secondary);
    border-top: 6px solid var(--color-primary);
    animation: spin 1s linear infinite, glow 1.5s ease-in-out infinite alternate;
    box-shadow: 0 0 15px var(--color-primary);
  }

  @keyframes spin {
    100% { transform: rotate(360deg); }
  }

  @keyframes glow {
    0% { box-shadow: 0 0 8px var(--color-primary), 0 0 16px var(--color-primary); }
    100% { box-shadow: 0 0 25px var(--color-lime), 0 0 50px var(--color-primary); }
  }

  /* Pantalla completa */
  #preloader {
    position: fixed;
    top:0; left:0;
    width:100%; height:100%;
    background: var(--color-secondary);
    display:flex;
    flex-direction: column;
    align-items:center;
    justify-content:center;
    z-index:99999;
    color: var(--color-light);
    font-family: var(--font-title);
    letter-spacing: 2px;
  }

  /* Spinner neón */
  .spinner {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 6px solid var(--color-dark);
    border-top: 6px solid var(--color-primary);
    animation: spin 1s linear infinite, glow 1.5s ease-in-out infinite alternate;
    margin-bottom: 20px;
  }

  @keyframes spin {
    100% { transform: rotate(360deg); }
  }

  @keyframes glow {
    0% { box-shadow: 0 0 8px var(--color-primary), 0 0 16px var(--color-primary); }
    100% { box-shadow: 0 0 25px var(--color-lime), 0 0 50px var(--color-primary); }
  }

  /* Texto porcentaje */
  .loading-text {
    font-size: 1.3rem;
    color: var(--color-primary);
  }

  /* Scrollbar futurista */
::-webkit-scrollbar {
  width: 14px; /* más grueso */
}

::-webkit-scrollbar-track {
  background: var(--color-secondary); /* fondo del track */
  border-radius: 12px;
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary); /* color principal */
  border-radius: 12px;
  box-shadow: 0 0 12px var(--color-primary), 0 0 20px var(--color-primary);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-lime); /* efecto hover */
  box-shadow: 0 0 15px var(--color-lime), 0 0 30px var(--color-lime);
}

/* Para Firefox */
* {
  scrollbar-width: auto;
  scrollbar-color: var(--color-primary) var(--color-secondary);
}
