p, .text-base, .text-lg, .text-zinc-700, .text-zinc-600, .text-white, .text-neutral-400, .text-gray-400, .text-slate-400, .text-blue-100, .text-blue-200, .text-blue-300, .text-blue-400, .text-blue-500, .text-blue-600, .text-blue-700, .text-blue-800, .text-blue-900 {
  color: #475569 !important;
}
:root {
  --cerulean: #0095c9;
  --gris-claro: #f7f7fa;
  --gris-medio: #e5e7eb;
  --gris-oscuro: #6b7280;
}

html {
  scroll-behavior: smooth;
  background: var(--gris-claro);
}

body {
  background-color: var(--gris-claro);
  color: #222;
}

.animate-in {
  animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.backdrop-blur-md {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Removed prototype 'patios-version-b' CSS. Keep carousel controls clickable above overlays. */

/* Ensure carousel arrows sit above potential fixed widgets and accept pointer events */
#galeria-infraestructura .absolute.left-4, #galeria-infraestructura .absolute.right-4,
#galeria-infraestructura .absolute.left-3, #galeria-infraestructura .absolute.right-3,
#galeria-infraestructura .absolute {
  z-index: 9999 !important;
  pointer-events: auto !important;
}

/* --- MEJORAS DE CARRUSEL Y MINIATURAS --- */
.card, .patio-card, .thumb-card, .bg-white, .rounded-xl, .rounded-2xl {
  background: #fff !important;
  border-radius: 1.5rem !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07) !important;
  border: 1.5px solid var(--gris-medio) !important;
}

section, .section, .max-w-7xl, .max-w-6xl, .max-w-4xl {
  background: transparent !important;
}

/* Títulos */
h1, h2, h3, h4, .font-black, .font-bold {
  color: var(--cerulean) !important;
  letter-spacing: 0.5px;
}

/* Botones principales */
button, .btn {
  background: var(--cerulean) !important;
  color: #fff !important;
  border-radius: 1rem !important;
  box-shadow: 0 2px 8px #0095c933 !important;
  border: none !important;
  font-weight: 700 !important;
  transition: background 0.2s, color 0.2s;
}
button:hover, .btn:hover {
  background: #0077a6 !important;
  color: #fff !important;
}

/* Inputs y campos */
input, textarea, select {
  background: #fff !important;
  border: 1.5px solid var(--gris-medio) !important;
  border-radius: 1rem !important;
  color: #222 !important;
  box-shadow: none !important;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--cerulean) !important;
  outline: none !important;
}

/* Enlaces */
a {
  color: var(--cerulean) !important;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover {
  color: #0077a6 !important;
  text-decoration: underline;
}

/* Footer y barra superior */
footer, header, nav {
  background: #fff !important;
  color: #475569 !important;
  border-top: 2px solid var(--gris-medio) !important;
  border-bottom: 2px solid var(--gris-medio) !important;
}

footer a, footer .font-black, footer .font-bold, footer strong, footer h3, footer h4 {
  color: var(--cerulean) !important;
}

footer .text-blue-400, footer .text-blue-100, footer .text-blue-200, footer .text-blue-300, footer .text-blue-500, footer .text-blue-600, footer .text-blue-700, footer .text-blue-800, footer .text-blue-900 {
  color: var(--cerulean) !important;
}

footer .text-zinc-300, footer .text-neutral-400, footer .text-gray-400, footer .text-slate-400 {
  color: #6b7280 !important;
}

/* Separadores y detalles */
.border-zinc-100, .border-zinc-200, .border-zinc-300, .border-zinc-400, .border-zinc-50 {
  border-color: var(--gris-medio) !important;
}

/* Sombra general para tarjetas */
.shadow-xl, .shadow-2xl, .shadow-lg, .shadow-md {
  box-shadow: 0 4px 24px rgba(0,0,0,0.07) !important;
}
#galeria-infraestructura {
  background: #f7f7fa;
  border-radius: 2rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.07);
  padding: 2.5rem 1.5rem 3rem 1.5rem;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}

#galeria-infraestructura .thumbnails {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #fff;
  padding: 1.2rem 0.7rem;
  border-radius: 1.5rem;
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
  max-height: 540px;
  overflow-y: auto;
}

