/* ======== VARIABLES ======== */
:root {
  --color-primary: #1d4ed8;
  --color-secondary: #f59e0b;
  --color-accent: #10b981;
  --color-bg-main: #f7fafc;
  --color-sidebar: #2d3748;
  --color-topbar-mobile: #2d3748;
  --color-card-bg: #fff;
  --color-card-border: #e2e8f0;
  --color-text-main: #22223b;
  --color-text-sidebar: #e2e8f0;
  --sidebar-width-desktop: 250px;
  --topbar-height-mobile: 56px;
  --color-primary-light: rgba(29, 78, 216, 0.3);
  --color-secondary-light: rgba(245, 158, 11, 0.4);
  --color-accent-light: rgba(16, 185, 129, 0.4);
  --color-danger-light: rgba(239, 68, 68, 0.4);
}

/* ======== GLOBAL RESETS & DEFAULTS ======== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background: var(--color-bg-main);
  color: var(--color-text-main);
  line-height: 1.5;
  overflow-x: hidden;
}

/* ======== LAYOUT SPA GENERAL ======== */
#main-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

#sidebar {
  width: var(--sidebar-width-desktop);
  background: var(--color-sidebar);
  color: var(--color-text-sidebar);
  display: flex; /* Visible en desktop por defecto */
  flex-direction: column;
  padding: 1.2rem 1rem 1rem 1rem;
  box-shadow: 1px 0 18px 0 rgba(30,41,59,0.08);
  z-index: 200; /* Z-index alto para desktop también */
  transition: transform 0.3s ease-in-out, width 0.3s ease-in-out;
  position: relative;
}

#main-content-area {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#app-container, main#app-container {
  flex: 1 1 0;
  min-height: 0;
  padding: 28px 20px;
  overflow-y: auto;
  z-index: 1;
}

#sidebar a {
  color: var(--color-text-sidebar);
  text-decoration: none;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  font-weight: 500;
  gap: 10px;
}

#sidebar a.active,
#sidebar a:hover {
  background: var(--color-primary);
  color: #fff;
}

#sidebar svg, #sidebar .nav-icon {
  height: 1.3em;
  width: 1.3em;
  flex-shrink: 0;
}

/* ======== BARRA SUPERIOR PARA MÓVILES ======== */
#mobile-topbar {
  display: none;
  height: var(--topbar-height-mobile);
  background-color: var(--color-topbar-mobile);
  color: var(--color-text-sidebar);
  padding: 0 15px;
  align-items: center;
  justify-content: space-between;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 45; 
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

#hamburger-button {
  background: none;
  border: none;
  color: var(--color-text-sidebar);
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
#mobile-topbar .logo-mobile img {
    max-height: calc(var(--topbar-height-mobile) - 20px);
    width: auto;
}

/* ======== RESPONSIVE LAYOUT ADJUSTMENTS ======== */
@media (max-width: 900px) {
  #sidebar {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 280px;
    transform: translateX(-100%);
    z-index: 200; /* Z-INDEX CORREGIDO: Mayor que el overlay (199) */
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    padding: 0;
  }
#sidebar.open {
  display: flex !important;
}

  #sidebar.open {
    transform: translateX(0);
  }

  /* Reglas para SCROLL en el menú */
  #sidebar #main-nav {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1.2rem 1rem;
  }
  #sidebar #user-info-nav {
    padding: 0 1rem 1rem 1rem;
  }

  #mobile-topbar {
    display: flex;
  }
  #main-content-area {
    padding-top: var(--topbar-height-mobile);
  }
  #app-container, main#app-container {
    padding: 20px 15px;
  }
}

@media (max-width: 600px) {
  #sidebar {
    width: 280px;
    min-width: 250px;
  }
  #app-container, main#app-container {
    padding: 15px 10px;
  }
}

/* Overlay para el menú en móvil */
#menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 280px; /* ancho del sidebar */
  width: calc(100% - 280px); /* solo cubre el fondo, no el menú */
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 199;
}

