html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  min-width: 320px;
}

::selection {
  background: #2563eb;
  color: #fff;
}

.nav-link {
  display: block;
  padding: .5rem .75rem;
  color: #111827;
  border-radius: .375rem;
  transition: color .2s ease, background-color .2s ease;
}

.dark .nav-link { color: #f9fafb; }
.nav-link:hover { color: #2563eb; }
.dark .nav-link:hover { color: #60a5fa; }

.hero-section {
  position: relative;
  isolation: isolate;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.58), rgba(0,0,0,.72));
}

.hero-kicker,
.section-label {
  display: inline-block;
  font-size: .72rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero-kicker {
  padding: .55rem .75rem;
  border: 1px solid rgba(255,255,255,.75);
  color: #fff;
  background: rgba(0,0,0,.22);
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .7rem 1.15rem;
  border: 2px solid #000;
  border-radius: .6rem;
  font-size: .9rem;
  font-weight: 800;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}

.hero-button:hover { transform: translateY(-2px); }
.hero-button.primary { background: #2563eb; color: #fff; }
.hero-button.primary:hover { background: #1d4ed8; }
.hero-button.secondary { background: #fff; color: #111827; }
.hero-button.secondary:hover { background: #f3f4f6; }

.section-anchor { scroll-margin-top: 5rem; }
.section-band { background: #f3f4f6; border-top: 2px solid #000; border-bottom: 2px solid #000; }
.dark .section-band { background: rgba(30,41,59,.5); border-color: #fff; }

.section-label { color: #2563eb; margin-bottom: .65rem; }
.dark .section-label { color: #60a5fa; }

.section-title {
  margin: 0 0 .8rem;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: -.03em;
  color: #111827;
  text-align: center;
}
.dark .section-title { color: #fff; }

.section-lead {
  max-width: 48rem;
  margin: 0 auto;
  color: #4b5563;
  line-height: 1.75;
  text-align: center;
}
.dark .section-lead { color: #cbd5e1; }

.body-copy {
  margin-top: 1rem;
  color: #4b5563;
  line-height: 1.8;
}
.dark .body-copy { color: #cbd5e1; }

.about-card,
.service-card,
.process-card,
.project-card,
.contact-form {
  border: 2px solid #000;
  border-radius: .75rem;
  background: #fff;
  box-shadow: 4px 4px 0 #000;
}
.dark .about-card,
.dark .service-card,
.dark .process-card,
.dark .project-card,
.dark .contact-form {
  border-color: #fff;
  background: #1e293b;
  box-shadow: 4px 4px 0 #fff;
}

.about-card { padding: 1.5rem; }
.about-card h3 { font-weight: 900; font-size: 1.2rem; margin-bottom: 1.2rem; }
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.tech-item { display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: .8rem .4rem; border: 1px solid #d1d5db; border-radius: .5rem; font-size: .75rem; font-weight: 700; }
.dark .tech-item { border-color: #475569; }
.tech-item img { width: 28px; height: 28px; object-fit: contain; }

.service-card { padding: 1.4rem; transition: transform .2s ease; }
.service-card:hover { transform: translateY(-5px); }
.service-number { font-size: .8rem; font-weight: 900; color: #2563eb; margin-bottom: .9rem; }
.service-card h3 { font-size: 1.25rem; font-weight: 900; margin-bottom: .65rem; }
.service-card p { color: #4b5563; font-size: .9rem; line-height: 1.65; }
.dark .service-card p { color: #cbd5e1; }
.service-card ul { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid #d1d5db; color: #374151; font-size: .78rem; line-height: 1.8; }
.dark .service-card ul { border-color: #475569; color: #cbd5e1; }
.service-card li::before { content: "✓"; font-weight: 900; color: #2563eb; margin-right: .45rem; }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.process-card { padding: 1.35rem; }
.process-card > span { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #2563eb; color: #fff; font-size: .75rem; font-weight: 900; margin-bottom: 1rem; }
.process-card h3 { font-size: 1.15rem; font-weight: 900; margin-bottom: .45rem; }
.process-card p { color: #4b5563; font-size: .88rem; line-height: 1.65; }
.dark .process-card p { color: #cbd5e1; }

.project-card { overflow: hidden; display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.project-card:hover { transform: translateY(-5px); box-shadow: 7px 7px 0 #000; }
.dark .project-card:hover { box-shadow: 7px 7px 0 #fff; }
.project-image-link { display: block; overflow: hidden; border-bottom: 2px solid #000; }
.dark .project-image-link { border-color: #fff; }
.card-img { display: block; width: 100%; height: 270px; object-fit: cover; object-position: top; transition: transform .4s ease; }
.project-card:hover .card-img { transform: scale(1.025); }
.project-content { display: flex; flex: 1; flex-direction: column; padding: 1.5rem; }
.project-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.project-meta span { padding: .25rem .5rem; border: 1px solid #111827; border-radius: .25rem; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.dark .project-meta span { border-color: #fff; }
.project-content h3 { font-size: 1.45rem; font-weight: 900; line-height: 1.2; margin-bottom: .7rem; }
.project-content > p { color: #4b5563; font-size: .9rem; line-height: 1.7; }
.dark .project-content > p { color: #cbd5e1; }
.project-details { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: 1.15rem 0; }
.project-details div { padding: .7rem; border-left: 3px solid #2563eb; background: #f9fafb; }
.dark .project-details div { background: #0f172a; }
.project-details strong, .project-details span { display: block; }
.project-details strong { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; }
.project-details span { margin-top: .2rem; color: #4b5563; font-size: .75rem; }
.dark .project-details span { color: #cbd5e1; }
.tech-row { display: flex; gap: .55rem; align-items: center; margin-bottom: 1.2rem; }
.tech-row img { width: 22px; height: 22px; object-fit: contain; }
.project-link { margin-top: auto; display: inline-flex; align-items: center; gap: .4rem; color: #2563eb; font-size: .88rem; font-weight: 900; }
.project-link:hover { text-decoration: underline; }
.dark .project-link { color: #60a5fa; }

.cta-section { background: #111827; color: #fff; border-bottom: 2px solid #000; }
.cta-section .section-label { color: #93c5fd; }
.cta-section h2 { margin: .3rem auto .8rem; max-width: 700px; font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; line-height: 1.05; letter-spacing: -.03em; }
.cta-section p { max-width: 620px; margin: 0 auto 1.5rem; color: #d1d5db; line-height: 1.7; }
.cta-section .hero-button { margin: 0 auto; border-color: #fff; }

.contact-form { padding: 1.5rem; display: grid; gap: 1rem; }
.contact-form label { display: block; margin-bottom: .45rem; font-size: .8rem; font-weight: 800; }
.contact-form label span { font-weight: 500; color: #6b7280; }
.dark .contact-form label span { color: #94a3b8; }
.contact-form input:not([type="checkbox"]), .contact-form select, .contact-form textarea { width: 100%; border: 2px solid #111827; border-radius: .5rem; background: #f9fafb; color: #111827; padding: .75rem; font-size: .9rem; outline: none; transition: border-color .2s ease, box-shadow .2s ease; }
.dark .contact-form input:not([type="checkbox"]), .dark .contact-form select, .dark .contact-form textarea { border-color: #fff; background: #0f172a; color: #fff; }
.contact-form input:not([type="checkbox"]):focus, .contact-form select:focus, .contact-form textarea:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.2); }
.contact-form textarea { resize: vertical; }
.submit-button { width: 100%; border: 2px solid #000; border-radius: .6rem; background: #2563eb; color: #fff; padding: .8rem 1rem; font-weight: 900; cursor: pointer; transition: background-color .2s ease, transform .2s ease; }
.submit-button:hover { background: #1d4ed8; transform: translateY(-1px); }
.dark .submit-button { border-color: #fff; }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; margin-top: 1.5rem; }
.contact-links a { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: .88rem; color: #111827; }
.dark .contact-links a { color: #fff; }
.contact-links a:hover { color: #2563eb; text-decoration: underline; }
.contact-links img { width: 21px; height: 21px; }

.footer { margin: 1rem; border: 2px solid #000; border-radius: .75rem; background: #fff; }
.dark .footer { border-color: #fff; background: #1e293b; }
.footer span, .footer a { color: #4b5563; font-size: .8rem; font-weight: 600; }
.dark .footer span, .dark .footer a { color: #cbd5e1; }
.footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.footer a:hover { color: #2563eb; text-decoration: underline; }

#loader-wrapper.opacity-0 { opacity: 0; }
.loader-logo { width: 74px; height: 74px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 16px; color: #fff; font-size: 1.35rem; font-weight: 900; letter-spacing: -.05em; animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(.94); opacity: .72; } 50% { transform: scale(1); opacity: 1; } }

@media (max-width: 900px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: 1fr; }
  .project-details { grid-template-columns: 1fr; }
  .card-img { height: 220px; }
  .footer nav { gap: .75rem; }
  .hero-button { width: 100%; max-width: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Reseñas */
.reviews-invite {
  max-width: 760px;
  margin: 1.5rem auto 0;
  padding: 2rem;
  text-align: center;
  border: 2px dashed currentColor;
  border-radius: 1rem;
  background: rgba(255,255,255,.55);
}
.dark .reviews-invite { background: rgba(15,23,42,.55); }
.reviews-invite h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: .6rem; }
.reviews-invite p { max-width: 620px; margin: 0 auto 1.25rem; color: #4b5563; }
.dark .reviews-invite p { color: #cbd5e1; }
.review-stars { font-size: 1.25rem; letter-spacing: .2rem; margin-bottom: .75rem; }
.reviews-empty h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: .6rem; }
.reviews-empty p { max-width: 620px; margin: 0 auto 1.25rem; color: #4b5563; }
.dark .reviews-empty p { color: #cbd5e1; }
.review-form-card {
  padding: 2rem;
  border: 2px solid #000;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
}
.dark .review-form-card { background: #1e293b; border-color: #fff; }
.back-link { display: inline-block; margin-bottom: 1.5rem; font-weight: 700; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.consent-check { display:flex; gap:.65rem; align-items:flex-start; font-size:.9rem; line-height:1.4; }
.consent-check input { margin-top:.2rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .review-form-card { padding: 1.25rem; } }

.form-security-note { margin: -.25rem 0 0; text-align: center; font-size: .78rem; color: #6b7280; }
.dark .form-security-note { color: #94a3b8; }

.reviews-list { display: grid; gap: 1rem; }
.review-card { max-width: 820px; margin: 0 auto; width: 100%; padding: 1.5rem; border: 2px solid #000; border-radius: 1rem; background: #fff; }
.dark .review-card { border-color: #fff; background: #1e293b; }
.review-card blockquote { margin: .5rem 0 1rem; font-size: 1.05rem; line-height: 1.7; }
.review-author { margin: 0; font-weight: 900; }
.review-role { font-weight: 600; color: #6b7280; }
.dark .review-role { color: #94a3b8; }




/* Availability / project capacity */
.availability-section {
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  background: #f8fafc;
}
.dark .availability-section {
  border-color: #fff;
  background: #0f172a;
}
.availability-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  align-items: center;
  padding: 1.5rem;
  border: 2px solid #000;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 6px 6px 0 #000;
}
.dark .availability-card {
  border-color: #fff;
  background: #111827;
  box-shadow: 6px 6px 0 #fff;
}
.availability-icon {
  width: 4rem;
  height: 4rem;
  display: grid;
  place-items: center;
  border: 2px solid #000;
  border-radius: .75rem;
  font-weight: 900;
  font-size: 1.15rem;
}
.dark .availability-icon { border-color: #fff; color: #fff; }
.availability-card h2 {
  margin: .35rem 0 .5rem;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.15;
  font-weight: 900;
}
.availability-card p {
  margin: 0;
  max-width: 52rem;
  line-height: 1.7;
}
@media (max-width: 640px) {
  .availability-card {
    grid-template-columns: 1fr;
    box-shadow: 4px 4px 0 #000;
  }
  .dark .availability-card { box-shadow: 4px 4px 0 #fff; }
}
