
/* =========================================================
   POLIS.INNOVA - CONTENIDO REAL V1 SOBRE PLANTILLA 5
   Archivo:
   /srv/stack-polisinnova/web/html/pruevapromocionesbot/demo5.css
   ========================================================= */

.p5-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 22px 90px;
}

.p5-center {
  text-align: center;
}

.p5-hero-title {
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: .92;
  letter-spacing: -.055em;
  color: #1f2937;
}

.p5-hero-text {
  margin: 24px auto 0;
  max-width: 880px;
  color: #57534e;
  font-size: 20px;
  line-height: 1.7;
}

.p5-home-hero {
  align-items: center;
}

.p5-bubble-stack {
  display: grid;
  gap: 58px;
}

.p5-bubble {
  min-height: 330px;
  padding: 48px;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  border-radius: 110px 36px 110px 36px;
  position: relative !important;
  overflow: hidden !important;
}

.p5-bubble.small {
  min-height: 300px;
  border-radius: 36px 100px 36px 100px;
}

.p5-bubble::after {
  opacity: .22 !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

.p5-bubble.small::after {
  transform: translateY(58px) !important;
  opacity: .16 !important;
}

.p5-bubble .float-card,
.p5-bubble .p5-float-wide {
  position: relative !important;
  z-index: 3 !important;
  inset: auto !important;
  width: min(760px, 92%) !important;
  margin: 0 auto !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.p5-bubble .float-card strong,
.p5-bubble .p5-float-wide strong {
  display: block;
  color: #1f2937 !important;
  font-size: clamp(24px, 3vw, 40px) !important;
  line-height: 1.08;
  margin-bottom: 12px;
}

.p5-bubble .float-card span,
.p5-bubble .p5-float-wide span {
  display: block;
  max-width: 660px;
  margin: 0 auto;
  color: #57534e !important;
  font-size: 17px;
  line-height: 1.55;
}

.p5-tab-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 660px;
  margin: 24px auto 0 !important;
}

.p5-mini-tab {
  display: grid;
  gap: 5px;
  padding: 14px;
  border-radius: 22px 12px 22px 12px;
  background: rgba(146,64,14,.09);
  border: 1px solid rgba(146,64,14,.20);
  color: #1f2937;
  font-weight: 900;
  text-decoration: none;
}

.p5-mini-tab:hover {
  background: rgba(146,64,14,.14);
}

.p5-mini-tab span {
  color: #92400e;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.p5-insurance-main {
  display: inline-flex;
  margin: 34px auto 0 !important;
  padding: 15px 20px;
  border-radius: 999px;
  background: #92400e;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  position: relative;
  z-index: 10;
}

.p5-grid-2,
.p5-grid-3,
.p5-grid-4 {
  display: grid;
  gap: 22px;
}

.p5-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.p5-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.p5-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.p5-card {
  padding: 28px;
  border: 1px solid rgba(31,41,55,.13);
  background: rgba(255,255,255,.62);
  box-shadow: 0 22px 60px rgba(31,41,55,.10);
  border-radius: 48px 22px 48px 22px;
}

.p5-card:nth-child(even) {
  border-radius: 22px 54px 22px 54px;
}

.p5-card h3 {
  margin: 0 0 10px;
  color: #1f2937;
  font-size: 27px;
  line-height: 1.1;
}

.p5-card p {
  color: #57534e;
  line-height: 1.6;
}

.p5-tag {
  display: inline-flex;
  width: fit-content;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(146,64,14,.10);
  border: 1px solid rgba(146,64,14,.22);
  color: #92400e;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.p5-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
  color: #57534e;
}

.p5-list li {
  position: relative;
  padding-left: 22px;
}

.p5-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #92400e;
  font-weight: 900;
}

.p5-safe-box {
  margin-top: 18px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(146,64,14,.08);
  border: 1px solid rgba(146,64,14,.18);
  color: #92400e;
  font-weight: 800;
}

.p5-risk-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #57534e;
  font-size: 12px;
  font-weight: 900;
  margin: 16px 0 7px;
}

.p5-risk-meter {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(31,41,55,.12);
}

.p5-risk-fill {
  height: 100%;
  width: var(--risk);
  border-radius: 999px;
  background: linear-gradient(90deg, #15803d, #fbbf24, #92400e);
}

.p5-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 24px;
}

.p5-filter {
  border: 1px solid rgba(31,41,55,.13);
  background: rgba(255,255,255,.62);
  color: #1f2937;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
}

.p5-filter.active {
  background: #92400e;
  color: #fff;
  border-color: #92400e;
}

.p5-contact-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 30px;
}

.p5-contact-link {
  display: inline-flex;
  margin: 8px 8px 0 0;
  padding: 12px 16px;
  border-radius: 999px;
  background: #92400e;
  color: white;
  font-weight: 900;
  text-decoration: none;
}

