/* ═══════════════════════════════════════════════════
   PaPeExpress — Main CSS
   Paleta real del logo:
     Amarillo  #F5C200
     Rojo      #E8192C
     Azul      #0099D6
     Oscuro    #1a1a2a
═══════════════════════════════════════════════════ */

:root {
  --pe-yellow: #F5C200;
  --pe-red: #E8192C;
  --pe-blue: #0099D6;
  --pe-dark: #1a1a2a;
  --pe-text: #1a1a2a;
  --pe-light: #fff8d8;
  --pe-sky: #e5f8ff;
  --pe-grad: linear-gradient(135deg, #E8192C 0%, #F5C200 55%, #0099D6 100%);
  --pe-grad-red-yellow: linear-gradient(135deg, #E8192C, #F5C200);
  --pe-grad-blue: linear-gradient(135deg, #0099D6, #7ddcff);
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--pe-text);
  background: linear-gradient(180deg, #fffbea 0%, #ffffff 45%, #eef9ff 100%);
}

/* ── Navbar ─────────────────────────────────────── */

/* ── Navbar colorido sin perder logo ───────────────── */

.pe-navbar {
  background:
    linear-gradient(
      90deg,
      #0077B6 0%,
      #0099D6 32%,
      #F5C200 68%,
      #E8192C 100%
    );
  padding: .45rem 0;
  border-bottom: 4px solid #ffffff;
  box-shadow: 0 4px 18px rgba(0,0,0,.18);
}

.pe-navbar .container {
  min-height: 72px;
  display: flex;
  align-items: center;
}

.pe-navbar .navbar-brand {
  padding: 0;
  margin-right: 2rem;
  display: flex;
  align-items: center;
}

.navbar-logo-img {
  height: 72px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  background: #fff;
  padding: 5px;
  border-radius: 16px;
  border: 3px solid #ffffff;
  box-shadow: 0 5px 16px rgba(0,0,0,.25);
}

.navbar-nav {
  align-items: center;
}

.navbar-nav .nav-link {
  color: #fff !important;
  font-size: .92rem;
  font-weight: 800;
  border-radius: 50px;
  padding: .48rem .85rem !important;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0,0,0,.28);
  transition: .2s;
}

.navbar-nav .nav-link:hover {
  color: #1a1a2a !important;
  background: #fff;
  text-shadow: none;
}

.pe-navbar .btn {
  white-space: nowrap;
}

.pe-navbar .btn-outline-light {
  border: 2px solid #fff !important;
  color: #fff !important;
  font-weight: 800;
  background: rgba(255,255,255,.08);
}

.pe-navbar .btn-outline-light:hover {
  background: #fff !important;
  color: #E8192C !important;
}

.pe-navbar .btn-pe {
  background: #fff;
  color: #E8192C;
  font-weight: 900;
  border: 2px solid #fff;
  box-shadow: 0 6px 16px rgba(232,25,44,.25);
}

.pe-navbar .btn-pe:hover {
  background: #F5C200;
  color: #1a1a2a;
  border-color: #F5C200;
}

/* responsive navbar */
@media (max-width: 991px) {
  .pe-navbar .navbar-collapse {
    background: rgba(26,26,42,.96);
    border-radius: 18px;
    padding: 1rem;
    margin-top: .8rem;
  }

  .navbar-logo-img {
    height: 58px;
    max-width: 125px;
  }
}
/* ── Buttons ──────────────────────────────────── */

.btn-pe{
    background:linear-gradient(
      135deg,
      #E8192C,
      #F5C200
    );
    border:none;
    color:#fff;
    font-weight:700;
}

.btn-pe:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(232,25,44,.38);
  color: #fff;
}

.btn-pe-outline {
  border: 2px solid var(--pe-blue);
  color: var(--pe-blue);
  background: #fff;
  border-radius: 50px;
  font-weight: 700;
  transition: .2s;
}

.btn-pe-outline:hover {
  background: var(--pe-blue);
  color: #fff;
}

.text-pe-yellow {
  color: var(--pe-yellow) !important;
}

.text-pe-red {
  color: var(--pe-red) !important;
}

.text-pe-blue {
  color: var(--pe-blue) !important;
}

/* ── Hero ──────────────────────────────────────── */

.hero-section {
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 18%, rgba(245,194,0,.48), transparent 30%),
    radial-gradient(circle at 92% 18%, rgba(0,153,214,.45), transparent 30%),
    radial-gradient(circle at 12% 90%, rgba(232,25,44,.36), transparent 30%),
    linear-gradient(135deg, #fff7cf 0%, #ffffff 45%, #dff6ff 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 95px;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .45;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 2px solid var(--pe-yellow);
  box-shadow: 0 8px 24px rgba(245,194,0,.25);
  border-radius: 50px;
  padding: 7px 20px;
  color: var(--pe-red);
  font-size: .88rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--pe-dark);
  margin-bottom: 1.5rem;
}

.hero-title .accent-yellow,
.hero-title .accent {
  color: var(--pe-red);
}

