/* Reset y configuración base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #334155;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
}

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

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: white;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #f8fafc;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.btn-outline:hover {
  background: #f8fafc;
}

/* Secciones */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 3rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1.5rem;
}

.section-line {
  width: 5rem;
  height: 0.25rem;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  margin: 0 auto 1rem;
  border-radius: 2px;
}

.section-header p {
  font-size: 1.25rem;
  color: #64748b;
  max-width: 32rem;
  margin: 0 auto;
}

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

.hero-background {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.1),
    rgba(139, 92, 246, 0.1)
  );
  filter: blur(3rem);
}

.hero-decoration-1 {
  position: absolute;
  top: 5rem;
  left: 5rem;
  width: 18rem;
  height: 18rem;
  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.2),
    rgba(139, 92, 246, 0.2)
  );
  border-radius: 50%;
  filter: blur(2rem);
}

.hero-decoration-2 {
  position: absolute;
  bottom: 5rem;
  right: 5rem;
  width: 24rem;
  height: 24rem;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.2),
    rgba(236, 72, 153, 0.2)
  );
  border-radius: 50%;
  filter: blur(2rem);
}

.hero-content {
  max-width: 64rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-profile {
  margin-bottom: 2rem;
  animation: fadeIn 0.8s ease-out;
}

.profile-image {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  ring: 4px solid rgba(255, 255, 255, 0.5);
  transition: transform 0.3s ease;
}

.profile-image:hover {
  transform: scale(1.05);
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #0f172a, #1e40af, #0f172a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  animation: fadeIn 0.8s ease-out 0.2s both;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #64748b;
  margin-bottom: 1rem;
  font-weight: 300;
  animation: fadeIn 0.8s ease-out 0.4s both;
}

.hero-description {
  font-size: 1.125rem;
  color: #64748b;
  margin-bottom: 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
  animation: fadeIn 0.8s ease-out 0.6s both;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
  animation: fadeIn 0.8s ease-out 0.8s both;
}

.hero-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
  animation: fadeIn 0.8s ease-out 1s both;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  color: #475569;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.social-link:hover {
  background: white;
  color: #3b82f6;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.scroll-indicator {
  animation: bounce 2s infinite;
}

.scroll-indicator i {
  font-size: 1.5rem;
  color: #94a3b8;
}

/* About Section */
.about {
  padding: 5rem 0;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(10px);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-image img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.about-image img:hover {
  transform: scale(1.02);
}

.about-text {
  space-y: 1.5rem;
}

.about-text p {
  font-size: 1.125rem;
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.tech-tag {
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #dbeafe, #e9d5ff);
  color: #475569;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tech-tag:hover {
  background: linear-gradient(135deg, #bfdbfe, #ddd6fe);
  transform: translateY(-2px);
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background: linear-gradient(135deg, #0f172a, #1e40af);
  color: white;
}

.contact .section-header h2 {
  color: white;
}

.contact .section-line {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
}

.contact .section-header p {
  color: #cbd5e1;
}

.contact-content {
  text-align: center;
  margin-bottom: 4rem;
}

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

.contact-item {
  text-align: center;
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: scale(1.05);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  border-radius: 50%;
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.contact-item:hover .contact-icon {
  transform: scale(1.1);
}

.contact-icon i {
  font-size: 2rem;
  color: white;
}

.contact-item h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contact-item p {
  color: #cbd5e1;
}

.contact-btn {
  font-size: 1.125rem;
  padding: 1rem 2rem;
}

.footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  text-align: center;
}

.footer p {
  color: #94a3b8;
}

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

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    grid-template-columns: 1fr;
  }

  .section-header h2 {
    font-size: 2.5rem;
  }

  .container {
    padding: 0 1rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.5rem;
  }

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

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}
