:root {
  --bg: #000000;
  --text: #ffffff;
  --text-light: #e0e0e0;
  --accent: #00ff9d;
  --section-pad: clamp(20px, 5vw, 40px);
  --max-container: 1400px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overflow-x: hidden;
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--max-container);
  margin: 0 auto;
  padding: 0 var(--section-pad);
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

header,
section {
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--section-pad);
  position: relative;
}

header {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("https://images.unsplash.com/photo-1555066931-4365d14bab8c?auto=format&fit=crop&q=80")
      center/cover no-repeat;
  background-attachment: scroll;
}

.logo-container img {
  max-width: min(90vw, 380px);
  height: auto;
  margin-bottom: clamp(1.5rem, 5vw, 2.5rem);
}

.slogan {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(1.4rem, 6vw, 2.2rem);
  font-weight: 700;
  margin: 1rem 0 1.5rem;
  color: var(--text-light);
  max-width: 90%;
}

.lead {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(1.1rem, 4.5vw, 1.4rem);
  font-weight: 500;
  margin-bottom: clamp(1.5rem, 6vw, 3rem);
  color: var(--text-light);
  max-width: 800px;
}

.free-consult {
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(0.9rem, 3vw, 1rem);
  font-weight: 400;
  color: var(--text-light);
  opacity: 0.85;
  margin: 0.8rem 0 2rem;
  max-width: 700px;
  text-align: center;
}

.header-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.8rem, 3vw, 1.5rem);
  justify-content: center;
}

.btn,
.btn-outline {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 600;
  padding: clamp(0.8rem, 3vw, 1rem) clamp(1.5rem, 5vw, 2.5rem);
  font-size: clamp(0.95rem, 3.5vw, 1.1rem);
  border-radius: 50px;
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 180px;
  text-align: center;
}

.btn {
  background: var(--accent);
  color: #000;
  border: none;
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 255, 157, 0.35);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  background: var(--accent);
  color: #000;
}

h2 {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 700;
  margin-bottom: clamp(1.5rem, 6vw, 3rem);
  color: var(--accent);
}

.services-grid,
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem);
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: clamp(1.8rem, 4vw, 2.5rem);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.service-card h3 {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(1.4rem, 4vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent);
  text-align: center;
}

.service-card p {
  font-family: "Inter", system-ui, sans-serif;
  font-size: clamp(0.95rem, 3vw, 1.05rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-light);
  flex-grow: 1;
  margin: 0;
}

.portfolio-item img {
  width: 100%;
  border-radius: 12px;
  transition: transform 0.4s ease;
  display: block;
}

.portfolio-item:hover img {
  transform: scale(1.06);
}

form {
  max-width: 600px;
  width: 100%;
  display: grid;
  gap: 1.2rem;
  margin: 2rem auto 0;
}

input,
textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  padding: clamp(0.9rem, 3vw, 1.2rem);
  border-radius: 8px;
  font-size: clamp(1rem, 3.5vw, 1.1rem);
  font-family: "Inter", system-ui, sans-serif;
}

input::placeholder,
textarea::placeholder {
  color: #888;
}

button[type="submit"] {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 600;
  background: var(--accent);
  color: #000;
  border: none;
  padding: clamp(1rem, 4vw, 1.2rem);
  font-size: clamp(1rem, 4vw, 1.15rem);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
}

button[type="submit"]:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 255, 157, 0.35);
}

.contact-text {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: var(--text-light);
  font-size: clamp(1rem, 3.5vw, 1.15rem);
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 500;
}

#contacto {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

#contacto .container {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

footer {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  padding: clamp(1.5rem, 5vw, 2.5rem) var(--section-pad);
  text-align: center;
  font-size: clamp(0.85rem, 3vw, 0.95rem);
  color: var(--text-light);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
  background: var(--bg);
}

@media (max-width: 480px) {
  .header-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }

  .btn,
  .btn-outline {
    width: 100%;
  }

  .services-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  header,
  section {
    padding: clamp(1.5rem, 6vw, 3rem) var(--section-pad);
  }

  .logo-container img {
    max-width: 70vw;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