.hero-title .accent-red {
  color: var(--pe-red);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #333;
  max-width: 520px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
  font-weight: 500;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-hero-primary {
  background: var(--pe-grad-red-yellow);
  color: #fff;
  font-weight: 800;
  border: none;
  padding: .85rem 2.2rem;
  border-radius: 50px;
  font-size: 1rem;
  box-shadow: 0 10px 26px rgba(232,25,44,.28);
  transition: .2s;
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(232,25,44,.38);
  color: #fff;
}

.btn-hero-outline {
  border: 2px solid var(--pe-blue);
  color: var(--pe-blue);
  padding: .85rem 2.2rem;
  border-radius: 50px;
  background: #fff;
  font-weight: 800;
  transition: .2s;
}

.btn-hero-outline:hover {
  background: var(--pe-blue);
  color: #fff;
}

/* orbs */

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: .36;
  animation: float-orb 9s ease-in-out infinite;
}

.orb-1 {
  width: 380px;
  height: 380px;
  background: var(--pe-yellow);
  top: -110px;
  right: -60px;
  animation-delay: 0s;
}

.orb-2 {
  width: 310px;
  height: 310px;
  background: var(--pe-red);
  bottom: -70px;
  left: -90px;
  animation-delay: -3.5s;
}

.orb-3 {
  width: 240px;
  height: 240px;
  background: var(--pe-blue);
  top: 46%;
  right: 28%;
  animation-delay: -6s;
}

@keyframes float-orb {
  0%, 100% {
    transform: translate(0,0);
  }

  50% {
    transform: translate(18px,-28px);
  }
}

/* stats */

.hero-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--pe-red);
  line-height: 1;
}

.stat-label {
  font-size: .78rem;
  color: #555;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 800;
}

/* 3D card */

.hero-3d-wrap {
  perspective: 1200px;
}

.hero-3d-card {
  width: 100%;
  max-width: 420px;
  margin: auto;
  background: linear-gradient(145deg, #ffffff, #fff8d7);
  border: 3px solid rgba(245,194,0,.75);
  backdrop-filter: blur(20px);
  border-radius: 28px;
  padding: 2rem;
  transform: rotateY(-10deg) rotateX(5deg);
  transform-style: preserve-3d;
  animation: card-float 6s ease-in-out infinite;
  box-shadow:
    24px 28px 60px rgba(0,153,214,.22),
    -12px -12px 34px rgba(232,25,44,.16);
}

@keyframes card-float {
  0%, 100% {
    transform: rotateY(-10deg) rotateX(5deg) translateY(0);
  }

  50% {
    transform: rotateY(-6deg) rotateX(3deg) translateY(-14px);
  }
}

.card-inner-item {
  background: #fff;
  border-radius: 16px;
  padding: 1rem 1.2rem;
  margin-bottom: .8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-left: 7px solid var(--pe-red);
  box-shadow: 0 5px 18px rgba(0,0,0,.08);
  animation: slide-in .6s ease forwards;
  opacity: 0;
}

.card-inner-item:nth-child(1) {
  animation-delay: .2s;
}

.card-inner-item:nth-child(2) {
  animation-delay: .4s;
}

.card-inner-item:nth-child(3) {
  animation-delay: .6s;
}

.card-inner-item:nth-child(4) {
  animation-delay: .8s;
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.hero-3d-card .text-white,
.hero-3d-card .text-white-50 {
  color: var(--pe-dark) !important;
}

/* ── Sections ──────────────────────────────────── */

.section-label {
  display: inline-block;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--pe-blue);
  margin-bottom: .5rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--pe-red);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: #555;
  font-size: 1.05rem;
  max-width: 520px;
}

/* ── Product cards ─────────────────────────────── */

.prod-card {
  border: 2px solid rgba(245,194,0,.35);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 6px 22px rgba(0,153,214,.12);
  transition: .3s;
  height: 100%;
  background: #fff;
}

.prod-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 38px rgba(232,25,44,.18);
}

.prod-card .card-img-top {
  height: 200px;
  object-fit: cover;
}

.prod-card .prod-no-img {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #fff3bd, #e6f8ff);
  font-size: 3rem;
  color: var(--pe-blue);
}

.prod-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--pe-grad-red-yellow);
  color: #fff;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 800;
}

/* ── Historia ─────────────────────────────────── */

.historia-section {
  background: linear-gradient(135deg, var(--pe-red) 0%, var(--pe-dark) 48%, var(--pe-blue) 100%);
  color: #fff;
  border-radius: 32px;
  padding: 4rem 3rem;
  box-shadow: 0 16px 45px rgba(0,0,0,.18);
}

.timeline-dot {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pe-yellow), #fff0a8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--pe-red);
  flex-shrink: 0;
}

/* ── Cat cards ────────────────────────────────── */

.cat-card {
  border-radius: 24px;
  overflow: hidden;
  transition: .3s;
  cursor: pointer;
  background: #fff;
  border: 2px solid rgba(0,153,214,.18);
  box-shadow: 0 6px 22px rgba(0,153,214,.12);
}

.cat-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(232,25,44,.16);
}

.cat-icon-wrap {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}