#menu-overlay.active {
  display: block;
}

/* ======== NOTIFICACIONES Y OVERLAYS ======== */
#notificaciones-campanita-container {
  position: fixed;
  top: 1.2rem;
  right: 1.2rem;
  z-index: 500;
}

#app-global-feedback-banner {
  position: fixed;
  top: 1rem;
  right: 1rem;
  padding: 1rem;
  border-radius: 0.375rem;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  z-index: 550;
  display: none;
  max-width: 400px;
}
.app-global-feedback.success { background: #d1fae5; border: 1px solid #6ee7b7; color: #065f46; }
.app-global-feedback.error   { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }
.app-global-feedback.info    { background: #dbeafe; border: 1px solid #93c5fd; color: #1e40af; }
.app-global-feedback.warning { background: #fef3c7; border: 1px solid #fcd34d; color: #92400e; }

#app-global-loading-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  color: white;
  flex-direction: column;
  gap: 1rem;
}
#app-global-loading-overlay .spinner {
  border: 4px solid rgba(255,255,255,0.3);
  border-top: 4px solid #2563eb;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ======== CARDS, TABLAS Y CONTENEDORES ======== */
.card {
  background: var(--color-card-bg);
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px 0 rgba(0,0,0,0.09), 0 1px 2px 0 rgba(0,0,0,0.07);
  margin-bottom: 1.3rem;
  border: 1px solid var(--color-card-border);
}
.card-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-card-border);
  font-size: 1.22rem;
  font-weight: 600;
  background: #f3f6fc;
}
.card-body {
  padding: 1.5rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  background: var(--color-card-bg);
}
.table th,
.table td {
  border: 1px solid var(--color-card-border);
  padding: 0.65rem 1rem;
  text-align: left;
}
.table th {
  background: #f1f5f9;
  font-weight: 600;
}

/* ======== FORMULARIOS ======== */
.form-group {
  margin-bottom: 1.1rem;
}
.form-label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 500;
  color: #2c3e50;
}
.form-control {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #cbd5e0;
  border-radius: 0.375rem;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.06);
  font-size: 1rem;
  background: var(--color-card-bg);
  color: var(--color-text-main);
}
.form-control:focus {
  border-color: var(--color-primary);
  outline: 2px solid transparent;
  box-shadow: 0 0 0 2px var(--color-primary-light);
}

/* ======== BOTONES (Base) ======== */
.button {
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.18s, color 0.18s, border-color 0.18s, box-shadow 0.18s, transform 0.1s ease-out;
  font-size: 0.95rem;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  min-width: 100px;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}
.button:hover {
    box-shadow: 0 2px 4px 0 rgba(0,0,0,0.1);
}
.button:focus {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px var(--color-primary-light);
}
.button:active {
    transform: translateY(1px);
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.button-primary {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}
.button-primary:hover {
  background: #2563eb;
  border-color: #2563eb;
}

.button-secondary {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}
.button-secondary:hover {
  background: #d97706;
  border-color: #d97706;
}
.button-secondary:focus {
  box-shadow: 0 0 0 3px var(--color-secondary-light);
}

.button-accent, .button-success {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.button-accent:hover, .button-success:hover {
  background: #059669;
  border-color: #059669;
}
.button-accent:focus, .button-success:focus {
  box-shadow: 0 0 0 3px var(--color-accent-light);
}

.button-danger {
  background: #ef4444;
  color: #fff;
  border-color: #ef4444;
}
.button-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
}
.button-danger:focus {
  box-shadow: 0 0 0 3px var(--color-danger-light);
}

.button-neutral {
  background-color: #f3f4f6;
  color: #374151;
  border-color: #d1d5db;
}
.button-neutral:hover {
  background-color: #e5e7eb;
  border-color: #9ca3af;
}
.button-neutral:focus {
  box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.4);
}

