/* Global Styles */
:root {
  --primary: #ff4d4d;
  --primary-dark: #e64444;
  --secondary: #1a1a1a;
  --accent: #ff6b6b;
  --text: #333;
  --light-text: #777;
  --bg-light: #f9f9f9;
  --white: #ffffff;
  --transition: all 0.3s ease;
  --gradient-primary: linear-gradient(135deg, #ff4d4d 0%, #ff6b6b 100%);
  --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  --shadow-glow: 0 0 20px rgba(255, 77, 77, 0.3);
  --shadow-dark: 0 10px 30px rgba(0, 0, 0, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--gradient-dark);
  background-attachment: fixed;
  overflow-x: hidden;
  position: relative;
  width: 100%;
  max-width: 100%;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 77, 77, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(26, 26, 26, 0.3) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

main {
  padding: 0rem 0;
  overflow-x: hidden;
  max-width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  overflow-x: hidden;
  width: 100%;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--white);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
}

h1 {
  font-size: 3.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: glow 2s ease-in-out infinite alternate;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

p {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

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

a:hover {
  color: var(--primary-dark);
  text-shadow: var(--shadow-glow);
}

/* Buttons */
.button {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow-dark);
  position: relative;
  overflow: hidden;
}

.button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.button:hover::before {
  left: 100%;
}

.button:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(255, 77, 77, 0.4);
}

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

.button-outline:hover {
  background: var(--primary) !important;
  color: black !important;
  box-shadow: var(--shadow-glow);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(255, 77, 77, 0.2);
  overflow-x: hidden;
}

.header.scroll-down {
  transform: translateY(-100%);
}

.header.scroll-up {
  transform: translateY(0);
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.4);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  position: relative;
}

.logo::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.logo:hover::after {
  transform: scaleX(1);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  position: relative;
}

.nav-links::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -20px;
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, transparent, var(--primary), transparent);
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: white;
  text-shadow: var(--shadow-glow);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--primary);
}

.nav-links a.active::after {
  width: 100%;
}

.cta-button {
  background: var(--gradient-primary);
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  overflow-x: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.7) contrast(1.1);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at center, rgba(26, 26, 26, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%),
    linear-gradient(135deg, rgba(236, 15, 15, 0.1) 0%, rgba(26, 26, 26, 0.952) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
  animation: fadeInUp 1s ease-out;
}

/* Imágenes laterales del hero - solo en escritorio */
.hero-side-images {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start; /* Alinea las imágenes arriba */
  padding-top: 10%; /* Espacio superior */
}

.hero-side-image {
  width: 350px;
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
  transition: all 0.5s ease;
  margin: 0 2%; /* Margen lateral */
}

/* Responsive para imágenes laterales */
@media (max-width: 1400px) {
  .hero-side-image {
    width: 300px;
  }
}

@media (max-width: 1200px) {
  .hero-side-image {
    width: 250px;
  }
}

@media (max-width: 1024px) {
  .hero-side-image {
    width: 200px;
  }
}

.hero-left-image {
  left: 5%;
  top: 50%;
  transform: translateY(-50%) rotate(-5deg);
}

.hero-right-image {
  right: 5%;
  top: 50%;
  transform: translateY(-50%) rotate(5deg);
}

.hero-side-image:hover {
  opacity: 1;
  transform: translateY(-50%) scale(1.05) rotate(0deg);
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-align: center;
  line-height: 1.1;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, #fff 0%, #ff4d4d 50%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleGlow 3s ease-in-out infinite;
  position: relative;
}

.hero h1::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 77, 77, 0.3) 30%, transparent 70%);
  z-index: -1;
  border-radius: 10px;
  animation: pulseGlow 2s ease-in-out infinite;
}
/* franja de video antes de proyectos destacados--------------------------------------- */
.featured-video-section {
  width: 100%;
  height: 450px;
  overflow: hidden;
  position: relative;
}

.featured-video-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 1;
}

.featured-video-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 77, 77, 0.3) 50%, transparent 100%);
  z-index: 2;
}

