/* components.css — look oscuro: botones, navbar fija oscura, footer, acordeones */

/* ===== TRANSICIÓN DE PÁGINA ===== */
.page-transition {
  position: fixed; inset: 0; z-index: 2500; pointer-events: none;
  background: var(--gold-500); opacity: 0; visibility: hidden;
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s cubic-bezier(0.4, 0, 0.2, 1), opacity .35s;
}
.page-transition.active {
  pointer-events: all; visibility: visible; opacity: 1;
  transform: scaleX(1); transform-origin: right;
}

/* ===== BOTONES ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-sans); font-weight: 600; font-size: .88rem;
  padding: .95rem 1.9rem; border-radius: 4px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1.2;
  text-transform: uppercase; letter-spacing: .5px;
  transition: all .3s var(--transition-smooth);
}
.btn:active { transform: translateY(0) scale(.97) !important; }
.btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }

.btn--primary { background: var(--negro-profundo); color: var(--blanco-hueso); border-color: var(--negro-profundo); }
.btn--primary:hover { background: #000; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,.35); }

.btn--gold { background: var(--gold-500); color: var(--negro-profundo); border-color: var(--gold-500); }
.btn--gold:hover { background: var(--gold-300); border-color: var(--gold-300); transform: translateY(-2px); box-shadow: 0 8px 25px rgba(198, 161, 91, .3); }

.btn--ghost { background: transparent; border-color: rgba(28, 28, 28, .35); color: var(--ink-900); }
.btn--ghost:hover { border-color: var(--gold-500); color: var(--gold-500); background: transparent; transform: translateY(-2px); }

.btn--ghost-light { background: transparent; border-color: rgba(247, 245, 242, .4); color: var(--blanco-hueso); }
.btn--ghost-light:hover { border-color: var(--blanco-hueso); background: rgba(247, 245, 242, .05); transform: translateY(-2px); }

.btn--whatsapp { background: var(--wa-green); color: #fff; border-color: var(--wa-green); }
.btn--whatsapp:hover { background: #20BA5A; border-color: #20BA5A; transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37, 211, 102, .3); }

.btn--sm { padding: .55rem 1.15rem; font-size: .8rem; }

/* ===== NAVBAR (fija oscura, enlazada con subrayado dorado) ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent;
  padding: 0 4%;
  min-height: var(--navbar-height);
  display: flex; align-items: center;
  transition: all .4s var(--transition-smooth);
}
.site-header.scrolled {
  background: rgba(10, 10, 10, .97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, .5);
  min-height: 70px;
}
body.inner-page .site-header { background: rgba(10, 10, 10, .97); box-shadow: 0 2px 20px rgba(0, 0, 0, .5); }
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 1.2rem; min-height: var(--navbar-height); }
.site-header.scrolled .nav, body.inner-page .nav { min-height: 70px; }
.nav__brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--blanco-hueso); font-weight: 600; font-size: .95rem; line-height: 1.25; }
.nav__brand img { width: 46px; height: 46px; flex: none; border-radius: 6px; transition: height .3s var(--transition-smooth); }
.nav__brand span { letter-spacing: .3px; }
.site-header.scrolled .nav__brand img { width: 40px; height: 40px; }
.nav__links { display: none; list-style: none; margin: 0 0 0 auto; padding: 0; gap: 1.6rem; align-items: center; }
@media (min-width: 1025px) { .nav__links { display: flex; } }
.nav__links a {
  display: block; padding: 4px 0; font-size: .78rem; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--blanco-hueso); position: relative;
}
.nav__links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--gold-500); transition: width .3s var(--transition-smooth);
}
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { width: 100%; }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--gold-500); }

.nav__end { display: flex; align-items: center; gap: .8rem; }
@media (min-width: 1025px) { .nav__end { margin-left: 0; } }
.nav__book { display: none; }
@media (min-width: 1025px) { .nav__book { display: inline-flex; } }

.lang-selector { display: flex; border: 1px solid rgba(247, 245, 242, .25); border-radius: 4px; overflow: hidden; }
.lang-selector a {
  padding: .35rem .7rem; font-size: .72rem; font-weight: 700; letter-spacing: .5px;
  color: var(--blanco-hueso); background: transparent;
}
.lang-selector a[aria-current="true"] { background: var(--gold-500); color: var(--negro-profundo); }

.burger {
  display: inline-flex; flex-direction: column; gap: 5px; justify-content: center;
  width: 44px; height: 44px; padding: 10px; background: none; border: 0; cursor: pointer; z-index: 1001;
}
.burger span { display: block; width: 28px; height: 2px; background: var(--blanco-hueso); transition: all .3s var(--transition-smooth); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
@media (min-width: 1025px) { .burger { display: none; } }

.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(10, 10, 10, .98);
  padding: calc(var(--navbar-height) + 2rem) 24px 2rem;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.mobile-menu a {
  display: block; padding: .95rem .3rem; color: var(--blanco-hueso);
  font-size: 1.12rem; text-transform: uppercase; letter-spacing: 1px;
  border-bottom: 1px solid rgba(198, 161, 91, .15);
}
.mobile-menu a[aria-current="page"] { color: var(--gold-500); }
.mobile-menu .btn { margin-top: 1.6rem; }

/* el padding superior lo maneja .page-hero en páginas interiores */
body:not([data-page="home"]) main { padding-top: 0; }
body:not([data-page="home"]) .site-header { background: rgba(10,10,10,.97); box-shadow: 0 2px 20px rgba(0,0,0,.5); }

