:root { 
  --bg: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --card: #ffffff;
  --shadow: 0 1px 3px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --blue: #0ea5e9;
  --blue-dark: #0284c7;
  --blue-light: #bae6fd;
  --accent: #6366f1;
  --black: #0f172a;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-900: #0f172a;
  --success: #10b981;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: min(1200px, 94%);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px) saturate(180%);
  border-bottom: 1px solid var(--line);
  z-index: 100;
  box-shadow: 0 1px 3px rgba(0,0,0,.02);
}

.header-inner {
  padding: 16px 0;
}

.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--black);
}

.brand-icon {
  font-size: 1.5rem;
  filter: drop-shadow(0 2px 4px rgba(14,165,233,0.3));
}

.top-nav {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-link:hover {
  color: var(--blue);
}

.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: white;
  overflow: hidden;
  padding: 80px 0 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(14,165,233,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(99,102,241,0.12) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
}

.hero-content {
  max-width: 680px;
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.highlight {
  background: linear-gradient(135deg, var(--blue) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: rgba(226, 232, 240, 0.9);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
}

.hero-cta.primary {
  background: linear-gradient(135deg, var(--blue) 0%, var(--accent) 100%);
  color: white;
  box-shadow: 0 8px 24px rgba(14,165,233,0.35);
}

.hero-cta.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(14,165,233,0.45);
}

.hero-cta.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.hero-cta.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 32px;
  max-width: 500px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, white 0%, var(--blue-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(203, 213, 225, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Search Section */
.search-section {
  background: var(--gray-50);
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.search-wrapper {
  display: grid;
  gap: 20px;
}

.search-box {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.search-box input {
  width: 100%;
  padding: 16px 56px 16px 52px;
  border: 2px solid var(--line);
  border-radius: 14px;
  background: white;
  font-size: 1rem;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.search-box input:focus {
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(14,165,233,0.15), 0 0 0 4px rgba(14,165,233,0.1);
}

.search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.clear-btn {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gray-100);
  border: none;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.2s ease;
}

.clear-btn:hover {
  background: var(--line);
  color: var(--text);
}

.controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 10px 18px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: white;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.25s ease;
  color: var(--text);
}

.chip:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(14,165,233,0.15);
}

.chip[aria-pressed="true"] {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(14,165,233,0.3);
}

.sort select {
  padding: 10px 16px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: white;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease;
}

.sort select:hover {
  border-color: var(--blue);
}

/* Carousel */
.carousel {
  background: var(--bg);
  padding: 48px 0;
  overflow: hidden;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
  color: var(--black);
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--muted);
  font-size: 1.1rem;
  margin: -20px auto 40px;
  max-width: 600px;
}

.carousel .track {
  display: flex;
  gap: 24px;
  padding: 8px 0 24px;
  animation: scroll-carousel 35s linear infinite;
}

.carousel:hover .track {
  animation-play-state: paused;
}

@keyframes scroll-carousel {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.carousel-item {
  flex: 0 0 clamp(300px, 40vw, 420px);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}

.carousel-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

.carousel-item img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

/* Grid */
main {
  padding: 60px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  border-color: var(--blue);
}

.media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: var(--gray-100);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .media img {
  transform: scale(1.08);
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  font-family: "Space Mono", monospace;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.tag {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.8rem;
  background: var(--gray-50);
  color: var(--text);
  font-weight: 500;
}

.actions {
  padding: 0 20px 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--black);
  color: white;
  font-weight: 600;
  transition: all 0.2s ease;
  border: none;
  font-size: 0.9rem;
}

.card:hover .btn {
  background: var(--blue);
  transform: translateX(4px);
}

/* Pagination */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 48px;
  flex-wrap: wrap;
}

.page-btn {
  padding: 10px 16px;
  border: 2px solid var(--line);
  background: white;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--blue);
  color: var(--blue);
}

.page-btn[aria-current="page"] {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}

.empty-state svg {
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.btn-reset {
  padding: 12px 24px;
  border-radius: 10px;
  border: 2px solid var(--line);
  background: white;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-reset:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Services Section */
.services-section {
  background: var(--gray-50);
  padding: 80px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
  border-color: var(--blue);
}

.service-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
  filter: grayscale(0.3);
  transition: all 0.3s ease;
}

.service-card:hover .service-icon {
  filter: grayscale(0);
  transform: scale(1.1);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--black);
}

.service-card p {
  color: var(--muted);
  line-height: 1.6;
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
  background: white;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
  margin-top: 40px;
}

.contact-content {
  position: sticky;
  top: 100px;
}

.contact-intro {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 16px 0 32px;
  line-height: 1.7;
}

.contact-info {
  display: grid;
  gap: 16px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  background: var(--gray-50);
  transition: all 0.2s ease;
}

.info-item:hover {
  background: var(--gray-100);
}

.info-item svg {
  color: var(--blue);
  flex-shrink: 0;
}

.info-item a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.info-item a:hover {
  color: var(--blue);
}

.contact-form {
  background: var(--gray-50);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.field label {
  font-weight: 600;
  color: var(--black);
  font-size: 0.95rem;
}

.field input,
.field textarea {
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: white;
  outline: none;
  transition: all 0.2s ease;
  font-family: inherit;
  font-size: 1rem;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(14,165,233,0.1);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--accent) 100%);
  color: white;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 24px rgba(14,165,233,0.3);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(14,165,233,0.4);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-icon {
  transition: transform 0.3s ease;
}

.btn-submit:hover .btn-icon {
  transform: translateX(4px);
}

/* Footer */
.site-footer {
  background: var(--black);
  color: #cbd5e1;
  padding: 48px 0 32px;
  border-top: 1px solid rgba(226, 232, 240, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.25rem;
  font-weight: 800;
  color: white;
  margin-bottom: 12px;
}

.footer-desc {
  color: #94a3b8;
  line-height: 1.6;
}

.footer-heading {
  color: white;
  font-weight: 700;
  margin-bottom: 16px;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-link {
  display: block;
  color: #cbd5e1;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--blue);
}

.footer-copy,
.footer-note {
  display: block;
  color: #94a3b8;
  font-size: 0.9rem;
  margin-top: 8px;
}

/* Chatbot Widget */
.chatbot-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
}

.chatbot-toggle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--accent) 100%);
  border: none;
  box-shadow: 0 8px 24px rgba(14,165,233,0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
}

.chatbot-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(14,165,233,0.5);
}