.featured-video-section .hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 2.5rem;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.button-group {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* Animations */
@keyframes glow {
  from { filter: brightness(1) drop-shadow(0 0 10px rgba(255, 77, 77, 0.3)); }
  to { filter: brightness(1.2) drop-shadow(0 0 20px rgba(255, 77, 77, 0.6)); }
}

@keyframes titleGlow {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.1); }
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s ease;
}

.mobile-menu-btn:hover {
  color: var(--primary);
  transform: rotate(90deg);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: var(--gradient-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    border-left: 1px solid rgba(255, 77, 77, 0.2);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.2rem;
    padding: 0.8rem 0;
  }

  .mobile-menu-btn {
    display: block;
  }

  .mobile-menu-btn.active {
    position: fixed;
    right: 5%;
  }

  .hero h1 {
    font-size: 3.5rem;
  }
  
  /* Ocultar imágenes laterales en tablets */
  .hero-side-images {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .hero p {
    font-size: 1.1rem;
  }
  
  /* Ocultar imágenes laterales en móviles */
  .hero-side-images {
    display: none;
  }

  .button-group {
    flex-direction: column;
    align-items: center;
  }

  .button {
    width: 100%;
    max-width: 250px;
  }

  /* Optimización featured-projects para móvil */
  .featured-projects {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .featured-card {
    margin-bottom: 1rem;
  }

  .featured-image {
    height: 200px;
  }

  .featured-info {
    padding: 1.5rem;
  }

  /* Optimización tech-stack para móvil */
  .tech-stack {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    width: 100%;
    overflow-x: hidden;
  }

  .tech-grid {
    flex-direction: column !important;
    gap: 1.5rem;
  }

  .tech-category {
    padding: 1.5rem;
  }

  .tech-items {
    gap: 0.5rem;
  }

  .tech-item, .tool-item {
    width: 50px;
    height: 50px;
  }

  /* Optimización stats para móvil */
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
  }

  .stat-item {
    padding: 1.5rem 1rem;
  }

  /* Optimización contact para móvil */
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .header {
    padding: 1rem 5%;
  }

  .logo {
    font-size: 1.5rem;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  /* Optimizaciones extra para móviles pequeños */
  .featured-projects {
    gap: 1rem;
  }

  .featured-image {
    height: 150px;
  }

  .featured-info {
    padding: 1rem;
  }

  .featured-info h3 {
    font-size: 1.2rem;
  }

  .tech-stack {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .tech-grid {
    flex-direction: column !important;
    gap: 1rem;
  }

  .tech-category {
    padding: 1rem;
  }

  .tech-items {
    gap: 0.3rem;
    justify-content: center;
  }

  .tech-item, .tool-item {
    width: 40px;
    height: 40px;
  }

  .tech-category h3 {
    font-size: 1.1rem;
    text-align: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .stat-item {
    padding: 1rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section-title {
    padding: 2rem 0 1rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  /* Contenedor de tecnologías optimizado */
  .tech-stack {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .tech-category {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Optimización videos hero para móvil */
  .hero-video {
    object-position: center;
    transform: none; /* Eliminado scale para evitar scroll horizontal */
  }

  .hero-overlay {
    background: linear-gradient(180deg, 
      rgba(0,0,0,0.3) 0%, 
      rgba(0,0,0,0.7) 50%, 
      rgba(0,0,0,0.9) 100%);
  }

  .hero-content {
    padding: 0 1rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
    line-height: 1.2;
  }

  .hero-content h2 {
    font-size: 1.3rem;
  }

  .hero-content p {
    font-size: 1rem;
    max-width: 95%;
  }

  /* Optimización servicios-section para móvil */
  .services-section {
    padding: 3rem 0;
  }

  .service-category {
    margin-bottom: 2rem;
  }

  .service-content {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  .service-text {
    padding: 0 1rem;
  }

  .service-text h2 {
    font-size: 1.8rem;
  }

  .service-text p {
    font-size: 1rem;
  }

  .service-image {
    height: 200px;
  }

  .service-image img {
    height: 100%;
    object-fit: cover;
  }

  .service-features li {
    font-size: 0.9rem;
    padding: 0.3rem 0;
  }

  .cta-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }

  /* Optimización tools-grid para móvil */
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .tool-category {
    padding: 1.5rem;
  }

  .tool-category h3 {
    font-size: 1.2rem;
  }

  .tool-items {
    justify-content: center;
  }

  .tech-item, .tool-item {
    width: 40px;
    height: 40px;
  }
}

/* Estilos específicos para el portafolio personal */

/* Contenedores principales - Prevenir scroll horizontal */
section, .container, .featured-projects, .tech-stack, .stats-grid, .contact-container {
  overflow-x: hidden;
  max-width: 100%;
}

/* Hero Section Personalizado */
.hero-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
}

.tech-stack {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  text-align: center;
  padding: 0; /* Padding agregado para evitar scroll vertical */
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text ul.service-features {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.service-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  border-radius: 5px;
  margin: 0.2rem 0;
  list-style: none;
}

.service-features li:hover {
  background: rgba(243, 4, 4, 0.007);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(255, 77, 77, 0.2);
  transform: none;
}

.about-text ul.skills-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.about-text ul.skills-list li {
  margin-bottom: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  font-size: 1.05rem;
  padding: 0.5rem 0;
  border-left: 3px solid var(--primary);
  padding-left: 1rem;
  background: rgba(255, 77, 77, 0.05);
  border-radius: 0 8px 8px 0;
  transition: all 0.3s ease;
}

.about-text ul.skills-list li:hover {
  background: rgba(255, 77, 77, 0.1);
  color: white;
  transform: translateX(5px);
  border-left-color: var(--accent);
}

.about-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.stat {
  text-align: center;
  padding: 1.5rem;
  background: var(--bg-alt);
  border-radius: 10px;
  border-left: 4px solid var(--accent);
}

.stat h3 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

/* Stats Animation - Estilo experiencia */
.stats-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: 2rem 0;
  padding-top: 50px;
}

.stat-item {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 77, 77, 0.2);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  border-color: #ff4d4d;
  box-shadow: 0 10px 30px rgba(255, 77, 77, 0.2);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ff4d4d;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(255, 77, 77, 0.5);
  display: block;
}

.stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  font-weight: 500;
  display: block;
}

/* Estilos para contador dinámico de experiencia */
.experience-counter {
  font-size: 2.5rem;
  font-weight: 800;
  color: #ff4d4d;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px rgba(255, 77, 77, 0.5);
  display: block;
  line-height: 1.2;
}

.days-counter {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 77, 77, 0.9);
  opacity: 0.9;
}

@media (max-width: 768px) {
  .stat-number { font-size: 2rem; }
  .experience-counter { font-size: 2rem; }
  .days-counter { font-size: 0.9rem; }
}

/* Featured Projects */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.featured-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.featured-image {
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 15px 15px 0 0;
}

.featured-image iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 15px 15px 0 0;
  transform: scale(0.8);
  transform-origin: 0 0;
  overflow-x: hidden;
}

.featured-info {
  padding: 2rem;
  background: rgba(26, 26, 26, 0.884);
  border-radius: 0 0 15px 15px;
  position: relative;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 77, 77, 0.2);
  margin: 0;
}

.featured-info::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 77, 77, 0.5), transparent);
}

