/* #region navbar */
/* ========== NAVBAR ========== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  height: 64px;
  background: transparent;
  backdrop-filter: blur(0px);
  transition: all 0.4s ease-in-out;
}

nav.scrolling {
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(8px);
  transition: all 0.4s ease-in-out;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gold);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-icon .material-icons {
  color: var(--wine-dark);
  font-size: 20px;
}

.nav-logo-text {
  font-family: "Tiktok Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.5px;
}

.nav-logo-text strong {
  color: var(--gold);
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.3px;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-cta {
  background: var(--gold);
  color: var(--wine-dark) !important;
  font-weight: 700 !important;
  padding: 8px 20px;
  border-radius: 4px;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--gold-light) !important;
  color: var(--wine-dark) !important;
}
/* #endregion */

/* #region hero */
/* ========== HERO ========== */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../images/hero_bg.jpg") center/cover no-repeat;
  filter: brightness(0.45);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.6) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 0 24px;
}

.hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  border: 0.1px solid var(--gold);
  padding: 8px 14px;
  border-radius: 3px;
  margin-bottom: 28px;
  background-color: rgba(192, 192, 192, 0.15);
}

.hero-title {
  font-family: "Playfair Display", serif;
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-title em {
  font-style: italic;
  color: var(--gold);
}

.hero-subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  font-weight: 300;
}

.hero-sub2 {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 44px;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--wine-dark);
  font-weight: 700;
  font-size: 14px;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none;
  letter-spacing: 0.3px;
  transition:
    background 0.2s,
    transform 0.2s;
}

.btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  font-weight: 400;
  font-size: 14px;
  padding: 14px 24px;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  transition:
    border-color 0.2s,
    background 0.2s;
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
}

.hero-trust {
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.trust-dots {
  display: flex;
}

.trust-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background-repeat: no-repeat;
  background-size: cover;
}

.trust-dot.uno {
  background-image: url("../images/avatar1.svg");
}
.trust-dot.dos {
  background-image: url("../images/avatar2.svg");
  margin-left: -4px;
}
.trust-dot.tres {
  background-image: url("../images/avatar3.svg");
  margin-left: -4px;
}
/* #endregion */

/* #region problemas */
/* ========== PROBLEMAS ========== */
#problemas {
  background: #fff;
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.problem-card {
  text-align: left;
  padding: 32px 24px;
  background-color: var(--bg-cards);
  border-radius: 12px;

  transition:
    box-shadow 0.3s,
    transform 0.3s;
}

.problem-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.problem-icon {
  width: 60px;
  height: 60px;
  background: #f5f0e8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.problem-icon .material-icons {
  font-size: 28px;
  color: var(--gold);
}

.problem-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.problem-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* #endregion */

/* #region solucion */
/* ========== SOLUCIÓN ========== */
#solucion {
  background: var(--wine-dark);
  padding: 90px 0;
}

#solucion .section-title {
  color: #fff;
}

#solucion .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.tag-solucion {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 50px;
}

.solution-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 36px 28px;
  text-align: center;

  transition: all 0.3s ease-in-out;
}

.solution-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.003) translateY(-1px);
}

.solution-icon {
  width: 56px;
  height: 56px;
  background: rgba(192, 192, 192, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.solution-icon .material-icons {
  font-size: 26px;
  color: var(--gold);
}

.solution-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 19px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 12px;
}

.solution-card p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.75;
}
/* #endregion */

/* #region modulos */
/* ========== MÓDULOS ========== */
#modulos {
  background: var(--bg-section);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 24px;
}

.module-card {
  background: #fff;
  border-radius: 10px;
  padding: 28px 28px;
  border: 1px solid #eee;
  transition: box-shadow 0.2s;
}

.module-card.uno,
.module-card.dos,
.module-card.tres,
.module-card.cuatro {
  grid-column: span 3;
}

.module-card.cinco,
.module-card.seis,
.module-card.siete {
  grid-column: span 4;
}

.module-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.module-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.module-icon .material-icons {
  font-size: 22px;
  color: var(--wine);
}

.module-card h3 {
  font-family: "Tiktok Sans", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
}

.module-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.module-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-mid);
}

.module-features li .material-icons {
  font-size: 16px;
  color: var(--gold);
}
/* #endregion */

/* #region beneficios */
/* ========== BENEFICIOS ========== */
#beneficios {
  background: #fff;
}

.benefits-header {
  text-align: center;
  margin-bottom: 50px;
}

