:root {
  --bg: #0A0A12;
  --text: #FFFFFF;
  --accent: #00F0FF;
  --accent-light: #66F0FF;
  --card-bg: #1E1E2E;
  --shadow: rgba(0, 0, 0, 0.6);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* === HEADER === */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 4%;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background-color: rgba(10, 10, 18, 0.8);
  transition: background-color 0.3s ease;
}

/* Header con scroll - más opaco pero NO se oculta */
.site-header.scrolled {
  background-color: rgba(10, 10, 18, 0.95);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}


.main-nav ul {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: var(--accent);
}

.main-nav .lang,
.main-nav .theme-toggle {
  font-size: 0.85rem;
  color: var(--accent);
  font-family: 'Inter', sans-serif;
}

.cta-button {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 0.7rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: transform 0.2s, background 0.3s;
}

.cta-button:hover {
  background: var(--accent-light);
  transform: scale(1.05);
}
/* === HERO SECTION === */
.hero-section {
  display: flex;
  align-items: center;
  min-height: 100vh;
  padding: 0 5%;
  gap: 5%;
  margin-top: 80px;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.tagline {
  display: inline-block;
  background: linear-gradient(to right, #00f0ff, #00aaff);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--bg);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.5px;
}

h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.5px;
}

.highlight {
  color: var(--accent);
  position: relative;
  font-family: 'Poppins', sans-serif;
}

.description {
  font-size: 0.95rem;
  color: #CCCCCC;
  margin-bottom: 2rem;
  max-width: 500px;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
}

/* === HERO BUTTONS === */
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: #00A0FF;
  color: #FFFFFF;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600; /* Inter Medium */
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 160, 255, 0.1);
}

.btn-primary:hover {
  background: #0080CC;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 160, 255, 0.2);
}

.btn-secondary {
  background: transparent;
  color: #00A0FF;
  border: 2px solid #00A0FF;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600; /* Inter Medium */
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 160, 255, 0.05);
}

.btn-secondary:hover {
  background: rgba(0, 160, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 160, 255, 0.1);
}

/* === ILLUSTRATION === */
.hero-illustration {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.card-stack {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 300px;
}

.card {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  background: linear-gradient(135deg, #00f0ff, #00aaff);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: rotate(-5deg);
  opacity: 0.8;
}

.card-1 {
  z-index: 1;
  transform: rotate(-5deg) translateX(-20px) translateY(-10px);
}

.card-2 {
  z-index: 2;
  transform: rotate(3deg) translateX(10px) translateY(5px);
}

.card-3 {
  z-index: 3;
  transform: rotate(-2deg) translateX(5px) translateY(-5px);
}

.card::before {
  content: '';
  position: absolute;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  top: 30%;
  left: 20%;
}

.card::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  bottom: 20%;
  right: 20%;
}

.card-2::before {
  top: 15%;
  left: 40%;
  width: 80px;
  height: 80px;
  border-radius: 50%;
}

.card-3::after {
  bottom: 15%;
  right: 15%;
  width: 40px;
  height: 40px;
  border-radius: 5px;
}

/* === COMMON SECTIONS === */
.page-content {
  margin-top: 80px;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  letter-spacing: -0.5px;
  background: linear-gradient(to right, var(--text), var(--text));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-header p {
  color: #CCCCCC;
  max-width: 600px;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 1rem;
}

/* === SERVICES === */
.services-section {
  padding: 5rem 5%;
  background-color: var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.service-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 240, 255, 0.1);
}

/* Iconos con gradientes personalizados */
.icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  position: relative;
}

/* Gradiente azul para Web */
.service-card:nth-child(1) .icon {
  background: linear-gradient(135deg, #0066FF, #00AAFF);
}

/* Gradiente rosa/morado para Móvil */
.service-card:nth-child(2) .icon {
  background: linear-gradient(135deg, #C2185B, #8E24AA);
}

/* Gradiente azul/verde para Sistemas */
.service-card:nth-child(3) .icon {
  background: linear-gradient(135deg, #00838F, #0097A7);
}

/* Ocultar las imágenes placeholder y usar SVG en su lugar */
.icon img {
  display: none;
}

/* Iconos SVG dentro de los contenedores */
.icon::before {
  content: '';
  width: 30px;
  height: 30px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: brightness(0) invert(1);
}

/* Icono de Globo para Web */
.service-card:nth-child(1) .icon::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='2' y1='12' x2='22' y2='12'/%3E%3Cpath d='M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z'/%3E%3C/svg%3E");
}

/* Icono de Móvil para Aplicaciones Móviles */
.service-card:nth-child(2) .icon::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Crect x='5' y='2' width='14' height='20' rx='2' ry='2'/%3E%3Cline x1='12' y1='18' x2='12.01' y2='18'/%3E%3C/svg%3E");
}

/* Icono de Base de Datos para Sistemas */
.service-card:nth-child(3) .icon::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cellipse cx='12' cy='5' rx='9' ry='3'/%3E%3Cpath d='M21 12c0 1.66-4 3-9 3s-9-1.34-9-3'/%3E%3Cpath d='M3 5v14c0 1.66 4 3 9 3s9-1.34 9-3V5'/%3E%3C/svg%3E");
}

