:root {
  --ink: #243f46;
  --ink-dark: #172f35;
  --paper: #f7f7f2;
  --white: #ffffff;
  --soft: #e9ece8;
  --ivory: #d9ddc2;
  --brown: #714925;
  --muted: #66757a;
  --line: rgba(36, 63, 70, .14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 44px));
  margin-inline: auto;
}


/* HEADER */

.site-header {
  height: 78px;
  padding: 0 clamp(22px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 30px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 247, 242, .96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: 100px;
}

.main-nav {
  display: flex;
  gap: 28px;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
}

.main-nav a {
  transition: opacity .2s ease;
}

.main-nav a:hover {
  opacity: .55;
}

.btn-header {
  justify-self: end;
  background: var(--ink);
  color: var(--white);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  display: block;
  margin: 6px 0;
  background: var(--ink);
}


/* BOTONES */

.btn {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 700;
  transition: transform .2s ease, opacity .2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-light {
  background: var(--white);
  color: var(--ink);
}

.btn-outline {
  border: 1px solid var(--ink);
  color: var(--ink);
}

.text-link {
  display: inline-block;
  margin-top: 12px;
  padding-bottom: 4px;
  font-weight: 700;
  border-bottom: 1px solid currentColor;
}


/* GENERAL */

.section {
  padding: 95px 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--brown);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
}

.eyebrow-light {
  color: var(--ivory);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 46px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2,
.about-copy h2,
.contact h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: -.055em;
}

.section-heading p {
  color: var(--muted);
  font-size: 17px;
}


/* HERO */

.hero {
  min-height: 650px;
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
  color: var(--white);
  background:
    url("assets/hero-fondo-consultoria.png")
    center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(17, 35, 41, .90) 0%,
    rgba(17, 35, 41, .72) 48%,
    rgba(17, 35, 41, .35) 100%
  );
}

.hero-inner {
  padding: 90px 0;
  text-align: center;
}
.hero h1 {
  max-width: 850px;
  margin: 0 auto;
  font-size: clamp(58px, 7vw, 100px);
  line-height: .95;
  letter-spacing: -.07em;
  text-align: center;
}

.hero h1 span {
  display: block;
  color: var(--ivory);
}

.hero p {
  max-width: 650px;
  margin: 28px auto 32px;
}

/* PLANES */

.plans {
  background: var(--white);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.plan-card {
  min-height: 530px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.plan-card.featured {
  background: var(--ink);
  color: var(--white);
}

.plan-kicker {
  color: var(--brown);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.featured .plan-kicker {
  color: var(--ivory);
}

.popular {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--ivory);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
}

.plan-card h3 {
  margin: 10px 0 25px;
  font-size: 30px;
  letter-spacing: -.04em;
}

.plan-price {
  min-height: 96px;
  padding-bottom: 26px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  border-bottom: 1px solid var(--line);
}

.featured .plan-price {
  border-color: rgba(255,255,255,.15);
}

.plan-price sup {
  align-self: flex-start;
  margin-top: 12px;
  font-size: 20px;
  font-weight: 800;
}

.plan-price strong {
  font-size: 52px;
  line-height: 1;
  letter-spacing: -.06em;
}

.plan-price span {
  margin-bottom: 6px;
  color: var(--muted);
}

.featured .plan-price span {
  color: rgba(255,255,255,.58);
}

.plan-price.custom strong {
  font-size: 38px;
}

.plan-card ul {
  list-style: none;
  padding: 20px 0;
  margin: 0 0 20px;
}

.plan-card li {
  position: relative;
  padding: 10px 0 10px 24px;
  border-bottom: 1px solid var(--line);
}

.featured li {
  border-color: rgba(255,255,255,.11);
}

.plan-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 800;
}

.plan-card .btn {
  margin-top: auto;
}

.plans-note {
  margin: 22px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}


/* NOSOTROS */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 75px;
  align-items: center;
}

.about-copy p {
  color: var(--muted);
  font-size: 17px;
}

.about-image {
  width: min(100%, 440px);
  aspect-ratio: 3 / 4;
  justify-self: center;
  overflow: hidden;
  border-radius: 14px;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}


/* SERVICIOS */

.services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  min-height: 245px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.service-card > span {
  color: var(--brown);
  font-size: 12px;
  font-weight: 800;
}

.service-card h3 {
  margin: 45px 0 10px;
  font-size: 24px;
  letter-spacing: -.035em;
}

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


/* CONTACTO */

.contact {
  padding: 80px 0;
  background: var(--ink-dark);
  color: var(--white);
}

.contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.contact h2 {
  max-width: 730px;
}

.contact p {
  color: rgba(255,255,255,.70);
}


/* FOOTER */

footer {
  padding: 34px 0;
  background: #10252b;
  color: rgba(255,255,255,.68);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 34px;
  align-items: center;
}

.footer-logo {
  width: 145px;
}

.footer-inner p {
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 18px;
  font-size: 13px;
  font-weight: 600;
}


/* WHATSAPP */

