/* ==========================================================================
   Estudio Contable Tito Esparza — Landing moderna (Opción 2)
   ========================================================================== */

:root {
  --teal: #57bbbf;
  --teal-2: #3a7c80;
  --ink: #0f2626;
  --ink-2: #1d3e40;
  --cyan: #bafcff;
  --gold: #c7b04e;
  --yellow: #dec328;
  --blue: #3d9be9;
  --text: #12211f;
  --muted: #5c6f6d;
  --bg: #f6fafb;
  --white: #ffffff;
  --line: rgba(29, 62, 64, 0.12);
  --shadow-sm: 0 10px 30px -18px rgba(15, 38, 38, 0.5);
  --shadow-lg: 0 40px 80px -40px rgba(15, 38, 38, 0.55);
  --radius: 20px;
  --radius-sm: 14px;
  --font-head: "Poppins", "Segoe UI", sans-serif;
  --font-body: "Mulish", "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;
  --container: 1200px;
  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

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

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.lp-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
}

.lp-grad {
  background: linear-gradient(100deg, var(--teal), var(--blue) 55%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ------------------------------- Botones --------------------------------- */
.lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease,
    color 0.22s ease, border-color 0.22s ease;
  white-space: nowrap;
}

.lp-btn--primary {
  background: linear-gradient(120deg, var(--teal), var(--teal-2));
  color: var(--white);
  box-shadow: 0 18px 34px -18px rgba(58, 124, 128, 0.9);
}

.lp-btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 44px -18px rgba(58, 124, 128, 0.95);
}

.lp-btn--ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}

.lp-btn--ghost:hover {
  background: var(--white);
  color: var(--ink-2);
  border-color: var(--white);
}

.lp-btn--outline {
  border-color: var(--teal-2);
  color: var(--teal-2);
}

.lp-btn--outline:hover {
  background: var(--teal-2);
  color: var(--white);
}

/* ------------------------------- Semántica ------------------------------- */
.lp-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(87, 187, 191, 0.14);
  color: var(--teal-2);
  line-height: 1.5;
}

.lp-eyebrow {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal-2);
}

.lp-section {
  padding: 96px 0;
}

.lp-section--tint {
  background: linear-gradient(180deg, #eef8f9, #f6fafb);
}

.lp-section__head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.lp-section__head h2 {
  font-size: clamp(28px, 4vw, 46px);
  margin-top: 14px;
}

.lp-section__head p {
  color: var(--muted);
  font-size: 18px;
}

/* ------------------------------- Header ---------------------------------- */
.lp-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border-bottom: 1px solid transparent;
}

.lp-header.is-stuck {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 10px 30px -24px rgba(15, 38, 38, 0.6);
  border-bottom-color: var(--line);
}

.lp-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.lp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lp-brand__logo {
  height: 50px;
  width: auto;
  border-radius: 10px;
}

.lp-brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.lp-brand__text strong {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold);
}

.lp-brand__text span {
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--ink-2);
}

.lp-header:not(.is-stuck) .lp-brand__text span {
  color: rgba(255, 255, 255, 0.92);
}

.lp-header:not(.is-stuck) .lp-brand__text strong {
  color: #eadf9d;
}

.lp-nav {
  display: flex;
  gap: 4px;
}

.lp-nav a {
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.lp-header:not(.is-stuck) .lp-nav a {
  color: rgba(255, 255, 255, 0.9);
}

.lp-nav a:hover {
  background: rgba(87, 187, 191, 0.16);
  color: var(--teal-2);
}

.lp-header:not(.is-stuck) .lp-nav a:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

.lp-header__cta {
  padding: 12px 24px;
}

.lp-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  cursor: pointer;
}

.lp-header.is-stuck .lp-burger {
  border-color: var(--line);
  background: rgba(87, 187, 191, 0.12);
}

.lp-burger span {
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.lp-header.is-stuck .lp-burger span {
  background: var(--ink-2);
}

.lp-burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.lp-burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.lp-burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* -------------------------------- Hero ----------------------------------- */
.lp-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 60px) 0 80px;
  color: var(--white);
  overflow: hidden;
  background: #06201f;
}