.chatbot-toggle:active {
  transform: scale(0.95);
}

.chatbot-toggle::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue) 0%, var(--accent) 100%);
  opacity: 0;
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    opacity: 0.6;
    transform: scale(0.8);
  }
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}

.icon-chat,
.icon-close {
  color: white;
  transition: all 0.3s ease;
  position: absolute;
}

.icon-close {
  opacity: 0;
  transform: rotate(-90deg) scale(0.8);
}

.chatbot-toggle[aria-expanded="true"] .icon-chat {
  opacity: 0;
  transform: rotate(90deg) scale(0.8);
}

.chatbot-toggle[aria-expanded="true"] .icon-close {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.chatbot-panel {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  max-width: calc(100vw - 48px);
  height: clamp(460px, 70vh, 680px);
  max-height: calc(100vh - 120px);
  overscroll-behavior: contain;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.chatbot-panel[data-visible="true"] {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chatbot-header {
  background: linear-gradient(135deg, var(--blue) 0%, var(--accent) 100%);
  color: white;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.chatbot-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.status-online {
  font-size: 0.85rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-online::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--gray-50);
  scroll-behavior: smooth;
}

.chatbot-messages::-webkit-scrollbar {
  width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 10px;
}

.chatbot-messages::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

.bot-message,
.user-message {
  display: flex;
  gap: 8px;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-message {
  flex-direction: row-reverse;
}

.message-bubble {
  padding: 12px 16px;
  border-radius: 16px;
  max-width: 75%;
  line-height: 1.5;
  font-size: 0.95rem;
}

.bot-message .message-bubble {
  background: white;
  color: var(--text);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.user-message .message-bubble {
  background: linear-gradient(135deg, var(--blue) 0%, var(--accent) 100%);
  color: white;
  border-bottom-right-radius: 4px;
}

.chatbot-options {
  display: grid;
  gap: 10px;
  padding: 16px 20px;
  background: white;
  border-top: 1px solid var(--line);
}

.option-btn {
  padding: 14px 16px;
  border: 2px solid var(--line);
  background: white;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.option-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(14,165,233,0.1), transparent);
  transition: left 0.5s ease;
}

.option-btn:hover::before {
  left: 100%;
}

.option-btn:hover {
  border-color: var(--blue);
  background: var(--gray-50);
  transform: translateX(4px);
}

.option-btn:active {
  transform: translateX(2px) scale(0.98);
}

.chatbot-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: white;
}

.form-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-back {
  background: none;
  border: none;
  color: var(--blue);
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn-back:hover {
  background: var(--gray-50);
}

.form-header h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.form-fields {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: grid;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--black);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: all 0.2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(14,165,233,0.1);
}

.form-field textarea {
  resize: vertical;
  min-height: 80px;
}

.btn-form-submit {
  margin: 0 20px 20px;
  padding: 14px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--accent) 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(14,165,233,0.3);
}

.chatbot-input {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  background: white;
  border-top: 1px solid var(--line);
}

.chatbot-input input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid var(--line);
  border-radius: 12px;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
  background: white;
}

.chatbot-input input:focus {
  border-color: var(--blue);
  background: white;
}

.chatbot-input input::placeholder {
  color: var(--muted);
}

#chatbot-send {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--blue);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

#chatbot-send:hover {
  background: var(--blue-dark);
  transform: scale(1.05);
}

