@import url('brand-fonts.css');

/*
 * Public Site Styles - Somiant Festes
 *
 * !important usage notes:
 * - Bootstrap utility overrides (.text-*, .bg-*, .btn-*) require !important
 *   because Bootstrap's own utilities use !important internally
 * - prefers-reduced-motion media query uses !important to override all animations
 *
 * When adding new styles, prefer higher specificity over !important when possible.
 */

:root {
  --sf-slate: #405565;
  --sf-slate-dark: #2f414d;
  --sf-slate-deep: #243540;
  --sf-mist: #86b7c3;
  --sf-mist-light: #c7dde3;
  --sf-ivory: #edf2f7;
  --sf-white: #ffffff;

  --ec-font-body: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ec-font-title: 'Baloo 2 Somiant', 'Plus Jakarta Sans', system-ui, sans-serif;
  --bs-font-sans-serif: var(--ec-font-body);
  --bs-body-font-family: var(--bs-font-sans-serif);
  --bs-primary: var(--sf-slate);
  --bs-primary-rgb: 64, 85, 101;
  --bs-secondary: var(--sf-mist);
  --bs-secondary-rgb: 134, 183, 195;
  --bs-light: var(--sf-ivory);
  --bs-light-rgb: 247, 244, 241;
  --bs-dark: var(--sf-slate-deep);
  --bs-dark-rgb: 36, 53, 64;
  --bs-link-color: var(--sf-slate);
  --bs-link-hover-color: var(--sf-slate-dark);
  --ec-burgundy: var(--sf-slate);
  --ec-burgundy-dark: var(--sf-slate-dark);
  --ec-gold: var(--sf-mist);
  --ec-gold-light: var(--sf-mist-light);
  --ec-ivory: var(--sf-ivory);
  --ec-warm-white: var(--sf-white);
  --ec-dark: var(--sf-slate-deep);
  --ec-text: #354a56;
  --ec-muted: #6f828b;

  /* Z-index scale - use these for new components */
  --z-base: 0;
  --z-content: 1;
  --z-dropdown: 100;
  --z-sticky: 1000;
  --z-overlay: 9998;
  --z-modal: 10000;
  --z-modal-above: 10001;
  --z-lightbox: 99999;
  --z-toast: 100000;
  --z-emergency: 999999;
}

.text-secondary,
.fst-italic.text-secondary {
  color: var(--ec-gold) !important;
}

.text-dark {
  color: var(--ec-text) !important;
}

.text-muted {
  color: var(--ec-muted) !important;
}

.bg-dark {
  background-color: var(--ec-dark) !important;
}

.bg-light {
  background-color: var(--ec-ivory) !important;
}

body {
  font-family: var(--ec-font-body);
  background-color: var(--ec-warm-white);
  color: var(--ec-text);
  padding-top: 74px;
}

body.is-home-page {
  padding-top: 0;
}

body.page-hero {
  padding-top: 0;
}

::selection {
  background: rgba(134, 183, 195, 0.45);
  color: var(--ec-dark);
}

h1,
h2,
h3,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6,
.hero-title,
.section-title,
.admin-header h1,
.admin-card-header h2,
.admin-modal-header h3,
.footer-heading {
  font-family: var(--ec-font-title);
  letter-spacing: 0.01em;
}

button,
input,
select,
textarea,
.btn,
.form-control,
.form-select {
  font-family: inherit;
}

textarea {
  resize: none;
}

.btn-primary {
  background-color: var(--ec-burgundy) !important;
  border-color: var(--ec-burgundy) !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--ec-burgundy-dark) !important;
  border-color: var(--ec-burgundy-dark) !important;
}

.btn-outline-dark {
  border-color: var(--ec-burgundy) !important;
  color: var(--ec-burgundy) !important;
}

.btn-outline-dark:hover {
  background-color: var(--ec-burgundy) !important;
  border-color: var(--ec-burgundy) !important;
  color: #fff !important;
}

.btn-outline-light {
  border-color: var(--ec-gold) !important;
  color: var(--ec-gold) !important;
}

.btn-outline-light:hover {
  background-color: var(--ec-gold) !important;
  border-color: var(--ec-gold) !important;
  color: var(--ec-dark) !important;
}

.navbar-custom .nav-link.active,
.navbar-custom .nav-link:hover {
  color: var(--ec-burgundy) !important;
}

.navbar-custom .nav-link {
  color: var(--ec-text) !important;
}

.ec-navbar-brand {
  min-width: 0;
  margin-left: 0.35rem;
}

.ec-navbar-logo {
  height: 44px;
  width: auto;
  max-width: min(220px, 50vw);
  object-fit: contain;
  flex: 0 0 auto;
}

.ec-navbar-text {
  min-width: 0;
}

.ec-navbar-actions {
  flex: 0 0 auto;
}

.bi,
[class^="bi-"],
[class*=" bi-"] {
  line-height: 1;
}

.bi::before,
[class^="bi-"]::before,
[class*=" bi-"]::before {
  font-family: bootstrap-icons !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1;
  vertical-align: -.125em;
}

