/* ===== Tokens ===== */
:root {
  --navy-900: #0a1830;
  --navy-800: #0f2247;
  --navy-700: #163464;
  --blue-accent: #3b6fe0;
  --blue-accent-light: #5c8bf0;
  --gray-50: #f7f8fb;
  --gray-100: #eef1f6;
  --gray-300: #d7dce5;
  --gray-500: #6b7688;
  --gray-700: #3a4356;
  --white: #ffffff;
  --whatsapp: #25d366;

  --font-heading: 'Google Sans Flex', sans-serif;
  --font-body: 'Roboto', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 10px rgba(10, 24, 48, 0.06);
  --shadow-md: 0 12px 30px rgba(10, 24, 48, 0.12);
  --shadow-lg: 0 20px 50px rgba(10, 24, 48, 0.18);

  --ease: cubic-bezier(.4, 0, .2, 1);
  --header-h: 76px;
}

/* ===== Reset ===== */
* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font-body);
  color: var(--gray-700);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3 { font-family: var(--font-heading); color: var(--navy-900); line-height: 1.2; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy-900);
  color: var(--white);
  padding: .75rem 1rem;
  z-index: 999;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== Reveal on scroll ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--blue-accent);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--blue-accent-light); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost {
  background: transparent;
  color: var(--navy-900);
  border: 1.5px solid var(--gray-300);
}
.btn--ghost:hover { border-color: var(--navy-900); transform: translateY(-2px); }
.btn--whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}
.btn--whatsapp:hover { background: #1fbd5a; transform: translateY(-2px); }
.btn--block { width: 100%; }


/* ===== Header ===== */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 100;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--navy-900);
  font-size: 1rem;
  transition: color .3s var(--ease);
}
.logo strong { color: var(--blue-accent); transition: color .3s var(--ease); }
.header--on-dark .logo { color: var(--white); }
.header--on-dark .logo strong { color: var(--blue-accent-light); }
.logo__mark {
  height: 38px;
  width: auto;
  flex-shrink: 0;
}
.logo__full {
  height: 78px;
  width: auto;
}

.nav__list {
  display: flex;
  gap: 1.75rem;
}
.nav__link {
  font-weight: 500;
  font-size: .93rem;
  color: var(--navy-900);
  position: relative;
  padding-block: .3rem;
  transition: color .3s var(--ease);
}
.header--on-dark .nav__link { color: var(--white); }
.nav__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0;
  height: 2px;
  background: var(--blue-accent);
  transition: width .25s var(--ease);
}
.header--on-dark .nav__link::after { background: var(--blue-accent-light); }
.nav__link:hover::after { width: 100%; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
}
.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--navy-900);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .3s var(--ease), background-color .3s var(--ease);
}
.header--on-dark .nav__toggle span { background: var(--white); }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Sections generic ===== */
section { padding-block: clamp(3.5rem, 8vw, 7rem); }

.section-eyebrow {
  color: var(--blue-accent);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .8rem;
  margin-bottom: .6rem;
}
.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 2.5rem;
  max-width: 40ch;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  background: #05070c;
  padding-top: calc(var(--header-h) + clamp(1.5rem, 6vw, 4rem));
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% 25%;
  opacity: .9;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url('../img/texturas/noise.png');
  background-size: 160px 160px;
  mix-blend-mode: overlay;
  opacity: .55;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(100deg, rgba(3,5,10,.95) 0%, rgba(3,5,10,.85) 32%, rgba(3,5,10,.5) 58%, rgba(3,5,10,.15) 82%),
    linear-gradient(0deg, rgba(3,5,10,.6), transparent 40%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  z-index: 3;
}
.hero__content { max-width: 640px; }
.eyebrow {
  color: var(--blue-accent-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  margin-bottom: 1rem;
}
.hero__title {
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.2rem;
}
.hero__title .highlight {
  color: var(--blue-accent-light);
  position: relative;
}
.hero__subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .72);
  max-width: 55ch;
  margin-bottom: 2rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.hero .btn--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, .35);
}
.hero .btn--ghost:hover { border-color: var(--white); }
.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}
.stat { display: flex; flex-direction: column; }
.stat__num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
}
.stat__label { font-size: .82rem; color: rgba(255, 255, 255, .6); }

/* ===== Cards ===== */
.cards { display: grid; gap: 1.75rem; grid-template-columns: 1fr; }

.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  position: relative;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-accent);
}
.card__num {
  position: absolute;
  top: 1.5rem;
  right: 1.75rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--gray-300);
  transition: color .3s var(--ease), transform .3s var(--ease);
}
.card:hover .card__num { color: var(--blue-accent); transform: scale(1.1); }
.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--gray-100);
  color: var(--blue-accent);
  margin-bottom: 1.2rem;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.card__icon svg { width: 24px; height: 24px; }
.card:hover .card__icon { background: var(--blue-accent); color: var(--white); }
.card h3 { font-size: 1.15rem; margin-bottom: .9rem; }
.card ul { display: flex; flex-direction: column; gap: .55rem; }
.card li {
  font-size: .92rem;
  color: var(--gray-500);
  padding-left: 1.1rem;
  position: relative;
}
.card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-accent);
}
.card--flat p { font-size: .92rem; color: var(--gray-500); }

/* ===== Sobre ===== */
.sobre { position: relative; background: var(--gray-50); overflow: hidden; }
.sobre::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../img/texturas/noise.png');
  background-size: 160px 160px;
  mix-blend-mode: multiply;
  opacity: .25;
  pointer-events: none;
}
.sobre__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}
.sobre__media { justify-self: center; width: min(100%, 340px); }
.sobre__media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.sobre__content p { margin-bottom: 1.1rem; color: var(--gray-500); }
.sobre__content .section-title { margin-bottom: 1.2rem; }