#galeria-infraestructura .thumbnail {
  width: 80px;
  height: 48px;
  border-radius: 0.9rem;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.10);
  border: 2.5px solid #e5e7eb;
  cursor: pointer;
  transition: border 0.2s, transform 0.2s, box-shadow 0.2s;
  background: #fff;
  filter: grayscale(0.08) brightness(0.98);
}

#galeria-infraestructura .thumbnail.selected,
#galeria-infraestructura .thumbnail:hover {
  border: 2.5px solid #0095c9;
  box-shadow: 0 0 0 4px #0095c933;
  transform: scale(1.09);
  filter: none;
}

#galeria-infraestructura .main-image {
  border-radius: 1.25rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  background: #fff;
  max-width: 900px;
  max-height: 480px;
  object-fit: cover;
  width: 100%;
  height: 100%;
  border: 4px solid #0095c933;
  transition: box-shadow 0.3s, border 0.3s;
}

#galeria-infraestructura .carousel-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 16px #0095c944;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  font-size: 1.7rem;
  color: #0095c9;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  z-index: 20;
}
#galeria-infraestructura .carousel-controls:hover {
  background: #0095c9;
  color: #fff;
  box-shadow: 0 4px 24px #0095c977;
}

#galeria-infraestructura .carousel-caption {
  margin-top: 1.5rem;
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 2px 18px #0095c922;
  padding: 1.25rem 1.5rem 1.25rem 1.5rem;
  font-size: 1.25rem;
  color: #222;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: #6b7280;
}

#galeria-infraestructura .carousel-caption strong {
  color: #0095c9;
  font-size: 1.45rem;
  text-shadow: 0 2px 8px #0095c944;
}

@media (max-width: 900px) {
  #galeria-infraestructura {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    gap: 1.5rem;
  }
  #galeria-infraestructura .thumbnails {
    flex-direction: row;
    max-width: 100vw;
    max-height: 90px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0.5rem 0.5rem;
    margin-bottom: 0.5rem;
  }
}

/* Target prev/next buttons specifically to ensure visibility */
#galeria-infraestructura button[onclick="prevSlide()"],
#galeria-infraestructura button[onclick="nextSlide()"] {
  z-index: 10000 !important;
  pointer-events: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(0,0,0,0.55) !important;
  color: #fff !important;
  border: none !important;
}

/* Thumbnails column and improved gallery card styling */
#thumbnails-column { display: block; }
#thumbnails-container button {
  width: 88px !important;
  height: 64px !important;
  overflow: hidden !important;
  border-radius: 12px !important;
  border: 2px solid transparent !important;
  box-shadow: 0 12px 30px rgba(2,6,23,0.06) !important;
}

#thumbnails-container button img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display:block !important;
}

/* active thumb */
#thumbnails-container button[aria-pressed="true"] {
  transform: translateY(-3px) !important;
  border-color: #1F4A86 !important;
}

@media(max-width:767px){
  #thumbnails-column { display:none; }
  #thumbnails-container { display:flex; gap:8px; overflow-x:auto; }
}

/* --- Patios: diseño inspirado en la imagen proporcionada --- */
#patios-seccion {
  /* Fondo claro en lugar del degradado azul */
  background: #fbfdff !important;
  padding-top: 3.5rem !important;
  padding-bottom: 3.5rem !important;
}

#patios-seccion .patios-title, #patios-seccion h2 {
  color: #123d6b !important; /* Título en azul oscuro sobre fondo claro */
  font-size: 3.6rem !important;
  text-align: center !important;
  font-weight: 900 !important;
  font-style: italic !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  margin-bottom: 1.25rem !important;
}

#patios-seccion .patios-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 2.5rem !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 1.5rem !important;
}

#patios-seccion .patio-card {
  display: flex !important;
  align-items: center !important;
  gap: 1.5rem !important;
  background: #ffffff !important;
  border-radius: 1.5rem !important;
  padding: 2rem !important;
  box-shadow: 0 30px 60px rgba(2,6,23,0.06) !important;
  border: 1px solid rgba(2,6,23,0.04) !important;
}

#patios-seccion .patio-icon {
  flex: 0 0 110px !important;
  width: 110px !important;
  height: 110px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg,#2AA9E0,#1F4A86) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 14px 40px rgba(31,74,134,0.12) !important;
}

