:root {
  --bg: #fff8ef;
  --surface: #fffefb;
  --ink: #0f2b3f;
  --muted: #456073;
  --primary: #ff7a1a;
  --primary-strong: #e86508;
  --line: #ffd9bc;
  --radius: 18px;
  --shadow: 0 20px 45px rgba(13, 33, 48, 0.1);
  --shadow-soft: 0 14px 30px rgba(12, 28, 41, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Sora", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, #ffe8d1 0, transparent 30%),
    radial-gradient(circle at 90% 30%, #ffe2ca 0, transparent 34%),
    linear-gradient(180deg, #fffdf9 0%, #fff6ed 100%);
  overflow-x: hidden;
}

.topbar,
main,
footer {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 0;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(255, 250, 244, 0.82);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-logo {
  width: 108px;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.brand-name {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 2rem;
  line-height: 0.9;
  letter-spacing: 0.03em;
}

.brand-sub {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.topnav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.topnav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  position: relative;
}

.topnav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.topnav a:hover::after {
  transform: scaleX(1);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  margin-top: 0.8rem;
  align-items: start;
}

.hero-copy {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(4px);
  box-shadow: var(--shadow-soft);
}

.kicker {
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #a84d11;
  margin: 0 0 0.7rem;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin: 0;
  line-height: 1.03;
}

.hero p {
  color: var(--muted);
  margin-top: 1rem;
}

.hero-highlights {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.hero-highlights span {
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 600;
}

.hero-media {
  margin-top: 1.3rem;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #f6d9bf;
  box-shadow: var(--shadow);
}

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 360px;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.6s ease;
}

.hero-media:hover img {
  transform: scale(1.03);
}

.hitos-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.hitos-grid article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.75rem;
}

.hito-value {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f2b3f;
}

.hito-label {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.lead-form {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.lead-form h2 {
  margin: 0;
}

.lead-form p {
  color: #b8cad6;
}

.lead-form label {
  display: block;
  font-size: 0.87rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  margin-top: 0.3rem;
  border: 1px solid #2c4960;
  border-radius: 10px;
  padding: 0.65rem;
  font: inherit;
  color: #fff;
  background: #153951;
}

.lead-form button {
  width: 100%;
  border: 0;
  border-radius: 11px;
  padding: 0.8rem;
  margin-top: 0.3rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(90deg, var(--primary), #ff974d);
  color: #1f1305;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lead-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(255, 122, 26, 0.35);
}

.form-note {
  min-height: 1.2em;
  margin-bottom: 0;
}

.section-head h2 {
  margin-top: 0;
}

.areas {
  margin: 2rem 0;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.areas-grid article {
  background: linear-gradient(170deg, #ffffff 0%, #fff6ec 100%);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease;
}

.areas-grid article:hover {
  transform: translateY(-4px);
}

.areas-grid h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.areas-grid p {
  margin: 0;
  color: var(--muted);
}

.diferenciales {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}

.diferenciales article {
  background: linear-gradient(155deg, #102d42 0%, #1d4460 100%);
  color: #eff6fb;
  border: 1px solid #2f5d7c;
  padding: 1.05rem;
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(9, 24, 37, 0.2);
}

.diferenciales h3 {
  margin-top: 0;
  margin-bottom: 0.55rem;
  color: #fff;
}

.diferenciales p {
  color: #c9d9e5;
  margin-bottom: 0;
}

.projects {
  margin: 2rem 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.projects-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: var(--shadow-soft);
}

.projects-grid h3 {
  margin-top: 0;
  margin-bottom: 0.55rem;
}

.projects-grid p {
  margin: 0;
  color: var(--muted);
}

.projects-grid p + p {
  margin-top: 0.7rem;
}

.projects-grid ul {
  margin: 0;
  padding-left: 1.05rem;
  color: var(--muted);
}

.projects-grid li + li {
  margin-top: 0.35rem;
}

.coverage {
  background: linear-gradient(120deg, #0f2b3f 0%, #21445e 100%);
  color: #eaf3f8;
  border-radius: var(--radius);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
}

.coverage .kicker {
  color: #f8b481;
}

.coverage p {
  color: #bdd0de;
}

.coverage ul {
  margin: 0;
  align-self: center;
  list-style: square;
}

.coverage li + li {
  margin-top: 0.4rem;
}

.social {
  margin: 2.1rem 0;
}

.seo-content {
  margin: 2rem 0;
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(175deg, #fff 0%, #fff3e6 100%);
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.seo-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem;
}

.seo-grid h3 {
  margin-top: 0;
  margin-bottom: 0.45rem;
}

.seo-grid p {
  margin: 0;
  color: var(--muted);
}

.seo-topics {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem;
  background: #fff;
}

.seo-topics-title {
  margin: 0 0 0.55rem;
  color: #8a460f;
  font-weight: 700;
}

.seo-topic-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.seo-topic-group + .seo-topic-group {
  margin-top: 0.45rem;
}

.seo-topic-group span {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.62rem;
  border-radius: 999px;
  border: 1px solid #f3c7a1;
  background: #fff6ec;
  color: #7a3f0f;
  font-size: 0.83rem;
  font-weight: 600;
}

.faq {
  margin: 2rem 0;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  padding: 0.2rem 0.9rem;
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding: 0.85rem 0;
  color: #0f2b3f;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  float: right;
  color: #b94a00;
  font-size: 1.1rem;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: 0 0 0.85rem;
  color: var(--muted);
}

.gallery {
  margin: 2rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.gallery-item {
  margin: 0;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-grid img:hover {
  transform: scale(1.04);
  filter: saturate(1.06);
}

.social-head {
  max-width: 750px;
}

.ig-button {
  display: inline-block;
  margin-top: 0.7rem;
  text-decoration: none;
  color: #fff;
  background: #1a1e25;
  border-radius: 999px;
  padding: 0.65rem 1rem;
  font-weight: 600;
}

.instagram-grid {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ig-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.ig-cover {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: linear-gradient(140deg, #ffe8d1 0%, #ffd8b3 100%);
}

.ig-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ig-content {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.7rem;
  flex: 1;
}

.ig-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.ig-link {
  margin-top: auto;
  text-decoration: none;
  font-weight: 700;
  color: #b94a00;
}

.final-cta {
  margin: 2rem 0;
  padding: 1.45rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(140deg, #fff 0%, #fff2e3 100%);
  box-shadow: var(--shadow-soft);
}

.final-cta h2 {
  margin: 0;
}

.final-cta p {
  color: var(--muted);
}

.final-cta-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.72rem 1rem;
  font-weight: 700;
}

.btn-primary {
  background: linear-gradient(90deg, #ff7a1a, #ff974d);
  color: #1f1305;
}

.btn-secondary {
  background: #143349;
  color: #fff;
}

footer {
  padding: 1rem 0 2rem;
  border-top: 1px solid var(--line);
  color: #37566a;
}

footer a {
  color: #b94a00;
  font-weight: 600;
}

.small {
  font-size: 0.82rem;
}

.floating-wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  text-decoration: none;
  color: #0f2b3f;
  background: linear-gradient(135deg, #39d98a, #86f9be);
  font-weight: 800;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  box-shadow: 0 14px 28px rgba(9, 48, 31, 0.24);
  transition: transform 0.25s ease;
}

.floating-wa:hover {
  transform: translateY(-2px);
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 940px) {
  .hero,
  .areas-grid,
  .diferenciales,
  .projects-grid,
  .seo-grid,
  .coverage {
    grid-template-columns: 1fr;
  }

  .gallery-grid,
  .instagram-grid,
  .hitos-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topnav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-media img {
    max-height: 320px;
  }
}

@media (max-width: 640px) {
  .topbar,
  main,
  footer {
    width: min(1120px, 94vw);
  }

  .brand-logo {
    width: 88px;
  }

  .brand-name {
    font-size: 1.65rem;
  }

  .gallery-grid,
  .instagram-grid,
  .hitos-grid,
  .areas-grid,
  .diferenciales,
  .projects-grid,
  .seo-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .lead-form,
  .final-cta {
    padding: 1rem;
  }

  .topnav {
    gap: 0.65rem;
    font-size: 0.92rem;
  }

  .floating-wa {
    right: 12px;
    bottom: 12px;
    padding: 0.62rem 0.95rem;
  }
}