/* ======== UTILIDADES Y COSAS EXTRA ======== */
.text-center { text-align: center; }
.text-gray-500 { color: #6b7280; }
.font-extrabold { font-weight: 800; }
.mt-auto { margin-top: auto; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.p-4 { padding: 1rem; }

@media (min-width: 768px) {
  .md\:p-6 {
    padding: 1.5rem;
  }
}

.space-x-2 > * + * {
  margin-left: 0.5rem;
}
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-1 { flex: 1 1 0%; }

/* Custom Scrollbar (Webkit only) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
  background: var(--color-bg-main);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

/* ======== ICONOS/IMÁGENES ======== */
img, svg {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

/* ======== Estilos específicos para modales (universales en index.html) ======== */
.modal-container *,
.modal-container input,
.modal-container select,
.modal-container button {
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif !important;
}
.modal-container h3,
.modal-container h2,
.modal-container label,
.modal-container .font-bold {
  font-weight: 700 !important;
  letter-spacing: 0.2px;
}

.modal-container .button {
    border-radius: 0.65rem !important;
    padding-top: 0.65rem !important;
    padding-bottom: 0.65rem !important;
    padding-left: 1.3rem !important;
    padding-right: 1.3rem !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    text-transform: none;
    letter-spacing: 0.02em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08) !important;
}
.modal-container .button:hover {
    box-shadow: 0 3px 6px rgba(0,0,0,0.12) !important;
    transform: translateY(-1px);
}
.modal-container .button:active {
    transform: translateY(0px);
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05) !important;
}

.modal-container .button-success {
  background: var(--color-accent) !important;
  color: #fff !important;
  border-color: var(--color-accent) !important;
}
.modal-container .button-success:hover {
  background: #059669 !important;
  border-color: #059669 !important;
}

.modal-container .button-neutral {
  background: #e5e7eb !important;
  color: #374151 !important;
  border-color: #b0b6be !important;
}
.modal-container .button-neutral:hover {
  background: #d1d5db !important;
  border-color: #828a95 !important;
}

.modal-container .button-primary {
  background: var(--color-primary) !important;
  color: #fff !important;
  border-color: var(--color-primary) !important;
}
.modal-container .button-primary:hover {
  background: #2563eb !important;
  border-color: #2563eb !important;
}

.modal-container .button-danger {
  background: #ef4444 !important;
  color: #fff !important;
  border-color: #ef4444 !important;
}
.modal-container .button-danger:hover {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
}

.modal-container .button-warning {
    background-color: var(--color-secondary) !important;
    color: #fff !important;
    border-color: var(--color-secondary) !important;
}
.modal-container .button-warning:hover {
    background-color: #d97706 !important;
    border-color: #d97706 !important;
}

.modal-container .shadow-2xl, .modal-container .shadow-xl {
  box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.15) !important;
}
.modal-container .bg-green-50 { background: #f0fdf4 !important; }
.modal-container .border-green-100 { border-color: #a7f3d0 !important; }

.modal-container input[type="number"],
.modal-container input[type="text"],
.modal-container textarea,
.modal-container select {
  background: #fff !important;
  font-size: 1rem;
  padding: 0.55rem 0.75rem !important;
  border-radius: 0.5rem !important;
  border: 1px solid #d1d5db !important;
}
.modal-container input:focus,
.modal-container select:focus,
.modal-container textarea:focus {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 2.5px var(--color-primary-light) !important;
}

.modal-container .rounded-xl { border-radius: 0.75rem !important; }
.modal-container .rounded-3xl { border-radius: 1rem !important; }

/* Corrección para botones en modales, asegurando que no hereden estilos conflictivos */
.modal-container button {
  display: inline-flex; /* Cambiado de block a inline-flex para que se ajuste al contenido */
  width: auto; /* Para que el botón no ocupe todo el ancho */
  text-align: center; /* Centrar el texto */
  justify-content: center;
  border: 1px solid #d1d5db; /* Hereda del .button base */
  background: #f3f4f6; /* Hereda del .button-neutral si no se especifica otro */
  padding: 0.6rem 1.2rem; /* Hereda del .button base */
  font-size: 0.95rem;
  border-bottom: 1px solid #d1d5db;
  transition: background 0.2s;
}

.modal-container button:hover {
  background-color: #e5e7eb;
}

#cliente_nombre_display {
  transition: all 0.3s ease;
}
/* Contenedor principal del slider */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    color: #fff;
    background-color: #1a5ca3; /* Color de respaldo */
}