#patios-seccion .patio-card h4,
#patios-seccion .patio-card .patio-titulo {
  color: #123d6b !important;
  font-size: 1.4rem !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  font-style: italic !important;
  margin: 0 !important;
}

#patios-seccion .patio-card p {
  color: #475569 !important;
  margin: 0 !important;
}

@media (max-width: 900px) {
  #patios-seccion .patios-grid { grid-template-columns: 1fr !important; }
  #patios-seccion .patio-card { flex-direction: row !important; }
  #patios-seccion .patio-icon { width: 84px !important; height: 84px !important; }
  #patios-seccion .patios-title { font-size: 2.2rem !important; }
}

/* Thumbnail card layout (Opción C) */
#thumbnails-column { display:block; }
.thumb-card { border-radius: 1rem !important; }
#thumbnails-container { padding-right: 4px; }
#thumbnails-container button { display:block; width:100% !important; height:96px !important; border-radius:14px !important; padding:0 !important; overflow:hidden !important; }
#thumbnails-container button img { width:100% !important; height:100% !important; object-fit:cover !important; object-position:center center !important; display:block !important; }
#thumbnails-container::-webkit-scrollbar { width:8px; }
#thumbnails-container::-webkit-scrollbar-thumb { background: rgba(31,74,134,0.12); border-radius:8px; }

/* Make main carousel column vertically centered relative to the thumbnail card */
.max-w-7xl > .flex-1 { display:flex; flex-direction:column; justify-content:center; }

/* Carousel description: make card wider and text larger */
.mt-6.bg-white.rounded-xl {
  max-width: 1100px !important;
  padding: 1.25rem !important;
}

#slide-title { font-size: 1.4rem !important; }
#slide-description { font-size: 1rem !important; color: #475569 !important; }

@media(min-width: 768px) {
  #slide-title { font-size: 1.8rem !important; }
  #slide-description { font-size: 1.05rem !important; }
}

@media (max-width: 767px) {
  #thumbnails-column { display:none; }
}

/* Responsive fixes: mobile layout and thumbnail behavior */
@media (max-width: 900px) {
  /* Ensure the thumbnail card is hidden on smaller screens */
  .thumb-card { display: none !important; }

  /* Show thumbnails as a horizontal scroller under the carousel */
  #thumbnails-container { display: flex !important; gap: 10px !important; overflow-x: auto !important; padding: 8px 12px !important; max-width: 100% !important; }
  #thumbnails-container button { height: 64px !important; width: 120px !important; flex: 0 0 auto !important; border-radius: 12px !important; }

  /* Make carousel full width and responsive */
  #carousel-container { max-width: 100% !important; margin: 0 auto !important; aspect-ratio: 16/9; }
  #carousel-image { width: 100% !important; height: auto !important; object-fit: cover !important; object-position: center center !important; }

  /* Description card should scale to viewport and center */
  .mt-6.bg-white.rounded-xl { max-width: 95% !important; margin: 18px auto !important; padding: 1rem !important; }

  /* Reduce oversized paddings on small screens */
  .max-w-7xl { padding-left: 12px !important; padding-right: 12px !important; }

  /* Controls visible and tappable on mobile */
  #galeria-infraestructura button[onclick="prevSlide()"],
  #galeria-infraestructura button[onclick="nextSlide()"] {
    width: 44px !important; height: 44px !important; font-size: 18px !important;
  }
}

/* debug badge removed */

/* ==================== CSS MOVIDO DEL HTML ==================== */

