/* Variables y configuración base */
:root {
  /* Paleta de colores */
  --color-primary: #10a37f;
  --color-secondary: #202123;
  --color-accent: #00adb5;
  --color-background: #ffffff;
  --color-text: #353740;
  --color-text-light: #6e6e80;
  --color-border: #e5e5e5;
  --color-hover: #f7f7f8;
  
  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, #10a37f 0%, #0a8a6c 100%);
  --gradient-dark: linear-gradient(160deg, #202123 0%, #353740 100%);
  
  /* Tipografía */
  --font-primary: 'Söhne', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-base: 14px;
  --line-height-base: 1.5;
  
  /* Espaciado */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;
  
  /* Efectos */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --transition-base: all 0.3s ease;
  --border-radius: 0.5rem;
}

/* Reset y estilos base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Contenedores */
.container {
  width: 100%;
  padding: 0 var(--spacing-md);
  margin: 0 auto;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-secondary);
  font-weight: 600;
  line-height: 1.2;
}

/* Tipografía para móviles */
h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--spacing-md);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--color-accent);
}

/* Botones base */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition-base);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Utilidades */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }


/* Padding para secciones en móvil */
.hero-section,
.services-section, 
.focus-section,
.stats-section,
.testimonials-section,
.about-section,
.projects-section,
.project-section {
  padding: 3rem 0;
}