.ec-call-btn-mobile .bi,
.ec-call-btn-desktop .bi,
.chatbot-icon,
.chatbot-action-btn .bi,
.footer-social-btn .bi,
.footer-contact .bi,
.admin-sidebar-menu .bi,
.admin-logout-btn .bi {
  color: currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ec-call-btn-mobile,
.ec-call-btn-desktop {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 38px;
  padding-top: 0.62rem !important;
  padding-bottom: 0.62rem !important;
  line-height: 1;
  font-size: 0.98rem;
}

.ec-call-btn-mobile .bi,
.ec-call-btn-desktop .bi {
  margin-right: 0 !important;
  font-size: 1.05em;
  transform: translateY(0.02em);
}

.ec-navbar-name {
  color: var(--ec-burgundy);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1rem;
  white-space: nowrap;
}

.ec-navbar-subtitle {
  color: var(--ec-gold);
  font-size: 0.65rem;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .ec-navbar-brand {
    gap: 0.4rem !important;
    margin-left: 0.15rem;
    margin-right: 0.25rem;
  }

  .ec-navbar-logo {
    height: 34px;
    max-width: 160px;
  }

  .ec-navbar-name {
    font-size: 0.52rem;
    letter-spacing: .035rem;
  }

  .ec-navbar-subtitle {
    font-size: 0.5rem;
  }

  .ec-call-btn-mobile {
    font-size: 0.72rem;
    min-height: 34px;
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    padding-left: 0.55rem !important;
    padding-right: 0.55rem !important;
  }

  .ec-call-btn-mobile .bi {
    margin-right: 0.15rem !important;
  }
}

@media (max-width: 340px) {
  .ec-navbar-subtitle {
    display: none;
  }
}

.ec-mobile-nav-toggle {
  border: 0;
  background: transparent;
  color: var(--ec-dark);
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0;
  position: relative;
  z-index: 10001;
}

.ec-mobile-nav-layer {
  position: fixed;
  inset: 0;
  background: rgba(36, 53, 64, 0.84);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 9998;
}

.ec-mobile-nav-panel {
  position: absolute;
  top: 74px;
  left: 20px;
  right: 20px;
  background: #fff;
  border-radius: 0.45rem;
  padding: 0.65rem 0;
  box-shadow: 0 22px 60px rgba(0,0,0,0.22);
  transform: translateY(-8px);
  transition: transform 0.25s ease;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.ec-mobile-nav-panel .ec-mobile-nav-logo {
  justify-content: center;
  padding: 1rem 1.2rem 0.85rem;
  border-left: 0;
  background: transparent;
}

.ec-mobile-nav-panel .ec-mobile-nav-logo:hover,
.ec-mobile-nav-panel .ec-mobile-nav-logo.active {
  background: transparent;
  border-left: 0;
}

.ec-mobile-nav-panel .ec-mobile-nav-logo img {
  display: block;
  max-width: 185px;
  max-height: 52px;
  width: auto;
  height: auto;
}

.ec-mobile-nav-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ec-dark);
  text-decoration: none;
  padding: 0.78rem 1.2rem;
  font-size: 1.05rem;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-left: 3px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ec-mobile-nav-panel a:hover,
.ec-mobile-nav-panel a.active {
  color: var(--sf-slate);
  background: rgba(134, 183, 195, 0.12);
  border-left-color: var(--sf-mist);
  font-weight: 500;
}

.ec-mobile-nav-panel a.active .bi {
  color: var(--sf-mist);
}

.ec-mobile-nav-panel .ec-mobile-call {
  margin: 0.55rem 1rem 0;
  width: calc(100% - 2rem);
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: var(--sf-slate);
  color: #fff !important;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.7rem 1rem;
  line-height: 1.1;
}

.ec-mobile-nav-panel .ec-mobile-call:hover {
  color: #fff !important;
  background: var(--sf-slate-dark);
}

.ec-mobile-nav-panel .ec-mobile-call .bi {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  transform: translateY(0.01em);
}

body.ec-mobile-nav-active {
  overflow: hidden;
}

body.ec-mobile-nav-active .ec-mobile-nav-layer {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.ec-mobile-nav-active .ec-mobile-nav-panel {
  transform: translateY(0);
}

body.ec-mobile-nav-active .ec-mobile-nav-toggle {
  color: #fff;
}

body.ec-mobile-nav-active .navbar-custom {
  z-index: 10050;
}

body.ec-mobile-nav-active .ec-mobile-nav-layer {
  z-index: 10051;
}

body.ec-mobile-nav-active .ec-mobile-nav-toggle {
  z-index: 10052;
}

body.ec-mobile-nav-active .header .nav-mobile-action {
  display: none !important;
}

body.ec-mobile-nav-active .header .navbar-brand {
  visibility: hidden;
}

body.ec-mobile-nav-active .chatbot-widget {
  z-index: 900 !important;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Header estilo oscomarcal */
.main-btn {
  display: inline-block;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  padding: 20px 40px;
  font-size: 18px;
  border-radius: 50px;
  color: #fff;
  cursor: pointer;
  z-index: 5;
  transition: all .4s ease-in-out;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: var(--sf-slate);
  overflow: hidden;
}

.main-btn:hover,
.main-btn:focus {
  color: #fff;
  text-decoration: none;
}

.btn-hover {
  position: relative;
  overflow: hidden;
}

.btn-hover::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 0%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  top: 50%;
  left: 50%;
  padding: 50%;
  z-index: -1;
  transition: all 0.3s ease-out 0s;
  transform: translate3d(-50%, -50%, 0) scale(0);
}

.btn-hover:hover::after {
  transform: translate3d(-50%, -50%, 0) scale(1.3);
}

.navbar-nav .nav-item .main-btn.btn-hover::after,
.navbar-nav .nav-item a.main-btn::before {
  display: none;
}

.header .navbar-area {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: auto;
  z-index: 99;
  background-color: rgba(255, 255, 255, 0.0);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transform: translateY(0);
  transition: background-color 0.18s ease-out, border-color 0.18s ease-out, box-shadow 0.18s ease-out;
}

.header .navbar-area.sticky {
  background-color: #fff;
  border-bottom-color: rgba(64, 85, 101, 0.08);
  box-shadow: 0 4px 20px rgba(64, 85, 101, 0.06);
}

.header .container {
  max-width: min(1380px, calc(100% - 24px));
}

.header .navbar {
  border-radius: 5px;
  position: relative;
  padding: 12px 0;
}

.header .navbar-brand {
  display: flex;
  align-items: center;
  padding: 8px 0 8px 12px;
}

.header .navbar-brand img {
  max-height: 42px;
  width: auto;
  max-width: none;
  display: block;
}

.header .navbar-toggler {
  padding: 0;
  border: none;
}

.header .navbar-toggler:focus {
  outline: none;
  box-shadow: none;
  border: none;
}

.header .navbar-toggler .toggler-icon {
  width: 30px;
  height: 2px;
  background-color: var(--sf-slate-deep);
  display: block;
  margin: 5px 0;
  position: relative;
  transition: all 0.3s ease-out 0s;
}

.header .navbar-toggler.active .toggler-icon:nth-of-type(1) {
  transform: rotate(45deg);
  top: 7px;
}

.header .navbar-toggler.active .toggler-icon:nth-of-type(2) {
  opacity: 0;
}

.header .navbar-toggler.active .toggler-icon:nth-of-type(3) {
  transform: rotate(135deg);
  top: -7px;
}

.header .navbar-nav .nav-item {
  position: relative;
  margin-left: 8px;
}

.header .navbar-nav .nav-item:first-child {
  margin-left: 0;
}

.header .navbar-nav .nav-item a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ec-muted) !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.3s ease-out 0s;
  padding: 8px 12px;
  position: relative;
  white-space: nowrap;
}

