@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap");

:root {
  --bg: #f8fafc;
  --panel: #ffffff;
  --panel-strong: #f1f5f9;
  --text: #0f172a;
  --muted: #475569;
  --accent: #0f172a;
  --accent-2: #1f2937;
  --border: #e2e8f0;
  --radius: 16px;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.3);
  --glass-bg-strong: rgba(255, 255, 255, 0.45);
  --glass-border: rgba(255, 255, 255, 0.55);
  --glass-shadow: 0 18px 50px rgba(15, 23, 42, 0.16);
}

html {
  scroll-behavior: smooth;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 20% 20%, rgba(15, 23, 42, 0.06), transparent 32%),
    radial-gradient(circle at 80% 0%, rgba(31, 41, 55, 0.08), transparent 28%),
    linear-gradient(145deg, #ffffff 0%, #f8fafc 45%, #edf2f7 100%);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 150ms ease, transform 150ms ease;
}

a:hover {
  color: #334155;
  transform: translateY(-1px);
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

.container {
  width: min(1180px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.narrow {
  max-width: 800px;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  background: linear-gradient(120deg, var(--glass-bg-strong), rgba(255, 255, 255, 0.32));
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transition: transform 250ms ease, opacity 200ms ease;
}

.top-bar.hide {
  transform: translateY(-120%);
  opacity: 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  gap: 1rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: auto;
  width: 70%;
  display: block;
}

.nav-links {
  display: flex;
  gap: 1.4rem;
  align-items: center;
}

.nav-links a,
.nav-cta {
  color: var(--text);
  font-weight: 500;
  font-size: 1.05rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 1rem;
}

.back-link:hover {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 0.28rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.6rem 0.7rem;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 999px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
  background: linear-gradient(120deg, var(--glass-bg-strong), var(--glass-bg));
  color: var(--text);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.btn.primary {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.36));
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 14px 38px rgba(15, 23, 42, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn.ghost {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.12));
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--text);
}

.btn.ghost:hover {
  border-color: rgba(255, 255, 255, 0.65);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.18));
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 0.3rem;
}

.lead {
  font-size: 1.08rem;
  color: #323232;
}

.hero {
  padding: 110px 0 90px;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.06), rgba(31, 41, 55, 0.05));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  z-index: 1;
}

.hero h1 {
  font-size: clamp(2rem, 3vw, 2.9rem);
  margin: 0 0 0.7rem;
  font-family: "Space Grotesk", "Inter", sans-serif;
  letter-spacing: -0.02em;
}

.hero p {
  margin: 0 0 1rem;
}

.hero-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  padding: 1.8rem;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  max-width: 720px;
}

.hero-banner {
  background:
    linear-gradient(120deg, rgba(15, 23, 42, 0.55), rgba(31, 41, 55, 0.35)),
    url("https://github.com/miguel0277/construyete/blob/main/Dise%C3%B1o%20sin%20t%C3%ADtulo%20(1).png?raw=true") center/cover no-repeat;
}

.hero-banner::after {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.48), rgba(255, 255, 255, 0.25));
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 1.4rem 0 1rem;
}