.service-card h3 {
  color: var(--text);
  margin-bottom: 1rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.3rem;
}

.service-card p,
.service-card li {
  font-family: 'Inter', sans-serif;
  color: #BBBBBB;
}

.service-card p {
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.service-card ul {
  margin-top: 1rem;
  padding-left: 1.2rem;
  list-style: none;
}

.service-card li {
  position: relative;
  margin-bottom: 0.7rem;
  font-size: 0.9rem;
  padding-left: 0.5rem;
}

.service-card li::before {
  content: '•';
  color: var(--accent);
  position: absolute;
  left: -1rem;
  font-size: 1.2rem;
}

/* Responsive para iconos */
@media (max-width: 768px) {
  .icon {
    width: 55px;
    height: 55px;
  }

  .icon::before {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .icon {
    width: 50px;
    height: 50px;
  }

  .icon::before {
    width: 25px;
    height: 25px;
  }
}
/* ============================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ============================================ */

/* === MENÚ HAMBURGUESA (oculto en desktop) === */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: transform 0.3s ease;
}

.menu-toggle:hover {
  transform: scale(1.1);
}

/* ============================================
   TABLET - 768px a 1024px
   ============================================ */
@media (max-width: 1024px) {
  /* Header */
  .site-header {
    padding: 0.5rem 3%;
  }

  .logo img {
    height: 90px;
  }

  .main-nav ul {
    gap: 1rem;
  }

  .main-nav a {
    font-size: 0.85rem;
  }

  /* Hero Section */
  .hero-section {
    padding: 0 3%;
    gap: 3%;
  }

  h1 {
    font-size: 2.8rem;
  }

  .description {
    font-size: 0.9rem;
  }

  .card-stack {
    max-width: 300px;
    height: 250px;
  }

  /* Services */
  .services-section {
    padding: 4rem 3%;
    
    
  }

  .services-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  /* Portfolio */
  .portfolio-section {
    padding: 4rem 3%;
  }

  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
}

/* ============================================
   MÓVIL - Menos de 768px
   ============================================ */
@media (max-width: 768px) {
  /* Header - Menú móvil */
  .site-header {
    padding: 0.5rem 4%;
  }

  .logo img {
    height: 100px;
  }

  /* Mostrar botón hamburguesa */
  .menu-toggle {
    display: block;
  }

  /* Ocultar CTA button en móvil */
  .cta-button {
    display: none;
  }

  /* Navegación móvil */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 18, 0.98);
    backdrop-filter: blur(20px);
    padding: 5rem 2rem 2rem;
    transition: right 0.4s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 2rem;
  }

  .main-nav li {
    text-align: center;
  }

  .main-nav a {
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem;
  }

  /* Hero Section - Stack vertical */
  .hero-section {
    flex-direction: column;
    padding: 2rem 5%;
    min-height: auto;
    gap: 3rem;
    margin-top: 100px;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

  .tagline {
    font-size: 0.75rem;
    padding: 0.3rem 0.8rem;
  }

  h1 {
    font-size: 2.2rem;
    line-height: 1.2;
  }

  .description {
    font-size: 0.9rem;
    max-width: 100%;
    margin-bottom: 1.5rem;
  }

  .hero-buttons {
    justify-content: center;
    gap: 0.8rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
    width: 100%;
    max-width: 250px;
  }

  .hero-illustration {
    width: 100%;
    max-width: 350px;
  }

  .card-stack {
    max-width: 280px;
    height: 220px;
  }

  /* Sections */
  .section-header h2 {
    font-size: 2rem;
  }

  .section-header p {
    font-size: 0.9rem;
    padding: 0 1rem;
  }


/* === SERVICES === */
.services-section {
  padding: 5rem 5%;
  background-color: var(--bg); /* Cambiado de rgba(10, 10, 18, 0.8) */
}

  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  /* Portfolio */
  .portfolio-section {
    padding: 3rem 5%;
  }

  .filter-buttons {
    gap: 0.6rem;
    padding: 0 1rem;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-image {
    height: 180px;
  }

  .project-info {
    padding: 1.2rem;
  }

  .project-info h3 {
    font-size: 1rem;
  }

  .project-info p {
    font-size: 0.85rem;
  }
}

/* ============================================
   MÓVIL PEQUEÑO - Menos de 480px
   ============================================ */
@media (max-width: 480px) {
  .logo img {
    height: 100px;
  }

  h1 {
    font-size: 1.8rem;
  }

  .description {
    font-size: 0.85rem;
  }

  .btn-primary,
  .btn-secondary {
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
  }

  .card-stack {
    max-width: 240px;
    height: 180px;
  }

  .section-header h2 {
    font-size: 1.7rem;
  }

  .section-header p {
    font-size: 0.85rem;
  }

  .services-section,
  .portfolio-section {
    padding: 2.5rem 4%;
    
  }

  .service-card {
    padding: 1.2rem;
  }

  .service-card h3 {
    font-size: 1.1rem;
  }

  .filter-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

/* ============================================
   MEJORAS DE TRANSICIÓN Y ANIMACIÓN
   ============================================ */

/* Suavizar el scroll */
html {
  scroll-behavior: smooth;
}

/* Fade-in animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in.visible {
  animation: fadeInUp 0.6s ease forwards;
}

/* Overlay del menú móvil */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 998;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Botón de cerrar en el menú móvil */
.menu-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: var(--accent);
  font-size: 2rem;
  cursor: pointer;
  display: none;
}

@media (max-width: 768px) {
  .menu-close {
    display: block;
  }
}

/* CTA button en el menú móvil */
@media (max-width: 768px) {
  .main-nav ul::after {
    content: '';
    display: block;
    margin-top: 2rem;
  }

  .main-nav .nav-cta {
    display: block;
    background: var(--accent);
    color: var(--bg);
    text-align: center;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
  }

  .main-nav .nav-cta:hover {
    background: var(--accent-light);
    transform: scale(1.05);
  }
}

/* ============================================
   TEMA CLARO (LIGHT THEME) - OPCIONAL
   ============================================ */

body.light-theme {
  --bg: #F5F7FA;
  --text: #1A1A2E;
  --accent: #0080FF;
  --accent-light: #3399FF;
  --card-bg: #FFFFFF;
  --shadow: rgba(0, 0, 0, 0.1);
  
  background-color: var(--bg);
  color: var(--text);
}

/* Header en tema claro */
body.light-theme .site-header {
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Navegación en tema claro */
body.light-theme .main-nav a {
  color: var(--text);
}

body.light-theme .main-nav a:hover {
  color: var(--accent);
}

/* Iconos en tema claro */
body.light-theme .icon-btn {
  border-color: rgba(26, 26, 46, 0.2);
  color: var(--text);
}

body.light-theme .icon-btn:hover {
  background: rgba(0, 128, 255, 0.1);
  border-color: var(--accent);
}

/* Cards en tema claro */
body.light-theme .service-card,
body.light-theme .portfolio-item {
  background: var(--card-bg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

body.light-theme .service-card:hover {
  box-shadow: 0 8px 25px rgba(0, 128, 255, 0.15);
}

/* Textos en tema claro */
body.light-theme .description,
body.light-theme .service-card p,
body.light-theme .service-card li,
body.light-theme .project-info p {
  color: #5A5A6E;
}

body.light-theme .section-header p {
  color: #5A5A6E;
}

/* Hero en tema claro */
body.light-theme .tagline {
  background: linear-gradient(to right, #0080FF, #0066CC);
  color: #FFFFFF;
}

body.light-theme .highlight {
  color: var(--accent);
}

/* Botones en tema claro */
body.light-theme .btn-primary {
  background: var(--accent);
  box-shadow: 0 4px 15px rgba(0, 128, 255, 0.2);
}

body.light-theme .btn-primary:hover {
  background: #0066CC;
  box-shadow: 0 6px 20px rgba(0, 128, 255, 0.3);
}

body.light-theme .btn-secondary {
  color: var(--accent);
  border-color: var(--accent);
}

body.light-theme .btn-secondary:hover {
  background: rgba(0, 128, 255, 0.1);
}

/* Filtros de portafolio en tema claro */
body.light-theme .filter-btn {
  border-color: #CCCCCC;
  color: var(--text);
}

body.light-theme .filter-btn:hover,
body.light-theme .filter-btn.active {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

/* Overlay de proyecto en tema claro */
body.light-theme .project-overlay {
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.7));
}

/* Menú móvil en tema claro */
@media (max-width: 768px) {
  body.light-theme .main-nav {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
  }

  body.light-theme .menu-overlay {
    background: rgba(0, 0, 0, 0.5);
  }
}

/* Cards de ilustración en tema claro */
body.light-theme .card {
  background: linear-gradient(135deg, #0080FF, #0066CC);
}

/* Transición suave al cambiar tema */
body {
  transition: background-color 0.3s ease, color 0.3s ease;
}

.site-header,
.service-card,
.portfolio-item,
.main-nav,
.icon-btn {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ============================================
   ICONOS DEL HEADER
   ============================================ */

.header-icons {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.icon-btn {
  background: transparent;
  border: none;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text);
  position: relative;
  padding: 0.4rem;
}

.icon-btn:hover {
  color: var(--accent);
  transform: scale(1.1);
}

.icon-btn svg {
  transition: all 0.3s ease;
}

/* Botón de idioma */
.lang-toggle {
  gap: 0.4rem;
  padding: 0;
}

.lang-text {
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  color: var(--text);
}

.lang-toggle:hover .lang-text {
  color: var(--accent);
}

/* Botón de tema */
.theme-toggle {
  padding: 0.4rem;
}

.theme-toggle svg {
  color: var(--text);
}

.theme-toggle:hover svg {
  transform: rotate(20deg);
  color: var(--accent);
}

/* Animación de cambio de tema */
.theme-toggle.dark .sun-icon {
  display: none;
}

.theme-toggle.dark .moon-icon {
  display: block !important;
}

/* Menú hamburguesa mejorado */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.4rem;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-toggle:hover {
  color: var(--accent);
  transform: scale(1.1);
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* ============================================
   RESPONSIVE - ICONOS
   ============================================ */

@media (max-width: 1024px) {
  .header-icons {
    gap: 1rem;
  }

  .icon-btn svg {
    width: 18px;
    height: 18px;
  }

  .lang-text {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  /* Header - Menú móvil */
  .site-header {
    padding: 0.5rem 4%;
  }

  .logo img {
    height: 100px;
  }

  /* Mostrar botón hamburguesa */
  .menu-toggle {
    display: block;
  }

  /* MANTENER el botón CTA oculto en el header */
  .header-icons .cta-button {
    display: none;
  }

  /* Navegación móvil */
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 18, 0.98);
    backdrop-filter: blur(20px);
    padding: 5rem 2rem 2rem;
    transition: right 0.4s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    z-index: 999;
  }

  .main-nav.active {
    right: 0;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 2rem;
  }

  .main-nav li {
    text-align: center;
  }

  .main-nav a {
    font-size: 1.1rem;
    display: block;
    padding: 0.5rem;
  }

  /* AGREGAR el botón CTA dentro del menú móvil */
  .main-nav::after {
    content: '';
    display: block;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Crear un enlace CTA dentro del nav */
  .main-nav .cta-button {
    display: block !important;
    width: 100%;
    text-align: center;
    margin-top: 2rem;
    background: var(--accent);
    color: var(--bg);
    padding: 0.9rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
  }

  .main-nav .cta-button:hover {
    background: var(--accent-light);
    transform: scale(1.05);
  }

  /* Mostrar botón hamburguesa */
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Mantener iconos visibles en móvil */
  .header-icons {
    gap: 0.8rem;
  }

  .icon-btn svg {
    width: 18px;
    height: 18px;
  }

  .lang-text {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .header-icons {
    gap: 0.6rem;
  }

  .icon-btn svg {
    width: 16px;
    height: 16px;
  }

  .lang-text {
    font-size: 0.75rem;
  }

  .menu-toggle svg {
    width: 20px;
    height: 20px;
  }
}

/* ============================================
   ESTADOS ADICIONALES
   ============================================ */

/* Active state para iconos */
.icon-btn.active {
  color: var(--accent);
}

/* Disabled state */
.icon-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.icon-btn:disabled:hover {
  transform: none;
  color: var(--text);
}

/* Focus visible para accesibilidad */
.icon-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* === PORTFOLIO === */
.portfolio-section {
  padding: 5rem 5%;
  background-color: var(--bg);
}

.filter-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 0.6rem 1.5rem;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
}

.filter-btn:hover {
  background: rgba(0, 240, 255, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

.filter-btn.active {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.5s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.portfolio-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 240, 255, 0.15);
}

.project-image {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-image:hover img {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.85));
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-image:hover .project-overlay {
  opacity: 1;
}

.overlay-content {
  text-align: center;
  width: 100%;
}

.overlay-content span {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  display: block;
  margin-bottom: 0.8rem;
  color: white;
}

.icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  font-size: 1.2rem;
}

.project-info {
  padding: 1.5rem;
  background: var(--card-bg);
}

.project-info h3 {
  color: var(--text);
  margin-bottom: 0.8rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
}

.project-info p {
  color: #BBBBBB;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

/* Responsive para portafolio */
@media (max-width: 768px) {
  .portfolio-section {
    padding: 3rem 5%;
  }

  .filter-buttons {
    gap: 0.6rem;
    padding: 0 1rem;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-image {
    height: 200px;
  }

  .project-info {
    padding: 1.2rem;
  }

  .project-info h3 {
    font-size: 1rem;
  }

  .project-info p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .filter-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .project-image {
    height: 180px;
  }
}

/* Tema claro - Filtros de portafolio */
body.light-theme .filter-btn {
  border-color: rgba(26, 26, 46, 0.2);
  color: var(--text);
}

body.light-theme .filter-btn:hover {
  background: rgba(0, 128, 255, 0.1);
  border-color: var(--accent);
  color: var(--accent);
}

body.light-theme .filter-btn.active {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}

body.light-theme .portfolio-item {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

body.light-theme .portfolio-item:hover {
  box-shadow: 0 8px 25px rgba(0, 128, 255, 0.15);
}

/* Logo en tema oscuro (por defecto) */
.logo img {
  height: 320px;
  filter: brightness(1.5);
  transition: filter 0.3s ease;
}

/* Logo en tema claro - invertir colores */
body.light-theme .logo img {
  filter: brightness(0.3) invert(0);
  /* O si tienes un logo diferente, usar esto: */
  /* content: url('img/logo-oscuro.png'); */
}

/* Responsive */
@media (max-width: 1024px) {
  .logo img {
    height: 100px;
  }
}

@media (max-width: 768px) {
  .logo img {
    height: 100px;
  }
}

@media (max-width: 480px) {
  .logo img {
    height: 100px;
  }
}

/* === ENLACES COMO BOTONES - WHASTAPP === */
.cta-button,
.btn-primary,
.btn-secondary {
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

/* ============================================
   CONTACTO HERO
   ============================================ */
.contact-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 5% 4rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.05) 0%, rgba(0, 10, 18, 0) 100%);
}

.contact-hero-content {
  max-width: 700px;
  margin: 0 auto;
}

/* Nav active link */
.main-nav a.active {
  color: var(--accent);
}

/* ============================================
   CONTACTO SECTION
   ============================================ */
.contact-section {
  padding: 3rem 5% 5rem;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* ============================================
   FORMULARIO
   ============================================ */
.contact-form-wrapper {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.form-header {
  margin-bottom: 2rem;
}

.form-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.form-header p {
  color: #BBBBBB;
  font-size: 0.95rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.9rem 1.2rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0, 240, 255, 0.05);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  cursor: pointer;
}

.form-group .error-message {
  color: #FF4444;
  font-size: 0.85rem;
  display: none;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #FF4444;
}

.form-group.error .error-message {
  display: block;
}

/* Botón de envío */
.btn-submit {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-submit:hover:not(:disabled) {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.3);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Spinner de carga */
.spinner {
  animation: rotate 1s linear infinite;
  width: 20px;
  height: 20px;
}

.spinner circle {
  stroke: currentColor;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

/* Mensajes de éxito/error */
.form-message {
  padding: 1rem;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  text-align: center;
  margin-top: 1rem;
}

.success-message {
  background: rgba(0, 255, 136, 0.1);
  border: 2px solid #00FF88;
  color: #00FF88;
}

.error-message-form {
  background: rgba(255, 68, 68, 0.1);
  border: 2px solid #FF4444;
  color: #FF4444;
}

/* ============================================
   CONTACTO HERO
   ============================================ */
.contact-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 5% 4rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.05) 0%, rgba(0, 10, 18, 0) 100%);
}

.contact-hero-content {
  max-width: 700px;
  margin: 0 auto;
}

/* Nav active link */
.main-nav a.active {
  color: var(--accent);
}

/* ============================================
   CONTACTO SECTION
   ============================================ */
.contact-section {
  padding: 3rem 5% 5rem;
}

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: start;
}

/* ============================================
   FORMULARIO - ESTILO ORIGINAL QUE FUNCIONABA
   ============================================ */
.contact-form-wrapper {
  background: var(--card-bg);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.form-header {
  margin-bottom: 2rem;
}

.form-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.form-header p {
  color: #BBBBBB;
  font-size: 0.95rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.9rem 1.2rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(0, 240, 255, 0.05);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* Select personalizado - sin flecha nativa */
.form-group select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300F0FF' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--card-bg);
  color: var(--text);
  padding: 0.5rem;
}

.form-group .error-message {
  color: #FF4444;
  font-size: 0.85rem;
  display: none;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
  border-color: #FF4444;
}

.form-group.error .error-message {
  display: block;
}

/* Botón de envío */
.btn-submit {
  background: var(--accent);
  color: var(--bg);
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.btn-submit:hover:not(:disabled) {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.3);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Spinner de carga */
.spinner {
  animation: rotate 1s linear infinite;
  width: 20px;
  height: 20px;
}

.spinner circle {
  stroke: currentColor;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite;
}

@keyframes rotate {
  100% { transform: rotate(360deg); }
}

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

/* Mensajes de éxito/error */
.form-message {
  padding: 1rem;
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  text-align: center;
  margin-top: 1rem;
}

.success-message {
  background: rgba(0, 255, 136, 0.1);
  border: 2px solid #00FF88;
  color: #00FF88;
}

.error-message-form {
  background: rgba(255, 68, 68, 0.1);
  border: 2px solid #FF4444;
  color: #FF4444;
}

/* Responsive */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}y
/* ============================================
   INFO DE CONTACTO
   ============================================ */
.contact-info {
  position: sticky;
  top: 120px;
}

.contact-info h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.contact-info > p {
  color: #BBBBBB;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.info-item {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.info-item:hover {
  transform: translateX(5px);
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.1);
}

.info-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-icon svg {
  color: var(--bg);
}

.info-content h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.info-content a,
.info-content p {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.info-content a:hover {
  color: var(--accent-light);
}

.info-content p {
  color: #BBBBBB;
}

/* Redes sociales */
.social-links {
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 12px;
}

.social-links h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  width: 45px;
  height: 45px;
  background: rgba(0, 240, 255, 0.1);
  border: 2px solid rgba(0, 240, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq-section {
  padding: 5rem 5%;
  background-color: var(--bg);
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--card-bg);
  border-radius: 12px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 4px 15px rgba(0, 240, 255, 0.1);
}

.faq-question {
  width: 100%;
  padding: 1.5rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
  color: #BBBBBB;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .contact-container {
    gap: 3rem;
  }

  .contact-info {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .contact-hero {
    min-height: 50vh;
    padding: 6rem 5% 3rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .contact-form-wrapper {
    padding: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .form-header h2 {
    font-size: 1.7rem;
  }

  .info-item {
    padding: 1.2rem;
  }

  .faq-question {
    font-size: 1rem;
    padding: 1.2rem;
  }

  .faq-answer p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .contact-hero {
    padding: 5rem 5% 2rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }

  .form-header h2 {
    font-size: 1.5rem;
  }

  .btn-submit {
    padding: 0.9rem 1.5rem;
    font-size: 0.95rem;
  }

  .info-icon {
    width: 45px;
    height: 45px;
  }

  .info-icon svg {
    width: 20px;
    height: 20px;
  }

  .social-icons a {
    width: 40px;
    height: 40px;
  }
}

/* ============================================
   TEMA CLARO
   ============================================ */
body.light-theme .contact-hero {
  background: linear-gradient(135deg, rgba(0, 128, 255, 0.05) 0%, rgba(245, 247, 250, 0) 100%);
}

body.light-theme .contact-form-wrapper,
body.light-theme .info-item,
body.light-theme .social-links,
body.light-theme .faq-item {
  background: var(--card-bg);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

body.light-theme .form-group input,
body.light-theme .form-group select,
body.light-theme .form-group textarea {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text);
}

body.light-theme .form-group input::placeholder,
body.light-theme .form-group textarea::placeholder {
  color: rgba(0, 0, 0, 0.4);
}

body.light-theme .form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230080FF' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
}

body.light-theme .form-group select option {
  background: var(--card-bg);
  color: var(--text);
}

body.light-theme .form-group input:focus,
body.light-theme .form-group select:focus,
body.light-theme .form-group textarea:focus {
  background: rgba(0, 128, 255, 0.05);
  border-color: var(--accent);
}

body.light-theme .form-header p,
body.light-theme .contact-info > p,
body.light-theme .faq-answer p,
body.light-theme .info-content p {
  color: #5A5A6E;
}

body.light-theme .faq-section {
  background-color: rgba(0, 0, 0, 0.02);
}

/* === TECHNOLOGIES === */
.technologies-section {
  padding: 5rem 5%;
  background-color: var(--bg);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.tech-category {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.tech-category.visible {
  opacity: 1;
  transform: translateY(0);
}

.tech-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.tech-category h3 {
  color: var(--accent);
  margin-bottom: 1.2rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
}

.tech-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tech-icon {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.3s ease;
}

.tech-icon:hover {
  background: rgba(0, 240, 255, 0.15);
  color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
  .tech-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .technologies-section {
    padding: 3rem 5%;
  }

  .tech-category {
    padding: 1.5rem;
  }

  .tech-category h3 {
    font-size: 1.1rem;
  }

  .tech-icon {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }
}

/* === STACK TECNOLÓGICO === */
/* === STACK TECNOLÓGICO - ESTILO MODERNO COMO EN LA IMAGEN === */
.tech-stack-section {
  padding: 6rem 5%;
  background-color: var(--bg);
  overflow: hidden;
}

.tech-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.tech-item {
  background: rgba(30, 30, 46, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 1.8rem 1.5rem;
  width: 140px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(30px);
  border: 1px solid rgba(0, 240, 255, 0.1);
}

.tech-item.visible {
  opacity: 1;
  transform: translateY(0);
}

.tech-item:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 240, 255, 0.15);
  border-color: var(--accent);
}

.tech-icon-wrapper {
  width: 60px;
  height: 60px;
  margin: 0 auto 1rem;
  background: rgba(0, 240, 255, 0.1);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.tech-icon-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1); /* Blanco puro */
  transition: filter 0.3s ease;
}

.tech-item:hover .tech-icon-wrapper img {
  filter: brightness(0) invert(1) drop-shadow(0 0 10px var(--accent));
}

.tech-item span {
  display: block;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.tech-item small {
  display: block;
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 1024px) {
  .tech-item {
    width: 130px;
    padding: 1.5rem 1.2rem;
  }

  .tech-icon-wrapper {
    width: 55px;
    height: 55px;
  }
}

@media (max-width: 768px) {
  .tech-stack-section {
    padding: 4rem 5%;
  }

  .tech-container {
    gap: 1.5rem;
  }

  .tech-item {
    width: 120px;
    padding: 1.4rem 1rem;
  }

  .tech-icon-wrapper {
    width: 50px;
    height: 50px;
  }

  .tech-item span {
    font-size: 0.9rem;
  }

  .tech-item small {
    font-size: 0.7rem;
  }
}

@media (max-width: 480px) {
  .tech-item {
    width: 110px;
    padding: 1.2rem 0.8rem;
  }

  .tech-icon-wrapper {
    width: 45px;
    height: 45px;
  }
}
/* === ADAPTACIONES PARA MODO CLARO EN STACK TECNOLÓGICO === */
body.light-theme .tech-stack-section {
  background-color: var(--bg); /* Asegura fondo claro */
}

body.light-theme .tech-item {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 128, 255, 0.15);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

body.light-theme .tech-item:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 15px 40px rgba(0, 128, 255, 0.2);
  border-color: var(--accent);
  background: #FFFFFF;
}

body.light-theme .tech-icon-wrapper {
  background: rgba(0, 128, 255, 0.1);
  border-radius: 18px;
}

body.light-theme .tech-icon-wrapper img {
  filter: none; /* Quita el blanco forzado */
  /* Los iconos de simple-icons ya vienen en su color de marca, queda más profesional */
}

body.light-theme .tech-item:hover .tech-icon-wrapper img {
  filter: drop-shadow(0 0 8px rgba(0, 128, 255, 0.4));
  transform: scale(1.1);
}

body.light-theme .tech-item span {
  color: #1A1A2E; /* Texto oscuro */
}

body.light-theme .tech-item small {
  color: var(--accent);
  opacity: 1;
}

/* Opcional: si quieres que los iconos sean en azul en lugar de color de marca */
body.light-theme .tech-icon-wrapper img {
  filter: brightness(0) hue-rotate(180deg) saturate(5); /* Fuerza color azul, si prefieres uniforme */
}

/* === NUESTRO PROCESO - VERTICAL TIMELINE COMO EN LA IMAGEN === */
.process-section {
  padding: 5rem 5%;
  background-color: var(--bg);
}

.process-vertical-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* Línea vertical central */
.process-vertical-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent), var(--accent-light));
  border-radius: 2px;
  z-index: 1;
}

.process-card {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 4rem;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
  z-index: 2;
}

.process-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.process-icon {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
  z-index: 3;
}

.process-icon svg {
  width: 30px;
  height: 30px;
  color: var(--bg);
}

.process-content {
  width: 45%;
  padding: 2rem;
  background: #1E1E2E; /* Fondo de tarjeta como en la imagen */
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Alternar lado izquierdo/derecho */
.process-card:nth-child(odd) .process-content {
  margin-right: auto;
  margin-left: 5%;
  text-align: right;
}

.process-card:nth-child(even) .process-content {
  margin-left: auto;
  margin-right: 5%;
  text-align: left;
}

.process-content h3 {
  color: var(--accent);
  font-family: 'Poppins', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.process-content p {
  color: #CCCCCC;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

/* Responsive - En móvil todo a la izquierda y más compacto */
@media (max-width: 768px) {
  .process-vertical-timeline::before {
    left: 30px;
    transform: none;
  }

  .process-card {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 3rem;
  }

  .process-icon {
    position: absolute;
    left: 30px;
    transform: none;
    top: 20px;
  }

  .process-content {
    width: calc(100% - 80px);
    margin-left: 80px !important;
    margin-right: 0 !important;
    text-align: left !important;
    padding: 1.5rem;
  }

  .process-content h3 {
    font-size: 1.2rem;
  }

  .process-content p {
    font-size: 0.95rem;
  }
}
/* === ADAPTACIONES PARA MODO CLARO EN NUESTRO PROCESO === */
body.light-theme .process-section {
  background-color: var(--bg);
}

body.light-theme .process-vertical-timeline::before {
  background: linear-gradient(to bottom, var(--accent), #3399FF); /* Cyan/azul claro */
}

body.light-theme .process-content {
  background: #FFFFFF; /* Tarjeta blanca */
  border: 1px solid rgba(0, 128, 255, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  color: #1A1A2E;
}

body.light-theme .process-content h3 {
  color: var(--accent); /* Mantiene el cyan para el título */
}

body.light-theme .process-content p {
  color: #5A5A6E; /* Texto gris oscuro legible */
}

body.light-theme .process-icon {
  background: var(--accent);
  box-shadow: 0 0 20px rgba(0, 128, 255, 0.3);
}

body.light-theme .process-card:hover .process-content {
  box-shadow: 0 15px 40px rgba(0, 128, 255, 0.2);
  border-color: var(--accent);
  background: #FFFFFF;
}

body.light-theme .process-card:hover .process-icon {
  transform: scale(1.1);
}

/* === FOOTER === */
.site-footer {
  background-color: var(--bg);
  padding: 4rem 5% 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: flex;
  gap: 4rem;
  margin-bottom: 2rem;
}

.footer-logo img {
  height: 60px;
  filter: brightness(1.5);
}

.footer-about {
  max-width: 300px;
}

.footer-about p {
  color: #CCCCCC;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links svg {
  width: 20px;
  height: 20px;
  color: var(--text);
  transition: color 0.3s ease;
}

.social-links svg:hover {
  color: var(--accent);
}

.footer-links {
  display: flex;
  gap: 3rem;
}

.footer-column h4 {
  color: var(--text);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: #BBBBBB;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-column a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  color: #CCCCCC;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-about {
    max-width: 100%;
  }

  .footer-links {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-column h4 {
    font-size: 0.9rem;
  }

  .footer-column a {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 3rem 5% 1rem;
  }

  .footer-logo img {
    height: 50px;
  }

  .footer-about p {
    font-size: 0.85rem;
  }

  .footer-column h4 {
    font-size: 0.85rem;
  }

  .footer-column a {
    font-size: 0.8rem;
  }

  .footer-bottom {
    font-size: 0.8rem;
  }
}

/* === FOOTER MEJORADO === */
.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 4rem;
  margin-bottom: 2rem;
  align-items: start;
}

.footer-logo-about {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-logo img {
  height: 60px;
  filter: brightness(1.5);
}

.contact-column h4 {
  margin-bottom: 1rem;
}

.contact-list {
  list-style: none;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1rem;
  color: #BBBBBB;
  font-size: 0.95rem;
}

.contact-list li svg {
  color: var(--accent);
  flex-shrink: 0;
}

.contact-list a {
  color: #BBBBBB;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-list a:hover {
  color: var(--accent);
}

.social-links {
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .contact-column {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }

  .footer-logo-about {
    align-items: center;
    text-align: center;
  }

  .contact-list li {
    justify-content: center;
  }

  .social-links {
    justify-content: center;
  }

  .contact-column {
    grid-column: auto;
  }
}

/* === LOGO ADAPTATIVO PARA AMBOS TEMAS === */
.footer-logo img,
.site-header .logo img {
  height: 90px; /* Footer */
  filter: brightness(1.8);
  transition: filter 0.3s ease;
}

/* En modo claro: invertir y oscurecer el logo */
body.light-theme .footer-logo img,
body.light-theme .site-header .logo img {
  filter: brightness(0) invert(0.1); /* Lo hace casi negro, ajusta si quieres más oscuro */
  /* Si tu logo es muy claro, prueba esto para más contraste: */
  /* filter: brightness(0) invert(1) hue-rotate(180deg) saturate(2); */
}

/* Tamaños específicos si necesitas ajustar */
@media (max-width: 768px) {
  .footer-logo img,
  .site-header .logo img {
    height: 90px;
  }
  
  body.light-theme .footer-logo img,
  body.light-theme .site-header .logo img {
    height: 90px;
  }
}


/* === CUSTOM SELECT - 100% CONTROLADO Y SIN PATRÓN FEO === */
.custom-select {
  position: relative;
  width: 100%;
}

.custom-select .select-selected {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-select .select-selected::after {
  content: '';
  width: 12px;
  height: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

.custom-select.select-arrow-active .select-selected::after {
  transform: rotate(180deg);
}

.custom-select .select-items {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(30, 30, 46, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top: none;
  border-radius: 0 0 10px 10px;
  max-height: 200px;
  overflow-y: auto;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.custom-select .select-items div {
  padding: 0.9rem 1.2rem;
  cursor: pointer;
  color: var(--text);
  transition: background 0.3s ease;
}

.custom-select .select-items div:hover {
  background: rgba(0, 240, 255, 0.1);
}

.select-hide {
  display: none;
}

/* Modo claro */
body.light-theme .custom-select .select-selected {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .custom-select .select-selected::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230080FF' stroke-width='3'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

body.light-theme .custom-select .select-items {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .custom-select .select-items div:hover {
  background: rgba(0, 128, 255, 0.1);
}

/* Focus */
.custom-select.select-arrow-active .select-selected,
.custom-select .select-selected:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.15);
}

body.light-theme .custom-select.select-arrow-active .select-selected {
  box-shadow: 0 0 0 3px rgba(0, 128, 255, 0.15);
}