#chatbot-send:active {
  transform: scale(0.95);
}

#chatbot-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: scale(1);
}

.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  background: white;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  max-width: fit-content;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 640px) {
  .chatbot-panel {
    bottom: 80px;
    right: -12px;
    width: calc(100vw - 24px);
    height: calc(100vh - 120px);
  }
}

@media (max-width: 960px) {
  .header-top {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-content {
    position: static;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 60px 0 40px;
  }
  
  .hero-title {
    font-size: 1.75rem;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .hero-cta {
    width: 100%;
    justify-content: center;
  }
  
  .controls-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .sort {
    width: 100%;
  }
  
  .sort select {
    width: 100%;
  }
}


.brand-logo {
  height: 80px; /* ajusta según necesites */
  width: auto;  /* mantiene proporción */
  margin-right: 8px; /* espacio entre logo y texto */
  vertical-align: middle; /* lo centra con el texto */
}



.footer-logo {
  height: 32px;
  width: auto;
  margin-right: 8px;
  vertical-align: middle;

  /* Convierte colores a blanco */
  filter: brightness(0) invert(1);
}


/* ===================================================================
   ESTILOS PARA CARRUSEL DE DESTACADOS - TARJETAS COMPLETAS
   Agregar estos estilos al final de tu archivo styles.css existente
   =================================================================== */

/* Contenedor principal del carrusel */
.carousel {
  overflow: hidden;
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
}

.carousel .track {
  display: flex;
  gap: 2rem;
  animation: scroll 60s linear infinite;
  width: max-content;
}

.carousel .track:hover {
  animation-play-state: paused;
}

/* Tarjetas del carrusel */
.carousel-card {
  width: 420px;
  flex-shrink: 0;
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.carousel-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.carousel-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

/* Imagen del carrusel */
.carousel-media {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #f0f0f0;
}

.carousel-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.carousel-card:hover .carousel-media img {
  transform: scale(1.05);
}

/* Badge de categorías en carrusel */
.carousel-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Contenido del carrusel */
.carousel-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.carousel-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-meta {
  font-size: 0.875rem;
  color: #666;
  margin: 0;
  font-weight: 500;
}

.carousel-desc {
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carousel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.carousel-tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: #f0f4f8;
  color: #4a5568;
  border-radius: 12px;
  font-weight: 500;
}

/* Animación de scroll infinito */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ===================================================================
   MEJORAS PARA BADGES EN TARJETAS PRINCIPALES
   =================================================================== */

.card .badge {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: calc(100% - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ===================================================================
   RESPONSIVE - CARRUSEL
   =================================================================== */

@media (max-width: 768px) {
  .carousel-card {
    width: 340px;
  }
  
  .carousel-media {
    height: 200px;
  }
  
  .carousel-content {
    padding: 1.25rem;
  }
  
  .carousel-title {
    font-size: 1.125rem;
  }
  
  .carousel .track {
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .carousel {
    padding: 3rem 0;
  }
  
  .carousel-card {
    width: 300px;
  }
  
  .carousel-media {
    height: 180px;
  }
  
  .carousel-content {
    padding: 1rem;
    gap: 0.5rem;
  }
  
  .carousel-title {
    font-size: 1rem;
  }
  
  .carousel-desc {
    font-size: 0.875rem;
  }
  
  .carousel-meta {
    font-size: 0.8125rem;
  }
  
  .carousel .track {
    gap: 1rem;
  }
}

.logo {
    display: flex;              /* Coloca imagen y texto en una línea */
    align-items: center;        /* Alinea verticalmente al centro */
    gap: 8px;                   /* Espacio entre imagen y texto */
    font-weight: bold;          /* Opcional: da énfasis al texto */
    font-size: 1.2em;           /* Tamaño del texto */
}

.logo img {
    height: 50px;
    width: auto;
  /*  filter: brightness(0) invert(1);*/
}
