:root {
  --orange: #d65a20;
  --orange-deep: #a83e12;
  --ink: #1a1a1a;
  --muted: #5c5c5c;
  --paper: #f5f5f5;
  --white: #ffffff;
  --bronze: #b87333;
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Manrope", "Helvetica Neue", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

/* —— Top bar —— */
.topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem clamp(1.2rem, 4vw, 2.5rem);
  color: var(--ink);
  mix-blend-mode: normal;
}

.brand-mark {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}

.brand-mark span {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
}

.topbar-link {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.9;
  transition: opacity 0.25s var(--ease);
}

.topbar-link:hover {
  opacity: 1;
}

/* —— Hero: 40% image, right-aligned —— */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(280px, 63%);
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: auto;
  padding: clamp(5.5rem, 10vw, 7rem) clamp(1.2rem, 5vw, 3rem) clamp(2.5rem, 6vw, 4rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 80% at 100% 20%, rgba(214, 90, 32, 0.12), transparent 55%),
    linear-gradient(135deg, #f7f5f2 0%, #ebe7e2 50%, #e4dfd8 100%);
}

.hero-media {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: min(100vh, 818px);
  justify-self: end;
  object-fit: contain;
  object-position: right center;
  transform: none;
  animation: riseIn 0.9s var(--ease) both;
  border-radius: 2px;
}

.hero-scrim {
  display: none;
}

.hero-copy {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 5;
  padding: 0;
  color: var(--ink);
  max-width: 34rem;
  animation: riseIn 0.9s 0.1s var(--ease) both;
}

.hero-copy h1 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 4.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-shadow: none;
  color: var(--ink);
}

.hero-copy p {
  margin: 0 0 1.25rem;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  max-width: 28rem;
  opacity: 1;
  color: var(--muted);
  text-shadow: none;
}

.hero-copy .btn-ghost {
  background: rgba(26, 26, 26, 0.06);
  color: var(--ink);
  border: 1px solid rgba(26, 26, 26, 0.18);
}

.hero-copy .btn-ghost:hover {
  background: rgba(26, 26, 26, 0.1);
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
    padding-top: 5rem;
  }

  .hero-media {
    order: -1;
    width: 100%;
    max-width: 440px;
    max-height: 440px;
    justify-self: end;
    margin-left: auto;
  }
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border: none;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--orange-deep);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-ink {
  background: var(--ink);
  color: var(--white);
}

.btn-ink:hover {
  background: #000;
}

/* —— Sections —— */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.2rem, 5vw, 3rem);
}

.section-inner {
  max-width: 68rem;
  margin: 0 auto;
}

.about {
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(214, 90, 32, 0.08), transparent 55%),
    linear-gradient(165deg, #fff 0%, var(--paper) 100%);
}

.kicker {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
}

.kicker-light {
  color: #ff8a4c;
}

.about h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 18ch;
}

.about-lead {
  margin: 0 0 1.5rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--muted);
  max-width: 38rem;
}

.about-grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 2.25rem;
}

@media (min-width: 720px) {
  .about-grid {
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
  }
}

.bio-block p {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.bio-block p:last-child {
  margin-bottom: 0;
}

.creds {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.creds li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  font-size: 0.98rem;
  color: var(--muted);
  opacity: 0;
  transform: translateY(12px);
  animation: riseIn 0.7s var(--ease) both;
}

.creds li:nth-child(1) { animation-delay: 0.05s; }
.creds li:nth-child(2) { animation-delay: 0.15s; }
.creds li:nth-child(3) { animation-delay: 0.25s; }
.creds li:nth-child(4) { animation-delay: 0.35s; }

.creds .dot {
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--orange);
}

/* —— Pre-construcción —— */
.precon {
  background:
    linear-gradient(180deg, #1f1a17 0%, #151210 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.precon::before {
  content: "";
  position: absolute;
  width: 36rem;
  height: 36rem;
  left: -14rem;
  bottom: -18rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 90, 32, 0.28), transparent 68%);
  pointer-events: none;
  animation: glowPulse 7s ease-in-out infinite;
}

.precon .section-inner {
  position: relative;
  z-index: 1;
}

.precon h2 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  max-width: 16ch;
}

.precon-lead {
  margin: 0 0 2.25rem;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  color: rgba(255, 255, 255, 0.78);
  max-width: 46rem;
  line-height: 1.65;
}

.precon-grid {
  display: grid;
  gap: 1.5rem 1.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 720px) {
  .precon-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.precon-item h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #ff8a4c;
}

.precon-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
  max-width: 32rem;
}

.precon-cta {
  margin-top: 0.5rem;
}

.btn-soft {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.btn-soft:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* —— Contact —— */
.contact {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  width: 40rem;
  height: 40rem;
  right: -12rem;
  top: -16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 90, 32, 0.35), transparent 65%);
  pointer-events: none;
  animation: glowPulse 6s ease-in-out infinite;
}

.contact .section-inner {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.contact h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.contact > .section-inner > p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.message-box {
  margin: 0 0 1.5rem;
  padding: 1.15rem 1.25rem;
  background: rgba(255, 255, 255, 0.06);
  border-left: 3px solid var(--orange);
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.contact-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-list li {
  display: grid;
  gap: 0.2rem;
}

.contact-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.contact-list a {
  color: #ff8a4c;
  font-weight: 600;
  font-size: 1.05rem;
  word-break: break-word;
}

.contact-list a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* —— Footer —— */
.site-footer {
  padding: clamp(2rem, 5vw, 3rem) clamp(1.2rem, 5vw, 3rem);
  background: #0d0d0d;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.92rem;
}

.footer-inner {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}

.footer-thanks {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(0.98rem, 2vw, 1.08rem);
  line-height: 1.55;
}

.footer-biz {
  margin: 0 0 1.35rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
  line-height: 1.55;
}

.footer-biz strong {
  display: inline-block;
  margin-bottom: 0.2rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1.25rem;
}

.footer-contacts a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}

.footer-contacts a:hover {
  color: #ff8a4c;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-social a {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange);
}

.footer-social a:hover {
  color: #ff8a4c;
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* —— WhatsApp bubble —— */
.wa-bubble {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.75rem 1.05rem 0.75rem 0.85rem;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  animation: waIn 0.6s 0.4s var(--ease) both;
}

.wa-bubble:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.5);
  color: #fff;
}

.wa-bubble-icon {
  width: 1.55rem;
  height: 1.55rem;
  flex-shrink: 0;
}

.wa-bubble-label {
  padding-right: 0.15rem;
}

@keyframes waIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroIn {
  from {
    transform: scale(1.12);
    opacity: 0.65;
  }
  to {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .hero-media {
    transform: none;
  }
}

@media (max-width: 640px) {
  .topbar {
    mix-blend-mode: normal;
    background: transparent;
  }

  .wa-bubble {
    right: 0.9rem;
    bottom: 0.9rem;
    padding: 0.85rem;
  }

  .wa-bubble-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}
