/* ─── CHATBOT ─── */
  #chatbot-btn {
    width: 52px;
    height: 52px;
    background: var(--gold);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    box-shadow: 0 8px 32px rgba(201,168,76,0.35);
  }

  #chatbot-btn:hover {
    background: var(--gold-light);
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(201,168,76,0.5);
  }

  #chatbot-btn svg { color: var(--black); }

  #chatbot-panel {
    position: fixed;
    bottom: 2.5rem;
    right: 6.5rem;
    width: 380px;
    max-height: 580px;
    background: var(--dark-2);
    border: var(--border-gold);
    z-index: var(--z-modal);
    display: none;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(0,0,0,0.6);
    animation: slideUp 0.25s ease;
  }

  @keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  #chatbot-panel.open { display: flex; }

  .chat-header {
    padding: 1.2rem 1.5rem;
    background: linear-gradient(135deg, var(--dark-3), var(--dark-2));
    border-bottom: 1px solid rgba(201,168,76,0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .chat-header-info {
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }

  .chat-avatar {
    width: 36px;
    height: 36px;
    background: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
  }

  .chat-header h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1rem;
    color: var(--white);
  }

  .chat-header p {
    font-size: 0.65rem;
    color: var(--gold);
  }

  .chat-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.2rem;
    transition: color var(--transition-fast);
  }

  .chat-close:hover { color: var(--white); }

  .chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(201,168,76,0.2) transparent;
  }

  .msg {
    max-width: 85%;
    padding: 0.8rem 1.1rem;
    font-size: 0.8rem;
    line-height: 1.6;
    animation: msgIn 0.2s ease;
  }

  @keyframes msgIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .msg.bot {
    background: rgba(201,168,76,0.06);
    border: 1px solid rgba(201,168,76,0.12);
    color: var(--text);
    align-self: flex-start;
  }

  .msg.user {
    background: rgba(201,168,76,0.15);
    border: 1px solid rgba(201,168,76,0.25);
    color: var(--white);
    align-self: flex-end;
  }

  .msg-loading {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 1rem;
  }

  .dot {
    width: 6px; height: 6px;
    background: var(--gold);
    border-radius: 50%;
    animation: dotPulse 1.2s infinite;
  }

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

  @keyframes dotPulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1); }
  }

  .quick-replies {
    padding: 0.5rem 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    border-top: 1px solid rgba(201,168,76,0.08);
  }

  .quick-reply {
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(201,168,76,0.25);
    background: none;
    color: var(--gold);
    font-size: 0.65rem;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.05em;
  }

  .quick-reply:hover {
    background: rgba(201,168,76,0.1);
  }

  .chat-input-area {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(201,168,76,0.1);
    display: flex;
    gap: 0.8rem;
    align-items: center;
  }

  #chat-input {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(201,168,76,0.15);
    color: var(--text);
    padding: 0.7rem 1rem;
    font-size: 0.8rem;
    font-family: 'Montserrat', sans-serif;
    outline: none;
    transition: border-color 0.2s;
  }

  #chat-input:focus { border-color: rgba(201,168,76,0.4); }
  #chat-input::placeholder { color: var(--text-muted); }

  #chat-send {
    background: var(--gold);
    border: none;
    color: var(--black);
    width: 38px;
    height: 38px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
  }

  #chat-send:hover { background: var(--gold-light); }

  /* ─── LIGHTBOX ─── */
  #lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 3000;
    align-items: center;
    justify-content: center;
  }

  #lightbox.open { display: flex; }

  #lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
  }

  #lightbox-close {
    position: absolute;
    top: 2rem; right: 2rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
  }

  /* CURSOR PERSONALIZADO — Premium Gold                 */
  /* ═══════════════════════════════════════════════════ */
  * { cursor: none !important; } /* intentional global cursor reset for custom cursor */

  #cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: #C9A84C;
    border-radius: 50%;
    pointer-events: none;
    z-index: 999999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease, opacity 0.2s ease;
    will-change: transform;
  }

  #cursor-ring {
    position: fixed;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(201,168,76,0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 999998;
    transform: translate(-50%, -50%);
    transition: width 0.35s cubic-bezier(0.22,1,0.36,1),
                height 0.35s cubic-bezier(0.22,1,0.36,1),
                border-color 0.25s ease,
                opacity 0.25s ease;
    will-change: transform;
  }

  /* Hover sobre links y botones — cursor se expande */
  body.cursor-hover #cursor-dot {
    width: 4px;
    height: 4px;
    background: #fff;
    opacity: 0.9;
  }
  body.cursor-hover #cursor-ring {
    width: 48px;
    height: 48px;
    border-color: rgba(201,168,76,0.9);
    border-width: 1.5px;
  }

  /* Hover sobre imágenes — ring cambia a blanco */
  body.cursor-image #cursor-dot {
    background: #fff;
    width: 5px;
    height: 5px;
  }
  body.cursor-image #cursor-ring {
    width: 44px;
    height: 44px;
    border-color: rgba(255,255,255,0.5);
  }

  /* Click — comprime */
  body.cursor-click #cursor-dot {
    width: 10px;
    height: 10px;
    background: #C9A84C;
  }
  body.cursor-click #cursor-ring {
    width: 22px;
    height: 22px;
    border-color: rgba(201,168,76,1);
  }

  /* Ocultar cuando sale del viewport */
  body.cursor-outside #cursor-dot,
  body.cursor-outside #cursor-ring {
    opacity: 0;
  }

  /* No aplicar en touch/móvil */
  


  /* ═══════════════════════════════════════════════════ */
  /* PRELOADER                                           */
  /* ═══════════════════════════════════════════════════ */
  #preloader {
    position: fixed;
    inset: 0;
    z-index: 999997;
    background: #0A0806;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1),
                transform 0.7s cubic-bezier(0.22,1,0.36,1);
  }
  #preloader.pl-hide {
    opacity: 0;
    transform: scale(1.04);
    pointer-events: none;
  }

  /* Top + bottom gold lines that grow inward */
  #preloader::before,
  #preloader::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(201,168,76,0.5), transparent);
    width: 0;
    transition: width 0.9s cubic-bezier(0.22,1,0.36,1) 0.2s;
  }
  #preloader::before { top: 0; }
  #preloader::after  { bottom: 0; }
  #preloader.pl-ready::before,
  #preloader.pl-ready::after {
    width: 100%;
  }

  .pl-logo-wrap {
    text-align: center;
    position: relative;
  }

  /* Rotating outer ring */
  .pl-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 130px;
    height: 130px;
    margin: -65px 0 0 -65px;
    border-radius: 50%;
    border: 1px solid transparent;
    border-top-color: rgba(201,168,76,0.7);
    border-right-color: rgba(201,168,76,0.2);
    animation: pl-spin 1.6s linear infinite;
  }
  .pl-ring-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110px;
    height: 110px;
    margin: -55px 0 0 -55px;
    border-radius: 50%;
    border: 1px solid transparent;
    border-bottom-color: rgba(201,168,76,0.4);
    animation: pl-spin 2.2s linear infinite reverse;
  }

  @keyframes pl-spin {
    to { transform: rotate(360deg); }
  }

  .pl-eyebrow {
    font-size: 0.48rem;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: rgba(201,168,76,0.5);
    margin-bottom: 0.6rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
  }
  .pl-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.8rem, 6vw, 4.2rem);
    font-weight: 300;
    color: #fff;
    letter-spacing: 0.08em;
    line-height: 1;
    margin: 0 0 0.2rem;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.7s ease 0.5s, transform 0.7s ease 0.5s;
  }
  .pl-subtitle {
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(201,168,76,0.6);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.6s ease 0.75s, transform 0.6s ease 0.75s;
  }

  /* Gold divider line */
  .pl-line {
    width: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, #C9A84C, transparent);
    margin: 1.2rem auto;
    transition: width 0.8s cubic-bezier(0.22,1,0.36,1) 0.6s;
  }

  /* Progress bar */
  .pl-progress {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 1px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
  }
  .pl-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, rgba(201,168,76,0.4), #C9A84C);
    transition: width 0.1s linear;
  }

  /* Trigger visible states */
  #preloader.pl-ready .pl-eyebrow,
  #preloader.pl-ready .pl-title,
  #preloader.pl-ready .pl-subtitle {
    opacity: 1;
    transform: translateY(0);
  }
  #preloader.pl-ready .pl-line {
    width: 80px;
  }


  /* ═══════════════════════════════════════════════════ */
  /* TOUCH INTERACTIONS — Alternativas táctiles          */
  /* Solo aplica en dispositivos sin hover real          */
  /* ═══════════════════════════════════════════════════ */
  


  /* ── Skip to content (accesibilidad) ── */
  .skip-to-content {
    position: fixed;
    top: -100%;
    left: 1rem;
    z-index: 999999;
    background: var(--gold);
    color: #000;
    padding: 0.7rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-decoration: none;
    text-transform: uppercase;
    transition: top 0.2s ease;
    outline: none;
  }
  .skip-to-content:focus {
    top: 1rem;
  }


  /* ══════════════════════════════════════════════════ */