/* ── CTA ─────────────────────────────────────── */

.cta-papeexpress {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--pe-red) 0%, var(--pe-yellow) 55%, var(--pe-blue) 100%);
}

/* ── Footer ───────────────────────────────────── */

.pe-footer {
  background: linear-gradient(135deg, var(--pe-dark) 0%, #102b3f 55%, #0b6f9b 100%);
  color: #fff;
  padding: 4rem 0 2rem;
}

.pe-footer .text-muted {
  color: rgba(255,255,255,.68) !important;
}

.footer-logo {
  height: 80px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  background: #fff;
  padding: 5px;
  border-radius: 16px;
  border: 3px solid #ffffff;
  box-shadow: 0 5px 16px rgba(0,0,0,.25);
}


.footer-heading {
  color: var(--pe-yellow);
  font-weight: 800;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .12em;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li,
.footer-links a {
  color: rgba(255,255,255,.68);
  font-size: .9rem;
  margin-bottom: .5rem;
  text-decoration: none;
  transition: color .2s;
}

.footer-links a:hover {
  color: var(--pe-yellow);
}

.footer-divider {
  border-color: rgba(255,255,255,.15);
  margin: 2rem 0 1rem;
}

.social-icon {
  color: rgba(255,255,255,.7);
  font-size: 1.3rem;
  transition: .2s;
}

.social-icon:hover {
  color: var(--pe-yellow);
  transform: translateY(-2px);
}

/* ── Dashboard ────────────────────────────────── */

.dash-sidebar {
  min-height: 100vh;
  background: var(--pe-dark);
  width: 250px;
  flex-shrink: 0;
  padding: 1.5rem 1rem;
}

.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1rem;
  border-radius: 10px;
  color: rgba(255,255,255,.62);
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  transition: .2s;
  margin-bottom: .3rem;
}

.sidebar-nav-link:hover,
.sidebar-nav-link.active {
  background: rgba(245,194,0,.12);
  color: var(--pe-yellow);
}

.sidebar-nav-link i {
  font-size: 1.1rem;
  width: 22px;
}

.dash-content {
  flex: 1;
  background: #f4f6f9;
  min-height: 100vh;
  padding: 2rem;
}

.dash-topbar {
  background: #fff;
  border-radius: 16px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}

/* ── Kanban ───────────────────────────────────── */

.kanban-board {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.kanban-col {
  min-width: 220px;
  background: #f0f2f5;
  border-radius: 16px;
  padding: 1rem;
  flex-shrink: 0;
}

.kanban-col-header {
  font-weight: 700;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .75rem;
}

.kanban-card {
  background: #fff;
  border-radius: 12px;
  padding: .9rem;
  margin-bottom: .6rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  cursor: pointer;
  transition: .2s;
}

.kanban-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

.etapa-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 6px;
}

/* ── Forms ────────────────────────────────────── */

.form-card {
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 8px 40px rgba(0,0,0,.09);
  border: 2px solid rgba(245,194,0,.22);
}

.form-label {
  font-weight: 600;
  font-size: .9rem;
  color: var(--pe-text);
}

.form-control:focus {
  border-color: var(--pe-yellow);
  box-shadow: 0 0 0 .2rem rgba(245,194,0,.2);
}

.btn-pe-submit {
  background: var(--pe-grad-red-yellow);
  color: #fff;
  border: none;
  font-weight: 800;
  padding: .85rem 2.5rem;
  border-radius: 50px;
  font-size: 1rem;
  width: 100%;
  transition: .2s;
}

.btn-pe-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(232,25,44,.35);
  color: #fff;
}

/* ── Live dot ─────────────────────────────────── */

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .35;
  }
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #28a745;
  display: inline-block;
  animation: pulse 1.5s ease-in-out infinite;
}

/* ── Mapa ─────────────────────────────────────── */

#mapasocios {
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.12);
}

/* ── Utilities ────────────────────────────────── */

.fw-600 {
  font-weight: 600 !important;
}

.fw-700 {
  font-weight: 700 !important;
}

.fw-900 {
  font-weight: 900 !important;
}

/* ── Responsive ───────────────────────────────── */

@media (max-width: 991px) {
  .pe-navbar .navbar-collapse {
    background: rgba(26,26,42,.98);
    border-radius: 18px;
    padding: 1rem;
    margin-top: .8rem;
    border: 1px solid rgba(245,194,0,.18);
  }

  .navbar-nav .nav-link {
    padding: .7rem 1rem !important;
  }

  .navbar-logo-img {
    height: 42px;
    max-width: 160px;
  }

  .hero-section {
    padding-top: 110px;
    text-align: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-btns,
  .hero-stats {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .dash-sidebar {
    width: 100%;
    min-height: auto;
  }

  .kanban-board {
    flex-direction: column;
  }

  .kanban-col {
    min-width: auto;
  }

  .historia-section {
    padding: 2rem 1.4rem;
  }

  .hero-title {
    font-size: clamp(2.2rem, 12vw, 3.2rem);
  }

  .hero-stats {
    gap: 1.4rem;
  }
}