.p5-contact-link.secondary {
  background: rgba(146,64,14,.10);
  color: #92400e;
  border: 1px solid rgba(146,64,14,.22);
}

/* Pestaña lateral */
.p5-experience-tab {
  position: fixed;
  top: 205px;
  right: 0;
  z-index: 65;
  width: 350px;
  min-height: 330px;
  padding: 18px 18px 18px 68px;
  border-radius: 28px 0 0 28px;
  border: 1px solid rgba(146,64,14,.24);
  border-right: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(146,64,14,.14), transparent 30%),
    rgba(245,239,230,.96);
  box-shadow: 0 24px 80px rgba(31,41,55,.18);
  transform: translateX(calc(100% - 58px));
  transition: transform .35s ease, box-shadow .35s ease;
  backdrop-filter: blur(14px);
}

.p5-experience-tab:hover,
.p5-experience-tab:focus-within {
  transform: translateX(0);
  box-shadow: 0 30px 100px rgba(31,41,55,.24);
}

.p5-experience-tab::before {
  content: "Experiencias";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-weight: 900;
  letter-spacing: .08em;
  color: #fff;
  background: linear-gradient(180deg, #92400e, #fbbf24);
  border-radius: 28px 0 0 28px;
}

.p5-demo-pill {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(146,64,14,.10);
  border: 1px solid rgba(146,64,14,.22);
  color: #92400e;
  font-size: 11px;
  font-weight: 900;
}

.p5-tab-title {
  font-weight: 900;
  color: #1f2937;
  line-height: 1.1;
  margin-bottom: 12px;
}

.p5-quote {
  padding: 14px;
  border-radius: 22px;
  background: rgba(255,255,255,.58);
  border: 1px solid rgba(31,41,55,.10);
  color: #57534e;
  line-height: 1.5;
}

.p5-quote strong {
  display: block;
  color: #1f2937;
  margin-bottom: 6px;
}

/* Chat y popup */
.p5-chat-launcher {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  border: 0;
  border-radius: 999px;
  background: #92400e;
  color: white;
  padding: 15px 20px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 24px 70px rgba(31,41,55,.18);
}

.p5-chat-box {
  position: fixed;
  right: 22px;
  bottom: 88px;
  z-index: 70;
  width: min(390px, calc(100vw - 44px));
  display: none;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(31,41,55,.14);
  background: #f5efe6;
  box-shadow: 0 30px 100px rgba(31,41,55,.22);
}

.p5-chat-box.show {
  display: block;
}

.p5-chat-header {
  padding: 18px;
  background: rgba(255,255,255,.62);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.p5-chat-body {
  padding: 18px;
  display: grid;
  gap: 13px;
}

.p5-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(31,41,55,.42);
  backdrop-filter: blur(10px);
}

.p5-modal-backdrop.show {
  display: flex;
}

.p5-modal {
  position: relative;
  width: min(760px, 100%);
  max-height: 92vh;
  overflow: auto;
  padding: 32px;
  border-radius: 46px 24px 46px 24px;
  border: 1px solid rgba(31,41,55,.14);
  background: #f5efe6;
  box-shadow: 0 30px 100px rgba(31,41,55,.22);
}

.p5-close {
  border: 1px solid rgba(31,41,55,.14);
  background: rgba(255,255,255,.66);
  color: #1f2937;
  cursor: pointer;
  font-weight: 900;
  border-radius: 999px;
  padding: 8px 12px;
}

.p5-form {
  display: grid;
  gap: 15px;
  margin-top: 20px;
}

.p5-form label {
  display: grid;
  gap: 7px;
  color: #57534e;
  font-weight: 800;
  font-size: 14px;
}

.p5-form input,
.p5-form select,
.p5-form textarea {
  width: 100%;
  border: 1px solid rgba(31,41,55,.16);
  background: rgba(255,255,255,.76);
  color: #1f2937;
  border-radius: 16px;
  padding: 13px 14px;
  font: inherit;
}

.p5-form textarea {
  min-height: 105px;
  resize: vertical;
}

.p5-status {
  display: none;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 800;
  margin-top: 14px;
}

.p5-status.ok {
  display: block;
  color: #166534;
  background: rgba(34,197,94,.13);
  border: 1px solid rgba(34,197,94,.28);
}

.p5-status.error {
  display: block;
  color: #9f1239;
  background: rgba(251,113,133,.13);
  border: 1px solid rgba(251,113,133,.28);
}

@media (max-width: 980px) {
  .p5-home-hero,
  .p5-grid-2,
  .p5-grid-3,
  .p5-grid-4,
  .p5-tab-row,
  .p5-contact-box {
    grid-template-columns: 1fr !important;
  }

  .p5-experience-tab {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    min-height: auto;
    margin: 22px;
    padding: 18px;
    transform: none;
    border-radius: 30px;
    border-right: 1px solid rgba(146,64,14,.24);
  }

  .p5-experience-tab::before {
    display: none;
  }
}
