/* ============================
   McCrea Digital — Landing
   ============================ */

:root {
  --navy: #0E2A47;
  --navy-deep: #08203a;
  --green: #24A87A;
  --green-deep: #1C7E5C;
  --green-light: #4FD6A8;
  --mist: #F2F6FA;
  --steel: #6B7B86;
  --ink: #2b3640;
  --text-secondary: #4a5560;
  --border: #e3eaf1;
  --white: #ffffff;

  --font-heading: "Sora", sans-serif;
  --font-body: "Figtree", sans-serif;

  --container-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--green-deep);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--navy);
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--navy);
}

.eyebrow {
  display: inline-flex;
  align-self: flex-start;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-deep);
  font-weight: 600;
}

.eyebrow-dark {
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(79, 214, 168, 0.16);
  color: var(--green-light);
  letter-spacing: normal;
  text-transform: none;
  font-size: 14px;
}

.lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 34em;
}

.lead-dark {
  color: #c3d2de;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-small {
  min-height: 44px;
  padding: 0 22px;
  font-size: 15px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--green);
  color: #06301F;
}

.btn-primary:hover {
  background: var(--green-light);
  color: #06301F;
}

.btn-outline {
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--green-light);
  color: var(--green-light);
}

.btn-outline-dark {
  border: 1.5px solid var(--navy);
  color: var(--navy);
  background: transparent;
}

.btn-outline-dark:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eef2f6;
}

.nav {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.logo-accent {
  color: var(--green-deep);
  font-weight: 500;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-menu a:not(.btn) {
  font-size: 15px;
  color: #4a5560;
}

.nav-menu a:not(.btn):hover {
  color: var(--navy);
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    background: var(--white);
    padding: 12px 20px 20px;
    border-bottom: 1px solid #eef2f6;
    box-shadow: 0 12px 24px -18px rgba(14, 42, 71, 0.35);
    display: none;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a:not(.btn) {
    padding: 10px 0;
    border-bottom: 1px solid #f2f5f8;
  }

  .nav-menu .btn {
    margin-top: 10px;
  }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  right: -140px;
  top: -120px;
  width: 460px;
  height: 460px;
  border-radius: 999px;
  background: rgba(36, 168, 122, 0.12);
  pointer-events: none;
}

.hero-blob-left {
  left: -110px;
  right: auto;
  top: auto;
  bottom: -150px;
  width: 400px;
  height: 400px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding: 64px 20px 72px;
  position: relative;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(30px, 8vw, 54px);
  line-height: 1.12;
}

.hero-media {
  min-width: 0;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding-top: 6px;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--green-light);
}

.stat-label {
  font-size: 14px;
  color: #9fb3c4;
}

@media (min-width: 760px) {
  .hero-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 92px 28px 96px;
    gap: 48px;
  }
}

/* ---------- Hero mockup ---------- */

.device-mockup {
  position: relative;
  display: block;
  padding: 0 6% 9% 0;
  transition: transform 0.25s ease;
}

.device-mockup:hover,
.device-mockup:focus-visible {
  transform: translateY(-4px);
}

.laptop-screen {
  background: #0b1a2b;
  border: 10px solid #0b1a2b;
  border-bottom-width: 14px;
  border-radius: 14px 14px 0 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.laptop-screen img,
.phone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.laptop-base {
  height: 14px;
  margin: 0 -3%;
  background: linear-gradient(#c9d3dd, #95a3b2);
  border-radius: 0 0 14px 14px;
  position: relative;
}

.laptop-base::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 18%;
  height: 5px;
  transform: translateX(-50%);
  background: #7d8b9a;
  border-radius: 0 0 8px 8px;
}

.phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 26%;
  padding: 6px;
  background: #0b1a2b;
  border-radius: 22px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 18px 40px rgba(0, 0, 0, 0.45);
}

.phone-screen {
  aspect-ratio: 390 / 844;
  border-radius: 16px;
  overflow: hidden;
}

.device-mockup .laptop {
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.35));
}

/* ---------- Placeholders ---------- */

.placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  background: var(--mist);
  color: var(--steel);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  padding: 16px;
}

.placeholder small {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 13px;
  color: var(--steel);
  max-width: 22em;
}

.placeholder-hero {
  border-radius: 22px;
  aspect-ratio: 4 / 3;
  background: rgba(255, 255, 255, 0.06);
  color: #c3d2de;
}

.placeholder-hero small {
  color: #9fb3c4;
}

.placeholder-case {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
}

.portrait {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 999px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  max-width: 260px;
  margin: 0 auto;
  background: #dfe6ec;
}

/* ---------- Sections ---------- */

.section {
  padding: 64px 0;
}

.section-tint {
  background: var(--mist);
}

.section-dark {
  background: var(--navy);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 30px;
  max-width: 620px;
}

.section-head h2,
.proceso-intro h2,
.about-copy h2,
.contacto-copy h2 {
  font-size: clamp(26px, 6vw, 38px);
  line-height: 1.16;
}

@media (min-width: 900px) {
  .section {
    padding: 84px 0;
  }
}

/* ---------- Trabajos ---------- */

.cards-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .cards-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .cards-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.case-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.case-link {
  color: inherit;
  text-decoration: none;
}

.case-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
  border-radius: 18px;
  border: 1px solid var(--mist);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.case-link:hover .case-img,
.case-link:focus-visible .case-img {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(14, 42, 71, 0.14);
}

.case-cta {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}

.case-link:hover .case-cta {
  text-decoration: underline;
}

.case-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.case-tag {
  font-size: 13px;
  color: var(--steel);
}

.case-title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.case-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* ---------- Proceso ---------- */

.proceso-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.proceso-intro {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step {
  background: var(--white);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-number {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
}

.step-number-accent {
  background: var(--green);
  color: #06301F;
}

.step-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
}

.step-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-secondary);
}

@media (min-width: 860px) {
  .proceso-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 44px;
  }
}

/* ---------- Planes ---------- */

.plan-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  position: relative;
}

.plan-card-featured {
  border: 2px solid var(--green);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 28px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--green);
  color: #06301F;
  font-size: 13px;
  font-weight: 700;
}

.plan-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plan-name {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
}

.plan-sub {
  font-size: 15px;
  color: var(--steel);
}

.plan-price {
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.02em;
}

.plan-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.plan-card .btn {
  margin-top: auto;
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.about-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.tag {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--white);
  font-size: 14px;
  color: var(--navy);
  font-weight: 500;
}

@media (min-width: 760px) {
  .about-grid {
    grid-template-columns: 260px 1fr;
    gap: 44px;
  }
}

/* ---------- Contacto ---------- */

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  padding: 64px 0;
  position: relative;
}

.contacto-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.contacto-copy h2 {
  color: var(--white);
  font-size: clamp(26px, 7vw, 40px);
  line-height: 1.16;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 6px;
  font-size: 16px;
  color: var(--white);
}

.contact-info-muted {
  color: #9fb3c4;
}

.contact-form {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 22px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: #c3d2de;
}

.field input {
  min-height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  padding: 0 18px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
}

.field input::placeholder {
  color: #8ba3b8;
}

.field input:focus {
  border-color: var(--green-light);
}

.btn-submit {
  min-height: 50px;
}

.form-note {
  font-size: 13px;
  color: #9fb3c4;
  text-align: center;
}

.form-status {
  font-size: 14px;
  text-align: center;
  color: var(--green-light);
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (min-width: 860px) {
  .contacto-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 44px;
    padding: 88px 0;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  padding: 22px 0;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand span {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}

.footer-copy {
  font-size: 14px;
  color: #7f95a8;
}