/* Estilos para mensajes de estado del formulario de contacto */
.mensaje-estado {
    margin-top: 20px;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    display: none;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mensaje-exito {
    background-color: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 2px solid rgba(34, 197, 94, 0.4);
}

.mensaje-error {
    background-color: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 2px solid rgba(239, 68, 68, 0.4);
}

.mensaje-enviando {
    background-color: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 2px solid rgba(59, 130, 246, 0.4);
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Animaciones para timeline de historia */
.timeline-item {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease-out;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Optimización para modo landscape en móviles */
@media only screen and (max-height: 500px) and (orientation: landscape) {
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    #hero-video {
        height: 80vh !important;
    }

    #modal-cotizador .bg-white {
        max-height: 85vh;
        overflow-y: auto;
    }

    footer {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Contenedor principal del carrusel */
.social-carousel-container {
    max-width: 1000px;
    margin: 50px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.social-carousel-container h2 {
    color: #333;
    margin-bottom: 25px;
    font-size: 24px;
}

/* Animación para clicks en elementos de navegación */
@keyframes navClick {
    0% { transform: translateY(0); opacity: 1; }
    40% { transform: translateY(-6px) scale(1.02); opacity: 0.98; }
    100% { transform: translateY(0); opacity: 1; }
}
.nav-click-anim {
    animation: navClick 360ms cubic-bezier(.2,.8,.2,1);
}

.widget-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

@media (max-width: 600px) {
    .social-carousel-container {
        margin: 20px;
        padding: 10px;
    }
}

.temperaturas-separator {
    display: none !important;
}

/* Animaciones glow y float */
@keyframes glow {
    0%,100% { box-shadow: 0 0 32px 8px #C5943E44, 0 0 0 0 #529aff; }
    50% { box-shadow: 0 0 64px 16px #C5943E99, 0 0 16px 4px #59afffd0; }
}
.animate-glow {
    animation: glow 3s ease-in-out infinite;
}
@keyframes float-x {
    0%,100% { transform: translateX(0); }
    50% { transform: translateX(20px); }
}
.animate-float-x { animation: float-x 4s ease-in-out infinite; }
@keyframes float-y {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-18px); }
}
.animate-float-y { animation: float-y 5s ease-in-out infinite; }

/* Separator de temperaturas */
.temperaturas-separator {
    display: none;
    position: absolute;
    width: 4px;
    height: 36px;
    background: #1F4A86;
    border-radius: 4px;
    z-index: 20;
}
@media(min-width:768px) {
    .temperaturas-separator { display: block; }
}

/* FAB y chatbot styles */
:root {
    --bc-pri: #f97316;
    --bc-acc: #1e40af;
    --bc-bg: #fff;
    --bc-surf: #f8fafc;
    --bc-bdr: #e2e8f0;
    --bc-txt: #1e293b;
    --bc-ubg: #1e40af;
}

#bc-fab {
    position: fixed;
    bottom: 104px;
    right: 32px;
    width: 72px;
    height: 72px;
    background: transparent;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 900;
    transition: transform .2s;
    padding: 0;
    overflow: visible;
}

#bc-fab:hover {
    transform: scale(1.1);
}

#bc-fab img.bc-truck {
    width: 72px;
    height: 72px;
    object-fit: contain;
    transition: opacity .2s;
    animation: bc-float 3s ease-in-out infinite;
    display: block;
}

#bc-fab .bc-ic-cls {
    display: none;
    width: 44px;
    height: 44px;
    background: var(--bc-pri);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
}

#bc-fab .bc-ic-cls svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}

#bc-fab.open img.bc-truck {
    display: none;
}

#bc-fab.open .bc-ic-cls {
    display: flex;
}

@keyframes bc-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

/* Pulse ring behind FAB */
#bc-ring {
    position: fixed;
    bottom: 104px;
    right: 32px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    z-index: 99997;
    pointer-events: none;
}

#bc-ring::before,
#bc-ring::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid rgba(249, 115, 22, .4);
    animation: bc-ripple 2.5s infinite;
}

#bc-ring::after {
    animation-delay: 1.25s;
    border-color: rgba(30, 64, 175, .35);
}

@keyframes bc-ripple {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Bubble badge */
#bc-badge {
    position: fixed;
    bottom: 104px;
    right: 32px;
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    color: #fff;
    padding: 9px 15px;
    border-radius: 14px 14px 4px 14px;
    font-size: .82rem;
    font-family: 'Nunito', 'Segoe UI', sans-serif;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(30, 64, 175, .4);
    z-index: 899;
    animation: bc-fadein .5s ease;
    cursor: pointer;
    max-width: 200px;
    line-height: 1.4;
}

#bc-badge::after {
    content: '';
    position: absolute;
    bottom: -7px;
    right: 14px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-top: 7px solid #1e3a8a;
}

@keyframes bc-fadein {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Window */
#bc-win {
    position: fixed;
    bottom: 108px;
    right: 32px;
    width: 400px;
    height: 580px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, .12), 0 0 0 1px rgba(0, 0, 0, .04);
    display: flex;
    flex-direction: column;
    z-index: 99999;
    overflow: hidden;
    transform: scale(.92) translateY(28px);
    opacity: 0;
    pointer-events: none;
    transition: transform .32s cubic-bezier(.34, 1.56, .64, 1), opacity .26s ease;
    font-family: 'Nunito', 'Segoe UI', Tahoma, sans-serif;
}