.benefits-header p {
  font-size: 15px;
  color: var(--text-light);
  max-width: 460px;
  margin: 10px auto 0;
  line-height: 1.7;
}

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

.benefit-card {
  border-radius: 10px;
  padding: 36px 28px;
  text-align: center;
  transition: all 0.3s ease-in-out;
  background-color: var(--bg-cards);
  border-bottom: 3px solid black;
}

.benefit-card.brown {
  border-bottom-color: var(--livid-brown);
}

.benefit-card.gold {
  border-bottom-color: var(--gold);
}

.benefit-card.black {
  border-bottom-color: var(--azure-black);
}

.benefit-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.benefit-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--wine);
  line-height: 1;
  margin-bottom: 10px;
  transition: all 0.3s ease-in-out;
}

.benefit-card.brown .benefit-number {
  color: var(--livid-brown);
}

.benefit-card.brown:hover .benefit-number,
.benefit-card.brown:hover {
  color: var(--livid-brown-dark);
  border-bottom-color: var(--livid-brown-dark);
}

.benefit-card.gold .benefit-number {
  color: var(--gold);
}

.benefit-card.gold:hover .benefit-number,
.benefit-card.gold:hover {
  color: var(--gold-dark);
  border-bottom-color: var(--gold-dark);
}

.benefit-card.black .benefit-number {
  color: var(--azure-black);
}

.benefit-card.black:hover .benefit-number,
.benefit-card.black:hover {
  color: var(--azure-black-dark);
  border-bottom-color: var(--azure-black-dark);
}

.benefit-card h4 {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-mid);
  letter-spacing: 0.3px;
}
/* #endregion */

/* #region implementacion */
/* ========== IMPLEMENTACIÓN ========== */
#implementacion {
  background: var(--bg-section);
}

.steps-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
  margin-top: 50px;
}

.steps-row::before {
  content: "";
  position: absolute;
  top: 40px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 3px;
  background: #e0d8cc;
  z-index: 0;
}

/* ===== TIMELINE ANIMATED SEGMENTS ===== */
.step-line {
  position: absolute;
  top: 40px;
  height: 3px;
  border-radius: 2px;
  z-index: 1;
  width: calc(25% - 80px); /* ancho final fijo siempre */
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform, opacity; /* hint a la GPU */
}

/* Cada segmento ocupa el espacio entre dos círculos consecutivos.
Los círculos están centrados en 12.5%, 37.5%, 62.5% y 87.5% del ancho.
El radio del círculo es 40px, así que cada línea va desde 
(N% + 40px) hasta (N+25% - 40px). */
.step-line-1 {
  left: calc(12.5% + 40px);
}
.step-line-2 {
  left: calc(37.5% + 40px);
}
.step-line-3 {
  left: calc(62.5% + 40px);
}

@keyframes seg-1 {
  0% {
    transform: scaleX(0);
    opacity: 0;
  }
  1% {
    transform: scaleX(0);
    opacity: 1;
  }
  21% {
    transform: scaleX(1);
    opacity: 1;
  }
  80% {
    transform: scaleX(1);
    opacity: 1;
  }
  91% {
    transform: scaleX(1);
    opacity: 0;
  }
  92% {
    transform: scaleX(0);
    opacity: 0;
  }
  100% {
    transform: scaleX(0);
    opacity: 0;
  }
}

@keyframes seg-2 {
  0% {
    transform: scaleX(0);
    opacity: 0;
  }
  22% {
    transform: scaleX(0);
    opacity: 0;
  }
  23% {
    transform: scaleX(0);
    opacity: 1;
  }
  43% {
    transform: scaleX(1);
    opacity: 1;
  }
  80% {
    transform: scaleX(1);
    opacity: 1;
  }
  91% {
    transform: scaleX(1);
    opacity: 0;
  }
  92% {
    transform: scaleX(0);
    opacity: 0;
  }
  100% {
    transform: scaleX(0);
    opacity: 0;
  }
}

@keyframes seg-3 {
  0% {
    transform: scaleX(0);
    opacity: 0;
  }
  44% {
    transform: scaleX(0);
    opacity: 0;
  }
  45% {
    transform: scaleX(0);
    opacity: 1;
  }
  65% {
    transform: scaleX(1);
    opacity: 1;
  }
  80% {
    transform: scaleX(1);
    opacity: 1;
  }
  91% {
    transform: scaleX(1);
    opacity: 0;
  }
  92% {
    transform: scaleX(0);
    opacity: 0;
  }
  100% {
    transform: scaleX(0);
    opacity: 0;
  }
}