.floating-wa {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 110;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ivory);
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(0,0,0,.18);
}


/* ANIMACIÓN */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease, transform .65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}


/* TABLET */

@media (max-width: 980px) {

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .main-nav {
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .main-nav.open {
    display: flex;
  }

  .btn-header {
    display: none;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin-inline: auto;
  }

  .plan-card {
    min-height: auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

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

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


/* MÓVIL */

@media (max-width: 640px) {

  .container {
    width: min(100% - 36px, 1180px);
  }

  .site-header {
    height: 70px;
    padding: 0 18px;
  }

  .brand-logo {
    width: 145px;
  }

  .main-nav {
    top: 70px;
  }

  .hero {
    min-height: 590px;
    background-position: 66% center;
  }

  .hero-inner {
    padding: 70px 0;
  }

  .hero h1 {
    font-size: clamp(48px, 14vw, 68px);
  }

  .section {
    padding: 72px 0;
  }

  .section-heading h2,
  .about-copy h2,
  .contact h2 {
    font-size: 40px;
  }

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

  .steps-grid {
    gap: 28px;
  }

  .contact-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}


/* ===== BOTONES HEADER: Instagram, Facebook y Cotizar ===== */

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-btn {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.55);
  color: var(--ink);
  transition: transform .2s ease, background .2s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
  background: var(--ivory);
}

.social-btn svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.social-btn svg path {
  fill: currentColor;
  stroke: none;
}


/* ===== BOTÓN FLOTANTE DE COTIZACIÓN ===== */

.floating-wa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 10px;
  border-radius: 999px;
  background: var(--ivory);
  color: var(--ink);
  box-shadow: 0 14px 35px rgba(21,43,49,.24);
  font-weight: 800;
}

.wa-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--ivory);
}

.wa-icon svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}


/* Tablet */
@media (max-width: 980px) {
  .header-actions {
    display: none;
  }
}


/* Móvil */
@media (max-width: 640px) {
  .floating-wa {
    padding: 8px;
  }

  .floating-wa > span:last-child {
    display: none;
  }
}


/* ===== AJUSTE RESPONSIVE DEFINITIVO DEL LOGO Y HEADER ===== */

/* Escritorio */
.site-header {
  min-height: 78px;
  height: 78px;
}

.brand {
  display: flex;
  align-items: center;
  height: 100%;
  min-width: 0;
  overflow: hidden;
}

.brand-logo {
  display: block;
  width: auto;
  max-width: 120px;
  max-height: 54px;
  object-fit: contain;
  object-position: left center;
}


/* Pantallas medianas / tablet */
@media (max-width: 1180px) {
  .site-header {
    padding-inline: 24px;
    gap: 20px;
  }

  .brand-logo {
    max-width: 108px;
    max-height: 50px;
  }
}


/* Tablet */
@media (max-width: 980px) {
  .site-header {
    height: 74px;
    min-height: 74px;
  }

  .brand-logo {
    max-width: 102px;
    max-height: 46px;
  }

  .main-nav {
    top: 74px;
  }
}


/* Móvil */
@media (max-width: 640px) {
  .site-header {
    height: 68px;
    min-height: 68px;
    padding-inline: 16px;
  }

  .brand {
    height: 68px;
  }

  .brand-logo {
    width: auto;
    max-width: 92px;
    max-height: 42px;
  }

  .main-nav {
    top: 68px;
  }

  .menu-toggle {
    align-self: center;
  }
}


/* Móviles muy pequeños */
@media (max-width: 380px) {
  .brand-logo {
    max-width: 84px;
    max-height: 38px;
  }

  .site-header {
    padding-inline: 14px;
  }
}

/* ===== PLANES ADICIONALES ===== */
.plans-expand-wrap {
  margin-top: 28px;
  text-align: center;
}

.plans-toggle {
  cursor: pointer;
  background: transparent;
}

.extra-plans {
  margin-top: 28px;
}

.extra-plans[hidden] {
  display: none;
}

/* ===== PERFIL DEL CONTADOR ===== */
.owner-profile {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.owner-label {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--brown);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}


/* ===== SERVICIOS PARTICULARES ===== */
.individual-services {
  background: var(--soft);
}

.individual-services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.individual-service-card {
  min-height: 520px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.individual-service-card--featured {
  background: var(--ink);
  color: var(--white);
}

.service-kicker {
  color: var(--brown);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
}

.individual-service-card--featured .service-kicker {
  color: var(--ivory);
}

.individual-service-card h3 {
  margin: 10px 0 20px;
  font-size: 30px;
  letter-spacing: -.04em;
}

.individual-service-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.individual-service-card li {
  position: relative;
  padding: 11px 0 11px 24px;
  border-bottom: 1px solid var(--line);
}

.individual-service-card--featured li {
  border-color: rgba(255,255,255,.12);
}

.individual-service-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 800;
}

.individual-price {
  margin-top: auto;
  padding: 24px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  border-top: 1px solid var(--line);
}