/* ===== FAQ / Accordion ===== */
.accordion { max-width: 760px; }
.accordion__item {
  border-bottom: 1px solid var(--gray-100);
}
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0;
  text-align: left;
  font-weight: 600;
  color: var(--navy-900);
  font-size: 1.02rem;
}
.accordion__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--blue-accent);
  font-size: 1.2rem;
  transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.accordion__trigger[aria-expanded="true"] .accordion__icon {
  transform: rotate(45deg);
  background: var(--blue-accent);
  color: var(--white);
}
.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
}
.accordion__panel > p {
  overflow: hidden;
  min-height: 0;
  color: var(--gray-500);
  font-size: .95rem;
  padding-right: 2.5rem;
}
.accordion__item.is-open .accordion__panel { grid-template-rows: 1fr; }
.accordion__item.is-open .accordion__panel > p { padding-bottom: 1.35rem; }

/* ===== Contato ===== */
.contato {
  position: relative;
  background: var(--navy-900);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.contato__bg { position: absolute; inset: 0; z-index: 0; }
.contato__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  opacity: .45;
}
.contato::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url('../img/texturas/noise.png');
  background-size: 160px 160px;
  mix-blend-mode: overlay;
  opacity: .5;
  pointer-events: none;
}
.contato::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(100deg, rgba(10, 24, 48, .96) 0%, rgba(10, 24, 48, .88) 42%, rgba(10, 24, 48, .68) 72%, rgba(10, 24, 48, .5) 100%);
  pointer-events: none;
}
.contato .section-eyebrow { color: var(--blue-accent-light); }
.contato .section-title { color: var(--white); margin-bottom: 1.2rem; }
.contato__inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
.contato__lead { color: rgba(255,255,255,.7); margin-bottom: 2rem; max-width: 45ch; }
.contato__list { display: flex; flex-direction: column; gap: 1rem; }
.contato__list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .95rem;
  color: rgba(255,255,255,.85);
}
.contato__list svg { width: 20px; height: 20px; color: var(--blue-accent-light); flex-shrink: 0; }

.contato__form {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.contato__form-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--white);
}
.contato__form-lead {
  font-size: .9rem;
  color: rgba(255, 255, 255, .55);
  margin-top: -.75rem;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
.form-row { display: flex; flex-direction: column; gap: .4rem; }
.form-row input, .form-row select, .form-row textarea {
  font: inherit;
  padding: .9rem 1.15rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, .06);
  color: var(--white);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.form-row input::placeholder, .form-row textarea::placeholder { color: rgba(255, 255, 255, .45); }
.form-row select { color: rgba(255, 255, 255, .8); }
.form-row select option { color: var(--gray-700); }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--blue-accent-light);
  background: rgba(255, 255, 255, .1);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, .2);
}
.form-row textarea { resize: vertical; }

/* ===== Footer ===== */
.footer { background: var(--navy-800); color: rgba(255,255,255,.75); padding-top: 3.5rem; }
.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer__col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .9rem;
  text-align: left;
}
.footer__col--brand { max-width: 320px; align-items: center; text-align: center; }
.footer__heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--white);
}
.footer__tagline { font-size: .85rem; line-height: 1.55; color: rgba(255, 255, 255, .5); }
.logo--footer { color: var(--white); }
.footer__nav { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.footer__nav a { font-size: .9rem; transition: color .25s var(--ease); }
.footer__nav a:hover { color: var(--white); }
.footer__contact-list { display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.footer__contact-list li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .85rem;
}
.footer__contact-list svg { width: 17px; height: 17px; color: var(--blue-accent-light); flex-shrink: 0; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-block: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  font-size: .8rem;
}
.footer__copy { opacity: .55; }
.footer__credit { opacity: .8; }
.footer__credit a {
  color: var(--blue-accent-light);
  font-weight: 600;
  transition: color .25s var(--ease);
}
.footer__credit a:hover { color: var(--white); }

/* ===== WhatsApp floating button ===== */
@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .4); }
  50% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); }
}
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 90;
  animation: whatsapp-pulse 2.6s ease-in-out infinite;
  transition: transform .25s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ===== Tablet (>=768px) ===== */
@media (min-width: 768px) {
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .sobre__inner { grid-template-columns: .8fr 1.2fr; }
  .contato__inner { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .footer__top {
    grid-template-columns: 1.6fr 1fr 1fr;
    gap: 2rem;
  }
  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ===== Desktop (>=1024px) ===== */
@media (min-width: 1024px) {
  .nav__toggle { display: none; }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ===== Mobile nav (<1024px) ===== */
@media (max-width: 1023px) {
  .nav__toggle { display: flex; }
  .header__cta { display: none; }
  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s var(--ease), background-color .3s var(--ease);
  }
  .header--on-dark .nav {
    background: rgba(6, 12, 24, .97);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
  }
  .nav.is-open { max-height: 420px; }
  .nav__list {
    flex-direction: column;
    padding: 1.5rem clamp(1.25rem, 4vw, 2.5rem) 2rem;
    gap: 1.1rem;
  }
  .nav__link { display: block; padding-block: .4rem; min-height: 44px; display: flex; align-items: center; }
}

/* ===== Small mobile (<480px) ===== */
@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .hero__stats { gap: 1.25rem; }
  .contato__form { padding: 1.5rem; }
}