.step-line-1 {
  animation: seg-1 12s ease-in-out infinite paused;
  background: linear-gradient(to right, var(--wine), var(--wine-mid));
}
.step-line-2 {
  animation: seg-2 12s ease-in-out infinite paused;
  background: linear-gradient(to right, var(--wine-mid), #555555);
}
.step-line-3 {
  animation: seg-3 12s ease-in-out infinite paused;
  background: linear-gradient(to right, #555555, #888888);
}

.steps-row.animate .step-line-1 {
  animation-play-state: running;
}
.steps-row.animate .step-line-2 {
  animation-play-state: running;
}
.steps-row.animate .step-line-3 {
  animation-play-state: running;
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 16px;
}

.step-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 22px;
  font-weight: 500;
  border: 6px solid white;
}

.step:nth-child(4) .step-circle {
  background: var(--wine);
  color: #fff;
}

.step:nth-child(5) .step-circle {
  background: var(--wine-mid);
  color: #fff;
}

.step:nth-child(6) .step-circle {
  background: #555555;
  color: #fff;
}

.step:nth-child(7) .step-circle {
  background: #888888;
  color: #fff;
}

.step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.step p {
  font-size: 13.5px;
  color: var(--text-light);
  line-height: 1.6;
}
/* #endregion */

/* #region faq */
/* ========== FAQ ========== */
#faq {
  background: #fff;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 auto;
  align-items: start;
}

/* Quitamos el marcador nativo del details */
.faq-item {
  border-radius: 8px;
  border: 1px solid var(--bg-cards);
  background-color: var(--bg-cards);
  overflow: hidden;
  transition: border-color 0.3s;
}

.faq-item[open] {
  border-color: var(--gold-light);
}

.faq-item summary {
  list-style: none; /* quita el triángulo nativo */
  padding: 25px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 16px;
  font-weight: 400;
  color: var(--text-dark);
  user-select: none;
  gap: 16px;
}

/* Quita el marcador en webkit */
.faq-item summary::-webkit-details-marker {
  display: none;
}

/* Icono custom con CSS puro — sin Material Icons para evitar el salto */
.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px;
  transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
}

/* Contenido desplegable */
.faq-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-body-inner {
  overflow: hidden;
}

.faq-item p {
  padding: 0 24px 22px;
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.75;
  margin: 0;
}

/* #endregion */

/* #region contacto */
/* ========== CONTACTO ========== */
#contacto {
  padding: 90px 0;
  background: linear-gradient(
    135deg,
    #1e1e1e 0%,
    #111111 100%
  );
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.contact-left h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
}

.contact-left p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-info-item h5 {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
  font-weight: 300;
}

.contact-info-item span {
  font-size: 18px;
  color: rgba(255, 255, 255, 1);
  font-weight: 500;
}