.header .navbar-nav .nav-item a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--sf-slate);
  border-radius: 2px;
  transition: width 0.3s ease-out;
}

.header .navbar-nav .nav-item a:hover {
  color: var(--sf-slate) !important;
}

.header .navbar-nav .nav-item a.active {
  color: var(--sf-slate) !important;
  font-weight: 550;
}

.header .navbar-nav .nav-item a:hover::after,
.header .navbar-nav .nav-item a.active::after {
  background: var(--sf-slate);
  width: 24px;
}

.header .navbar-nav .nav-item .main-btn {
  padding: 6px 12px !important;
  font-size: 0.8rem;
  color: #fff !important;
}

.header .navbar-nav .nav-item .main-btn:hover,
.header .navbar-nav .nav-item .main-btn.active {
  color: #fff !important;
}

.header .nav-mobile-action {
  padding: 6px 12px !important;
  font-size: 0.85rem;
  color: #fff !important;
}

.header .nav-mobile-action,
.header .ec-mobile-nav-toggle {
  display: none !important;
}

.header .nav-desktop-action {
  display: inline-flex !important;
}

.header .navbar-actions .main-btn {
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 6px 12px !important;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
  min-height: 32px;
}

.header .navbar-actions .main-btn,
.ec-mobile-nav-panel .ec-mobile-call {
  letter-spacing: normal;
  text-transform: none;
}

.header .navbar-actions .main-btn .bi {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  transform: translateY(0.01em);
}

.header:not(.header-nav-collapsed) .navbar-brand,
.header:not(.header-nav-collapsed) .navbar-actions {
  flex: 0 0 auto;
}

.header:not(.header-nav-collapsed) .navbar-actions {
  order: 3;
  justify-content: flex-end;
  margin-left: 0 !important;
}

.header:not(.header-nav-collapsed) .navbar-collapse {
  display: flex !important;
  order: 2;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}

.header:not(.header-nav-collapsed) .navbar-nav {
  justify-content: center;
}

.header.header-nav-collapsed .navbar-collapse {
  display: none !important;
}

.header.header-nav-collapsed .navbar-actions {
  margin-left: auto !important;
}

.header.header-nav-collapsed .nav-mobile-action,
.header.header-nav-collapsed .ec-mobile-nav-toggle {
  display: inline-flex !important;
}

.header.header-nav-collapsed .nav-desktop-action {
  display: none !important;
}

@media only screen and (min-width: 768px) and (max-width: 991px),
(max-width: 767px) {
  .header .navbar-nav .nav-item a {
    display: inline-block;
    padding: 6px 0;
    color: var(--ec-muted) !important;
  }
}



.bg-secondary {
  background-color: var(--ec-gold) !important;
  opacity: 0.3;
}

.card {
  border-color: rgba(64, 85, 101, 0.12);
}

.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(64, 85, 101, 0.1);
  border-radius: 1rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 4px 16px rgba(64, 85, 101, 0.06);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
  cursor: pointer;
}

.product-card-media {
  position: relative;
  display: block;
  overflow: hidden;
}

.product-card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(36, 53, 64, 0.34) 100%);
  opacity: 0;
}

.product-card .card-img-top {
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  width: 100%;
  transition: transform 0.35s ease;
}

.product-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.35rem;
}

.product-card-copy {
  margin-bottom: 1.2rem;
}

.product-card h3,
.product-card .text-muted {
  word-break: break-word;
  overflow-wrap: break-word;
}

.product-card h3 {
  color: var(--sf-slate-deep);
  transition: color 0.2s ease;
}

.product-card .text-muted {
  font-size: 0.88rem;
  line-height: 1.55;
  font-weight: 400 !important;
}