.chips {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.chip {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual .glass {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.hero-visual img {
  border-radius: 16px;
  object-fit: cover;
}

.section {
  padding: 80px 0;
}

.section.muted {
  background: rgba(255, 255, 255, 0.02);
}

.lineas-visual {
  display: flex;
  justify-content: center;
}

.lineas-image {
  display: block;
  width: 100%;
  max-width: 1100px;
}

.lineas-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.section h2 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  margin: 0;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  letter-spacing: -0.01em;
}

.section p {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1.2rem;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.chips-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.blog-grid,
.project-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.linkedin-embed .embed-wrap {
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.linkedin-embed iframe {
  display: block;
  width: 100%;
  min-height: 480px;
  background: #fff;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.card h3,
.card h4 {
  margin: 0;
  font-family: "Space Grotesk", "Inter", sans-serif;
}

.card p {
  margin: 0;
}

.card-footer {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: auto;
}

.link {
  font-weight: 600;
  color: var(--accent);
}

.service h3 {
  font-size: 1.1rem;
}

.service {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  border: none;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
  color: #ffffff;
  min-height: 360px;
  justify-content: flex-end;
  padding: 1.6rem;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 26, 0.42);
  z-index: 0;
  transition: background 200ms ease;
}

.service * {
  position: relative;
  z-index: 1;
}

.service h3 {
  color: #ffffff;
  margin: 0 0 0.6rem;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.25);
}

.service p {
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(6px);
  transition: opacity 200ms ease, max-height 200ms ease, transform 200ms ease;
  margin: 0;
}

.service .card-footer {
  margin-top: 1rem;
  gap: 0.8rem;
}

.service .link {
  color: #ffffff;
}

.service .btn.ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.service .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.service:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.28);
}

.service:hover::before {
  background: rgba(8, 12, 26, 0.62);
}

.service:hover p {
  opacity: 1;
  max-height: 300px;
  transform: translateY(0);
  margin-top: 0.35rem;
}

.service-1 {
  background-image: url("https://github.com/miguel0277/construyete/blob/main/10d7d65a-34a9-44d9-b159-34bbff3a31da.png?raw=true");
}

.service-2 {
  background-image: url("https://github.com/miguel0277/construyete/blob/main/3b60242c-8be8-48cc-bc26-204bcaa25382.png?raw=true");
}

.service-3 {
  background-image: url("https://github.com/miguel0277/construyete/blob/main/42d49588-f4ec-4e1f-93cf-c3144a42a0e9.png?raw=true");
}

.service-4 {
  background-image: url("https://github.com/miguel0277/construyete/blob/main/4d58e90a-f465-4969-bbf7-b92aec875911.png?raw=true");
}

.service-5 {
  background-image: url("https://github.com/miguel0277/construyete/blob/main/86e96f17-834d-4d4b-8ea1-0c60b0d8c4e1.png?raw=true");
}

.service-6 {
  background-image: url("https://github.com/miguel0277/construyete/blob/main/ed3ca798-ee5a-4504-b85c-172aafc3d0d5.png?raw=true");
}

.service-7 {
  background-image: url("https://github.com/miguel0277/construyete/blob/main/3b60242c-8be8-48cc-bc26-204bcaa25382.png?raw=true");
}

.service-8 {
  background-image: url("https://github.com/miguel0277/construyete/blob/main/10d7d65a-34a9-44d9-b159-34bbff3a31da.png?raw=true");
}

.tag {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.chips-grid .card {
  background: var(--panel-strong);
}

.chips-grid .title {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-weight: 600;
}

.project-meta {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.project-image {
  margin-top: 1.6rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.cta {
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.04), rgba(31, 41, 55, 0.04));
}

.cta-box {
  display: flex;
  gap: 1.2rem;
  justify-content: space-between;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.8rem;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}

.cta-box h2 {
  margin: 0.4rem 0 0.3rem;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 3.6rem 0 4.4rem;
  color: var(--muted);
  font-size: 1rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.2rem;
}

.footer-block p {
  margin: 0.2rem 0;
}

.footer-strong {
  color: var(--text);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.footer-block a {
  color: var(--accent-2);
  text-decoration: underline;
}

.footer-subscribe {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
}

.footer-social {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f7f7fb;
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.social-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.social-icon:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}

@media (max-width: 640px) {
  .footer-subscribe {
    align-items: flex-start;
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% - 0.4rem);
    right: 0;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
    min-width: min(320px, 90vw);
    z-index: 20;
  }

  .nav-links .nav-item {
    width: 100%;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1rem;
    width: 100%;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  body {
    line-height: 1.6;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 90px 0 70px;
  }

  .chips-grid,
  .services-grid,
  .project-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
