@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Figtree:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --ink: #14201a;
  --ink-soft: #2c3b33;
  --muted: #5a6b62;
  --paper: #eef2f0;
  --surface: #f8faf9;
  --line: #c5d0ca;
  --accent: #0e7c66;
  --accent-dark: #0a5c4c;
  --accent-soft: #d8f0e9;
  --amber: #d97706;
  --whatsapp: #128c7e;
  --shadow: 0 12px 40px rgba(20, 32, 26, 0.08);
  --radius: 14px;
  --sticky-h: 64px;
  --font-display: 'Bricolage Grotesque', Georgia, serif;
  --font-body: 'Figtree', system-ui, sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(14, 124, 102, 0.14), transparent 55%),
    radial-gradient(900px 400px at 100% 0%, rgba(217, 119, 6, 0.09), transparent 50%),
    linear-gradient(180deg, #f4f7f5 0%, var(--paper) 45%, #e8eeeb 100%);
  min-height: 100vh;
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom));
}

@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

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

a {
  color: var(--accent-dark);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

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

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: #f5faf8;
}

.hero-top {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.35rem 1rem;
  padding: 1rem 1.25rem;
  animation: rise 0.6s ease-out both;
}

.hero-top__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(245, 250, 248, 0.88);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.15s ease;
}

.hero-top__link:hover {
  color: #fff;
}

.hero-top__link--wa {
  color: rgba(125, 204, 192, 0.95);
}

.hero-top__link--wa:hover {
  color: #a8e0d6;
}

.hero-top__icon {
  flex-shrink: 0;
  opacity: 0.9;
}

@media (max-width: 480px) {
  .hero-top {
    gap: 0.75rem;
    padding: 0.85rem 1rem;
  }

  .hero-top__link {
    font-size: 0.75rem;
  }
}

/* Imagen solo en desktop (debajo del overlay); móvil no la descarga */
.hero__media {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(20, 32, 26, 0.45) 0%, rgba(20, 32, 26, 0.82) 55%, rgba(14, 60, 48, 0.95) 100%),
    linear-gradient(135deg, #0e7c66 0%, #14201a 55%, #0a3d32 100%);
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

@media (min-width: 768px) {
  .hero__media {
    display: block;
    background: url('/assets/hero.jpg') center right / cover no-repeat;
  }

  /* Overlay denso a la izquierda (texto); más transparente a la derecha (foto) */
  .hero__bg {
    background:
      linear-gradient(
        90deg,
        rgba(20, 32, 26, 0.92) 0%,
        rgba(14, 80, 64, 0.72) 42%,
        rgba(14, 124, 102, 0.28) 70%,
        rgba(20, 32, 26, 0.12) 100%
      ),
      linear-gradient(180deg, rgba(20, 32, 26, 0.25) 0%, rgba(20, 32, 26, 0.55) 100%);
  }
}

.hero .container {
  position: relative;
  z-index: 2;
  padding: 2.5rem 0 3rem;
  width: min(100% - 2rem, var(--max));
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
  animation: rise 0.7s ease-out both;
}

.brand__mark {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.brand__word {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: #fff;
}

.brand__word span {
  color: #7dccc0;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fbbf24;
  animation: rise 0.7s ease-out 0.08s both;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 22ch;
  color: #f5faf8;
  animation: rise 0.7s ease-out 0.12s both;
}

.hero .lead {
  margin: 0 0 1.5rem;
  max-width: 36rem;
  font-size: 1.125rem;
  color: rgba(245, 250, 248, 0.9);
  animation: rise 0.7s ease-out 0.18s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.7s ease-out 0.24s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  color: inherit;
}

.btn__icon {
  flex-shrink: 0;
}

.btn--light {
  background: #fff;
  color: var(--accent-dark);
  box-shadow: var(--shadow);
}

.btn--light:hover {
  background: #f0faf7;
  color: var(--accent-dark);
}

.btn--whatsapp {
  background: var(--whatsapp);
  color: #fff;
}

.btn--whatsapp:hover {
  background: #0f7a6e;
  color: #fff;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-dark);
  color: #fff;
}

/* —— Services —— */
.services {
  padding: 3.5rem 0 2.5rem;
}

.services__intro {
  margin-bottom: 1.75rem;
  max-width: 36rem;
  animation: rise 0.55s ease-out both;
}

.services h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

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

.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  gap: 0.65rem 1.25rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.service-list li {
  font-weight: 600;
  color: var(--ink-soft);
  padding-left: 1rem;
  position: relative;
  animation: rise 0.5s ease-out both;
}

.service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

.service-list li:nth-child(2) { animation-delay: 0.04s; }
.service-list li:nth-child(3) { animation-delay: 0.08s; }
.service-list li:nth-child(4) { animation-delay: 0.12s; }
.service-list li:nth-child(5) { animation-delay: 0.16s; }
.service-list li:nth-child(6) { animation-delay: 0.2s; }
.service-list li:nth-child(7) { animation-delay: 0.24s; }
.service-list li:nth-child(8) { animation-delay: 0.28s; }
.service-list li:nth-child(9) { animation-delay: 0.32s; }
.service-list li:nth-child(n + 10) { animation-delay: 0.36s; }

/* —— Contact band —— */
.contact {
  padding: 2rem 0 3.5rem;
}

.contact__panel {
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 1.25rem;
  animation: rise 0.55s ease-out both;
}

@media (min-width: 720px) {
  .contact__panel {
    grid-template-columns: 1.2fr auto;
    align-items: center;
  }
}

.contact h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.contact p {
  margin: 0;
  color: var(--muted);
  max-width: 32rem;
}

.contact__meta {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.contact__meta a {
  font-weight: 600;
}

.contact .cta-row {
  justify-content: flex-start;
}

@media (min-width: 720px) {
  .contact .cta-row {
    justify-content: flex-end;
  }
}

/* —— Footer —— */
.site-footer {
  padding: 1.5rem 0 2rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer p {
  margin: 0;
  display: flex;
  align-items: center;
}

.site-footer a {
  font-weight: 600;
}

.footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
}

.footer-social:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

/* —— Sticky mobile —— */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom));
  background: rgba(20, 32, 26, 0.96);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sticky-cta .btn {
  width: 100%;
  border-radius: 12px;
  padding: 0.75rem 1rem;
}

.sticky-cta__icon {
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .sticky-cta {
    display: none;
  }
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