.product-card-btn {
  align-self: flex-start;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.card.product-card:hover,
.card.product-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(134, 183, 195, 0.45);
  box-shadow: 0 4px 16px rgba(64, 85, 101, 0.06);
}

.card.product-card:focus-visible {
  outline: 3px solid rgba(134, 183, 195, 0.35);
  outline-offset: 3px;
}

.card.product-card:hover h3,
.card.product-card:focus-within h3 {
  color: var(--sf-slate);
}

.card.product-card:hover .card-img-top,
.card.product-card:focus-within .card-img-top {
  transform: scale(1.04);
}

.card.product-card:hover .product-card-media::after,
.card.product-card:focus-within .product-card-media::after {
  opacity: 0;
}

h1, h2, h3, h4, h5, h6,
.display-1, .display-2, .display-3, .display-4, .display-5 {
  color: var(--ec-dark);
}

.navbar-brand span:first-child {
  color: var(--ec-burgundy);
  letter-spacing: .12rem;
}

.navbar-brand span:last-child {
  color: var(--ec-gold);
}

.page-link {
  color: var(--ec-burgundy);
}

.page-link:hover {
  color: var(--ec-burgundy-dark);
}

.page-item.active .page-link {
  background-color: var(--ec-burgundy);
  border-color: var(--ec-burgundy);
}

.form-control:focus {
  border-color: var(--ec-gold);
  box-shadow: 0 0 0 .2rem rgba(134, 183, 195, 0.25);
}

.form-select:focus {
  border-color: var(--ec-gold);
  box-shadow: 0 0 0 .2rem rgba(134, 183, 195, 0.25);
}

.form-check-input:checked {
  background-color: var(--ec-burgundy);
  border-color: var(--ec-burgundy);
}

.border {
  border-color: rgba(64, 85, 101, 0.15) !important;
}

/* Prevent red selection/drag on images */
img, a img {
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Selection color - gold instead of red/burgundy */
::selection {
  background: rgba(134, 183, 195, 0.35);
  color: var(--ec-dark);
}
::-moz-selection {
  background: rgba(134, 183, 195, 0.35);
  color: var(--ec-dark);
}

/* Hero Slider */
.hero-editorial {
  position: relative;
  width: 100%;
  height: 85vh;
  min-height: 520px;
  max-height: 800px;
  overflow: hidden;
  background: var(--ec-dark);
}

.hero-editorial .swiper,
.hero-editorial .swiper-wrapper,
.hero-editorial .swiper-slide {
  height: 100%;
}

.hero-slide-editorial {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.hero-image-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.08);
  transition: transform 6s ease-out;
}

.swiper-slide-active .hero-image {
  transform: scale(1);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(36, 53, 64, 0.92) 0%, rgba(47, 65, 77, 0.76) 35%, rgba(64, 85, 101, 0.42) 70%, rgba(64, 85, 101, 0.16) 100%);
}

.hero-texture {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
}

.hero-content-editorial {
  position: relative;
  z-index: 4;
  padding: 0 2rem;
  max-width: 640px;
  margin-left: 5vw;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.swiper-slide-active .hero-content-editorial {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.3s;
}

.hero-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ec-gold);
  margin-bottom: 1rem;
  text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.hero-line {
  width: 60px;
  height: 2px;
  background: var(--ec-gold);
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.hero-desc {
  font-size: clamp(0.95rem, 1.4vw, 1.15rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2rem;
  font-weight: 300;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}

.hero-btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: transparent;
  border: 1px solid rgba(134, 183, 195, 0.5);
  color: var(--ec-gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-decoration: none;
  transition: all 0.35s ease;
}

.hero-btn:hover {
  background: var(--ec-gold);
  border-color: var(--ec-gold);
  color: var(--ec-dark);
  text-decoration: none;
}

/* Hero pagination */
.hero-pagination-wrapper {
  position: absolute;
  bottom: 2rem;
  left: 5vw;
  z-index: 5;
}

.hero-pagination .swiper-pagination-bullet {
  width: 40px;
  height: 2px;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.3);
  opacity: 1;
  margin: 0 6px !important;
  transition: background 0.3s ease;
}

.hero-pagination .swiper-pagination-bullet-active {
  background: var(--ec-gold);
}

/* Hero navigation */
.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.hero-nav::after {
  display: none;
}

.hero-nav::after {
  display: none;
}

.hero-nav:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.hero-nav-prev {
  left: 2rem;
}

.hero-nav-next {
  right: 2rem;
}

@media (max-width: 768px) {
  .hero-editorial {
    height: 75vh;
    min-height: 480px;
  }

  .hero-content-editorial {
    margin-left: 0;
    padding: 0 1.5rem;
    max-width: 100%;
  }

  .hero-gradient {
    background: linear-gradient(180deg, rgba(36, 53, 64, 0.72) 0%, rgba(47, 65, 77, 0.86) 60%, rgba(36, 53, 64, 0.92) 100%);
  }

  .hero-nav {
    display: none;
  }

  .hero-pagination-wrapper {
    left: 50%;
    transform: translateX(-50%);
    bottom: 1.5rem;
  }
}

/* Footer */
.footer {
  position: relative;
  z-index: 2;
  background-image: url('../img/footer/footer-bg.svg');
  background-size: cover;
  background-position: top center;
  padding-top: 150px;
}

.footer .widget-wrapper .footer-widget {
  margin-bottom: 40px;
}

.footer .widget-wrapper .footer-widget .desc {
  font-size: 18px;
  line-height: 28px;
  color: var(--ec-muted);
}

.footer .widget-wrapper .footer-widget .socials {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .widget-wrapper .footer-widget .socials li {
  margin-right: 20px;
}

.footer .widget-wrapper .footer-widget .socials li a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--sf-slate);
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(64, 85, 101, 0.1);
}

