@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap");

:root {
  --navy: #1c355e;
  --navy-deep: #122643;
  --gray: #54565a;
  --gray-light: #e8eaed;
  --off-white: #f7f7f5;
  --white: #ffffff;
  --green: #1f9d61;
  --text: #26303a;
  --shadow: 0 18px 55px rgb(18 38 67 / 12%);
  --radius: 1.4rem;
  --container: min(1180px, calc(100% - 2.5rem));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "Montserrat", Arial, sans-serif;
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid #86a9d7;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section {
  padding: clamp(4.5rem, 8vw, 8rem) 0;
}

.section-soft {
  background: var(--off-white);
}

.section-dark {
  color: var(--white);
  background: var(--navy);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
}

h1 {
  margin-bottom: 1.25rem;
  color: var(--navy);
  font-size: clamp(2.55rem, 7vw, 5.6rem);
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 1rem;
  color: var(--navy);
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.04em;
}

h3 {
  color: var(--navy);
  font-size: 1.25rem;
}

.section-dark h2,
.section-dark h3,
.section-dark .eyebrow {
  color: var(--white);
}

.lead {
  max-width: 710px;
  color: var(--gray);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.section-dark .lead {
  color: rgb(255 255 255 / 78%);
}

.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  border-bottom: 1px solid rgb(28 53 94 / 10%);
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--navy);
  text-decoration: none;
}

.brand img {
  width: 45px;
  height: 45px;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand-copy small {
  margin-top: 0.35rem;
  color: var(--gray);
  font-size: 0.6rem;
  letter-spacing: 0.04em;
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--gray-light);
  border-radius: 50%;
  color: var(--navy);
  background: var(--white);
  cursor: pointer;
}

.menu-button svg {
  width: 22px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.65rem;
}

.site-nav a {
  position: relative;
  color: var(--gray);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: -0.5rem;
  left: 0;
  height: 2px;
  background: var(--navy);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.language-toggle {
  min-height: 40px;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgb(28 53 94 / 24%);
  border-radius: 999px;
  color: var(--navy);
  background: transparent;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.language-toggle:hover {
  border-color: var(--navy);
  color: var(--white);
  background: var(--navy);
}

.language-toggle:focus-visible {
  outline: 3px solid rgb(28 53 94 / 24%);
  outline-offset: 3px;
}

.calendly-frame {
  overflow: hidden;
  margin-top: 2rem;
  border: 1px solid rgb(28 53 94 / 10%);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 18px 50px rgb(18 38 67 / 8%);
}

.calendly-inline-widget {
  width: 100%;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.75rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--white);
  background: var(--navy);
  box-shadow: none;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.button:hover {
  background: var(--navy-deep);
  box-shadow: 0 12px 28px rgb(18 38 67 / 18%);
  transform: translateY(-2px);
}

.button-light {
  color: var(--navy);
  background: var(--white);
}

.button-outline {
  border-color: rgb(28 53 94 / 24%);
  color: var(--navy);
  background: transparent;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 6vw, 6.5rem) 0 clamp(4rem, 8vw, 7.5rem);
  background:
    radial-gradient(circle at 10% 10%, rgb(28 53 94 / 8%), transparent 28%),
    linear-gradient(180deg, #fff 0%, #f8f8f6 100%);
}

.hero::after {
  position: absolute;
  right: -130px;
  bottom: -180px;
  width: 500px;
  height: 500px;
  border: 75px solid rgb(28 53 94 / 4%);
  border-radius: 50%;
  content: "";
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
  grid-template-columns: minmax(0, 0.9fr) minmax(430px, 1.1fr);
}

.hero-copy p:not(.eyebrow) {
  max-width: 650px;
  color: var(--gray);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  min-height: 520px;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
}

.hero-caption {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  max-width: 240px;
  padding: 1rem;
  border-radius: 1rem;
  color: var(--white);
  background: rgb(18 38 67 / 88%);
  font-size: 0.78rem;
  backdrop-filter: blur(10px);
}

.trust-row {
  display: grid;
  margin-top: 3rem;
  border-top: 1px solid rgb(28 53 94 / 14%);
  grid-template-columns: repeat(3, 1fr);
}

.trust-item {
  padding: 1.2rem 1.1rem 0 0;
}

.trust-item strong {
  display: block;
  color: var(--navy);
  font-size: 1.1rem;
}

.trust-item span {
  color: var(--gray);
  font-size: 0.78rem;
}

.cards {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(4, 1fr);
}

.card {
  min-height: 260px;
  padding: 1.75rem;
  border: 1px solid rgb(28 53 94 / 10%);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 30px rgb(18 38 67 / 5%);
}

.card-number {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 3rem;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--navy);
  font-size: 0.75rem;
  font-weight: 800;
}

.card p {
  margin-bottom: 0;
  color: var(--gray);
  font-size: 0.9rem;
}

.split {
  display: grid;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-list {
  display: grid;
  gap: 0;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: grid;
  padding: 1rem 0;
  border-top: 1px solid rgb(28 53 94 / 14%);
  gap: 0.6rem;
  grid-template-columns: 28px 1fr;
}

.feature-list svg {
  width: 22px;
  color: var(--navy);
}

.gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.25fr 0.75fr;
}

.gallery-side {
  display: grid;
  gap: 1rem;
}

.gallery img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  border-radius: var(--radius);
  object-fit: cover;
}

