@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;600;800&display=swap');

:root {
  --primary: #042f2e;
  /* Teal oscuro */
  --accent: #14b8a6;
  /* Teal brillante */
  --gold: #fbbf24;
  /* Dorado */
  --background: #020617;
  --surface: #0f172a;
  --glass: rgba(15, 23, 42, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--background);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
.logo-text,
.tagline {
  font-family: 'Outfit', sans-serif;
}

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

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  padding: 15px 0;
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  height: 35px;
  width: auto;
  border-radius: 8px;
}

.nav-logo .logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

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

/* Header & Hero */
header {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Reducida opacidad del degradado para que se vea más el fondo */
  background-image:
    linear-gradient(to bottom, rgba(2, 6, 23, 0.4), rgba(2, 6, 23, 0.8)),
    url('img/background.png');
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
  text-align: center;
  padding: 120px 0;
}

.header-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
}

.hero-logo {
  width: 150px;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(20, 184, 166, 0.3);
}

.logo-main {
  font-size: 5.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.05em;
}

.tagline {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 32px;
  color: var(--text-primary);
}

.description {
  margin: 0 auto;
  font-size: 1.35rem;
  color: #f1f5f9;
  line-height: 1.8;
  background: var(--glass);
  backdrop-filter: blur(12px);
  padding: 32px;
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--card-shadow);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.7;
  transition: var(--transition);
}

.scroll-indicator:hover {
  opacity: 1;
  transform: translateX(-50%) translateY(5px);
}

.scroll-indicator i {
  font-size: 1.5rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

/* Projects Section */
.projects {
  padding: 120px 0;
  background: var(--background);
}

.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 60px;
  font-weight: 800;
  background: linear-gradient(to right, #fff, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.project-card {
  background: var(--surface);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent);
  box-shadow: 0 20px 40px -10px rgba(20, 184, 166, 0.2);
}

.project-image {
  width: 100%;
  height: 240px;
  background-size: cover;
  background-position: top;
  position: relative;
  transition: var(--transition);
}

.project-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, var(--surface));
}

.project-content {
  padding: 32px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-icon {
  font-size: 1.5rem;
  color: var(--accent);
  background: rgba(20, 184, 166, 0.1);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 20px;
}

.project-card:hover .project-icon {
  background: var(--accent);
  color: white;
}

.project-card h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  font-weight: 700;
}

.project-card p {
  color: var(--text-secondary);
  margin-bottom: 30px;
  flex-grow: 1;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  color: white;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 600;
  transition: var(--transition);
  align-self: flex-start;
}

.project-link:hover {
  transform: translateX(5px);
  filter: brightness(1.1);
}

/* Contact Section */
.contact {
  padding: 120px 0;
  background: radial-gradient(circle at top right, #042f2e, #020617);
  text-align: center;
}

.contact h2 {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: var(--accent);
  color: white;
  padding: 20px 60px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.25rem;
  transition: var(--transition);
}

.contact-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 30px rgba(20, 184, 166, 0.4);
}

/* Footer */
footer {
  padding: 60px 0;
  background: var(--background);
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

.social-links {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-links a {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border-radius: 50%;
  font-size: 1.25rem;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--accent);
  transform: translateY(-5px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .logo-main {
    font-size: 3.5rem;
  }

  .nav-links {
    display: none;
  }

  .tagline {
    font-size: 1.75rem;
  }
}
