/* styles.css */

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(180deg, #140021 0%, #22002f 100%);
  color: white;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: linear-gradient(90deg, #3b0764 0%, #22002f 100%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}


.logo {
  font-weight: bold;
  font-size: 1.2em;
  display: flex;
  align-items: center;
}

.logo span {
  margin-left: 8px;
}

nav a {
  color: #e2e8f0;
  text-decoration: none;
  margin-left: 20px;
  font-size: 0.9em;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #f0abfc;
}


nav .create-account {
  background-color: #a855f7;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  color: white;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

nav .create-account:hover {
  background-color: #9333ea;
}

.hero {
  text-align: center;
  padding: 60px 20px;
}

.hero h1 {
  font-size: 2em;
  line-height: 1.4;
}

.hero h1 .highlight {
  color: #f97316;
}

.hero h1 .highlight-alt {
  color: #ef4444;
}

.hero p {
  margin-top: 10px;
  color: #cbd5e1;
}

.hero-buttons {
  margin-top: 20px;
}

.hero-buttons button {
  margin: 0 10px;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.hero-buttons button:hover {
  transform: scale(1.05);
}

.hero-buttons .primary {
  background-color: #ec4899;
  color: white;
}

.hero-buttons .secondary {
  background-color: transparent;
  border: 1px solid white;
  color: white;
}

.section {
  padding: 60px 20px;
  text-align: center;
}

.section h2 {
  font-size: 1.5em;
  margin-bottom: 40px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature {
  background-color: #1e0140;
  padding: 20px;
  border-radius: 12px;
  text-align: left;
}

.feature h3 {
  font-size: 1em;
  margin-bottom: 10px;
  color: #fbbf24;
}

.feature p {
  font-size: 0.9em;
  color: #e5e7eb;
}

.pricing {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.plans {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 900px; /* aún más estrecho */
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
  box-sizing: border-box;
}

.plan {
  background-color: #1e0140;
  padding: 30px;
  border-radius: 12px;
  width: 35%;               /* cajas más estrechas */
  min-width: 280px;
  text-align: left;
  border: 2px solid #9333ea;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  box-sizing: border-box;
  color: white;
  position: relative;

  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
  max-width: 35%;
}

.plan.popular {
  border-color: #ec4899;
  position: relative; /* necesario para el ::before */
}

.plan.popular::before {
  content: "Popular";
  position: absolute;
  top: -12px;            /* sobresale 12px fuera arriba */
  right: 10px;          /* sobresale 12px fuera a la derecha */
  background: linear-gradient(45deg, #ec4899, #db2777);
  color: white;
  font-weight: 600;
  font-size: 0.75em;
  padding: 5px 14px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(219, 39, 119, 0.6);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  user-select: none;
  z-index: 10;
  white-space: nowrap;
}


.plan h3 {
  margin: 0 0 10px 0;
  font-size: 1.1em;
  color: #fff;
}

.plan .price {
  font-size: 1.8em;
  margin-bottom: 5px;
  white-space: nowrap;
  color: #fff;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 15px 0;
  font-size: 0.9em;
  color: #d1d5db;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.plan ul li {
  white-space: normal;
  line-height: 1.3em;
}

.plan ul li::before {
  content: "✔";
  color: #22c55e;
  font-weight: bold;
  margin-right: 8px;
}

.plan button {
  background-color: #ec4899;
  border: none;
  padding: 10px 18px;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.3s ease;
  align-self: start;
  margin-top: auto;
  min-width: 130px;
}

.plan button:hover {
  background-color: #db2777;
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .plan {
    width: 100%;
    min-width: unset;
    max-width: 100%;
    padding: 25px 20px;
    min-height: auto;
  }
}




.footer {
  background: #13002b;
  padding: 60px 20px;
  text-align: center;
}

.footer h2 {
  margin-bottom: 10px;
  font-size: 1.2em;
}

.footer p {
  color: #cbd5e1;
  font-size: 0.9em;
  margin-bottom: 30px;
}

.footer button {
  background-color: #ec4899;
  padding: 10px 20px;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.footer button:hover {
  background-color: #db2777;
  transform: scale(1.05);
}

.footer-bottom {
  padding: 20px;
  font-size: 0.8em;
  color: #94a3b8;
}

.footer-bottom a {
  color: #94a3b8;
  margin: 0 5px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  background-color: #1e0140;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 12px;
  border: none;
  border-radius: 6px;
  background-color: #2a003f;
  color: white;
  font-size: 1em;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #cbd5e1;
}

.contact-form select {
  background-color: #2a003f;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-button {
  background-color: #ec4899;
  color: white;
  border: none;
  padding: 12px 20px;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.3s ease;
}

.submit-button:hover {
  background-color: #db2777;
  transform: scale(1.05);
}

.success-message {
  color: #22c55e;
  margin-bottom: 15px;
}

.error-message {
  color: #f87171;
  margin-bottom: 15px;
}
html {
  scroll-behavior: smooth;
}

.primary,
.secondary,
a.primary,
a.secondary {
  display: inline-block;
  padding: 10px 20px;
  font-size: 1em;
  font-weight: bold;
  border-radius: 6px;
  text-align: center;
  min-width: 140px;
  text-decoration: none;
  transition: transform 0.2s ease, background-color 0.3s ease;
  box-sizing: border-box;
}

.primary,
a.primary {
  background-color: #ec4899;
  color: white;
  border: none;
}

.primary:hover,
a.primary:hover {
  background-color: #db2777;
  transform: scale(1.05);
}

.secondary,
a.secondary {
  background-color: transparent;
  border: 1px solid white;
  color: white;
}

.secondary:hover,
a.secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.client-form-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px;
  max-width: 1000px;
  margin: auto;
}

.form-card {
  background: linear-gradient(to right, #2b0756, #1b0439);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 0 25px rgba(0,0,0,0.2);
}

.styled-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  gap: 16px;
}

input, textarea {
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background-color: #3e0d67;
  color: #fff;
  font-size: 0.95rem;
}

input::placeholder,
textarea::placeholder {
  color: #bbb;
}

textarea {
  min-height: 100px;
}

.checkboxes {
  display: flex;
  gap: 20px;
  color: #ddd;
  font-size: 0.9rem;
}

.btn-orange {
  background: linear-gradient(to right, #ff6a00, #ff4800);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-orange:hover {
  opacity: 0.9;
}

.form-result {
  margin-top: 16px;
  color: #fff;
  font-size: 0.9rem;
}
.stats-box {
  background: linear-gradient(90deg, #3b0764 0%, #22002f 100%);
  border: 2px solid #9333ea;
  border-radius: 12px;
  padding: 20px 30px;
  max-width: 320px;
  color: #e2e8f0;
  font-weight: 600;
  font-size: 1rem;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-shadow: 0 0 15px rgba(147, 51, 234, 0.7);
  user-select: none;
}

.stats-box div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid #5b2976;
  font-size: 1rem;
  color: #cbd5e1;
}

.stats-box div:last-child {
  margin-bottom: 0;
  border-bottom: none;
}

.stats-box div span {
  font-weight: 700;
  color: #ec4899; /* rosa vivo para el número */
  min-width: 30px;
  text-align: right;
}

.container-general {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  padding: 20px;
}

.buscar-container {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start; /* 👈 Alinea a la izquierda */
  width: 100%;
  margin-top: 10px;
}

.buscar-container input[type="text"] {
  flex: 1;
  min-width: 200px;
  padding: 10px 14px;
  font-size: 15px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background-color: #fff;
  color: #111;
}

.buscar-container button {
  padding: 10px 20px;
  font-size: 15px;
  border-radius: 6px;
  border: none;
  background-color: #f87171;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.buscar-container button:hover {
  background-color: #dc2626;
}

.logo-img {
  height: 50px;
  vertical-align: middle;
}
.logo a {
  text-decoration: none;
  color: inherit;
}

.hotelguard-panel {
  padding: 30px;
  background: linear-gradient(to right, #1a0033, #29004a);
  border-radius: 20px;
  color: white;
  font-family: 'Segoe UI', sans-serif;
}

.top-bar h1 {
  font-size: 28px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
}

.top-bar .icono {
  width: 24px;
  margin-right: 8px;
}

.top-bar p {
  margin: 0;
  font-size: 14px;
  color: #aaa;
}

.search-bar {
  display: flex;
  gap: 10px;
  margin: 25px 0;
}

.search-bar input {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  border: none;
  font-size: 15px;
}

.search-bar .filter-btn {
  background: #3a005f;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 15px;
  cursor: pointer;
}

.btn-orange {
  background: #ff5722;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.stat-card {
  padding: 15px;
  border-radius: 14px;
  background: #25003a;
  color: white;
  text-align: center;
  box-shadow: 0 0 12px rgba(0,0,0,0.2);
}

.stat-card span {
  display: block;
  font-size: 14px;
  color: #ccc;
  margin-bottom: 5px;
}

.stat-card strong {
  font-size: 22px;
}

/* Estilos por categoría */
.stat-card.danger { background-color: #40001f; }
.stat-card.warning { background-color: #402000; }
.stat-card.yellow { background-color: #4a4000; }
.stat-card.violet { background-color: #2c004d; }
.stat-card.red { background-color: #5a0000; }
.stat-card.pink { background-color: #4a003a; }
.stat-card.neutral { background-color: #333; }
.stat-card.purple { background-color: #3e0072; }

.result-area {
  margin-top: 20px;
}

.result-area {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

/* Tarjeta cliente con efecto glassmorphism */
.cliente-card {
  background: rgba(31, 31, 31, 0.45);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 32px rgba(0, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: 0.3s;
}

.cliente-card:hover {
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
  background: rgba(31, 31, 31, 0.6);
}

.cliente-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.cliente-card h3 {
  margin: 0;
  font-size: 1.4em;
  color: #ffffff;
}

.badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75em;
  text-transform: uppercase;
  font-weight: bold;
  color: #fff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.1);
}

/* Categorías */
.categoria-fraude .badge { background-color: #e74c3c; }
.categoria-danos .badge { background-color: #f39c12; }
.categoria-problematicos .badge { background-color: #9b59b6; }
.categoria-robo .badge { background-color: #c0392b; }
.categoria-amenazas .badge { background-color: #e84393; }
.categoria-incumplimiento .badge { background-color: #7f8c8d; }
.categoria-falsificacion .badge { background-color: #8e44ad; }

/* Párrafos y contenido general */
.cliente-card p {
  color: #ccc;
  margin: 4px 0;
  line-height: 1.4em;
}

/* Botones */
.acciones-cliente {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}

.acciones-cliente button {
  padding: 6px 14px;
  border: none;
  border-radius: 12px;
  font-size: 0.9em;
  cursor: pointer;
  transition: 0.2s;
}

.btn-vermas {
  background-color: #00bcd4;
  color: white;
}

.btn-vermas:hover {
  background-color: #0097a7;
}

.btn-borrar {
  background-color: #e74c3c;
  color: white;
}

.btn-borrar:hover {
  background-color: #c0392b;
}
.btn-add {
    background-color: #8e44ad;
    color: #fff;
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin: 10px 0;
    transition: background-color 0.3s ease;
}
.btn-add:hover {
    background-color: #6e3f82;
}

.risk-bar-container {
  width: 100%;
  height: 20px;
  background: #444;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 10px;
}

.risk-bar {
  height: 100%;
  width: 0;
  border-radius: 10px;
  transition: width 1.2s ease;
}

.risk-bar.loading {
  background: #999; /* gris neutro inicial */
}

.risk-bar.low {
  background: #4caf50; /* verde */
}

.risk-bar.medium {
  background: #ff9800; /* naranja */
}

.risk-bar.high {
  background: #f44336; /* rojo */
}

.risk-text {
  margin-top: 8px;
  font-weight: 500;
  color: white;
}

body {
  background: url('assets/black1.png') center/cover no-repeat fixed;
  min-height: 100vh;
  color: #fff; /* para que el texto contraste */
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