.lp-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}

.lp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    rgba(6, 32, 31, 0.94) 0%,
    rgba(15, 60, 61, 0.82) 42%,
    rgba(29, 62, 64, 0.6) 100%
  );
}

.lp-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  z-index: 0;
  animation: float 14s ease-in-out infinite;
}

.lp-blob--1 {
  width: 420px;
  height: 420px;
  background: var(--teal);
  top: -80px;
  right: -60px;
}

.lp-blob--2 {
  width: 380px;
  height: 380px;
  background: var(--blue);
  bottom: -120px;
  left: -80px;
  animation-delay: -6s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -40px) scale(1.12);
  }
}

.lp-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.lp-hero .lp-chip {
  background: rgba(255, 255, 255, 0.14);
  color: #eaffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.lp-hero__title {
  font-size: clamp(38px, 6.4vw, 76px);
  font-weight: 700;
  margin: 22px 0 20px;
  text-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.lp-hero__lead {
  font-size: clamp(17px, 2vw, 21px);
  max-width: 620px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 34px;
}

.lp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}

.lp-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  max-width: 760px;
}

.lp-stat {
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
}

.lp-stat b {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(24px, 3vw, 34px);
  color: #fff;
  line-height: 1;
}

.lp-stat span {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.78);
}

/* ------------------------------- Servicios ------------------------------- */
.lp-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.lp-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  display: flex;
  flex-direction: column;
}

.lp-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(87, 187, 191, 0.5);
}

.lp-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(87, 187, 191, 0.2), rgba(61, 155, 233, 0.2));
  color: var(--teal-2);
  margin-bottom: 20px;
}

.lp-card__icon svg {
  width: 26px;
  height: 26px;
}

.lp-card h3 {
  font-size: 21px;
  margin-bottom: 0.4em;
}

.lp-card__list {
  color: var(--muted);
  font-size: 15.5px;
  margin-bottom: 20px;
}

.lp-card__list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 8px;
}

.lp-card__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}

.lp-card__link {
  margin-top: auto;
  font-family: var(--font-head);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--teal-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.lp-card__link::after {
  content: "→";
  transition: transform 0.2s ease;
}

.lp-card__link:hover::after {
  transform: translateX(5px);
}

/* --------------------------------- About --------------------------------- */
.lp-about {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}

.lp-about__text h2 {
  font-size: clamp(28px, 3.6vw, 44px);
}

.lp-about__text p {
  color: var(--muted);
  font-size: 18px;
}

.lp-about__points {
  display: grid;
  gap: 14px;
  margin: 26px 0 32px;
}

.lp-about__points li {
  position: relative;
  padding-left: 34px;
  font-weight: 600;
  color: var(--ink-2);
}

.lp-about__points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cyan);
  color: var(--teal-2);
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.lp-about__media {
  position: relative;
}

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

.lp-float {
  position: absolute;
  right: -18px;
  bottom: -24px;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 22px 30px;
  box-shadow: var(--shadow-lg);
  text-align: center;
  border: 1px solid var(--line);
}

.lp-float b {
  display: block;
  font-family: var(--font-serif);
  font-size: 46px;
  line-height: 1;
  color: var(--gold);
}

.lp-float span {
  font-family: var(--font-serif);
  color: var(--muted);
  font-size: 18px;
}

/* --------------------------------- Band ---------------------------------- */
.lp-band {
  background: linear-gradient(120deg, var(--ink-2), var(--teal-2));
  color: var(--white);
  padding: 56px 0;
}

.lp-band__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.lp-band__grid b {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1;
}

.lp-band__grid span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14.5px;
}

/* -------------------------------- Proceso -------------------------------- */
.lp-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}

.lp-step {
  position: relative;
  padding: 34px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.lp-step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  color: var(--teal);
  letter-spacing: 0.1em;
}

.lp-step h3 {
  font-size: 19px;
  margin: 10px 0 8px;
}