.footer .widget-wrapper .footer-widget .socials li a:hover {
  color: #fff;
  background: var(--sf-slate);
  box-shadow: 0 4px 12px rgba(64, 85, 101, 0.2);
}

.footer .widget-wrapper .footer-widget h3 {
  margin-bottom: 24px;
  font-size: 20px;
  font-weight: 800;
  color: var(--sf-slate);
}

.footer .widget-wrapper .footer-widget ul.links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .widget-wrapper .footer-widget ul.links li {
  font-size: 18px;
  line-height: 36px;
}

.footer .widget-wrapper .footer-widget ul.links li a {
  color: var(--ec-muted);
  display: inline-block;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer .widget-wrapper .footer-widget ul.links li a:hover {
  color: var(--sf-slate);
  transform: translateX(7px);
}

.footer .widget-wrapper .footer-widget ul.footer-contact-list li {
  line-height: 30px;
  margin-bottom: 6px;
}

.footer .widget-wrapper .footer-widget ul.footer-contact-list li a {
  overflow-wrap: anywhere;
}

.footer .widget-wrapper .footer-widget .footer-logo {
  margin-bottom: 24px;
}

.footer .widget-wrapper .footer-widget .logo img {
  max-width: 180px;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.footer .copy-right {
  text-align: center;
  padding: 30px 0;
  border-top: 1px solid rgba(64, 85, 101, 0.12);
}

.footer .copy-right p {
  color: var(--ec-muted);
  font-size: 0.85rem;
  margin: 0;
}

/* Gallery Preview (Home) */
.gallery-preview-card {
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

.gallery-preview-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.gallery-preview-img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #f5f5f5;
}

.gallery-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.gallery-preview-card:hover .gallery-preview-img {
  transform: scale(1.05);
}

/* Home Gallery Carousel Navigation */
.swiper-navigation-wrapper {
  position: relative;
}

.home-gallery-prev,
.home-gallery-next {
  position: static;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(64, 85, 101, 0.2);
  border-radius: 50%;
  background: #fff;
  color: var(--ec-burgundy);
  margin: 0;
  transition: all 0.25s ease;
}

.home-gallery-prev::after,
.home-gallery-next::after {
  font-size: 0.9rem;
  font-weight: 700;
}

.home-gallery-prev:hover,
.home-gallery-next:hover {
  background: var(--ec-burgundy);
  border-color: var(--ec-burgundy);
  color: #fff;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

@media (min-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  cursor: pointer;
  height: 100%;
}

.gallery-card {
  background: #fff;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.gallery-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(64, 85, 101, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay-content {
  text-align: center;
  color: #fff;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.gallery-card:hover .gallery-overlay-content {
  transform: translateY(0);
}

.gallery-zoom-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.gallery-view-text {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gallery-caption {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.gallery-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--ec-dark);
  line-height: 1.3;
  word-break: break-word;
  overflow-wrap: break-word;
}

.gallery-desc {
  font-size: 0.875rem;
  color: var(--ec-muted);
  margin: 0;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: break-word;
  white-space: pre-wrap;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: -webkit-line-clamp 0.3s ease;
  cursor: pointer;
}
.gallery-desc.is-expanded {
  -webkit-line-clamp: unset;
}

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.gallery-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
}

.lightbox-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 10;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  z-index: 10;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-content {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.lightbox-image-wrapper {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.lightbox-image {
  max-width: 95vw;
  max-height: 97vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transition: none;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-caption-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.35) 60%, transparent 100%);
  color: #fff;
  border-radius: 0 0 0.5rem 0.5rem;
  pointer-events: none;
}

.lightbox-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.lightbox-desc {
  font-size: 0.9rem;
  opacity: 0.9;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.lightbox-counter {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.8rem;
  background: rgba(0,0,0,0.5);
  color: rgba(255, 255, 255, 0.85);
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  z-index: 10;
  pointer-events: none;
}

@media (max-width: 768px) {
  .lightbox-nav {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .lightbox-prev {
    left: 0.25rem;
  }

  .lightbox-next {
    right: 0.25rem;
  }

  .lightbox-content {
    width: auto;
  }

  .lightbox-image-wrapper {
    border-radius: 0.35rem;
  }

  .lightbox-image {
    max-width: 98vw;
    max-height: 97vh;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
}

/* Chatbot Widget */
.chatbot-widget {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  font-family: inherit;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.2s ease 0.5s, visibility 0.2s ease 0.5s;
}

body.cookie-consent-visible .chatbot-widget {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: none;
}

.chatbot-tooltip {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: max-content;
  max-width: 250px;
  padding: 0.7rem 1rem;
  border-radius: 1rem 1rem 0.25rem 1rem;
  background: #fff;
  color: var(--ec-dark);
  border: 1px solid rgba(134, 183, 195, 0.28);
  box-shadow: 0 12px 30px rgba(64, 85, 101, 0.14);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.35;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.94);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.chatbot-tooltip::after {
  content: '';
  position: absolute;
  right: 18px;
  bottom: -8px;
  width: 14px;
  height: 14px;
  background: #fff;
  border-right: 1px solid rgba(134, 183, 195, 0.28);
  border-bottom: 1px solid rgba(134, 183, 195, 0.28);
  transform: rotate(45deg);
}

.chatbot-tooltip.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  animation: chatbot-tooltip-bounce 2s infinite ease-in-out 0.5s;
}

@keyframes chatbot-tooltip-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Floating Toggle Button */
.chatbot-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ec-burgundy) 0%, var(--ec-burgundy-dark) 100%);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(64, 85, 101, 0.36);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(64, 85, 101, 0.44);
}

.chatbot-toggle:active {
  transform: scale(0.95);
}

.chatbot-icon {
  line-height: 1;
}

.chatbot-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  background: var(--sf-mist);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  color: var(--sf-slate-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(134, 183, 195, 0.5);
  border: 2px solid #fff;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10;
}

.chatbot-badge.show {
  opacity: 1;
  transform: scale(1);
}

@keyframes chatbot-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Chat Window */
.chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 3rem);
  height: 520px;
  max-height: calc(100vh - 10rem);
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.chatbot-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chatbot-window.chatbot-closing {
  transition: none !important;
}

