pre {
  border: 1px solid light-dark(#444, #aaa);
  padding: 1em;
  overflow: auto;
  border-radius: 8px;
}
:root {
      --primary-color: #5856EC; /* Púrpura unificado */
      --accent-cyan: #5AC8FA;
      --cat-automatizacion:#5856EC;
      --cat-estrategia:#5AC8FA;
      --cat-ventas:#FF8A00;
      --cat-educacion:#22C55E;
      --cat-desde-adentro:#F59E0B;
      --cat-common-errors:#E11D48;
    }

    html {
      height: 100%;
      scroll-behavior: smooth;
    }

    body {
      min-height: 100%;
      margin: 0;
      font-family: 'Segoe UI', sans-serif;
      color: white;
      overflow-x: hidden;
      background: linear-gradient(135deg, #1B004B 0%, #5856EC 100%) fixed;
      isolation: isolate;
    }

    .body-no-scroll {
        overflow: hidden;
    }
    
    #animated-background-container {
      position: fixed;
      inset: 0;
      z-index: -1; 
      pointer-events: none;
    }

    #backgroundCanvas {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      /* opacity: 0.5; */ /* Opacity is handled by the shader alpha */
    }

    .navbar {
      position: fixed;
      top: 0;
      width: 100%;
      z-index: 100;
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 1rem 2rem;
      background: rgba(27, 0, 75, 0.6);
      color: white;
    }

    .navbar .logo {
      display: flex;
      align-items: center;
      font-weight: bold;
    }

    .navbar .logo img {
      height: 28px;
      margin-right: 8px;
      border-radius: 50%;
    }

    .nav-links {
      display: flex;
      gap: 1.2rem;
      list-style: none;
      margin: 0;
      padding: 0;
    }

    .nav-links a {
      color: white;
      text-decoration: none;
      font-size: 0.9rem;
      transition: text-decoration 0.3s ease;
    }

    .nav-links a:hover {
      text-decoration: underline;
    }

    .nav-actions {
      display: flex;
      gap: 1rem;
      align-items: center;
    }

    /* La clase 'active' indica qué enlace está activo en la navegación */
    .nav-links a.active {
      font-weight: bold;
      text-decoration: underline;
    }

    .menu-toggle {
        display: none;
        flex-direction: column;
        justify-content: space-between;
        width: 28px;
        height: 23px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        z-index: 110;
    }
    
    .menu-toggle span {
        display: block;
        width: 100%;
        height: 3px;
        background-color: white;
        border-radius: 10px;
        transition: all 0.3s ease-in-out;
        transform-origin: 1px;
    }
    
    .menu-toggle.is-active span:nth-child(1) {
        transform: rotate(45deg) translate(2px, -3px);
    }
    
    .menu-toggle.is-active span:nth-child(2) {
        opacity: 0;
        transform: translateX(15px);
    }
    
    .menu-toggle.is-active span:nth-child(3) {
        transform: rotate(-45deg) translate(1px, 2px);
    }

    /* Secciones de contenido */
    .content-section {
      padding-top: 6rem; /* 96px, espacio para el navbar fijo */
      padding-bottom: 4rem; /* 64px, espaciado inferior general */
      display: none;
      /* Oculta todas las secciones por defecto */
    }

    .content-section.active {
      display: block;
      /* Muestra solo la sección activa */
    }

    .btn-purple {
      display: inline-block;
      background-color: var(--primary-color);
      color: white;
      /* Add a subtle cyan border */
      border: 1px solid rgba(90, 200, 250, 0.4);
      text-align: center;
      cursor: pointer;
      /* Change the box-shadow to a cyan glow */
      box-shadow: 0 0 12px 2px rgba(90, 200, 250, 0.5);
      transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s, border-color 0.2s;
    }

    .btn-purple:hover,
    .btn-purple:focus {
      background-color: #4a48c7; /* Darker shade */
      transform: scale(1.05);
      /* Intensify the cyan border on hover */
      border-color: rgba(90, 200, 250, 1);
      /* Intensify the cyan glow on hover */
      box-shadow: 0 0 20px 4px rgba(90, 200, 250, 0.7);
    }

    .site-footer {
      background: rgba(27, 0, 75, 0.6);
      border-top: 1px solid rgba(255, 255, 255, .06);
      padding: 2rem 0;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }

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

    @media (min-width: 1024px) {
      .footer-grid {
        grid-template-columns: repeat(4, 1fr);
      }
    }

    .site-footer a {
      color: #cbd5e1;
      text-decoration: none;
      transition: text-decoration 0.3s ease;
    }

    .site-footer a:hover {
      color: #cbd5e1;
      text-decoration: underline;
    }

    form.newsletter {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: .5rem;
      align-items: start;
    }

    @media (max-width: 640px) {
      form.newsletter {
        grid-template-columns: 1fr;
      }
    }

    form.newsletter input[type="email"] {
      padding: .6rem .9rem;
      border-radius: 12px;
      background: rgba(255, 255, 255, .08);
      border: 1px solid rgba(255, 255, 255, .25);
      color: #fff;
      outline: none;
    }

    .phone-link {
      display: inline-flex;
      justify-content: center;
      align-items: center;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      animation: phone-glow-pulse 2.5s infinite ease-in-out;
      transition: transform 0.3s ease;
    }
    
    .phone-link:hover {
      transform: scale(1.1);
      animation-play-state: paused;
    }

    .phone-link i {
      font-size: 1.1rem; 
    }

    @keyframes phone-glow-pulse {
      0%, 100% {
        background-color: rgba(90, 200, 250, 0.2);
        box-shadow: 0 0 8px 2px rgba(90, 200, 250, 0.5), 0 0 1px 1px rgba(90, 200, 250, 0.8) inset;
      }
      50% {
        background-color: rgba(90, 200, 250, 0.4);
        box-shadow: 0 0 16px 4px rgba(90, 200, 250, 0.8), 0 0 2px 1px rgba(255, 255, 255, 0.7) inset;
      }
    }

    /* Estilos del nuevo contenedor de vidrio */
    .glass-container {
      background: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(10px);
      border-radius: 24px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      padding: 2rem;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    /* Estilos de las tarjetas de enfoque */
    .fx-card,
    .fx-container {
      position: relative;
      transition: transform .35s ease, box-shadow .35s ease, background .35s ease, border-color .35s ease, filter .35s ease;
      will-change: transform, filter;
      cursor: default;
    }

    .fx-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 24px 48px rgba(0, 0, 0, .40), 0 0 0 1px rgba(255, 255, 255, .08) inset;
      background: rgba(255, 255, 255, .10);
      border-color: rgba(255, 255, 255, .24);
      filter: saturate(1.12);
      z-index: 2;
    }

    /* Custom card style for solutions cards */
    .custom-card {
      background-color: rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(12px);
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      color: white;
    }

    .custom-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 24px 48px rgba(0, 0, 0, .40), 0 0 0 1px rgba(255, 255, 255, .08) inset;
      background: rgba(255, 255, 255, .10);
      border-color: rgba(255, 255, 255, .24);
      filter: saturate(1.12);
      z-index: 2;
    }

    .custom-card * {
      color: white;
    }

    .custom-card i,
    .custom-card svg,
    .solution-card i,
    .solution-card svg {
      color: white;
      fill: white;
    }

    .custom-card svg path,
    .solution-card svg path {
      fill: white;
    }

    .btn-demo.playing {
      background-color: #4a48c7;
      box-shadow: 0 0 20px 4px rgba(90, 200, 250, 0.7);
    }

    /* CSS for the new FAQ section from the image */
    .faq-container {
      background: rgba(255, 255, 255, 0.08);
      backdrop-filter: blur(10px);
      border-radius: 24px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      padding: 2rem;
    }
    
    .faq-details {
      background: rgba(255, 255, 255, 0.05);
      border-radius: 12px;
      padding: 1rem 1.5rem;
      border: 1px solid rgba(255, 255, 255, 0.1);
      transition: background-color 0.3s ease;
    }
    
    .faq-details:hover {
      background: rgba(255, 255, 255, 0.15);
    }
    
    .faq-summary {
      display: flex;
      align-items: center;
      cursor: pointer;
      font-weight: 600;
      color: white;
      font-size: 1.125rem;
      /* text-lg */
      outline: none;
    }
    
    .faq-summary::before {
      content: '\f0da'; /* Font Awesome unicode for caret-right */
      font-family: 'Font Awesome 6 Free';
      font-weight: 900;
      margin-right: 1rem;
      transition: transform 0.3s ease;
      color: var(--accent-cyan);
    }
    
    details[open] .faq-summary::before {
      transform: rotate(90deg);
    }
    
    .faq-answer {
      color: #CBD5E1;
      padding-left: 2.5rem; /* Space for the icon */
      margin-top: 0.75rem;
    }
    
    /* Estilos para los botones de categoría del blog */
    .filter-btn {
      padding: 0.5rem 1rem;
      border-radius: 0.5rem;
      font-weight: 600;
      color: white;
      transition: transform 0.2s, box-shadow 0.2s;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

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

    .filter-btn.active {
      box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    }

    /* Colores actualizados para los botones del blog */
    .btn-todos { background-color: #00BCD4; } /* Cian para Ver Todos */
    .btn-automatizacion { background-color: #5856EC; } /* Color principal del degradado */
    .btn-estrategia { background-color: #8860D0; } /* Un morado más claro y estratégico */
    .btn-ventas { background-color: #15608D; } /* Classic Denim para Ventas */
    .btn-common-errors { background-color: #E11D48; } /* Rojo para Errores Comunes */
    .btn-educacion { background-color: #4169E1; } /* Royal Blue para Educación */
    .btn-desde-adentro { background-color: #F59E0B; } /* Ámbar para Desde Adentro */

    /* Estilos para las tarjetas de blog generadas dinámicamente */
    .blog-card {
      background-color: rgba(255, 255, 255, 0.1);
      backdrop-filter: blur(12px);
      box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      color: white;
      border-radius: 12px;
      overflow: hidden;
    }

    .blog-card:hover {
      transform: translateY(-8px);
      box-shadow: 0 24px 48px rgba(0, 0, 0, .40);
    }

    .blog-category-slug {
      display: inline-block;
      padding: 0.25rem 0.75rem;
      border-radius: 9999px;
      font-size: 0.75rem;
      font-weight: 600;
      color: white;
      text-transform: uppercase;
      letter-spacing: 0.05em;
    }

    /* Estilos para los enlaces legales en el footer */
    .legal-links {
      margin-top: 1rem; /* 16px */
      display: flex;
      justify-content: center;
      gap: 1.5rem; /* 24px */
    }

    .legal-links a {
      font-size: 0.875rem; /* 14px */
      color: #94a3b8; /* slate-400 */
      text-decoration: none;
      transition: color 0.3s ease;
    }

    .legal-links a:hover {
      color: white;
      text-decoration: underline;
    }

    /* Estilos mejorados para Títulos y Subtítulos */
    .text-cyan-split {
      color: var(--accent-cyan);
    }
    
    /* --- ESTILOS PARA LA VISTA DE ARTÍCULO INDIVIDUAL --- */
    #post-detail {
        font-family: 'Lora', serif;
        line-height: 1.75;
        background: rgba(88, 86, 236, 0.25);
        backdrop-filter: blur(25px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 1rem;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    }
    #post-detail h1, #post-detail h2, #post-detail h3, #post-detail h4, #post-detail h5, #post-detail h6 {
      font-family:'Poppins', sans-serif;
      color:#fff;
      margin-bottom:.5rem;
      line-height:1.25;
    }
    #post-h1 {
        font-size: clamp(2rem, 5vw, 3rem);
        font-weight: 700;
    }
    #article-content h2{
      font-size:1.5rem;
      margin-top:2rem;
      color: var(--accent-cyan);
    }
    #article-content h3{
      font-size:1.25rem;
      margin-top:1.5rem;
      color: var(--accent-cyan);
    }
    #article-content p{
      margin-bottom:1rem;
      font-size:1.125rem;
      color: #e2e8f0;
    }
    #article-content ul, #article-content ol {
        margin-left: 1.5rem;
        margin-bottom: 1rem;
    }
    #article-content li {
        margin-bottom: 0.5rem;
    }
    #article-content a {
        color: var(--accent-cyan);
        text-decoration: underline;
    }
    img.featured-image {
      display:block;
      width:100%;
      height:auto;
      max-height: 450px;
      border-radius:.8rem;
      margin-bottom:1.5rem;
      box-shadow:0 4px 20px rgb(88 86 236 / 0.25);
      object-fit:cover;
    }
    .meta-info{
      font-size:.9rem;
      color:#b4b7c9;
      margin-bottom:1.5rem;
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 1rem;
    }
    a.back-link{
      display:inline-block;
      margin-bottom: 1rem;
      font-weight:600;
      color:#5ac8fa;
      text-decoration:none;
    }
    a.back-link:hover{
      color:#7fd8ff;
    }
    .share-buttons {
      margin: 1.5rem 0 2rem 0;
      display: flex;
      gap: 12px;
    }
    .share-buttons a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 48px;
      height: 48px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-cyan) 100%);
      box-shadow: 0 4px 15px rgba(90, 200, 250, 0.4);
      text-decoration: none;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      color: #fff;
    }
    .share-buttons a:hover {
      transform: translateY(-3px) scale(1.05);
      box-shadow: 0 6px 20px rgba(90, 200, 250, 0.6);
    }
    .share-buttons i, .share-buttons svg {
      font-size: 22px;
      color: #fff;
    }

    /* --- Chatbot Styles --- */
    #chat-bubble {
        animation: pulse-glow 2.5s infinite ease-in-out;
        z-index: 1000; /* Ensures it's above the cookie banner */
    }

    #chat-widget {
        z-index: 1001; /* Ensures widget is above the bubble and banner */
    }

    #chat-avatar-container {
      box-shadow: 0 0 10px 1px rgba(90, 200, 250, 0.6);
    }

    @keyframes pulse-glow {
      0% {
        box-shadow: 0 0 12px 2px rgba(90, 200, 250, 0.5), 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
      }
      50% {
        box-shadow: 0 0 20px 8px rgba(90, 200, 250, 0.7), 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
      }
      100% {
        box-shadow: 0 0 12px 2px rgba(90, 200, 250, 0.5), 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
      }
    }

    #chat-messages {
      display: flex;
      flex-direction: column;
      gap: 0.75rem; /* 12px */
    }

    .btn-chat-send {
        background-color: var(--primary-color);
        border: 1px solid rgba(90, 200, 250, 0.4);
        box-shadow: 0 0 12px 2px rgba(90, 200, 250, 0.5);
    }

    .btn-chat-send:hover,
    .btn-chat-send:focus {
        background-color: #4a48c7;
        transform: scale(1.1);
        border-color: rgba(90, 200, 250, 1);
        box-shadow: 0 0 20px 4px rgba(90, 200, 250, 0.7);
    }

    #chat-typing-indicator span:not([data-lang-key]) {
      display: inline-block;
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background-color: rgba(255, 255, 255, 0.6);
      animation: typing-bounce 1.2s infinite ease-in-out;
      margin: 0 2px;
    }

    #chat-typing-indicator span:nth-of-type(2) {
      animation-delay: -0.2s;
    }

    #chat-typing-indicator span:nth-of-type(3) {
      animation-delay: -0.4s;
    }

    @keyframes typing-bounce {
      0%, 80%, 100% {
        transform: scale(0);
      }
      40% {
        transform: scale(1.0);
      }
    }
    
    /* Keyframes for hero animation */
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* Animation classes */
    .hero-title {
      animation: fadeInUp 1s ease-out forwards;
    }

    .hero-subtitle {
      opacity: 0; /* Start hidden before animation */
      animation: fadeInUp 1s ease-out 0.3s forwards;
    }

    .hero-buttons {
      opacity: 0; /* Start hidden before animation */
      animation: fadeInUp 1s ease-out 0.6s forwards;
    }

    .consulting-card {
      border: 1px solid rgba(90, 200, 250, 0.2);
      box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(90, 200, 250, 0.15) inset;
      font-family: 'Poppins', sans-serif;
      position: relative;
      background-image: linear-gradient(135deg, rgba(27, 0, 75, 0.97) 0%, rgba(50, 48, 150, 0.9) 100%);
    }
    
    .consulting-card ul li {
        align-items: flex-start;
    }

    .consulting-card ul li i {
        margin-top: 0.25rem; /* 4px */
        margin-right: 0.75rem; /* 12px */
    }

    .consulting-image-placeholder {
      min-height: 250px; /* Altura mínima para móvil */
    }
    
    .consulting-image-placeholder img {
      width: 100%;
      height: 100%;
      object-fit: cover; /* o 'contain' según prefieras */
    }

    /* Media query to hide the image on mobile */
    @media (max-width: 767px) {
      .consulting-image-placeholder {
        display: none;
      }
    }
    
    .consulting-card-content {
        padding: 2.5rem;
    }

    /* Estilos para los botones de compartir en el blog */
    .back-link {
      display: inline-block;
      margin-bottom: 1rem;
      color: #a0aec0;
      text-decoration: none;
      transition: color 0.3s ease;
    }

    .back-link:hover {
      color: #fff;
    }

    #post-badge-container .badge {
      display: inline-block;
      padding: 0.25rem 0.75rem;
      border-radius: 9999px;
      font-size: 0.875rem;
      font-weight: 600;
      color: white;
      margin-bottom: 1rem;
    }

    .badge-automatizacion, .btn-automatizacion { background-color: var(--cat-automatizacion); }
    .badge-estrategia, .btn-estrategia { background-color: var(--cat-estrategia); }
    .badge-ventas, .btn-ventas { background-color: var(--cat-ventas); }
    .badge-common-errors, .btn-common-errors { background-color: var(--cat-common-errors); }
    .badge-educacion, .btn-educacion { background-color: var(--cat-educacion); }
    .badge-desde-adentro, .btn-desde-adentro { background-color: var(--cat-desde-adentro); }


    #post-h1 {
      font-size: 2.25rem;
      font-weight: 800;
      margin-bottom: 0.5rem;
      color: #fff;
    }

    .meta-info {
      display: flex;
      gap: 0.5rem;
      color: #a0aec0;
      margin-bottom: 1.5rem;
    }

    .featured-image {
      width: 100%;
      height: auto;
      border-radius: 12px;
      margin-bottom: 1.5rem;
      object-fit: cover;
    }

    .share-buttons {
      display: flex;
      justify-content: center;
      gap: 1.5rem;
      margin-bottom: 2rem;
    }

    .share-buttons a {
      color: #a0aec0;
      font-size: 1.5rem;
      transition: color 0.3s ease;
    }

    .share-buttons a:hover {
      color: #fff;
    }

    #article-content {
      color: #d1d5db;
      line-height: 1.7;
    }

    #article-content h2,
    #article-content h3 {
      font-weight: 700;
      color: #fff;
      margin-top: 2rem;
      margin-bottom: 1rem;
    }

    #article-content h2 { font-size: 1.875rem; }
    #article-content h3 { font-size: 1.5rem; }
    #article-content p { margin-bottom: 1rem; }
    #article-content a { color: var(--accent-cyan); text-decoration: underline; }
    #article-content ul, #article-content ol { list-style-position: inside; margin-left: 1.25rem; margin-bottom: 1rem; }
    #article-content li { margin-bottom: 0.5rem; }
    #article-content blockquote {
      border-left: 4px solid var(--primary-color);
      padding-left: 1rem;
      margin: 1.5rem 0;
      color: #a0aec0;
      font-style: italic;
    }
    #article-content code {
      background-color: rgba(255, 255, 255, 0.1);
      padding: 0.2rem 0.4rem;
      border-radius: 4px;
      font-family: 'Courier New', Courier, monospace;
    }
    #article-content pre {
      background-color: #0c0a1a;
      border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Estilos para el chatbot (Unificados) */
    .chat-message {
      display: flex;
      margin-bottom: 1rem;
    }
    
    .chat-message.user {
      justify-content: flex-end;
    }
    
    .chat-message.bot {
      justify-content: flex-start;
    }
    
    .message-bubble {
      max-width: 80%;
      padding: 0.75rem 1rem;
      border-radius: 18px;
      line-height: 1.5;
    }
    
    .chat-message.user .message-bubble {
      background-color: var(--primary-color);
      color: white;
      border-bottom-right-radius: 4px;
    }
    
    .chat-message.bot .message-bubble {
      background-color: #1B004B; /* Darker purple for better contrast */
      color: white;
      border-bottom-left-radius: 4px;
    }

    .chat-message.bot .message-bubble p {
      margin: 0;
    }
    .chat-message.bot .message-bubble strong {
      color: var(--accent-cyan);
    }
    .chat-message.bot .message-bubble ul {
      padding-left: 1.25rem;
      margin-top: 0.5rem;
    }
    
    /* Cookie Consent Banner */
    #cookie-consent-banner {
      position: fixed;
      bottom: 0;
      left: 0;
      right: 0;
      z-index: 200;
      background-color: rgba(12, 10, 26, 0.8);
      backdrop-filter: blur(10px);
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      padding: 1rem 1.5rem;
      transition: transform 0.3s ease-in-out;
      transform: translateY(100%);
    }

    #cookie-consent-banner.visible {
        transform: translateY(0);
    }

    #cookie-consent-banner.hidden {
      display: block; /* Keep in layout tree but visually hidden for transition */
      transform: translateY(100%);
    }
    
    .consent-banner-content {
      max-width: 1200px;
      margin: 0 auto;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 1.5rem;
    }

    .consent-text h3 {
      font-size: 1.125rem;
      font-weight: 600;
      margin-bottom: 0.25rem;
    }

    .consent-text p {
      font-size: 0.875rem;
      color: #e2e8f0;
    }
    
    .consent-text a {
        color: var(--accent-cyan);
        text-decoration: underline;
    }

    .consent-actions {
      display: flex;
      gap: 0.75rem;
      flex-shrink: 0;
    }
    
    .consent-actions .btn-secondary,
    .privacy-modal-footer .btn-secondary {
      background-color: rgba(255, 255, 255, 0.1);
      color: white;
      border: 1px solid rgba(255, 255, 255, 0.2);
      padding: 0.6rem 1.2rem;
      border-radius: 8px;
      font-weight: 600;
      cursor: pointer;
      transition: background-color 0.2s, border-color 0.2s;
    }
    
    .consent-actions .btn-secondary:hover,
    .privacy-modal-footer .btn-secondary:hover {
      background-color: rgba(255, 255, 255, 0.2);
      border-color: rgba(255, 255, 255, 0.5);
    }
    
    .consent-actions .btn-purple,
    .privacy-modal-footer .btn-purple {
      padding: 0.6rem 1.2rem;
      border-radius: 8px;
    }

    @media (max-width: 768px) {
        .consent-banner-content {
            flex-direction: column;
            text-align: center;
        }
    }

    /* Privacy Preference Center Modal */
    .modal {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.6);
      display: none; /* Hide by default */
      justify-content: center;
      align-items: center;
      z-index: 300;
      backdrop-filter: blur(5px);
    }
    
    .privacy-modal-content {
      background: rgba(27, 0, 75, 0.9);
      backdrop-filter: blur(20px);
      border-radius: 16px;
      border: 1px solid rgba(255, 255, 255, 0.2);
      box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
      width: 90%;
      max-width: 680px;
      color: white;
      display: flex;
      flex-direction: column;
      max-height: 90vh;
    }

    .privacy-modal-header {
      padding: 1.5rem;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      position: relative;
    }

    .privacy-modal-header h3 {
      font-size: 1.5rem;
      font-weight: 700;
      text-align: center;
    }

    .close-btn {
      position: absolute;
      top: 50%;
      right: 1.5rem;
      transform: translateY(-50%);
      background: transparent;
      border: none;
      color: white;
      font-size: 2.5rem;
      line-height: 1;
      cursor: pointer;
      opacity: 0.7;
      transition: opacity 0.2s;
    }

    .close-btn:hover {
        opacity: 1;
    }

    .privacy-modal-body {
      padding: 1.5rem;
      overflow-y: auto;
      flex-grow: 1;
    }
    .privacy-modal-body > p {
        font-size: 0.9rem;
        color: #e2e8f0;
        margin-bottom: 2rem;
        line-height: 1.6;
    }

    .cookie-category {
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      padding: 1.25rem 0;
    }
    .cookie-category:last-child {
        border-bottom: none;
    }

    .category-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 0.5rem;
    }

    .category-header h4 {
      font-size: 1.125rem;
      font-weight: 600;
      color: var(--accent-cyan);
    }

    .category-description {
      font-size: 0.875rem;
      color: #cbd5e1;
      line-height: 1.5;
    }

    .privacy-modal-footer {
      padding: 1.5rem;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      display: flex;
      justify-content: flex-end;
      gap: 1rem;
    }
    
    /* Custom Toggle Switch */
    .toggle-switch {
      position: relative;
      display: inline-block;
      width: 50px;
      height: 28px;
    }
    .toggle-switch input {
      opacity: 0;
      width: 0;
      height: 0;
    }
    .slider {
      position: absolute;
      cursor: pointer;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background-color: rgba(255, 255, 255, 0.2);
      transition: .4s;
      border-radius: 28px;
    }
    .slider:before {
      position: absolute;
      content: "";
      height: 20px;
      width: 20px;
      left: 4px;
      bottom: 4px;
      background-color: white;
      transition: .4s;
      border-radius: 50%;
    }
    input:checked + .slider {
      background-color: var(--primary-color);
    }
    input:checked:disabled + .slider {
      background-color: #555;
      cursor: not-allowed;
    }
    input:focus + .slider {
      box-shadow: 0 0 1px var(--primary-color);
    }
    input:checked + .slider:before {
      transform: translateX(22px);
    }
    input:disabled + .slider {
        cursor: not-allowed;
    }
    input:disabled + .slider:before {
        background-color: #ccc;
    }
    
    .newsletter-consent {
        margin-top: 1rem;
    }
    .newsletter-consent .category-header h4 {
        color: white;
    }
    
    .newsletter-consent-contact {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }
    .newsletter-consent-contact label {
        color: #e2e8f0;
        font-size: 0.875rem;
    }
    .newsletter-consent-contact a {
        color: var(--accent-cyan);
    }
    .newsletter-consent-contact input[type="checkbox"] {
        accent-color: var(--primary-color);
    }

    .newsletter-consent-footer {
      grid-column: 1 / -1; /* Span across all columns */
      margin-top: 0.5rem;
      display: flex;
      align-items: flex-start; /* align checkbox with first line of text */
      gap: 0.5rem;
    }
    .newsletter-consent-footer label {
      font-size: 0.75rem; /* 12px */
      color: #cbd5e1; /* slate-300 */
      line-height: 1.4;
    }
    .newsletter-consent-footer a {
      color: var(--accent-cyan);
    }
    .newsletter-consent-footer input[type="checkbox"] {
      margin-top: 0.15em; /* small adjustment for vertical alignment */
      accent-color: var(--primary-color);
      flex-shrink: 0;
    }
    
    /* Agent Features List */
    .agent-features {
      list-style: none;
      padding-left: 1rem;
    }

    .agent-features li {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .agent-features li i {
        color: var(--accent-cyan);
        margin-top: 0.25em; /* Adjust for vertical alignment with text */
    }

    /* ---------- Mobile Menu Styles ---------- */
    @media (max-width: 1024px) {
        .nav-links {
            position: fixed;
            top: 0;
            right: 0;
            height: 100vh;
            width: 280px;
            background: rgba(27, 0, 75, 0.85);
            backdrop-filter: blur(15px);
            flex-direction: column;
            align-items: flex-start;
            padding: 6rem 2rem 2rem;
            gap: 1.5rem;
            transform: translateX(100%);
            transition: transform 0.35s ease-in-out;
            z-index: 105;
            box-shadow: -10px 0 30px rgba(0,0,0,0.2);
        }

        .nav-links.active {
            transform: translateX(0);
        }

        .nav-links a {
            font-size: 1.1rem;
            font-weight: 500;
        }

        .menu-toggle {
            display: flex;
        }
    }
    .nav-close-item {
      display: none;
    }