.gallery > img {
  min-height: 620px;
}

.cta-panel {
  display: grid;
  align-items: center;
  gap: 2rem;
  grid-template-columns: 1fr auto;
}

.cta-panel p {
  max-width: 670px;
  margin-bottom: 0;
  color: rgb(255 255 255 / 75%);
}

.page-hero {
  padding: clamp(4rem, 9vw, 8rem) 0;
  background: var(--off-white);
}

.page-hero .container {
  max-width: 980px;
}

.page-hero h1 {
  max-width: 900px;
}

.service-detail {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 0.35fr 1fr;
}

.service-detail + .service-detail {
  margin-top: 1.3rem;
}

.service-index {
  padding: 2rem;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--navy);
}

.service-index strong {
  font-size: 3rem;
}

.service-copy {
  padding: 2rem;
  border: 1px solid rgb(28 53 94 / 10%);
  border-radius: var(--radius);
}

.service-copy ul {
  margin-bottom: 0;
  padding-left: 1.2rem;
  color: var(--gray);
}

.profile-card {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 4rem);
  border-radius: var(--radius);
  color: var(--white);
  background: var(--navy);
}

.profile-card::after {
  position: absolute;
  right: -80px;
  bottom: -90px;
  width: 310px;
  height: 310px;
  border: 55px solid rgb(255 255 255 / 6%);
  border-radius: 50%;
  content: "";
}

.profile-card h2,
.profile-card .eyebrow {
  color: var(--white);
}

.profile-card p {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: rgb(255 255 255 / 80%);
}

.profile-card-with-photo {
  display: grid;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr) clamp(180px, 20vw, 240px);
}

.profile-photo-wrap {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  overflow: hidden;
  border: 5px solid rgb(255 255 255 / 22%);
  border-radius: 50%;
  aspect-ratio: 1;
  background: var(--white);
  box-shadow: 0 18px 45px rgb(8 24 48 / 30%);
}

.profile-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-photo-white {
  object-position: 53% 17%;
}

.profile-photo-blue {
  object-position: 57% 28%;
}

.profile-content {
  position: relative;
  z-index: 1;
  align-self: center;
  grid-column: 1;
  grid-row: 1;
}

.contact-grid {
  display: grid;
  align-items: start;
  gap: clamp(2rem, 6vw, 6rem);
  grid-template-columns: 0.8fr 1.2fr;
}

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