.individual-service-card--featured .individual-price {
  border-color: rgba(255,255,255,.15);
}

.individual-price small {
  width: 100%;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.individual-service-card--featured .individual-price small,
.individual-service-card--featured .individual-price span {
  color: rgba(255,255,255,.62);
}

.individual-price strong {
  font-size: 42px;
  line-height: 1;
  letter-spacing: -.05em;
}

.individual-price span {
  color: var(--muted);
  font-size: 14px;
}

.rent-prices {
  margin-top: auto;
  padding: 18px 0 10px;
  border-top: 1px solid var(--line);
}

.rent-prices p {
  margin: 0;
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}

.rent-prices span {
  color: var(--muted);
}

.one-time-note {
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 12px;
}

.individual-service-card .btn {
  margin-top: 0;
}

.individual-services-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

@media (max-width: 980px) {
  .individual-services-grid {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin-inline: auto;
  }

  .individual-service-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .individual-service-card {
    padding: 24px;
  }

  .rent-prices p {
    flex-direction: column;
    gap: 2px;
  }
}
.whatsapp-header {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--ink);
  border-radius: 6px;

  transition: transform .2s ease, opacity .2s ease;
}

.whatsapp-header:hover {
  transform: translateY(-2px);
  opacity: .85;
}

.whatsapp-header img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* ===== AJUSTES FINALES RESPONSIVE ===== */

/* Mantiene "Nos preocupamos por" en una sola línea */
.hero-main-line {
  display: block;
  white-space: nowrap;
}

/* Servicios particulares más compactos en escritorio */
.individual-services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.individual-service-card {
  min-height: 430px;
  padding: 24px;
}

.individual-service-card h3 {
  margin: 8px 0 16px;
  font-size: 26px;
}

.individual-service-card li {
  padding: 8px 0 8px 22px;
  font-size: 14px;
}

.individual-price {
  padding: 18px 0;
}

.individual-price strong {
  font-size: 34px;
}

.rent-prices {
  padding-top: 14px;
}

.rent-prices p {
  padding: 8px 0;
  gap: 12px;
  font-size: 14px;
}

/* Pantallas medianas */
@media (max-width: 1180px) {
  .hero h1 {
    font-size: clamp(48px, 6.2vw, 76px);
  }

  .individual-services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablet */
@media (max-width: 980px) {
  .hero h1 {
    font-size: clamp(42px, 7vw, 64px);
  }

  .individual-service-card {
    min-height: auto;
  }

  .footer-links {
    gap: 14px;
  }
}

/* Móvil */
@media (max-width: 640px) {
  .hero {
    min-height: 520px;
  }

  .hero h1 {
    font-size: clamp(29px, 9vw, 52px);
    line-height: 1;
    letter-spacing: -.055em;
  }

  .hero-main-line {
    white-space: nowrap;
  }

  .hero p {
    font-size: 15px;
  }

  .individual-services-grid {
    grid-template-columns: 1fr;
  }

  .individual-service-card {
    padding: 20px;
  }

  .individual-service-card h3 {
    font-size: 24px;
  }

  .individual-service-card li {
    font-size: 14px;
  }

  .individual-price strong {
    font-size: 32px;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    overflow-wrap: anywhere;
  }
}

/* Móviles pequeños */
@media (max-width: 380px) {
  .hero h1 {
    font-size: 27px;
  }

  .container {
    width: min(100% - 28px, 1180px);
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .plans-toggle {
    width: auto;
  }
}


/* ===== RETRATO QUIÉNES SOMOS ===== */
@media (max-width: 980px) {
  .about-image {
    width: min(100%, 420px);
    margin-inline: auto;
  }
}

@media (max-width: 640px) {
  .about-image {
    width: min(100%, 340px);
  }
}


/* ===== NAVEGACIÓN POR SECCIONES / SCROLL SNAP ===== */
html {
  scroll-snap-type: y mandatory;
  scroll-padding-top: 78px;
}

.hero,
main > .section,
footer {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hero,
main > .section {
  min-height: calc(100svh - 78px);
}

/* Mantiene los títulos de cada sección visibles bajo el header fijo */
main > .section,
.hero {
  scroll-margin-top: 78px;
}

/* Precio sin valor definido */
.individual-price--quote strong {
  font-size: 30px;
  letter-spacing: -.04em;
}

@media (max-width: 980px) {
  html {
    scroll-padding-top: 74px;
  }

  .hero,
  main > .section {
    min-height: calc(100svh - 74px);
    scroll-margin-top: 74px;
  }
}

@media (max-width: 640px) {
  html {
    /* En celular el ajuste es más suave: se acerca a la sección, pero no obliga el salto. */
    scroll-snap-type: y proximity;
    scroll-padding-top: 68px;
  }

  .hero,
  main > .section,
  footer {
    scroll-snap-stop: normal;
  }

  .hero,
  main > .section {
    min-height: calc(100svh - 68px);
    scroll-margin-top: 68px;
  }

  .individual-price--quote strong {
    font-size: 28px;
  }
}