/* Chat Header */
.chatbot-header {
  background: linear-gradient(135deg, var(--ec-burgundy) 0%, var(--ec-burgundy-dark) 100%);
  color: #fff;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
}

.chatbot-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chatbot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  overflow: hidden;
  padding: 0.12rem;
}

.chatbot-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.chatbot-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
  color: #fff;
}

.chatbot-status {
  font-size: 0.75rem;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.chatbot-status::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  display: inline-block;
}

.chatbot-header-actions {
  display: flex;
  gap: 0.5rem;
}

.chatbot-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  font-size: 1rem;
}

.chatbot-action-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Chat Messages */
.chatbot-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1.25rem;
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scroll-behavior: auto;
}

.chatbot-messages > :first-child {
  margin-top: auto;
}

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

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

.chatbot-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
}

.chatbot-message {
  max-width: 85%;
  animation: chatbot-fadeIn 0.3s ease;
}

.chatbot-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  margin: 0 0.12rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(139, 21, 56, 0.1);
  color: var(--ec-burgundy);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  vertical-align: baseline;
  font-size: 0.85rem;
}
.chatbot-contact-link:hover {
  background: rgba(139, 21, 56, 0.18);
  color: var(--ec-burgundy-dark);
  text-decoration: none;
}
.chatbot-contact-link i {
  flex-shrink: 0;
  font-size: 0.75rem;
}
.chatbot-contact-link span {
  overflow-wrap: normal;
  word-break: normal;
}
.chatbot-phone-link {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}
.chatbot-phone-link:hover {
  background: rgba(22, 163, 74, 0.2);
  color: #166534;
}
.chatbot-email-link {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}
.chatbot-email-link:hover {
  background: rgba(37, 99, 235, 0.2);
  color: #1e40af;
}

.bot-message {
  align-self: flex-start;
}

.user-message {
  align-self: flex-end;
}

@keyframes chatbot-fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.bot-message {
  align-self: flex-start;
}

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

.chatbot-message-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ec-burgundy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.user-message .chatbot-message-avatar {
  background: var(--ec-gold);
  color: var(--ec-dark);
}

.chatbot-message-content {
  background: #fff;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  border-top-left-radius: 0.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.user-message .chatbot-message-content {
  background: linear-gradient(135deg, var(--ec-burgundy) 0%, var(--ec-burgundy-dark) 100%);
  color: #fff;
  border-top-left-radius: 1rem;
  border-top-right-radius: 0.25rem;
}

.chatbot-message-content p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.chatbot-action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.chatbot-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  background: rgba(64, 85, 101, 0.08);
  color: var(--ec-burgundy);
  border: 1px solid rgba(64, 85, 101, 0.16);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: all 0.2s ease;
}

.chatbot-action-link:hover {
  background: var(--ec-burgundy);
  color: #fff;
  border-color: var(--ec-burgundy);
}

.user-message .chatbot-action-link {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.22);
}

.chatbot-message-time {
  display: none;
}

.user-message .chatbot-message-time {
  color: rgba(255, 255, 255, 0.7);
  text-align: right;
}

/* Quick Actions */
.chatbot-quick-actions {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chatbot-quick-btn {
  background: rgba(64, 85, 101, 0.1);
  border: 1px solid rgba(64, 85, 101, 0.2);
  color: var(--ec-burgundy);
  padding: 0.4rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chatbot-quick-btn:hover {
  background: var(--ec-burgundy);
  color: #fff;
}

/* Chat Input */
.chatbot-input-area {
  padding: 1rem;
  background: #fff;
  border-top: 1px solid #eee;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

.chatbot-input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 1.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.chatbot-input:focus {
  border-color: var(--ec-burgundy);
}

.chatbot-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ec-burgundy) 0%, var(--ec-burgundy-dark) 100%);
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.chatbot-send-btn:hover {
  transform: scale(1.05);
}

.chatbot-send-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.chatbot-send-btn:active {
  transform: scale(0.95);
}

/* Typing Indicator */
.chatbot-typing {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.75rem 1rem;
}

.chatbot-typing span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #999;
  animation: chatbot-typing 1.4s infinite;
}

.chatbot-typing span:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.4s; }

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

/* Reset confirm overlay */
.chatbot-confirm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  border-radius: 1rem;
}

.chatbot-confirm-overlay.show {
  opacity: 1;
  visibility: visible;
}

.chatbot-confirm-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.75rem;
  max-width: 260px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  transform: translateY(20px) scale(0.9);
  transition: transform 0.3s cubic-bezier(0.4,0,0.2,1);
}