.contact-info-item .icon {
  width: 54px;
  height: 54px;
  border-radius: 9999px;
  border: var(--stroke-weight-1, 1px) solid
    var(--color-white-20, rgba(255, 255, 255, 0.2));
  background: var(--color-white-10, rgba(255, 255, 255, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-item .material-icons {
  font-size: 22px;
  color: var(--gold);
}

.contact-form {
  background: #fff;
  border-radius: 12px;
  padding: 36px;
}

.contact-form h3 {
  font-size: 26px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-select-wrapper {
  position: relative;
  margin-bottom: 20px;
}

.form-label-small {
  font-size: 12px;
  color: var(--text-light);
  display: block;
  margin-bottom: 6px;
  font-weight: 400;
}

.form-select {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 10px 14px;
  font-family: "Tiktok Sans", sans-serif;
  font-size: 14px;
  color: var(--text-mid);
  appearance: none;
  background: #f9f9f9
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M6 8L0 0h12z' fill='%23aaa'/%3E%3C/svg%3E")
    no-repeat right 14px center;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.form-row .form-group {
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 10px 14px;
  font-family: "Tiktok Sans", sans-serif;
  font-size: 14px;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s;
  background: #f9f9f9;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #bbb;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--wine);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.btn-submit {
  width: 100%;
  background: var(--wine-dark);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 6px;
  font-family: "Tiktok Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.2s;
  margin-top: 6px;
}

.btn-submit:hover {
  background: var(--wine);
}
/* #endregion */

/* #region footer */
/* ========== FOOTER ========== */
footer {
  background: #fff;
  padding: 60px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: auto auto auto auto auto;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 32px;
}

.footer-brand p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 20px;
  max-width: 260px;
}

.footer-brand .footer-nav-header,
.footer-col .footer-nav-header {
  height: 70px;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.footer-brand .footer-nav-header img {
  height: 100%;
}

.footer-social {
  display: flex;
  gap: 14px;
}

.footer-social a {
  width: 32px;
  height: 32px;
  border: 1px solid var(--text-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  text-decoration: none;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.footer-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.footer-social .material-icons {
  font-size: 15px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--wine-dark);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: 13px;
  color: var(--text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--gold);
}

.footer-cert-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.footer-cert-item .material-icons {
  font-size: 15px;
  color: var(--gold);
}

.footer-bottom {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-light);
}

.footer-bottom .material-icons {
  font-size: 13px;
  color: var(--wine);
  vertical-align: middle;
}
/* #endregion */

/* #region chatbot */
/* ========== CHATBOT ========== */
.chatbot-widget {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  font-family: "Tiktok Sans", sans-serif;
}

.chatbot-bubble {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--wine);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  position: relative;
}

.chatbot-bubble:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.4);
  background: var(--wine-mid);
}

.chatbot-bubble .material-icons {
  font-size: 26px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.chatbot-bubble .icon-open {
  position: absolute;
}

.chatbot-bubble .icon-close {
  position: absolute;
  opacity: 0;
  transform: rotate(-90deg);
}

.chatbot-widget.open .chatbot-bubble .icon-open {
  opacity: 0;
  transform: rotate(90deg);
}

.chatbot-widget.open .chatbot-bubble .icon-close {
  opacity: 1;
  transform: rotate(0deg);
}

.chatbot-panel {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 360px;
  height: 520px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transition:
    opacity 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
    transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform-origin: bottom right;
}

.chatbot-widget.open .chatbot-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.chatbot-header {
  background: var(--wine);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.chatbot-name {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
}

.chatbot-status {
  color: rgba(255, 255, 255, 0.65);
  font-size: 11.5px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.chatbot-status::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
}

.chatbot-close-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.chatbot-close-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.chatbot-close-btn .material-icons {
  font-size: 18px;
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chatbot-messages::-webkit-scrollbar {
  width: 4px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 4px;
}

.chatbot-msg {
  display: flex;
  max-width: 86%;
  animation: msg-in 0.2s ease-out;
}

@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chatbot-msg.bot {
  align-self: flex-start;
}

.chatbot-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chatbot-msg-content {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13.5px;
  line-height: 1.55;
}

.chatbot-msg.bot .chatbot-msg-content {
  background: #f2f2f2;
  color: var(--text-dark);
  border-bottom-left-radius: 4px;
}

.chatbot-msg.user .chatbot-msg-content {
  background: var(--wine);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chatbot-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-self: flex-start;
  padding-top: 4px;
}

.quick-reply {
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12.5px;
  color: var(--text-dark);
  cursor: pointer;
  font-family: "Tiktok Sans", sans-serif;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.quick-reply:hover {
  background: var(--wine);
  border-color: var(--wine);
  color: #fff;
}

.chatbot-typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 14px;
  background: #f2f2f2;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  width: fit-content;
  align-self: flex-start;
  animation: msg-in 0.2s ease-out;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: #aaa;
  border-radius: 50%;
  animation: typing-bounce 1.2s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-bounce {
  0%,
  60%,
  100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-5px);
  }
}

.chatbot-input-area {
  padding: 12px 16px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 8px;
  align-items: center;
  background: #fff;
  flex-shrink: 0;
}

.chatbot-input-area input {
  flex: 1;
  border: 1px solid #e5e5e5;
  border-radius: 24px;
  padding: 10px 16px;
  font-size: 13.5px;
  font-family: "Tiktok Sans", sans-serif;
  outline: none;
  color: var(--text-dark);
  transition: border-color 0.2s;
  background: #f9f9f9;
}

.chatbot-input-area input:focus {
  border-color: var(--wine-mid);
  background: #fff;
}

.chatbot-input-area input::placeholder {
  color: #bbb;
}

.chatbot-send-btn {
  width: 38px;
  height: 38px;
  background: var(--wine);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  flex-shrink: 0;
}

.chatbot-send-btn:hover {
  background: var(--wine-mid);
  transform: scale(1.05);
}

.chatbot-send-btn .material-icons {
  font-size: 18px;
  color: #fff;
}
/* #endregion */