#bc-win.open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: all;
}

@media(max-width:460px) {
    #bc-win {
        width: calc(100vw - 12px);
        bottom: 75px;
        right: 6px;
        left: 6px;
        height: 78vh;
        max-height: 680px;
        border-radius: 16px;
    }

    #bc-fab,
    #bc-ring {
        bottom: 8px;
        right: 8px;
        width: 56px;
        height: 56px;
    }

    #bc-fab img.bc-truck {
        width: 56px;
        height: 56px;
    }

    #bc-badge {
        bottom: 70px;
        right: 8px;
        font-size: .7rem;
        padding: 6px 10px;
        max-width: 160px;
    }

    #bc-hdr {
        padding: 10px 12px;
        gap: 8px;
    }

    .bc-av {
        width: 32px;
        height: 32px;
        border-width: 1.5px;
    }

    .bc-hi {
        gap: 1px;
    }

    .bc-hn {
        font-size: .76rem;
    }

    .bc-hr {
        font-size: .64rem;
    }

    .bc-dot {
        width: 5px;
        height: 5px;
        margin-right: 3px;
    }

    .bc-hbtn {
        width: 26px;
        height: 26px;
        font-size: .7rem;
        border-radius: 6px;
    }

    #bc-msgs {
        padding: 14px 12px;
        gap: 12px;
    }

    .bc-bub {
        font-size: .8rem;
        padding: 10px 13px;
        border-radius: 16px;
        line-height: 1.5;
    }

    .bc-msg {
        gap: 8px;
        margin-bottom: 2px;
    }

    .bc-mav {
        width: 30px;
        height: 30px;
        font-size: .8rem;
    }

    #bc-faqs {
        max-height: 85px;
        padding: 6px;
        gap: 4px;
        border-top: 1px solid #e5e7eb;
    }

    .bc-chip {
        font-size: .56rem;
        padding: 4px 7px;
        border-radius: 10px;
        font-weight: 600;
        line-height: 1.3;
    }

    #bc-inp-area {
        padding: 10px 12px;
        gap: 8px;
    }

    #bc-inp {
        font-size: .78rem;
        padding: 9px 12px;
        border-radius: 13px;
        border-width: 1.5px;
        line-height: 1.4;
    }

    #bc-snd {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    #bc-snd svg {
        width: 17px;
        height: 17px;
    }

    #bc-foot {
        font-size: .64rem;
        padding: 6px 0 8px;
    }
}

@media(max-width:380px) {
    #bc-win {
        height: 76vh;
        max-height: 620px;
        width: calc(100vw - 10px);
        right: 5px;
        left: 5px;
        border-radius: 14px;
    }

    #bc-fab,
    #bc-ring {
        width: 52px;
        height: 52px;
    }

    #bc-fab img.bc-truck {
        width: 52px;
        height: 52px;
    }

    #bc-hdr {
        padding: 9px 10px;
        gap: 7px;
    }

    .bc-av {
        width: 30px;
        height: 30px;
    }

    .bc-hn {
        font-size: .73rem;
    }

    .bc-hr {
        font-size: .62rem;
    }

    .bc-hbtn {
        width: 24px;
        height: 24px;
        font-size: .68rem;
    }

    #bc-msgs {
        padding: 12px 10px;
        gap: 10px;
    }

    .bc-bub {
        font-size: .76rem;
        padding: 9px 11px;
        border-radius: 15px;
    }

    .bc-mav {
        width: 28px;
        height: 28px;
    }

    #bc-faqs {
        max-height: 75px;
        padding: 5px;
        gap: 3px;
    }

    .bc-chip {
        font-size: .54rem;
        padding: 3px 6px;
        border-radius: 9px;
    }

    #bc-inp-area {
        padding: 9px 10px;
    }

    #bc-inp {
        font-size: .76rem;
        padding: 8px 11px;
        border-radius: 12px;
    }

    #bc-snd {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    #bc-snd svg {
        width: 16px;
        height: 16px;
    }

    #bc-foot {
        font-size: .62rem;
        padding: 5px 0 7px;
    }
}