/* Contenedor que se mueve */
.slider-wrapper {
    display: flex;
    width: 400%; /*! ESENCIAL: 100% para cada uno de los 3 slides + 1 clon */
    height: 100%;
    transition: transform 0.8s ease-in-out;
}

/* Después (scopeado al hero) */
.hero-slider .slide {
  position: relative;
  width: 100%;
  height: 100%;
  /* … */
}
.hero-slider .slide::before { /* overlay azul */ }
.hero-slider .slide-content { /* … */ }
.hero-slider .slide-1 { background-image: url('img/hero-1.jpg'); }
.hero-slider .slide-2 { background-image: url('img/hero-2.jpg'); }
.hero-slider .slide-3 { background-image: url('img/hero-3.jpg'); }
.hero-slider .slide.slide-con-imagen img { /* … */ }
.hero-slider .slide.slide-con-imagen::before { background-image: none; }

@media (max-width: 767px) {
  .hero-slider .slide.slide-con-imagen img { /* … */ }
}

/* ESTA ES LA REGLA CORREGIDA */
.slide.slide-con-imagen img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* <-- ESTE ES EL CAMBIO */
    object-position: cover; /* Opcional: asegura que esté centrado */
}
.slide-content {
    padding: 1rem;
    max-width: 90vw;
  }

  .slide-content h1 {
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .slide-content .lead {
    font-size: 1rem;
  }

  .slide-content .sub-offer {
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
  }

/* Desactiva el filtro azul para los slides que tienen una imagen de banner */
.slide.slide-con-imagen::before {
  background-image: none;
}
@media (max-width: 991px) {
  #tabla-planes th, #tabla-planes td {
    min-width: 220px;
    font-size: 0.96rem;
    padding: 1.2rem 0.4rem !important;
  }
  #tabla-planes .fs-4 {
    font-size: 1.25rem !important;
  }
  #tabla-planes .h3 {
    font-size: 1.5rem !important;
  }
  #tabla-planes .plan-button-select {
    font-size: 0.96rem !important;
    padding: 0.75rem 1.1rem !important;
  }
}
@media (max-width: 767px) {
  #tabla-planes th, #tabla-planes td {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 1.2rem 0.4rem !important;
    border-bottom: 1px solid #eee;
  }
  #tabla-planes thead, #tabla-planes tr {
    display: block;
    width: 100%;
  }
  #tabla-planes tbody {
    display: block;
    width: 100%;
  }
  #tabla-planes tr {
    margin-bottom: 1.8rem;
  }
}
.bloqueado-gold-anim {
  color: #bfa133 !important;
  font-weight: bold;
  animation: shake-candado 0.7s cubic-bezier(.36,.07,.19,.97) both;
}
@keyframes shake-candado {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}
/* ================================================== */
/* === AJUSTES PARA BANNERS EN CELULARES (MÓVIL) ==== */
/* ================================================== */

@media (max-width: 767px) {
  .hero-slider {
    height: 70vh; /* Altura más cómoda y atractiva visualmente */
    min-height: 400px;
  }

  .slide.slide-con-imagen img {
    width: 100%;
    height: 100%; /* Que cubra toda la altura disponible del contenedor */
    object-fit: cover;
    object-position: center center;
  }


}
/* ======== CHATBOT ======== */
.chat-fab {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #1a5ca3; /* Color de tu marca */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.chat-fab:hover {
    transform: scale(1.05);
}

.chat-window {
    position: fixed;
    bottom: 90px; /* Encima de la burbuja del fab */
    right: 20px;
    width: 350px;
    height: 450px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
    /* Estado inicial: oculto y escalado hacia abajo */
    transform: scale(0.7);
    transform-origin: bottom right; /* El origen de la transformación para la animación */
    opacity: 0;
    visibility: hidden; /* Esto asegura que no sea interactuable cuando está oculto */
    transition: all 0.3s ease-in-out; /* Transición para todas las propiedades */
}