.contact-list a {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.form-card {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgb(28 53 94 / 10%);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid #cdd2d8;
  border-radius: 0.7rem;
  padding: 0.85rem 0.95rem;
  color: var(--text);
  background: var(--white);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-note,
.form-status {
  margin: 1rem 0 0;
  color: var(--gray);
  font-size: 0.78rem;
}

.form-status {
  color: var(--navy);
  font-weight: 700;
}

.site-footer {
  padding: 4rem 0 1.5rem;
  color: var(--white);
  background: var(--navy-deep);
}

.footer-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1.3fr 0.7fr 0.8fr;
}

.footer-brand .brand {
  color: var(--white);
}

.footer-brand .brand-copy small {
  color: rgb(255 255 255 / 65%);
}

.footer-brand img {
  filter: brightness(0) invert(1);
}

.footer-brand p {
  max-width: 440px;
  margin-top: 1.5rem;
  color: rgb(255 255 255 / 68%);
  font-size: 0.9rem;
}

.footer-title {
  color: var(--white);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  list-style: none;
}

.footer-links a {
  color: rgb(255 255 255 / 75%);
  font-size: 0.87rem;
  text-decoration: none;
}

.footer-bottom {
  display: flex;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(255 255 255 / 12%);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgb(255 255 255 / 55%);
  font-size: 0.75rem;
}

.whatsapp {
  position: fixed;
  z-index: 900;
  right: 1.25rem;
  bottom: 1.25rem;
  display: inline-flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  background: var(--green);
  box-shadow: 0 12px 32px rgb(18 38 67 / 28%);
  transition: transform 180ms ease;
}

.whatsapp:hover {
  transform: translateY(-3px) scale(1.03);
}

.whatsapp svg {
  width: 29px;
}

/* Mantiene la insignia gratuita de Netlify visible sin solaparla con WhatsApp. */
#nl-badge-frame {
  right: auto !important;
  left: 0 !important;
}

@media (max-width: 980px) {
  .menu-button {
    display: grid;
  }

  .site-nav {
    position: fixed;
    inset: 84px 0 auto;
    display: none;
    min-height: calc(100vh - 84px);
    align-content: start;
    padding: 2rem 1.25rem;
    background: var(--white);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 0.65rem 0;
    font-size: 1.1rem;
  }

  .site-nav .language-toggle {
    width: fit-content;
    min-height: 44px;
    margin-top: 0.5rem;
    padding-inline: 1.1rem;
  }

  .site-nav .button {
    margin-top: 1rem;
  }

  .profile-card-with-photo {
    justify-items: center;
    grid-template-columns: 1fr;
  }

  .profile-photo-wrap {
    width: min(240px, 70vw);
    grid-column: 1;
    grid-row: 1;
  }

  .profile-content {
    grid-column: 1;
    grid-row: 2;
    text-align: center;
  }

  .hero-grid,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual img {
    min-height: 430px;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  :root {
    --container: min(100% - 1.5rem, 1180px);
  }

  .brand-copy small {
    display: none;
  }

  .header-inner {
    min-height: 74px;
  }

  .site-nav {
    inset: 74px 0 auto;
    min-height: calc(100vh - 74px);
  }

  h1 {
    font-size: clamp(2.4rem, 14vw, 4rem);
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero-visual img {
    min-height: 330px;
  }

  .hero-caption {
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .trust-row {
    grid-template-columns: 1fr;
  }

  .trust-item {
    padding: 1rem 0;
    border-bottom: 1px solid rgb(28 53 94 / 10%);
  }

  .cards,
  .gallery,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .gallery > img {
    min-height: 380px;
  }

  .cta-panel,
  .service-detail {
    grid-template-columns: 1fr;
  }

  .service-index strong {
    font-size: 2.2rem;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .whatsapp {
    right: 0.85rem;
    bottom: 0.85rem;
    width: 54px;
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