/* ── Header ── */
#bc-hdr {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #3b82f6 100%);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(30, 64, 175, 0.15);
}

#bc-hdr::before {
    content: '';
    position: absolute;
    left: -40px;
    top: -40px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, .08);
    border-radius: 50%;
    filter: blur(20px);
}

#bc-hdr::after {
    content: '';
    position: absolute;
    right: -30px;
    top: -30px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, .06);
    border-radius: 50%;
    filter: blur(15px);
}

.bc-av {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, .35);
    background: transparent;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .12);
    position: relative;
    z-index: 1;
}

.bc-av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bc-hi {
    flex: 1;
    position: relative;
    z-index: 1;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bc-hn {
    color: #fff;
    font-weight: 700;
    font-size: .85rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    line-height: 1.2;
}

.bc-hr {
    color: rgba(255, 255, 255, .9);
    font-size: .7rem;
    font-weight: 500;
    line-height: 1.2;
    display: flex;
    align-items: center;
}

.bc-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    margin-right: 5px;
    animation: bc-blink 2s infinite;
    box-shadow: 0 0 6px rgba(74, 222, 128, .5);
}

@keyframes bc-blink {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

.bc-hbtn {
    background: rgba(255, 255, 255, .16);
    border: none;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    color: #fff;
    font-size: .8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(8px);
}

.bc-hbtn:hover {
    background: rgba(255, 255, 255, .25);
    transform: scale(1.05);
}

/* ── Messages ── */
#bc-msgs {
    flex: 1;
    overflow-y: auto;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: linear-gradient(to bottom, #f9fafb, #f3f4f6);
    scroll-behavior: smooth;
}

#bc-msgs::-webkit-scrollbar {
    width: 6px;
}

#bc-msgs::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 6px;
}

#bc-msgs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 6px;
    transition: background .2s;
}

#bc-msgs::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ── Bubbles ── */
.bc-msg {
    display: flex;
    gap: 10px;
    max-width: 90%;
    margin-bottom: 4px;
}

.bc-msg.bot {
    align-self: flex-start;
}

.bc-msg.usr {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.bc-bub {
    padding: 12px 16px;
    border-radius: 20px;
    font-size: .875rem;
    line-height: 1.6;
    color: var(--bc-txt);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
}

.bc-msg.bot .bc-bub {
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-bottom-left-radius: 6px;
}

.bc-msg.usr .bc-bub {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    color: #fff;
    border-bottom-right-radius: 6px;
    box-shadow: 0 2px 12px rgba(30, 64, 175, 0.3);
}

.bc-mav {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    flex-shrink: 0;
    align-self: flex-end;
    overflow: hidden;
    border: 2px solid rgba(0, 0, 0, .06);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

.bc-mav.bot-av {
    background: transparent;
}

.bc-mav.bot-av img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bc-msg.usr .bc-mav {
    background: linear-gradient(135deg, #64748b, #475569);
    font-size: 1rem;
}

/* ── Typing ── */
.bc-typ {
    display: flex;
    gap: 4px;
    padding: 9px 13px;
}

.bc-typ span {
    width: 7px;
    height: 7px;
    background: #94a3b8;
    border-radius: 50%;
    animation: bc-bnc .9s infinite;
}

.bc-typ span:nth-child(2) {
    animation-delay: .15s;
}

.bc-typ span:nth-child(3) {
    animation-delay: .3s;
}

@keyframes bc-bnc {
    0%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-7px);
    }
}

/* ── FAQs ── */
#bc-faqs {
    padding: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    background: linear-gradient(to bottom, #fafafa, #ffffff);
    border-top: 1px solid #e2e8f0;
    max-height: 130px;
    overflow-y: auto;
    flex-shrink: 0;
}

#bc-faqs::-webkit-scrollbar {
    width: 4px;
}

#bc-faqs::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 4px;
}

#bc-faqs::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
    transition: background .2s;
}

#bc-faqs::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.bc-chip {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 5px 10px;
    font-size: .65rem;
    cursor: pointer;
    transition: all .2s ease;
    color: #475569;
    white-space: nowrap;
    font-family: inherit;
    font-weight: 600;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.bc-chip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.08), rgba(249, 115, 22, 0.03));
    opacity: 0;
    transition: opacity .2s;
}