.chat-window.open {
    transform: scale(1);
    opacity: 1;
    visibility: visible;
}

/* Estilos internos de la ventana del chat (ajusta colores y tamaños según tu diseño) */
.chat-header {
    background-color: #1a5ca3;
    color: white;
    padding: 0.8rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.chat-header h5 {
    margin: 0;
    font-size: 1.1rem;
}

.chat-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.chat-body {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    background-color: #f0f2f5;
}

.chat-bubble {
    padding: 0.6rem 1rem;
    border-radius: 18px;
    margin-bottom: 0.7rem;
    max-width: 80%;
    word-wrap: break-word;
    font-size: 0.9rem;
}

.user-bubble {
    background-color: #1a5ca3;
    color: white;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 6px;
}

.assistant-bubble {
    background-color: #e2e8f0;
    color: #333;
    align-self: flex-start;
    margin-right: auto;
    border-bottom-left-radius: 6px;
}

.typing-indicator {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0.6rem 1rem;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background-color: #ccc;
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1.0); }
}

.chat-footer {
    padding: 0.75rem;
    border-top: 1px solid #dee2e6;
    background-color: #fff;
    display: flex;
    gap: 0.5rem;
}

.chat-footer input {
    flex-grow: 1;
    border-radius: 20px;
    border: 1px solid #ced4da;
    padding: 0.5rem 1rem;
}

.chat-footer input:focus {
    outline: none;
    box-shadow: 0 0 0 0.25rem rgba(26, 92, 163, 0.25);
    border: 1px solid #1a5ca3;
}

.chat-footer button {
    background-color: #1a5ca3;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.chat-footer button:hover {
    background-color: #154a7c;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .chat-window {
        width: calc(100% - 40px); /* Full width minus margin on small screens */
        right: 20px;
        left: 20px;
        bottom: 90px;
        height: calc(80vh - 90px); /* Adjust height for better mobile viewing */
        max-height: 500px;
    }

    .chat-fab {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        bottom: 15px;
        right: 15px;
    }
}
/* Reemplaza la regla de estilo existente por esta en la sección <style> */

.feature-list li { 
    display: flex; 
    align-items: flex-start; 
    gap: 0.75rem; 
    margin-bottom: 0.7rem; /* <-- Espaciado reducido */
    font-size: 0.95rem; 
}
/* --- INICIO: Reemplaza estos estilos en tu CSS --- */

#pricing {
    background: linear-gradient(170deg, #fdfdff 0%, #f8f9fa 100%);
}

.pricing-card {
    border: 1px solid #dee2e6;
    border-radius: 1rem;
    background-color: white;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.pricing-card:hover {
     transform: translateY(-5px);
     box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.pricing-card.popular {
    border: 2px solid var(--hotel-orange);
    transform: scale(1.03);
    background-color: #fffaf2;
}

.pricing-card-header {
    padding: 1.75rem 1.5rem;
    text-align: center;
}

.pricing-card-header h3 {
    margin-bottom: 0.25rem;
}

.pricing-card-header .price-display {
    margin: 1.25rem 0;
}

.pricing-card .card-body {
    padding: 0 1.5rem;
}

.feature-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 0.25rem; /* Aumentado el espacio vertical */
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
}

.feature-list li:last-child {
    border-bottom: none;
}

.pricing-card .card-footer {
     background: transparent;
     border-top: 1px solid #e9ecef; /* Línea separadora */
     padding: 1.5rem;
     margin-top: auto;
}

/* Estilos para los botones de filtro de piso */
.floor-filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 9999px; /* Botón tipo píldora */
  font-weight: 500;
  font-size: 0.875rem; /* 14px */
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  background-color: #f1f5f9; /* bg-slate-100 */
  color: #475569; /* text-slate-600 */
  border: 1px solid transparent;
}

