:root {
  --accent: #36b86f;
  --accent-strong: #55cc86;
  --accent-dark: #24975a;
  --surface: #222926;
  --surface-solid: #1b211f;
  --surface-hover: #29332f;
  --border: rgba(85, 204, 134, 0.25);
  --text: #f4f5f4;
  --muted: #cbd3cf;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--text);
  background: #171c1a;
}

.header {
  background: #0e1210;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.menu-items li a,
.icon,
.icon.instagram i {
  color: #e8ecea;
  transition: color 0.25s ease, transform 0.25s ease;
}

.menu-items li a:hover,
.icon:hover,
.icon.instagram:hover i {
  color: var(--accent-strong);
}

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

.icon.whatsapp {
  display: inline-flex;
  width: 34px;
  height: 34px;
  margin-left: 12px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
}

.hero {
  min-height: 680px;
  display: flex;
  align-items: center;
  position: relative;
  margin-top: 80px;
  padding: 90px 0 70px;
  background-image: url('../fondo.jpeg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(120deg, rgba(7, 22, 14, 0.44), rgba(8, 13, 11, 0.24));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(3, 8, 5, 0.04);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 28px 18px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent-strong);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin-bottom: 22px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.08;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.72);
}

.hero .hero-lead {
  max-width: 780px;
  margin: 0 auto 24px;
  color: #fff;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.65;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.72);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  margin: 24px 0 30px;
  padding: 0;
  list-style: none;
}

.trust-list li {
  color: #fff;
  font-size: 0.98rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.72);
}

.trust-list i,
.step-content h3,
.faq .faq-item h3 {
  color: var(--accent-strong);
}

.cta-note {
  display: block;
  margin-top: 12px;
  color: #e4e8e6;
  font-size: 0.9rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.72);
}

.btn {
  display: inline-flex;
  width: auto;
  max-width: 100%;
  min-height: 46px;
  padding: 11px 20px !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 10px !important;
  font-size: 0.98rem;
  line-height: 1.25;
  text-align: center;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.34);
}

.btn.whatsapp,
.whatsapp-float {
  background: #25d366 !important;
  color: #fff;
}

.btn.whatsapp:hover,
.whatsapp-float:hover {
  background: #20bd5a !important;
}

.btn.primary {
  background: #25302b !important;
  border-color: var(--border);
  color: var(--text) !important;
}

.btn.email {
  background: var(--surface-solid) !important;
  border-color: var(--border);
  color: var(--text) !important;
}

.btn.primary:hover,
.btn.email:hover {
  background: var(--surface-hover) !important;
  border-color: rgba(85, 204, 134, 0.5);
}

.section {
  padding: 76px 0;
}

.section:nth-of-type(even) {
  background: #1a201e;
}

.section h2 {
  margin-bottom: 22px;
  font-size: clamp(2rem, 4vw, 2.7rem);
}

.section-intro {
  max-width: 820px;
  margin: 0 auto 40px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
  text-align: center;
}

#despidos .steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
  width: 100%;
  margin-top: 40px;
}

#despidos .step {
  display: flex;
  width: auto;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 26px 20px;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  text-align: center;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
  transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

#despidos .step:hover,
.faq .faq-item:hover,
.pricing-card:hover {
  transform: translateY(-6px);
  border-color: rgba(85, 204, 134, 0.58);
  background: var(--surface-hover);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

.step-number {
  width: 54px;
  height: 54px;
  line-height: 54px;
  background: var(--accent-dark);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.step-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
}

.step-content p {
  margin-bottom: 0;
}

.step-content .btn {
  margin-top: auto;
}

.faq .faq-item {
  max-width: 920px;
  margin-right: auto;
  margin-left: auto;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.faq .faq-item h3 {
  font-size: 1.2rem;
}

.faq .faq-item p {
  margin-bottom: 0;
}

.pricing-card {
  max-width: 820px;
  margin: 28px auto 0;
  padding: 34px;
  border: 1px solid rgba(85, 204, 134, 0.42);
  border-radius: 16px;
  background: #203329;
  text-align: center;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.26);
  transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-strong);
  font-size: 1.5rem;
}