.lp-step p {
  color: var(--muted);
  font-size: 15.5px;
  margin: 0;
}

/* ---------------------------------- FAQ ---------------------------------- */
.lp-faq {
  max-width: 860px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.lp-faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}

.lp-faq details[open] {
  box-shadow: var(--shadow-sm);
}

.lp-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 60px 22px 26px;
  position: relative;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink-2);
}

.lp-faq summary::-webkit-details-marker {
  display: none;
}

.lp-faq summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  color: var(--teal);
  transition: transform 0.25s ease;
}

.lp-faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.lp-faq__body {
  padding: 0 26px 24px;
  color: var(--muted);
  font-size: 16px;
}

/* -------------------------------- Contacto ------------------------------- */
.lp-contact {
  background: linear-gradient(160deg, #eaf7f8, #f6fafb 60%);
}

.lp-contact__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 54px;
  align-items: start;
}

.lp-contact__info h2 {
  font-size: clamp(28px, 3.6vw, 44px);
}

.lp-contact__list {
  display: grid;
  gap: 20px;
  margin: 28px 0;
}

.lp-contact__item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.lp-contact__item .ico {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  color: var(--teal-2);
}

.lp-contact__item h4 {
  margin: 0 0 2px;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 600;
}

.lp-contact__item a,
.lp-contact__item p {
  margin: 0;
  font-size: 17px;
  color: var(--text);
}

.lp-contact__item a:hover {
  color: var(--teal-2);
}

.lp-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.lp-form .full {
  grid-column: 1 / -1;
}

.lp-form label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink-2);
}

.lp-form input,
.lp-form textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 15.5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfdfd;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lp-form input:focus,
.lp-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(87, 187, 191, 0.18);
}

.lp-form button {
  grid-column: 1 / -1;
  margin-top: 6px;
}

.lp-form .success {
  grid-column: 1 / -1;
  color: var(--teal-2);
  font-weight: 600;
  text-align: center;
}

/* -------------------------------- Footer --------------------------------- */
.lp-footer {
  background: #06201f;
  color: rgba(255, 255, 255, 0.75);
  padding: 56px 0 40px;
}

.lp-footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-start;
}

.lp-footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}

.lp-footer__brand img {
  height: 58px;
  border-radius: 10px;
}

.lp-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  max-width: 460px;
}

.lp-footer__links a:hover {
  color: var(--teal);
}

.lp-footer__social {
  display: flex;
  gap: 12px;
}

.lp-footer__social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.lp-footer__social a:hover {
  background: var(--teal);
  transform: translateY(-3px);
}

.lp-footer__social img {
  width: 18px;
  height: 18px;
}

.lp-footer__bottom {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 13.5px;
}

/* ------------------------------- Animaciones ----------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ------------------------------- Responsive ------------------------------ */
@media (max-width: 1080px) {
  .lp-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
    padding: 18px 22px 28px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-140%);
    transition: transform 0.32s ease;
    gap: 4px;
  }

  .lp-nav.open {
    transform: translateY(0);
  }

  .lp-nav a,
  .lp-header:not(.is-stuck) .lp-nav a {
    color: var(--ink-2);
    padding: 14px 12px;
    font-size: 16px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
  }

  .lp-burger {
    display: flex;
  }

  .lp-header__cta {
    display: none;
  }

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

  .lp-about,
  .lp-contact__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .lp-about__media {
    order: -1;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .lp-section {
    padding: 66px 0;
  }

  .lp-hero {
    min-height: auto;
    padding: calc(var(--header-h) + 44px) 0 60px;
  }

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

  .lp-bento,
  .lp-steps {
    grid-template-columns: 1fr;
  }

  .lp-form {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .lp-float {
    right: 12px;
    bottom: -18px;
    padding: 16px 22px;
  }

  .lp-float b {
    font-size: 36px;
  }

  .lp-footer__grid {
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .lp-hero__stats {
    grid-template-columns: 1fr;
  }

  .lp-btn {
    width: 100%;
  }

  .lp-hero__actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