.chatbot-confirm-overlay.show .chatbot-confirm-card {
  transform: translateY(0) scale(1);
}

.chatbot-confirm-card p {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--ec-dark);
  line-height: 1.4;
  font-weight: 600;
}

.chatbot-confirm-btns {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.chatbot-confirm-btn {
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  border: none;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.chatbot-confirm-btn.yes {
  background: #dc2626;
  color: #fff;
}

.chatbot-confirm-btn.yes:hover { background: #b91c1c; }

.chatbot-confirm-btn.no {
  background: #f1f5f9;
  color: #64748b;
}

.chatbot-confirm-btn.no:hover { background: #e2e8f0; }

/* Mobile Responsive */
@media (max-width: 480px) {
  .chatbot-widget {
    bottom: 1rem;
    right: 1rem;
  }

  .chatbot-toggle {
    width: 55px;
    height: 55px;
    font-size: 1.3rem;
  }

  .chatbot-window {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: none;
    height: var(--chatbot-viewport-height, 100dvh);
    max-height: none;
    bottom: auto;
    right: auto;
    border-radius: 0;
    transform: translateY(16px);
  }

  .chatbot-window.active {
    transform: translateY(0);
  }

  .chatbot-header {
    padding-top: max(1rem, env(safe-area-inset-top));
    border-radius: 0;
  }

  .chatbot-messages {
    padding: 1rem;
    overscroll-behavior: contain;
  }

  .chatbot-input-area {
    padding: 0.75rem 0.85rem calc(0.75rem + env(safe-area-inset-bottom));
  }

  html {
    background: #fff;
  }
  body.chatbot-open {
    overflow: hidden;
  }
  .chatbot-window {
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
  }
}

/* Calendar */
.calendar-shell {
  background: #fff;
  border: 1px solid rgba(134, 183, 195, 0.28);
  border-radius: 1rem;
  padding: clamp(1rem, 3vw, 2rem);
  box-shadow: 0 18px 50px rgba(64, 85, 101, 0.07);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.calendar-header h2 {
  margin: 0;
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.calendar-title-wrap {
  text-align: center;
}

.calendar-today-link {
  color: #fff;
  background: var(--sf-mist);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.55em;
  font-weight: 600;
  text-decoration: none;
  margin-left: 12px;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.calendar-today-link:hover {
  background: var(--sf-slate);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(64, 85, 101, 0.2);
  text-decoration: none;
}

.calendar-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sf-slate);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  padding: 10px 22px;
  background: var(--sf-ivory);
  border: 1px solid transparent;
  border-radius: 999px;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.calendar-nav-link:hover {
  color: #fff;
  background: var(--sf-slate);
  border-color: var(--sf-slate);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(64, 85, 101, 0.15);
}

.calendar-nav-link-disabled {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c0c8cf;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 10px 22px;
  background: var(--sf-ivory);
  border: 1px solid transparent;
  border-radius: 999px;
  opacity: 0.5;
  white-space: nowrap;
  cursor: default;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.25rem;
  margin-bottom: 1.25rem;
  color: var(--ec-dark);
  font-size: 0.85rem;
  font-weight: 700;
}

.calendar-dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  display: inline-block;
  margin-right: 0.4rem;
  vertical-align: -0.08em;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.65rem;
}

.calendar-weekdays {
  margin-bottom: 0.65rem;
}

.calendar-weekdays div {
  color: var(--ec-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  min-height: 116px;
  border: 1px solid rgba(134, 183, 195, 0.24);
  border-radius: 0.85rem;
  padding: 0.8rem;
  background: #fff;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-day:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(64, 85, 101, 0.1);
}

.calendar-day.empty {
  border: 0;
  background: transparent;
  min-height: 0;
}

.calendar-day-number {
  color: var(--ec-dark);
  font-size: 1.18rem;
  font-weight: 700;
  margin-bottom: 0;
}

.calendar-day-status {
  display: none;
}

.calendar-event-note {
  color: inherit;
  font-size: 0.72rem;
  line-height: 1.35;
  margin-top: 0.25rem;
  opacity: 0.8;
}

/* Available — green */
.calendar-day.available,
.calendar-day.available {
  background: #dcfce7;
  border-color: #22c55e;
}
.calendar-day.available .calendar-day-number { color: #065f46; }
.calendar-day.available .calendar-day-status { color: #047857; }
.calendar-dot.available { background: #16a34a; border: 1px solid #15803d; }

/* Partial — amber */
.calendar-day.partial,
.calendar-day.partial {
  background: #fef3c7;
  border-color: #f59e0b;
}
.calendar-day.partial .calendar-day-number { color: #92400e; }
.calendar-day.partial .calendar-day-status { color: #b45309; }
.calendar-dot.partial { background: #d97706; border: 1px solid #b45309; }

/* Busy — rose */
.calendar-day.busy,
.calendar-day.busy {
  background: #fee2e2;
  border-color: #ef4444;
}
.calendar-day.busy .calendar-day-number { color: #991b1b; }
.calendar-day.busy .calendar-day-status { color: #b91c1c; }
.calendar-dot.busy { background: #dc2626; border: 1px solid #b91c1c; }

/* Day without events keeps default look */
.calendar-day:not(.available):not(.partial):not(.busy):not(.empty) {
  background: #fff;
  border-color: rgba(134, 183, 195, 0.18);
}
.calendar-day:not(.available):not(.partial):not(.busy):not(.empty) .calendar-day-number {
  color: var(--ec-muted);
}

.calendar-admin-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.calendar-admin-item {
  border: 1px solid #eee;
  border-radius: 0.75rem;
  padding: 1rem;
  background: #fff;
}

@media (max-width: 1000px) {
  .calendar-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .calendar-title-wrap {
    order: -1;
    width: 100%;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(64, 85, 101, 0.08);
  }

  .calendar-header h2 {
    font-size: 1.35rem;
    text-align: center;
  }

  .calendar-nav-link,
  .calendar-nav-link-disabled {
    width: 100%;
    justify-content: center;
    font-size: 0.9rem;
    padding: 10px;
  }

  .calendar-legend {
    font-size: 0.72rem;
    gap: 0.5rem 0.8rem;
    justify-content: center;
  }

  .calendar-grid {
    gap: 0.35rem;
  }

  .calendar-weekdays div {
    font-size: 0.65rem;
    letter-spacing: 0.06em;
  }

  .calendar-day {
    min-height: 78px;
    padding: 0.5rem 0.35rem;
    border-radius: 0.55rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .calendar-day-number {
    font-size: 0.85rem;
    margin-bottom: 0;
  }

  .calendar-day-status,
  .calendar-day-detail,
  .calendar-event-note {
    display: none;
  }
}

@media (max-width: 480px) {
  .calendar-shell {
    padding: 0.65rem;
    border-radius: 0.75rem;
    overflow-x: visible;
  }

  .calendar-header {
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }

  .calendar-header h2 {
    font-size: 1.2rem;
  }

  .calendar-nav-link {
    font-size: 0.75rem;
  }

  .calendar-legend {
    font-size: 0.65rem;
    gap: 0.35rem 0.55rem;
    justify-content: center;
  }

  .calendar-dot {
    width: 0.6rem;
    height: 0.6rem;
    margin-right: 0.25rem;
  }

  .calendar-grid {
    gap: 0.18rem;
    min-width: 0;
    width: 100%;
  }

  .calendar-weekdays div {
    font-size: 0.6rem;
    letter-spacing: 0.02em;
    padding: 0.2rem 0;
  }

  .calendar-day {
    min-height: 0;
    aspect-ratio: 1;
    padding: 0;
    border-radius: 0.38rem;
    border-width: 1px;
  }

  .calendar-day-number {
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 0;
  }

  .calendar-day-status,
  .calendar-day-detail,
  .calendar-event-note {
    display: none;
  }

  .calendar-day.empty {
    min-height: 0;
  }
}

/* Calendar Day Modal */
.calendar-day-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s, visibility 0.22s;
}
.calendar-day-modal.active {
  opacity: 1;
  visibility: visible;
}
.calendar-day-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.calendar-day-modal-dialog {
  position: relative;
  background: var(--ec-warm-white, #ffffff);
  border: none;
  border-radius: 0.65rem;
  width: 100%;
  max-width: 460px;
  margin: 1rem;
  box-shadow: 0 28px 80px rgba(36, 53, 64, 0.28);
  z-index: 1;
  overflow: hidden;
  transform: translateY(6px);
  transition: transform 0.22s ease;
}
.calendar-day-modal.active .calendar-day-modal-dialog {
  transform: translateY(0);
}
.calendar-day-modal-header {
  padding: 1.15rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--ec-burgundy), var(--ec-burgundy-dark));
  color: #fff;
}
.calendar-day-modal-header h3 {
  margin: 0;
  color: #fff;
  font-family: var(--ec-font-title, inherit);
  font-weight: 300;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}
.calendar-day-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  padding: 0.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}
.calendar-day-modal-close:hover {
  background: rgba(255, 255, 255, 0.2);
}
.calendar-day-modal-body {
  padding: 1.35rem;
}
.calendar-day-modal-event {
  background: #fff;
  border: 1px solid rgba(134, 183, 195, 0.26);
  border-left: 4px solid var(--ec-burgundy);
  border-radius: 0.45rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 8px 24px rgba(36, 53, 64, 0.06);
}
.calendar-day-modal-event-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ec-dark);
}
.calendar-day-modal-event-meta {
  font-size: 0.8rem;
  color: var(--ec-muted);
  margin-top: 0.2rem;
  line-height: 1.55;
}
.calendar-day-modal-free {
  text-align: center;
  padding: 0.3rem 0 0.2rem;
}
.calendar-day-modal-free p {
  color: var(--ec-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.calendar-modal-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.95rem;
  padding: 0.28rem 0.75rem;
  border-radius: 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.calendar-modal-status-available { background: rgba(22, 163, 74, 0.1); color: #15803d; }
.calendar-modal-status-partial { background: rgba(212, 127, 49, 0.13); color: #9a5a20; }
.calendar-modal-status-busy { background: rgba(64, 85, 101, 0.1); color: var(--ec-burgundy); }
.calendar-day-modal-body .btn-primary {
  border-radius: 0.35rem;
  padding-inline: 1.15rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.btn-cta {
  background-color: var(--sf-slate) !important;
  border-color: var(--sf-slate) !important;
  color: #fff !important;
  border-radius: 999px !important;
  padding: 0.85rem 2rem !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em;
  transition: all 0.25s ease;
}

.btn-cta:hover,
.btn-cta:focus {
  background-color: var(--sf-slate-dark) !important;
  border-color: var(--sf-slate-dark) !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(64, 85, 101, 0.2);
}

/* Keyboard focus visibility — makes :focus-visible ring visible on all interactive elements */
:focus-visible {
  outline: 2px solid var(--ec-burgundy);
  outline-offset: 2px;
}

/* Respect user motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