.bc-chip:hover {
    background: linear-gradient(135deg, #fff7ed, #ffedd5);
    border-color: var(--bc-pri);
    color: var(--bc-pri);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(249, 115, 22, 0.18);
}

.bc-chip:hover::before {
    opacity: 1;
}

.bc-chip:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

/* ── Input ── */
#bc-inp-area {
    display: flex;
    padding: 14px 16px;
    gap: 10px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    align-items: flex-end;
    flex-shrink: 0;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.03);
}

#bc-inp {
    flex: 1;
    resize: none;
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 12px 16px;
    font-size: .875rem;
    font-family: inherit;
    line-height: 1.5;
    color: var(--bc-txt);
    background: #f9fafb;
    outline: none;
    max-height: 120px;
    transition: all .25s ease;
    font-weight: 500;
}

#bc-inp:focus {
    border-color: var(--bc-pri);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

#bc-inp::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

#bc-snd {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, var(--bc-pri), #ea580c);
    border: none;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all .25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

#bc-snd:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
    background: linear-gradient(135deg, #ea580c, #dc2626);
}

#bc-snd:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.3);
}

#bc-snd:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#bc-snd svg {
    width: 20px;
    height: 20px;
    fill: #fff;
    transition: transform .2s;
}

#bc-snd:hover svg {
    transform: translateX(2px);
}

#bc-foot {
    text-align: center;
    font-size: .69rem;
    color: #94a3b8;
    padding: 8px 0 10px;
    background: var(--bc-bg);
    flex-shrink: 0;
    font-family: inherit;
}

#bc-foot a {
    color: var(--bc-pri);
    text-decoration: none;
    font-weight: 700;
}

/* ── Config Panel ── */
#bc-cfg {
    position: absolute;
    inset: 0;
    background: var(--bc-bg);
    z-index: 20;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform .3s ease;
    overflow-y: auto;
}

#bc-cfg.open {
    transform: translateX(0);
}

#bc-cfg-hdr {
    background: linear-gradient(135deg, #1e3a8a, #1e40af);
    padding: 13px 16px;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

#bc-cfg-hdr button {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.1rem;
    font-family: inherit;
}

#bc-cfg-hdr h3 {
    flex: 1;
    font-size: .9rem;
    font-weight: 800;
}

.cfs {
    padding: 13px 15px;
    border-bottom: 1px solid #f1f5f9;
}

.cfs h4 {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #64748b;
    margin-bottom: 8px;
    font-weight: 800;
}

.cfs label {
    display: block;
    font-size: .78rem;
    color: #475569;
    margin-bottom: 3px;
    margin-top: 8px;
    font-weight: 700;
}

.cfs input,
.cfs textarea {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: .78rem;
    color: #1e293b;
    font-family: inherit;
    outline: none;
    background: #f8fafc;
    transition: border-color .2s;
    font-weight: 600;
}

.cfs input:focus,
.cfs textarea:focus {
    border-color: var(--bc-pri);
}

.cfs textarea {
    resize: vertical;
    min-height: 85px;
}

.cfq-ed {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.cfq-row {
    display: flex;
    gap: 5px;
    align-items: center;
}

.cfq-row input {
    flex: 1;
}

.cfq-row button {
    background: #fee2e2;
    border: none;
    border-radius: 6px;
    padding: 5px 8px;
    cursor: pointer;
    color: #ef4444;
    font-size: .75rem;
    font-family: inherit;
}

.btn-add {
    margin-top: 7px;
    background: #f0fdf4;
    border: 1.5px dashed #86efac;
    color: #16a34a;
    border-radius: 8px;
    padding: 7px;
    font-size: .76rem;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
    font-weight: 700;
}

.btn-add:hover {
    background: #dcfce7;
}

.btn-save {
    margin: 14px 15px;
    padding: 10px;
    background: var(--bc-pri);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: .86rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
}

.btn-save:hover {
    background: #ea6c0a;
}

/* Temperaturas separator styles */
.temperaturas-separator {
    display: none;
    position: absolute;
    width: 4px;
    height: 36px;
    background: #1F4A86;
    border-radius: 4px;
    z-index: 20;
}

@media(min-width:768px) {
    .temperaturas-separator {
        display: block;
    }
}