/* ===== BREADCRUMB ===== */
.breadcrumb { padding-top: 0; font-size: .8rem; color: var(--ink-300); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; }
.breadcrumb li+li::before { content: '›'; margin-right: .45rem; color: var(--ink-300); }
.breadcrumb a { color: var(--ink-600); }
.breadcrumb a:hover { color: var(--gold-500); }

/* ===== FOOTER (negro con bordes dorados) ===== */
.site-footer { background: var(--negro-profundo); border-top: 1px solid rgba(198, 161, 91, .2); color: var(--ink-600); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.4rem; padding-block: clamp(3rem, 5vw, 4.5rem); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.footer-brand img { width: 58px; height: 58px; border-radius: 8px; margin-bottom: 1rem; }
.footer-brand .footer-name { color: var(--blanco-hueso); font-family: var(--font-serif); font-size: 1.05rem; margin-bottom: .3rem; }
.footer-brand p { font-size: .87rem; margin: 0 0 1rem; max-width: 340px; }
.footer-col h3 {
  font-family: var(--font-sans); color: var(--gold-500); font-weight: 700;
  font-size: .72rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-col a { color: var(--ink-600); font-size: .9rem; }
.footer-col a:hover { color: var(--gold-500); }
.footer-col p { font-size: .9rem; margin: 0 0 .7rem; max-width: none; }
.footer-bottom {
  border-top: 1px solid rgba(198, 161, 91, .12);
  padding-block: 1.4rem; font-size: .76rem; color: var(--ink-300);
}
.footer-bottom p { margin: 0 0 .55rem; max-width: none; }
.footer-bottom__links { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; }
.footer-bottom a { color: var(--ink-600); }
.footer-bottom a:hover { color: var(--gold-500); }

/* ===== ACORDEÓN ===== */
.accordion { max-width: 72ch; margin-inline: auto; display: grid; gap: .8rem; }
.accordion__item {
  background: var(--white); border: 1px solid rgba(0, 0, 0, .07);
  border-radius: var(--radius-card); overflow: hidden; color: var(--ink-900);
}
.accordion__q {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  width: 100%; text-align: left; font: inherit; font-weight: 600; color: var(--ink-900);
  background: none; border: 0; padding: 1.15rem 1.3rem; cursor: pointer; font-size: .97rem;
}
.accordion__q svg { flex: none; transition: transform .3s var(--transition-smooth); color: var(--gold-500); }
.accordion__item.open .accordion__q svg { transform: rotate(180deg); }
.accordion__a { height: 0; overflow: hidden; }
.accordion__a-inner { padding: 0 1.3rem 1.2rem; color: var(--ink-600); font-size: .93rem; }
.accordion__a-inner ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.accordion__note {
  max-width: 72ch; margin: 0 auto 2rem; padding: .95rem 1.2rem;
  border-left: 2px solid var(--gold-500); background: rgba(198, 161, 91, .08);
  font-size: .9rem; color: var(--ink-600);
}

/* ===== FORMULARIOS ===== */
.form { display: grid; gap: 1.2rem; max-width: 64ch; }
fieldset { border: 1px solid rgba(198, 161, 91, .25); border-radius: var(--radius-card); padding: 1.2rem 1.3rem; margin: 0; }
fieldset legend { color: var(--gold-500); font-weight: 600; font-size: .88rem; padding-inline: .5rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .9rem; color: var(--blanco-hueso); }
.field .req { color: var(--gold-500); }
.field input:not([type="radio"]):not([type="checkbox"]), .field textarea, .field select {
  font: inherit; font-size: .95rem; padding: .8rem 1rem;
  border: 1px solid rgba(247, 245, 242, .22); border-radius: 4px;
  background: rgba(247, 245, 242, .04); color: var(--blanco-hueso); width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-300); }
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: none; box-shadow: var(--focus-ring); border-color: var(--gold-500);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-error { color: #E5887E; font-size: .82rem; min-height: 1.1em; margin: 0; max-width: none; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); }

.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .86rem; color: var(--ink-600); max-width: none; }
.consent input { width: auto; margin-top: .25rem; }
.consent a { font-weight: 600; color: var(--gold-500); }
.consent a:hover { color: var(--gold-300); }

.hp-field { position: absolute; left: -9999px; opacity: 0; }

.radio-cards { display: grid; gap: .55rem; }
@media (min-width: 768px) { .radio-cards--row { grid-template-columns: repeat(3, 1fr); } }
.radio-card {
  display: flex; gap: .65rem; align-items: flex-start; cursor: pointer;
  border: 1px solid rgba(247, 245, 242, .18); border-radius: 4px;
  padding: .78rem 1rem; background: rgba(247, 245, 242, .03); font-size: .88rem;
  color: var(--blanco-hueso);
  transition: border-color .25s, background .25s;
}
.radio-card:hover { border-color: var(--gold-500); }
.radio-card input { margin-top: .2rem; accent-color: var(--gold-500); }
.radio-card:has(input:checked) {
  border-color: var(--gold-500); background: rgba(198, 161, 91, .09);
}

/* Página propia de cotizaciones + link en tarjeta de traspaso */
.cotiz-item {
  border: 1px solid rgba(198, 161, 91, .28); border-left: 3px solid var(--gold-500);
  border-radius: 8px; padding: 1.1rem 1.3rem; margin-bottom: .9rem;
  background: rgba(247, 245, 242, .03);
}
.cotiz-item h3 { margin: 0 0 .3rem; font-size: 1.05rem; }
.cotiz-item p { margin: 0; font-size: .92rem; color: var(--ink-300); max-width: none; }
.service-card__quote {
  display: inline-block; margin-left: 1rem; font-size: .85rem; font-weight: 600;
  color: var(--gold-500); opacity: .95;
}
.service-card__quote:hover { text-decoration: underline; color: var(--gold-300); }

/* Zona dedicada a cotizaciones en Inicio */
.section--cotiz {
  border-top: 1px solid rgba(198, 161, 91, .35);
  border-bottom: 1px solid rgba(198, 161, 91, .35);
  background:
    linear-gradient(180deg, rgba(198, 161, 91, .05), rgba(198, 161, 91, 0) 70%),
    rgba(11, 31, 51, .4);
}
.section--cotiz .section__title { color: var(--gold-300, #d9b978); letter-spacing: .04em; }
.section--cotiz .cotiz-item { background: rgba(247, 245, 242, .04); }

.form-status { font-size: .93rem; padding: 1rem 1.2rem; border-radius: 4px; display: none; max-width: none; }
.form-status.show { display: block; }
.form-status--ok { background: rgba(46, 125, 91, .12); color: #7BD3B1; border: 1px solid rgba(46, 125, 91, .4); }
.form-status--err { background: rgba(179, 38, 30, .1); color: #E5887E; border: 1px solid rgba(179, 38, 30, .35); }

/* ===== FLOTANTES ===== */
.floating {
  position: fixed; right: 24px; z-index: 900;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; box-shadow: 0 6px 22px rgba(0, 0, 0, .45);
  transition: transform .2s var(--transition-smooth), bottom .3s var(--transition-smooth);
}
.floating svg { width: 26px; height: 26px; }
.floating:hover { transform: translateY(-3px); }
.floating:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.whatsapp-fab { bottom: 24px; width: 58px; height: 58px; background: var(--wa-green); color: #fff; }
.chatbot-toggle {
  bottom: 98px; width: 58px; height: 58px; z-index: 910;
  background: var(--gold-500); color: var(--negro-profundo);
}
body.cookies-open .floating { bottom: 96px; }
body.cookies-open .chatbot-toggle { bottom: 170px; }
@media (max-width: 480px) { .floating { right: 16px; } }

/* ===== CHATBOT PANEL ===== */
.chatbot-panel {
  position: fixed; right: 24px; bottom: 170px; z-index: 915;
  width: min(360px, calc(100vw - 32px)); height: min(70vh, 560px);
  display: none; flex-direction: column;
  background: var(--paper-200);
  border-radius: 10px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  border: 1px solid rgba(198, 161, 91, .25);
}
.chatbot-panel.open { display: flex; }
.chatbot__head {
  background: var(--negro-profundo); color: #fff; padding: .9rem 1rem;
  display: flex; align-items: center; gap: .7rem;
  border-bottom: 1px solid rgba(198, 161, 91, .2);
}
.chatbot__head svg:first-child { color: var(--gold-500); flex: none; }
.chatbot__head-t { flex: 1; min-width: 0; }
.chatbot__head-t strong { display: block; font-size: .9rem; }
.chatbot__disclaimer { display: block; font-size: .68rem; color: var(--gold-300); line-height: 1.4; max-width: none; }
.chatbot__disclaimer a { color: var(--gold-300); }
.chatbot__close { background: none; border: 0; color: #fff; cursor: pointer; padding: .4rem; border-radius: 4px; }
.chatbot__close:hover { background: rgba(255, 255, 255, .12); }
.chatbot__log {
  flex: 1; overflow-y: auto; padding: 1rem;
  display: flex; flex-direction: column; gap: .65rem;
  background: var(--paper-200);
}
.msg { max-width: 85%; padding: .6rem .9rem; border-radius: 10px; font-size: .88rem; line-height: 1.5; margin: 0; max-width: 85%; }
.msg--bot { align-self: flex-start; background: rgba(247, 245, 242, .07); border: 1px solid rgba(247, 245, 242, .12); color: var(--blanco-hueso); border-bottom-left-radius: 3px; }
.msg--user { align-self: flex-end; background: var(--gold-500); color: var(--negro-profundo); border-bottom-right-radius: 3px; }
.msg--error { align-self: stretch; background: rgba(179, 38, 30, .12); color: #E5887E; border: 1px solid rgba(179, 38, 30, .3); font-size: .83rem; }
.typing { display: inline-flex; gap: 4px; }
.typing i { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink-600); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; }
.typing i:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%, 60%, 100% { opacity: .3; } 30% { opacity: 1; } }
.quick-replies { display: flex; flex-wrap: wrap; gap: .5rem; }
.quick-replies button {
  font: inherit; font-size: .78rem; font-weight: 500; cursor: pointer;
  border: 1px solid rgba(198, 161, 91, .4); background: transparent; color: var(--gold-500);
  border-radius: 999px; padding: .4rem .9rem;
  transition: background .25s, color .25s;
}
.quick-replies button:hover { background: var(--gold-500); color: var(--negro-profundo); }
.chatbot__foot { border-top: 1px solid rgba(198, 161, 91, .15); padding: .9rem 1rem; display: grid; gap: .7rem; background: var(--paper-200); }
.chatbot__input-row { display: flex; gap: .55rem; }
.chatbot__input-row input {
  flex: 1; font: inherit; font-size: .9rem; padding: .6rem .85rem;
  border: 1px solid rgba(247, 245, 242, .22); border-radius: 4px;
  background: rgba(247, 245, 242, .04); color: var(--blanco-hueso);
}
.chatbot__send {
  flex: none; width: 42px; border: 0; border-radius: 4px; cursor: pointer;
  background: var(--gold-500); color: var(--negro-profundo);
  display: inline-flex; align-items: center; justify-content: center;
}
.chatbot__send:hover { background: var(--gold-300); }
.chatbot-lead { display: grid; gap: .45rem; font-size: .82rem; }
.chatbot-lead strong { color: var(--blanco-hueso); }
.chatbot-lead span { color: var(--ink-600); }
.chatbot-lead label { display: flex; gap: .5rem; align-items: flex-start; font-size: .76rem; color: var(--ink-600); max-width: none; }
.chatbot-lead input[type="text"], .chatbot-lead input[type="tel"] {
  font: inherit; font-size: .86rem; padding: .5rem .7rem;
  border: 1px solid rgba(247, 245, 242, .22); border-radius: 4px;
  background: rgba(247, 245, 242, .04); color: var(--blanco-hueso);
}
.chatbot-lead input[type="checkbox"] { accent-color: var(--gold-500); }
.lead-status { margin: 0; font-size: .78rem; max-width: none; }

/* ===== COOKIES ===== */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
  background: rgba(10, 10, 10, .98); color: var(--blanco-hueso);
  padding: 1.1rem 24px; display: none; align-items: center; gap: 1.4rem; flex-wrap: wrap;
  border-top: 2px solid var(--gold-500);
}
.cookie-banner.show, .cookie-banner:not([hidden]) { display: flex; }
.cookie-banner p { margin: 0; flex: 1; min-width: 260px; font-size: .84rem; color: var(--ink-600); max-width: none; }
.cookie-banner a { color: var(--gold-500); }
.cookie-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* ===== DETALLES (docencia) ===== */
details.teaching-box {
  background: var(--white); color: var(--ink-900);
  border: 1px solid rgba(0, 0, 0, .07); border-radius: var(--radius-card); overflow: hidden;
}
details.teaching-box summary {
  cursor: pointer; padding: 1.2rem 1.5rem; font-weight: 600; color: var(--ink-900);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
details.teaching-box summary::-webkit-details-marker { display: none; }
details.teaching-box summary::after {
  content: '+'; font-size: 1.4rem; color: var(--gold-500); font-weight: 400;
}
details.teaching-box[open] summary::after { content: '–'; }
details.teaching-box .teaching-body { padding: 0 1.5rem 1.5rem; }

/* ===== FILTROS ===== */
.filters {
  position: sticky; top: 70px; z-index: 90;
  background: rgba(10, 10, 10, .96);
  backdrop-filter: blur(8px);
  padding-block: .9rem;
  border-bottom: 1px solid rgba(198, 161, 91, .12);
}
.filters__inner { display: flex; flex-wrap: wrap; gap: .55rem; justify-content: center; }
.filter-btn {
  font: inherit; font-size: .8rem; font-weight: 600; letter-spacing: .5px; cursor: pointer;
  text-transform: uppercase;
  padding: .5rem 1.15rem; border-radius: 999px;
  border: 1px solid rgba(247, 245, 242, .25); background: transparent; color: var(--blanco-hueso);
  transition: all .25s var(--transition-smooth);
}
.filter-btn:hover { border-color: var(--gold-500); color: var(--gold-500); }
.filter-btn[aria-pressed="true"] { background: var(--gold-500); color: var(--negro-profundo); border-color: var(--gold-500); }

/* ===== GRID DE TARJETAS DE SERVICIO ===== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.8rem;
}
@media (min-width: 768px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== SERVICIOS (cards interpoladas sobre fondo navy) ===== */
.service-card {
  position: relative; background: rgba(247, 245, 242, .04);
  border: 1px solid rgba(198, 161, 91, .14);
  border-radius: var(--radius-card); padding: 1.25rem 1.25rem;
  display: flex; gap: 1rem; align-items: flex-start;
  transition: transform .35s var(--transition-smooth), box-shadow .35s, background .35s;
  overflow: hidden;
}
.service-card:hover { background: rgba(198, 161, 91, .05); transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0, 0, 0, .4); }
.service-card > svg { flex: none; color: var(--gold-500); margin-top: .1rem; }
.service-card h3 { font-family: var(--font-sans); font-weight: 600; font-size: .98rem; margin: 0 0 .25em; color: var(--blanco-hueso); }
.service-card p { margin: 0; font-size: .88rem; color: var(--ink-600); max-width: none; }
.service-card a {
  display: inline-flex; align-items: center; gap: .45rem; margin-top: .65rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .3px; color: var(--wa-green);
  position: relative; z-index: 1;
}
.service-card a::before {
  content: ''; width: 15px; height: 15px; flex: none;
  background: var(--wa-green); border-radius: 50%;
}
.service-card a:hover { color: #20BA5A; }

/* ===== CALENDARIO DE RESERVAS (replica Dra. Valeria) ===== */
.calendar-container {
  display: grid; grid-template-columns: 1fr; gap: 2.2rem;
  background: var(--gris-grafito); border-radius: 10px; padding: 2rem;
  border: 1px solid rgba(198, 161, 91, .18);
}
@media (min-width: 1024px) { .calendar-container { grid-template-columns: 1.1fr 1fr .95fr; align-items: start; } }

.calendar-header { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin-bottom: 1rem; }
.calendar-header h3 { font-family: var(--font-sans); font-size: 1.02rem; font-weight: 600; color: var(--blanco-hueso); margin: 0; }
.calendar-prev, .calendar-next {
  flex: none; width: 40px; height: 40px; border-radius: 6px;
  background: rgba(198, 161, 91, .12); color: var(--gold-500);
  border: 1px solid rgba(198, 161, 91, .35); cursor: pointer; font-size: 1rem;
  transition: background .25s, color .25s;
}
.calendar-prev:hover, .calendar-next:hover { background: var(--gold-500); color: var(--negro-profundo); }
.calendar-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: .5rem; text-align: center; }
.calendar-weekdays span { font-size: .7rem; font-weight: 700; letter-spacing: 1px; color: var(--gold-500); padding-bottom: .4rem; text-transform: uppercase; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar-day {
  aspect-ratio: 1; display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-size: .92rem; font-weight: 500;
  color: var(--blanco-hueso); background: transparent;
  border: 1px solid transparent; border-radius: 6px; cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s;
  padding: 0;
}
.calendar-day:hover { background: rgba(198, 161, 91, .12); border-color: rgba(198, 161, 91, .4); }
.calendar-day.empty { visibility: hidden; }
.calendar-day.disabled { color: var(--ink-300); pointer-events: none; opacity: .35; }
.calendar-day.selected { background: var(--gold-500); color: var(--negro-profundo); border-color: var(--gold-500); font-weight: 700; transform: scale(1.06); }

.time-picker h3 { font-family: var(--font-sans); font-size: .98rem; color: var(--blanco-hueso); margin-bottom: 1rem; }
.time-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.time-slot {
  font: inherit; font-size: .92rem; font-weight: 600; padding: .55rem 0;
  background: rgba(247, 245, 242, .05); color: var(--blanco-hueso);
  border: 1px solid rgba(247, 245, 242, .18); border-radius: 6px; cursor: pointer;
  transition: all .2s var(--transition-smooth);
}
.time-slot:hover { border-color: var(--gold-500); color: var(--gold-500); }
.time-slot.selected { background: var(--gold-500); color: var(--negro-profundo); border-color: var(--gold-500); font-weight: 700; }
.time-slot.reserved { text-decoration: line-through; opacity: .35; pointer-events: none; background: rgba(179, 38, 30, .08); }
.time-slot-none { grid-column: 1/-1; margin: 0; font-size: .85rem; color: var(--ink-600); }

.booking-summary {
  background: rgba(198, 161, 91, .07); border: 1px solid rgba(198, 161, 91, .35);
  border-radius: 8px; padding: 1.4rem; text-align: center;
  display: grid; gap: 1rem; align-content: start;
}
.booking-summary p { margin: 0; font-size: .95rem; color: var(--blanco-hueso); max-width: none; }
.booking-summary .booking-cta { width: 100%; justify-content: center; }

/* ===== CHATBOT WIDGET (replica premium) ===== */
.chat-widget { position: fixed; right: 24px; bottom: 24px; z-index: 940; display: flex; flex-direction: column; align-items: flex-end; }
.chat-toggle {
  position: fixed; right: 24px; bottom: 98px; z-index: 940;
  width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--gold-500); color: var(--negro-profundo); border: 0; cursor: pointer;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .4);
  transition: transform .2s var(--transition-smooth), box-shadow .2s;
}
.chat-toggle.active { transform: rotate(90deg); }
.chat-toggle:hover { transform: scale(1.08); box-shadow: 0 10px 30px rgba(198, 161, 91, .35); }
.chat-window {
  display: flex; flex-direction: column;
  position: fixed; right: 24px; bottom: 172px; z-index: 941;
  width: min(360px, calc(100vw - 32px)); height: min(70vh, 540px);
  background: var(--gris-grafito); border-radius: 12px; overflow: hidden;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
  border: 1px solid rgba(198, 161, 91, .3);
  animation: chatSlideUp .35s cubic-bezier(0.25, 0.8, 0.25, 1);
}
@keyframes chatSlideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.chat-header { background: var(--negro-profundo); padding: .95rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; border-bottom: 1px solid rgba(198, 161, 91, .25); }
.chat-header h3 { font-size: .95rem; font-family: var(--font-sans); font-weight: 600; color: var(--blanco-hueso); margin: 0; }
.chat-header .chat-close { color: var(--blanco-hueso); font-size: 1.5rem; line-height: 1; background: none; border: 0; cursor: pointer; padding: .2rem .5rem; }
.chat-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--gris-grafito); }
.chat-message { display: flex; }
.chat-message p {
  max-width: 85%; padding: .6rem .95rem; border-radius: 12px;
  font-size: .88rem; line-height: 1.55; margin: 0;
  background: rgba(247, 245, 242, .07); color: var(--blanco-hueso);
  border: 1px solid rgba(247, 245, 242, .1);
}
.chat-message.bot p { border-bottom-left-radius: 3px; }
.chat-message.user p { background: var(--gold-500); color: var(--negro-profundo); border: 0; margin-left: auto; border-bottom-right-radius: 3px; }
.chat-input-area { border-top: 1px solid rgba(198, 161, 91, .2); padding: .8rem 1rem; display: flex; gap: .55rem; background: var(--negro-profundo); }
.chat-input { flex: 1; font: inherit; font-size: .92rem; padding: .6rem .85rem; border: 1px solid rgba(247, 245, 242, .22); border-radius: 6px; background: rgba(247, 245, 242, .05); color: var(--blanco-hueso); }
.chat-input:focus { outline: none; border-color: var(--gold-500); box-shadow: var(--focus-ring); }
.chat-send { flex: none; width: 42px; border: 0; border-radius: 6px; cursor: pointer; background: var(--gold-500); color: var(--negro-profundo); display: inline-flex; align-items: center; justify-content: center; transition: background .25s, transform .25s; }
.chat-send:hover { background: var(--gold-300); transform: scale(1.05); }
.chat-typing { font-size: .76rem; color: var(--ink-600); padding: .35rem 1rem .6rem; font-style: italic; background: var(--gris-grafito); margin: 0; }
.chat-book-btn {
  display: inline-flex; align-items: center; margin-top: .55rem;
  padding: .5rem 1.05rem; border-radius: 4px; border: 0; cursor: pointer;
  background: var(--gold-500); color: var(--negro-profundo);
  font: inherit; font-size: .8rem; font-weight: 600;
  text-decoration: none; letter-spacing: .3px;
  transition: background .25s, transform .2s;
}
.chat-book-btn:hover { background: var(--gold-300); transform: translateY(-1px); }

/* ===== MODAL DE CONFIRMACIÓN ===== */
.confirm-modal {
  position: fixed; inset: 0; z-index: 2200;
  background: rgba(11, 31, 51, .8); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; transition: opacity .2s;
}
.confirm-modal.hidden { display: none; }
.confirm-modal.show { opacity: 1; }
.confirm-card {
  position: relative; background: var(--gris-grafito); color: var(--blanco-hueso);
  border-radius: 12px; padding: 2.2rem 2rem 1.8rem; max-width: 460px; width: 100%;
  border: 1px solid rgba(198, 161, 91, .35);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
}
.confirm-close { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: var(--blanco-hueso); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 4px 8px; border-radius: 4px; }
.confirm-close:hover { background: rgba(255, 255, 255, .1); }
.confirm-icon { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: rgba(198, 161, 91, .12); border: 2px solid var(--gold-500); display: flex; align-items: center; justify-content: center; font-size: 1.7rem; color: var(--gold-500); }
.confirm-title { text-align: center; color: var(--blanco-hueso); margin-bottom: .4em; font-size: 1.45rem; }
.confirm-text { color: var(--ink-600); font-size: .92rem; text-align: center; max-width: none; margin-bottom: 1.1rem; }
.confirm-fecha { text-align: center; padding: 1rem; margin-bottom: 1.3rem; background: rgba(198, 161, 91, .08); border: 1px dashed rgba(198, 161, 91, .4); border-radius: 8px; font-size: 1rem; }
.confirm-actions { display: grid; gap: .7rem; }
.confirm-actions .btn { width: 100%; justify-content: center; }
.confirm-note { margin: 1rem 0 0; font-size: .78rem; color: var(--ink-300); text-align: center; max-width: none; }