#scrollUpBtn {
  right: 20px;
  bottom: 86px;
  z-index: 1100;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #25302b;
  font-size: 0;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

#scrollUpBtn i {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

@keyframes whatsappPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.24);
  }
  50% {
    transform: scale(1.045);
    box-shadow: 0 12px 32px rgba(37, 211, 102, 0.42);
  }
}

.btn.whatsapp,
.whatsapp-float,
.icon.whatsapp {
  animation: whatsappPulse 1.8s ease-in-out infinite;
}

.btn.whatsapp:hover,
.whatsapp-float:hover,
.icon.whatsapp:hover {
  animation-play-state: paused;
}

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 18px;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}

.whatsapp-float:hover,
.whatsapp-float:focus,
.whatsapp-float:visited {
  color: #fff;
  text-decoration: none;
}

.chat-widget {
  position: fixed;
  right: 20px;
  bottom: 86px;
  z-index: 1099;
  width: min(360px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(37, 211, 102, 0.45);
  border-radius: 18px;
  background: #f5f7f6;
  color: #17201c;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.38);
  opacity: 0;
  visibility: hidden;
  transform: translateY(28px) scale(0.72);
  transform-origin: bottom right;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.chat-widget.is-open {
  visibility: visible;
  opacity: 1;
  animation: chatElasticOpen 0.62s cubic-bezier(0.22, 1.35, 0.36, 1) forwards;
}

@keyframes chatElasticOpen {
  0% { transform: translateY(28px) scale(0.72); }
  58% { transform: translateY(-8px) scale(1.035); }
  78% { transform: translateY(3px) scale(0.985); }
  100% { transform: translateY(0) scale(1); }
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: #075e54;
  color: #fff;
}

.chat-avatar {
  display: flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25d366;
  font-size: 1.4rem;
}

.chat-heading {
  flex: 1;
  min-width: 0;
}

.chat-heading strong,
.chat-heading span {
  display: block;
}

.chat-heading span {
  margin-top: 2px;
  color: #d8eee8;
  font-size: 0.82rem;
}

.chat-close {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
}

.chat-body {
  padding: 18px 16px;
  background: #e9efec;
}

.chat-message {
  max-width: 88%;
  margin: 0;
  padding: 12px 14px;
  border-radius: 4px 14px 14px 14px;
  background: #fff;
  color: #27332d;
  font-size: 0.94rem;
  line-height: 1.45;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: #fff;
}

.chat-input {
  min-width: 0;
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #ced8d3;
  border-radius: 999px;
  outline: none;
  font: inherit;
  color: #17201c;
}

.chat-input:focus {
  border-color: #25d366;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.16);
}

.chat-send {
  display: flex;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  cursor: pointer;
}

@media (max-width: 1000px) {
  #despidos .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .header .container {
    width: 94%;
  }

  .logo {
    flex: 1;
    min-width: 0;
    text-align: left;
  }

  .logo a {
    display: block;
    max-width: none;
    overflow: hidden;
    font-size: 1rem;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .icons {
    flex: 0 0 auto;
    gap: 8px;
    margin-left: 8px;
  }

  .hero {
    min-height: auto;
    margin-top: 60px;
    padding: 75px 0 60px;
  }

  .hero-content {
    width: 100%;
    padding: 22px 6px;
  }
}

@media (max-width: 600px) {
  #despidos .steps {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-buttons .btn,
  .contact-buttons .btn {
    width: 100%;
    min-width: 0;
    margin: 6px 0;
    white-space: normal;
  }

  .contact-buttons {
    flex-direction: column;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
    gap: 0;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
    font-size: 0;
  }

  .whatsapp-float i {
    font-size: 1.45rem;
  }

  #scrollUpBtn {
    left: 16px;
    right: auto;
    bottom: 20px;
  }

  .chat-widget {
    left: 16px;
    right: auto;
    bottom: 80px;
    width: calc(100% - 32px);
    max-width: none;
    box-sizing: border-box;
  }
}

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