.floor-filter-btn:hover {
  background-color: #e2e8f0; /* bg-slate-200 */
  color: #1e293b; /* text-slate-800 */
}

/* Estilo para el botón ACTIVO */
.floor-filter-btn.active {
  background-color: #0ea5e9; /* bg-cyan-500 */
  color: white;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
/* Añade esto a tu archivo CSS principal */

.button-primary {
  background-color: #3b82f6; /* Azul */
  color: white;
  font-weight: bold;
}
.button-primary:hover {
  background-color: #2563eb;
}

.button-secondary {
  background-color: #f1f5f9; /* Gris muy claro */
  color: #475569; /* Gris oscuro */
  border: 1px solid #cbd5e1;
}
.button-secondary:hover {
  background-color: #e2e8f0;
  border-color: #94a3b8;
}

.button-warning {
  background-color: #f97316; /* Naranja */
  color: white;
  font-weight: bold;
}
.button-warning:hover {
  background-color: #ea580c;
}

.button-danger {
    background-color: #ef4444; /* Rojo */
    color: white;
    font-weight: bold;
}
.button-danger:hover {
    background-color: #dc2626;
}
/* --- Estilos para el Modal de Detalles de Compra --- */

/* Contenedor principal del modal */
.details-modal-dialog {
    background-color: #f8fafc; /* Un gris muy claro de fondo */
    width: 95%;
    max-width: 650px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Importante para que los bordes redondeados afecten a los hijos */
    border: 1px solid #e2e8f0;
}

/* Encabezado del modal */
.details-modal-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.details-modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e3a8a; /* Un azul más oscuro */
}

.details-modal-header .close-button {
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    transition: color 0.2s;
}

.details-modal-header .close-button:hover {
    color: #ef4444; /* Rojo al pasar el mouse */
}

/* Cuerpo del modal donde va la tabla */
.details-modal-body {
    padding: 1.5rem;
    background-color: #ffffff;
    overflow-y: auto;
    max-height: 65vh;
}

/* Tabla de detalles */
.details-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.details-table th {
    background-color: #f1f5f9;
    color: #475569;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #e2e8f0;
}

.details-table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

/* Efecto "cebra" para mejorar la legibilidad de la tabla */
.details-table tbody tr:nth-child(even) {
    background-color: #f8fafc;
}

/* Pie de página del modal con el total */
.details-modal-footer {
    padding: 1rem 1.5rem;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
    text-align: right;
    font-size: 1.25rem;
    font-weight: bold;
    color: #166534; /* Verde oscuro para el total */
}

.details-modal-footer span {
    margin-left: 0.5rem;
}
#whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(32, 129, 42, 0.18);
  background: #25d366;
  width: 60px;
  height: 60px;
  transition: box-shadow 0.2s, transform 0.2s;
}
#whatsapp-float:hover {
  box-shadow: 0 12px 30px rgba(37,211,102,0.24);
  transform: scale(1.07);
  background: #128c7e;
}
#whatsapp-float img {
  width: 38px;
  height: 38px;
  display: block;
}
@media (max-width: 600px) {
  #whatsapp-float {
    width: 52px;
    height: 52px;
    right: 12px;
    bottom: 12px;
  }
  #whatsapp-float img {
    width: 30px;
    height: 30px;
  }
}
#testimonials {
  background-color: #f9fafb; /* gris claro */
}

#testimonial-carousel .carousel-inner {
  background: transparent !important;
  min-height: 250px;
}

.testimonial-card {
  background-color: #fff !important;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.testimonial-card p {
  color: #555;
}
#testimonials {
  background: linear-gradient(to bottom right, #f8fcff, #ffffff, #f6fff8);
  padding-top: 5rem;
  padding-bottom: 5rem;
}


/* Animación suave para las tarjetas de Módulos */
#features .rounded-4 {
  transition: transform .18s ease, box-shadow .18s ease;
}
#features .rounded-4:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0,0,0,.12);
}