.featured-info h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: white;
  font-weight: 700;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.project-url {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tech-tags {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
  background: rgba(255, 77, 77, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 77, 77, 0.3);
  display: inline-block;
}

.featured-info p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.project-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
  background: rgba(255, 77, 77, 0.1);
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  border: 1px solid rgba(255, 77, 77, 0.3);
}

.project-link:hover {
  color: white;
  background: var(--primary);
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(255, 77, 77, 0.3);
}

/* Tech Stack Section */
.tech-grid {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  margin: 2rem 0;
  justify-content: space-between;
  align-items: stretch;
}

/* Asegurar escritorio mantenga row */
@media (min-width: 769px) {
  .tech-grid {
    flex-direction: row !important;
  }
}

.tech-category {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 77, 77, 0.2);
  transition: all 0.3s ease;
  flex: 1;
  min-width: 0;
}

.tech-category:hover {
  transform: translateY(-5px);
  border-color: #ff4d4d;
  box-shadow: 0 10px 30px rgba(255, 77, 77, 0.2);
}

.tech-category h3 {
  color: #ff4d4d;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(255, 77, 77, 0.5);
}

.tech-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
}

/* Estilos específicos para herramientas en página tecnologías */
.tech-tools-section .tool-item {
  padding: 0 !important;
  margin: 0 !important;
}

