/* ===== VARIABLES CSS ===== */
:root {
  --primary-black: #0a0a0a;
  --secondary-gray: #f5f5f5;
  --accent-blue: #2563eb;
  --text-white: #ffffff;
  --text-gray: #6b7280;
  --dark-gray: #374151;
}

/* ===== RESET Y BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  transition: all 0.3s ease;
}

nav.scrolled {
  background: rgba(10, 10, 10, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-white);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-gray);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

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

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-black) 0%, #1a1a1a 100%);
  position: relative;
  padding: 2rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 20%, var(--accent-blue) 0%, transparent 50%);
  opacity: 0.1;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  z-index: 2;
  position: relative;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-white) 0%, var(--accent-blue) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: fadeInUp 1s ease-out;
}

.hero .subtitle {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-gray);
  margin-bottom: 2rem;
  font-weight: 400;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero .description {
  font-size: 1.1rem;
  color: var(--text-gray);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent-blue);
  color: var(--text-white);
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.cta-button:hover {
  background: #1d4ed8;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

/* ===== SECTIONS GENERAL ===== */
section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-white);
}

/* ===== SERVICES SECTION ===== */
.skills {
  background: var(--primary-black);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.skill-item:nth-child(4) {
  grid-column: 1;
  justify-self: center;
}

.skill-item:nth-child(5) {
  grid-column: 2;
  justify-self: center;
}

.skill-item:nth-child(6) {
  grid-column: 3;
  justify-self: center;
}

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

.skill-item:hover {
  background: rgba(37, 99, 235, 0.1);
  border-color: var(--accent-blue);
  transform: translateY(-3px);
}

.skill-icon {
  font-size: 2rem;
  color: var(--accent-blue);
  margin-bottom: 1rem;
}

.skill-name {
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 0.5rem;
}

.skill-description {
  color: var(--text-gray);
  font-size: 0.9rem;
}

/* ===== BRANDS SECTION ===== */
.brands {
  background: #111111;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.brand-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 2rem 1.5rem;
  border-radius: 15px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.brand-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-blue);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.brand-logo-container {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px;
  transition: all 0.3s ease;
}

.brand-item:hover .brand-logo-container {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.8) contrast(1.2);
  transition: all 0.3s ease;
}

.brand-name {
  color: var(--text-white);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.brand-description {
  color: var(--text-gray);
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.4;
  max-width: 200px;
}

/* ===== SECTION SPACER ===== */
.section-spacer {
  height: 4rem;
  background: var(--primary-black);
}

/* ===== CONTACT SECTION ===== */
.contact {
  background: #111111;
  text-align: center;
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem 1.5rem;
  border-radius: 50px;
  color: var(--text-white);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-link:hover {
  background: var(--accent-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
}

/* ===== FOOTER ===== */
footer {
  background: var(--primary-black);
  padding: 2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
  color: var(--text-gray);
  font-size: 0.9rem;
}

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

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .brands-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem;
    max-width: 100%;
  }

  .skill-item:nth-child(4),
  .skill-item:nth-child(5),
  .skill-item:nth-child(6) {
    grid-column: span 1 !important;
    justify-self: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 100%;
  }

  .brand-logo-container {
    width: 70px;
    height: 70px;
    padding: 8px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .brand-description {
    font-size: 0.8rem;
    max-width: 150px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem;
    max-width: 100%;
  }

  .skill-item:nth-child(4),
  .skill-item:nth-child(5),
  .skill-item:nth-child(6) {
    grid-column: span 1 !important;
    justify-self: center;
  }

  .section-spacer {
    height: 2rem;
  }

  section {
    padding: 3rem 1rem;
  }
}