/* Navegación */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar .container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.navbar-logo {
  height: 35px;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.navbar-logo:hover {
  opacity: 1;
  transform: scale(1.02);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.2s ease;
  padding: 8px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-link:hover {
  color: white;
}

.nav-link:hover::after {
  transform: scaleX(1);
}

/* Estilos para los íconos sociales */
.nav-social {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 16px;
  padding: 0 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-social-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.2rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-social-link:hover {
  color: white;
  transform: translateY(-2px);
}

.nav-button {
  padding: 8px 16px;
  background: var(--color-primary);
  color: white;
  border-radius: 6px;
  font-size: 0.875rem;
  transition: all 0.2s ease;
}

.nav-button:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
}

/* Responsive */
@media (max-width: 768px) {
  .navbar-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.98);
    padding: 24px;
    gap: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .navbar-links.active {
    display: flex;
  }

  .nav-social {
    margin: 16px 0;
    padding: 16px 0;
    justify-content: center;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    padding: 0;
    width: 20px;
    height: 20px;
    position: relative;
    cursor: pointer;
  }

  .menu-toggle span {
    display: block;
    width: 20px;
    height: 1px;
    background: white;
    position: absolute;
    left: 0;
    transition: all 0.2s ease;
  }

  .menu-toggle span:first-child {
    top: 6px;
  }

  .menu-toggle span:last-child {
    bottom: 6px;
  }

  .menu-toggle.active span:first-child {
    transform: rotate(45deg);
    top: 9px;
  }

  .menu-toggle.active span:last-child {
    transform: rotate(-45deg);
    bottom: 9px;
  }
}


/***********************************/
/* Hero Section */
/***********************************/

.hero {
  min-height: auto;
  height: auto;
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
  color: white;
  padding-top: 90px;
  padding-bottom: 40px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Para las primeras dos líneas en blanco */
.hero h1 .line:not(.highlight) {
  color: white; /* Cambiado de gris a blanco */
}

.gradient-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(
      135deg,
      rgba(16, 163, 127, 0.15) 0%,
      rgba(0, 0, 0, 0.95) 100%
  );
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding: 6rem 0;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text {
  max-width: 600px;
}

.animate-title {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.animate-title .line {
  display: block;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.5s ease forwards;
}

.animate-title .line:nth-child(2) { animation-delay: 0.2s; }
.animate-title .line:nth-child(3) { animation-delay: 0.4s; }

.highlight {
  color: var(--color-primary);
}

.hero-tags {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
}

.tag {
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.9rem;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.5s ease forwards;
  opacity: 0;
  animation-delay: 0.6s;
}

/* Estadísticas del Hero con namespaces para evitar conflictos */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin: 3rem 0;
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.hero-stat {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1rem;
  padding: 1rem;
}

.hero-stat-circle {
  position: relative;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-circular-progress {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg); /* Hace que el progreso comience desde arriba */
}

.hero-circular-progress path {
  transition: stroke-dasharray 0.5s ease;
}

.hero-stat-number {
  position: absolute;
  font-size: 1rem; /* Reducido para evitar superposición */
  font-weight: 700;
  color: white;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  z-index: 5;
}

/* Para el stat de Proyectos que no tiene círculo */
.hero-stat:nth-child(2) .hero-stat-number {
  position: relative;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  top: auto;
  left: auto;
  transform: none;
}

.hero-stat-label {
  width: 100%;
  text-align: center;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-top: 0.5rem;
}

/* Separadores entre estadísticas */
.hero-stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  height: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}


/* Código Ventana */
.code-window {
  background: #1e1e1e;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateX(30px);
  animation: fadeInRight 0.5s ease forwards 0.8s;
}

.window-header {
  padding: 1rem;
  background: #2d2d2d;
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f56;
}

.dot:nth-child(2) { background: #ffbd2e; }
.dot:nth-child(3) { background: #27c93f; }

.code-content {
  padding: 1.5rem;
}

.code-content code {
  font-family: 'Fira Code', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #e6e6e6;
}

/* Animaciones */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(30px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
      opacity: 0;
      transform: translateX(30px);
  }
  to {
      opacity: 1;
      transform: translateX(0);
  }
}

/* Animación del círculo */
@keyframes progress {
  0% {
      stroke-dasharray: 0, 100;
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes progress {
  from { stroke-dasharray: 0 100; }
}

@media (max-width: 992px) {
  .hero-content {
      grid-template-columns: 1fr;
      text-align: center;
  }

  .hero-tags {
      justify-content: center;
  }

  .animate-title {
      font-size: 2.5rem;
  }
}

/* Media queries */
@media (max-width: 768px) {
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }

  .hero-stat:not(:last-child)::after {
    display: none;
  }

  .hero-stat {
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .hero-stat:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
}



/***********************************************/
/* Servicios */
/***********************************************/
/* Estilos para la sección de servicios */
.services-section {
  padding: 6rem 0;
  background: #1a1a1a;
  color: #ffffff;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  color: #ffffff;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.1rem;
}

/* Estilos específicos para secciones oscuras */
.services-section .section-header h2,
.testimonials-section .section-header h2,
.projects-section .section-header h2,
.project-section .section-header h2 {
  color: white;
  background: linear-gradient(90deg, #fff, #10a37f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Estilos específicos para secciones claras */
.stats-section .section-header h2,
.focus-section .section-header h2,
.about-section .section-header h2 {
  color: var(--color-secondary);
  background: none;
  -webkit-background-clip: initial;
  -webkit-text-fill-color: initial;
}

/* Ajustes para texto de descripción en secciones claras */
.stats-section .section-header p,
.focus-section .section-header p,
.about-section .section-header p {
  color: var(--color-text-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border-color: #10a37f;
}

.service-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.service-icon {
  width: 50px;
  height: 50px;
  background: #10a37f;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.service-tag {
  color: #10a37f;
  font-size: 0.9rem;
  font-weight: 500;
}

.service-content h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-content p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.feature-group h4 {
  color: white;
  margin-bottom: 1rem;
}

.feature-group ul {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.feature-group li {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-group li i {
  color: #10a37f;
}

.feature-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding: 1rem;
  background: rgba(16, 163, 127, 0.1);
  border-radius: 12px;
  margin: 1.5rem 0;
}

.metric {
  text-align: center;
}

.metric-value {
  color: #10a37f;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.metric-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.875rem;
}

.tech-stack h4 {
  color: white;
  margin-bottom: 1rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tags span {
  background: rgba(16, 163, 127, 0.1);
  color: #10a37f;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
}

.service-footer {
  margin-top: 2rem;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: rgba(16, 163, 127, 0.1);
  color: #10a37f;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.service-cta:hover {
  background: #10a37f;
  color: white;
}

/* Responsive */
@media (max-width: 1200px) {
  .services-grid {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .services-grid {
      grid-template-columns: 1fr;
  }
   
  .service-card {
      padding: 1.5rem;
  }
}

/* Media queries para responsividad */
@media (max-width: 992px) {
  .section-header h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .section-header h2 {
    font-size: 2rem;
  }
  
  .section-header p {
    font-size: 1rem;
  }
}




/***********************************************/
/* Áreas de Enfoque */
/***********************************************/
.focus-section {
  padding: 6rem 0;
  background: #f8f9fa;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.focus-card {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.focus-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
}

.focus-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.focus-icon {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.focus-icon i {
  color: white;
  font-size: 1.5rem;
}

.focus-card h3 {
  margin-bottom: 1rem;
  color: var(--color-text);
}

.focus-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.focus-card li {
  padding-left: 1.5rem;
  position: relative;
  margin-bottom: 0.5rem;
  color: var(--color-text-light);
}

.focus-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-primary);
}

.success-rate {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.circular-progress {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.circular-progress path {
  stroke: var(--color-primary);
  stroke-width: 2.8;
  stroke-dasharray: 100;
  animation: progress 1.5s ease-out forwards;
}

.success-rate span {
  position: absolute;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
}

@keyframes progress {
  0% { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: var(--value); }
}

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



/***********************************************/
/* Sección de Estadísticas */
/***********************************************/
.stats-section {
  padding: 6rem 0;
  background: linear-gradient(to bottom, #f8f9fa, #ffffff);
  position: relative;
}

.metrics-dashboard {
  margin-top: 3rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.metric-card {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.metric-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.metric-card.main-metric {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  align-items: center;
}

.metric-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.metric-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-primary), #0d8b6a);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
}

.metric-info h3 {
  font-size: 1.25rem;
  color: var(--color-text);
  margin: 0;
}

.metric-description {
  color: var(--color-text-light);
  font-size: 0.875rem;
  margin: 0.25rem 0 0 0;
}

.metric-visualization {
  height: 250px;
  position: relative;
}

.metric-counter {
  text-align: center;
  padding: 2rem;
}

/* Namespaced para evitar conflictos con el hero */
.metrics-counter-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metrics-counter-value span {
  font-size: 1.5rem;
  margin-left: 0.25rem;
}

.metrics-counter-label {
  color: var(--color-text-light);
  font-size: 0.875rem;
}

.metric-trend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  padding: 0.5rem;
  border-radius: 8px;
  background: rgba(16, 163, 127, 0.1);
}

.metric-trend.up {
  color: #10a37f;
}

.tech-showcase {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.tech-header {
  text-align: center;
  margin-bottom: 2rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.tech-item {
  text-align: center;
  position: relative;
}

.tech-item i {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.tech-item span {
  display: block;
  font-size: 0.875rem;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.tech-progress {
  height: 4px;
  background: rgba(16, 163, 127, 0.1);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.tech-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--color-primary);
  width: var(--progress);
  animation: metrics-progress-load 1s ease-out;
}

@keyframes metrics-progress-load {
  from { width: 0; }
  to { width: var(--progress); }
}

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

  .metric-card.main-metric {
      grid-column: span 1;
      grid-template-columns: 1fr;
  }

  .tech-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 1.5rem;
  }
}

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




/***********************************************/
/* Testimonios */
/***********************************************/
.testimonials-section {
  padding: 6rem 0;
  background: linear-gradient(to bottom, #000000, #111111);
  color: white;
  overflow: hidden;
}

.testimonials-wrapper {
  margin-top: 3rem;
  position: relative;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 2.5rem;
  height: 100%;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.quote-icon {
  color: var(--color-primary);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.testimonial-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.testimonial-stats {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  padding: 1rem;
  background: rgba(16, 163, 127, 0.1);
  border-radius: 12px;
}

.testimonial-stats .stat {
  text-align: center;
}

.testimonial-stats .counter-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  display: inline-block;
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.author-info h4 {
  font-size: 1.1rem;
  margin: 0;
  color: white;
}

.author-info span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.company-logo {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* Swiper Customization */
.swiper-button-next,
.swiper-button-prev {
  color: var(--color-primary);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 1.2rem;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--color-primary);
  color: white;
}

.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
}

.swiper-pagination-bullet-active {
  background: var(--color-primary);
}

@media (max-width: 768px) {
  .testimonial-card {
      padding: 1.5rem;
  }

  .testimonial-text {
      font-size: 1rem;
  }

  .testimonial-stats .counter-value {
      font-size: 1.5rem;
  }
}




/***********************************************/
/* Acerca de mí*/
/***********************************************/
.about-section {
  padding: 5rem 0;
  background: #f7f7f8;
  position: relative;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Interfaz principal del chat */
.chat-interface {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
  max-width: 1000px;
  margin: 0 auto;
  height: 700px;
  display: flex;
  flex-direction: column;
}

/* Barra superior del chat */
.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: #10a37f;
  color: white;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.chat-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-logo {
  width: 32px;
  height: 32px;
  background: white;
  color: #10a37f;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}

.chat-title {
  font-size: 1.125rem;
  font-weight: 600;
}

.chat-model {
  font-size: 0.875rem;
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
}

/* Contenedor principal del chat */
.chat-container {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  overflow: hidden;
  background: #f7f7f8;
}

/* Mensajes del chat */
.chat-messages {
  flex-grow: 1;
  overflow-y: auto;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Estilos del mensaje */
.message {
  display: flex;
  gap: 1rem;
  max-width: 90%;
  animation: fadeIn 0.5s ease-out forwards;
}

.user-message {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.ai-message {
  align-self: flex-start;
}

/* Avatars */
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-avatar {
  background: #5f6368;
  color: white;
}

.ai-avatar {
  background: #10a37f;
  overflow: hidden;
}

.ai-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Contenido del mensaje */
.message-content {
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 1rem;
  line-height: 1.5;
}

.user-message .message-content {
  background: #10a37f;
  color: white;
  border-top-right-radius: 0;
}

.ai-message .message-content {
  background: white;
  color: #333;
  border-top-left-radius: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.ai-message .message-content p:not(:last-child) {
  margin-bottom: 0.75rem;
}

/* Efecto de escritura */
.typing-animation {
  position: relative;
}

.typing-animation::after {
  content: '▋';
  position: absolute;
  right: 0;
  bottom: 0;
  color: #10a37f;
  font-size: 1.2em;
  line-height: 1;
  animation: typing 0.8s infinite;
  opacity: 0;
}

.typing-animation.active::after {
  opacity: 1;
}

@keyframes typing {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* Tarjetas de especialización */
.expertise-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.expertise-card {
  background: rgba(16, 163, 127, 0.05);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.3s ease;
}

.expertise-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  background: rgba(16, 163, 127, 0.1);
}

.expertise-icon {
  width: 50px;
  height: 50px;
  background: #10a37f;
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.expertise-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
  color: #333;
}

.expertise-card p {
  font-size: 0.875rem;
  color: #666;
}

/* Stack Tecnológico */
.tech-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 0.5rem;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: white;
  padding: 0.875rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.tech-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  background: #f5f9f8;
}

.tech-item i {
  font-size: 1.25rem;
  color: #10a37f;
}

.tech-item span {
  font-size: 0.9375rem;
  color: #333;
}

/* CTA Botones */
.ai-cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
}

.cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-button.primary {
  background: #10a37f;
  color: white;
}

.cta-button.primary:hover {
  background: #0d8a6c;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(16, 163, 127, 0.2);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: all 0.3s ease;
}

.social-link.linkedin {
  background: #0077b5;
}

.social-link.github {
  background: #333;
}

.social-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* Input del chat */
.chat-input {
  padding: 1.25rem;
  background: white;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.prompt-box {
  display: flex;
  align-items: center;
  background: #f7f7f8;
  border-radius: 8px;
  padding: 0.625rem 1rem;
  transition: all 0.3s ease;
}

.prompt-box:hover {
  background: #f1f1f3;
}

.prompt-text {
  flex-grow: 1;
  color: #8e8ea0;
  font-size: 0.9375rem;
}

.prompt-button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #10a37f;
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.prompt-button:hover {
  background: #0d8a6c;
  transform: scale(1.05);
}

.input-footer {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
}

.disclaimer {
  font-size: 0.75rem;
  color: #8e8ea0;
}

/* Estilo personalizado del scroll */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c5c5d2;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8b3;
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estilos adicionales para el efecto de escritura */
.bio-intro {
  display: inline-block;
}

/* Responsividad */
@media (max-width: 768px) {
  .chat-interface {
    height: 800px;
  }
  
  .expertise-cards {
    grid-template-columns: 1fr;
  }
  
  .tech-stack {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .message {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .tech-stack {
    grid-template-columns: 1fr;
  }
  
  .message-content {
    padding: 0.875rem;
  }
  
  .chat-header {
    padding: 0.625rem 1rem;
  }
  
  .chat-model {
    display: none;
  }
}

/***********************************************/
/* Proyectos */
/***********************************************/

.projects-section {
  padding: 120px 0;
  background: #000;
  color: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-header h2 {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 16px;
  background: linear-gradient(90deg, #fff, #10a37f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.project-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 163, 127, 0.5);
  box-shadow: 0 4px 30px rgba(16, 163, 127, 0.1);
}

.project-content {
  padding: 32px;
}

.project-category {
  display: inline-block;
  font-size: 14px;
  color: #10a37f;
  margin-bottom: 16px;
  font-weight: 500;
}

.project-card h3 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #fff;
}

.project-card p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 24px;
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 24px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

.metric {
  text-align: center;
}

.metric-value {
  display: block;
  font-size: 24px;
  font-weight: 600;
  color: #10a37f;
  margin-bottom: 4px;
}

.metric-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tags span {
  padding: 6px 12px;
  background: rgba(16, 163, 127, 0.1);
  border: 1px solid rgba(16, 163, 127, 0.2);
  border-radius: 20px;
  font-size: 14px;
  color: #10a37f;
}

/* CTA Card Styles */
.cta-card {
  background: linear-gradient(135deg, rgba(16, 163, 127, 0.1), rgba(16, 163, 127, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cta-card h3 {
  font-size: 28px;
  margin-bottom: 8px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #10a37f;
  color: white;
  border-radius: 8px;
  margin-top: 24px;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: #0d8b6a;
  transform: translateY(-2px);
}

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

  .section-header h2 {
      font-size: 36px;
  }
}

@media (max-width: 768px) {
  .projects-section {
      padding: 80px 0;
  }

  .project-metrics {
      grid-template-columns: 1fr;
      gap: 16px;
  }

  .project-content {
      padding: 24px;
  }
}

/* Animaciones */
@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.project-card {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.project-card:nth-child(2) {
  animation-delay: 0.2s;
}

.project-card:nth-child(3) {
  animation-delay: 0.4s;
}

.project-card:nth-child(4) {
  animation-delay: 0.6s;
}






/* Iniciar Proyecto */
/* Estilos actualizados para sección de contacto (solo WhatsApp y Email) */

/* Manteniendo los estilos base existentes */
.project-section {
  padding: 120px 0;
  background: #000;
  color: #fff;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-header h2 {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 16px;
  background: linear-gradient(90deg, #fff, #10a37f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Panel de contacto actualizado */
.contact-form-wrapper {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: blur(10px);
}

.direct-contact {
  text-align: center;
}

.direct-contact h3 {
  font-size: 28px;
  margin-bottom: 16px;
  color: #fff;
}

.direct-contact p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 32px;
  font-size: 18px;
}

/* Botones de contacto principales */
.contact-buttons-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-btn {
  display: flex;
  align-items: center;
  padding: 20px;
  border-radius: 12px;
  transition: all 0.3s ease;
  text-align: left;
}

.contact-btn i {
  font-size: 28px;
  margin-right: 20px;
}

.contact-btn div {
  display: flex;
  flex-direction: column;
}

.btn-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.btn-subtitle {
  font-size: 14px;
  opacity: 0.8;
}

.contact-btn.whatsapp {
  background: rgba(37, 211, 102, 0.15);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: #25D366;
}

.contact-btn.email {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
}

.contact-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.contact-btn.whatsapp:hover {
  background: rgba(37, 211, 102, 0.25);
}

.contact-btn.email:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* Manteniendo los estilos existentes del panel de información */
.info-panel {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.benefits {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.benefits li {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.number {
  font-size: 14px;
  color: #10a37f;
  padding: 8px;
  border: 1px solid #10a37f;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefits h4 {
  color: white;
  margin-bottom: 8px;
}

.benefits p {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* Responsive */
@media (max-width: 992px) {
  .project-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 0 24px;
  }

  .section-header h2 {
    font-size: 36px;
  }
}

@media (max-width: 768px) {
  .project-section {
    padding: 80px 0;
  }

  .contact-form-wrapper {
    padding: 24px;
  }
  
  .direct-contact h3 {
    font-size: 24px;
  }
  
  .direct-contact p {
    font-size: 16px;
  }
}



/***********************************************/
/* Footer */
/***********************************************/
.footer {
  background: linear-gradient(180deg, #1a1a1a 0%, #0a0a0a 100%);
  color: white;
  position: relative;
}

.footer-top {
  padding: 5rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
}

.footer-brand-section {
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-right: 2rem;
}

.footer-logo {
  height: 55px;
  margin-bottom: 1.5rem;
  opacity: 0.9;
  transition: all 0.3s ease;
}

.footer-logo:hover {
  opacity: 1;
  transform: scale(1.02);
}

.footer-description {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.footer-cta .btn {
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.footer-cta .btn:hover {
  background: white;
  color: var(--color-primary);
}

.footer-links h4,
.footer-contact h4 {
  color: white;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-primary);
  padding-left: 5px;
}

.contact-info .contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
}

.contact-item i {
  width: 20px;
  margin-right: 1rem;
  color: var(--color-primary);
}

.contact-item a,
.contact-item span {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.contact-item a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.footer-social a:hover {
  color: var(--color-primary);
  transform: translateY(-3px);
}

.footer-legal {
  display: flex;
  gap: 2rem;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: white;
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

@media (max-width: 992px) {
  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .footer-brand-section {
    grid-column: 1 / -1;
    max-width: none;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .footer-legal {
    flex-direction: column;
    gap: 1rem;
  }
}







/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: var(--transition-base);
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  border: none;
}

.btn-outline {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
  background: transparent;
}

.btn-icon {
  padding: var(--spacing-sm);
  border-radius: 50%;
}

/* Tarjetas */
.card {
  background: white;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: var(--transition-base);
}

.card-header {
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--color-border);
}

.card-body {
  padding: var(--spacing-md);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Iconos */
.icon {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
  transition: var(--transition-base);
}

.icon-sm { 
  width: 20px;
  height: 20px;
}

.icon-lg {
  width: 32px;
  height: 32px;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.badge-primary {
  background: rgba(16, 163, 127, 0.1);
  color: var(--color-primary);
}

/* Inputs y Forms */
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background: white;
  transition: var(--transition-base);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(16, 163, 127, 0.1);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text);
  font-weight: 500;
}

/* Tooltips */
.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip-content {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.5rem 1rem;
  background: var(--color-secondary);
  color: white;
  border-radius: var(--border-radius);
  font-size: 0.875rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}

.tooltip:hover .tooltip-content {
  opacity: 1;
  visibility: visible;
}

/* Loaders */
.loader {
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Overlays */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-base);
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}



/***********************************************/

/* Espaciado */
.m-0 { margin: 0; }
.m-1 { margin: var(--spacing-xs); }
.m-2 { margin: var(--spacing-sm); }
.m-3 { margin: var(--spacing-md); }
.m-4 { margin: var(--spacing-lg); }
.m-5 { margin: var(--spacing-xl); }

.p-0 { padding: 0; }
.p-1 { padding: var(--spacing-xs); }
.p-2 { padding: var(--spacing-sm); }
.p-3 { padding: var(--spacing-md); }
.p-4 { padding: var(--spacing-lg); }
.p-5 { padding: var(--spacing-xl); }

/* Flex */
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: var(--spacing-xs); }
.gap-2 { gap: var(--spacing-sm); }
.gap-3 { gap: var(--spacing-md); }

/* Grid */
.d-grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Texto */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.fw-bold { font-weight: 700; }
.fw-medium { font-weight: 500; }
.fs-sm { font-size: 0.875rem; }
.fs-lg { font-size: 1.25rem; }

/* Visibilidad y Posición */
.hidden { display: none; }
.visible { display: block; }
.invisible { visibility: hidden; }
.position-relative { position: relative; }
.position-absolute { position: absolute; }
.position-fixed { position: fixed; }

/* Efectos */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.rounded { border-radius: var(--border-radius); }
.rounded-full { border-radius: 9999px; }

/* Animaciones */
.fade-in {
  animation: fadeIn 0.3s ease-in;
}

.slide-up {
  animation: slideUp 0.3s ease-out;
}

.scale-up {
  animation: scaleUp 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes scaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Responsive */
.hide-sm { display: none; }
@media (min-width: 768px) {
  .hide-sm { display: block; }
}

/* Gradientes */
.bg-gradient-primary {
  background: var(--gradient-primary);
}

.bg-gradient-dark {
  background: var(--gradient-dark);
}




/* Media Queries */
/* Mobile First */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
  
  .grid-cols-sm-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }

  .navbar-links {
    display: flex;
  }

  .toggle-button {
    display: none;
  }

  .carousel-caption h5 {
    font-size: 3.5rem;
  }

  .grid-cols-md-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-container {
    grid-template-columns: 1fr 2fr;
  }
}

@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }

  .grid-cols-lg-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .service-item {
    padding: var(--spacing-xl);
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }

  .carousel-caption {
    max-width: 800px;
  }
}

/* Altura específica */
@media (max-height: 768px) {
  .carousel-item {
    height: 90vh;
  }
}

/* Dark Mode */
@media (prefers-color-scheme: dark) {
  :root {
    --color-background: #202123;
    --color-text: #ffffff;
    --color-text-light: #a1a1aa;
    --color-border: #2d2d30;
  }

  .navbar {
    background: rgba(32, 33, 35, 0.95);
  }

  .card, .service-item {
    background: #2d2d30;
  }
}

/* Print Styles */
@media print {
  .navbar,
  .footer,
  .btn {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  .container {
    max-width: 100%;
    padding: 0;
  }
}


/* Añade esto al final de tu archivo styles.css */

/* Solución específica para la sección hero en Chrome móvil */
@media screen and (max-width: 768px) {
  .hero {
    /* En lugar de min-height: 100vh, usamos valores fijos y auto */
    min-height: auto;
    padding-top: 100px; /* Espacio para la navbar fija */
    padding-bottom: 50px;
  }
  
  /* Ajustamos el contenido para asegurar que sea visible */
  .hero .container {
    padding-top: 2rem;
  }
  
  /* Aseguramos que los stats del hero sean visibles */
  .hero-stats {
    margin: 2rem 0;
    gap: 1.5rem; /* Reducir el gap para móviles */
  }
  
  /* Aseguramos que el contenido visual se vea correctamente */
  .hero-visual {
    margin-top: 2rem;
  }

  /* Mejoramos la visualización del código en la ventana */
  .code-content {
    max-height: 300px;
    overflow-y: auto;
  }
  
  /* Ajuste para el scroll indicator */
  .scroll-indicator {
    bottom: 20px;
  }
}

/* Fix para ChromeiOS */
@supports (-webkit-touch-callout: none) {
  .hero {
    height: auto !important; /* Sobrescribe cualquier otro estilo */
    min-height: 500px !important; /* Altura mínima garantizada */
    max-height: none !important;
  }
  
  .hero-content {
    padding-bottom: 50px; /* Asegura espacio al final en iOS */
  }
  
  /* Mejora el rendering de las animaciones en Chrome */
  .animate-title .line,
  .hero-tags .tag,
  .code-window {
    opacity: 1 !important; /* Previene problemas con animaciones */
    transform: none !important;
    animation: none !important;
  }
  
  /* Re-aplicamos las animaciones con mejor comportamiento en Chrome */
  .animate-title .line:nth-child(1) { animation: webkit-simple-fade 0.5s ease forwards !important; }
  .animate-title .line:nth-child(2) { animation: webkit-simple-fade 0.5s ease 0.2s forwards !important; }
  .animate-title .line:nth-child(3) { animation: webkit-simple-fade 0.5s ease 0.4s forwards !important; }
  
  @keyframes webkit-simple-fade {
    0% { opacity: 0.5; }
    100% { opacity: 1; }
  }
}

/* Fix universal para altura del hero */
.hero {
  position: relative;
  min-height: 100vh; /* Fallback */
  min-height: calc(var(--vh, 1vh) * 100);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Mejoramos la respuesta táctil para móviles */
@media (hover: none) and (pointer: coarse) {
  .hero-cta .btn,
  .nav-link,
  .service-cta {
    /* Áreas de toque más grandes para dispositivos táctiles */
    padding: 12px 24px;
    margin: 4px;
  }
}

/* REESCRIBIR LAS PROPORCIONES DE GRID */
@media screen and (max-width: 768px) {
  .hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  
  .hero-text {
    order: 1; /* Asegura que el texto esté primero */
    width: 100%;
    max-width: 100%;
  }
  
  .hero-visual {
    order: 2;
    width: 100%;
  }
  
  /* Ajustamos el tamaño de fuente para móviles */
  .animate-title {
    font-size: 2.5rem;
  }
  
  /* Ajustamos los elementos para que sean más compactos */
  .hero-cta {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}