.tech-tools-section .tool-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

.tech-item, .tool-item {
  background: rgba(255, 77, 77, 0.1);
  color: rgba(255, 255, 255, 0.9);
  padding: 0;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid rgba(255, 77, 77, 0.3);
  transition: var(--transition);
  width: 100px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.tech-item img, .tool-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

.tech-item:hover, .tool-item:hover {
  background: #ff4d4d;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 77, 77, 0.3);
}

/* Contact Section Personalizado */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 77, 77, 0.2);
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-5px);
  border-color: #ff4d4d;
  box-shadow: 0 10px 30px rgba(255, 77, 77, 0.2);
}

.contact-item h3 {
  color: #ff4d4d;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(255, 77, 77, 0.5);
}

.contact-item p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.cta-button.button-outline:hover {
  background: var(--primary) !important;
  color: black !important;
}

/* Responsive */
@media (max-width: 768px) {
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about-stats {
    flex-direction: row;
    justify-content: space-between;
  }
  
  .stat {
    flex: 1;
    padding: 1rem;
  }
  
  .featured-grid {
    grid-template-columns: 1fr;
  }
  
  .tech-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Projects Section */
.section {
  padding: 6rem 5%;
  background: rgba(26, 26, 26, 0.8);
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.section-title {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 0%, var(--accent) 50%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title p {
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.project-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
  transition: all 0.3s ease;
  cursor: pointer;
 
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(255, 77, 77, 0.3);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.1);
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
}

.project-card:hover .project-info {
  opacity: 1;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.project-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.project-info p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

/* Services Section */
.services {
  background: rgba(0, 0, 0, 0.3);
  position: relative;
}

.services::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 2.5rem 2rem;
  border: 1px solid rgba(255, 77, 77, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(255, 77, 77, 0.2);
  border-color: var(--primary);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  text-align: center;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: white;
  text-align: center;
}

.service-card p {
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  line-height: 1.6;
}

/* Testimonials */
.testimonials {
  background: var(--gradient-dark);
  color: white;
  text-align: center;
  position: relative;
}

.testimonials::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.testimonial-slider {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial {
  padding: 3rem 2rem;
}

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

.testimonial-text::before {
  content: '"';
  font-size: 4rem;
  color: var(--primary);
  position: absolute;
  top: -20px;
  left: -30px;
  opacity: 0.3;
}

.testimonial-author {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-size: 1.2rem;
}

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

/* Contact Section */
.contact {
  background: rgba(26, 26, 26, 0.8);
  position: relative;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.contact-container {
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 3rem;
  border: 1px solid rgba(255, 77, 77, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: white;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(255, 77, 77, 0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(255, 77, 77, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.submit-btn {
  background: var(--gradient-primary);
  color: white;
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.submit-btn:hover::before {
  left: 100%;
}

.submit-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(255, 77, 77, 0.4);
}

/* Footer */
.footer {
  background: var(--gradient-dark);
  color: white;
  padding: 4rem 5% 2rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  display: inline-block;
  position: relative;
}

.footer-logo::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.footer-logo:hover::after {
  transform: scaleX(1);
}

.footer-about p {
  opacity: 0.8;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: rgba(255, 77, 77, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 77, 77, 0.3);
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(255, 77, 77, 0.4);
}

.footer-links h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.8rem;
  color: white;
}

.footer-links h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: 2px;
}

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

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

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  padding-left: 15px;
}

.footer-links a::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--primary);
  opacity: 0;
  transition: all 0.3s ease;
}

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

.footer-links a:hover::before {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
}

.footer-bottom a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-bottom a:hover {
  color: white;
  text-shadow: var(--shadow-glow);
}
