/* ═══════════════════════════════════════════════════
   PAPERMAN AGENCY — Sistema de diseño global
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

/* ─── VARIABLES ─── */
:root {
  --c-bg:        #1a0f22;
  --c-deep:      #341f42;
  --c-purple:    #693585;
  --c-pink:      #e61b6f;
  --c-white:     #ffffff;
  --c-gray:      #a89ab5;
  --c-gray-dark: #2d1e3a;
  --c-border:    rgba(105,53,133,0.25);

  --font: 'Montserrat', sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ─── CURSOR PERSONALIZADO ─── */
*, a, button { cursor: none !important; }

/* Cursor oculto por defecto — solo visible con ratón real */
#cursor, #cursor-ring { display: none; }

@media (hover: hover) and (pointer: fine) {
  *, a, button { cursor: none !important; }

  #cursor {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 12px; height: 12px;
    background: var(--c-pink);
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out);
  }

  #cursor-ring {
    display: block;
    position: fixed;
    top: 0; left: 0;
    width: 36px; height: 36px;
    border: 1.5px solid rgba(230,27,111,0.5);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.5s var(--ease-out), height 0.5s var(--ease-out), border-color 0.3s;
  }

  body.cursor-hover #cursor { width: 20px; height: 20px; }
  body.cursor-hover #cursor-ring { width: 56px; height: 56px; border-color: var(--c-pink); }
}

.tap-ripple {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  width: 0; height: 0;
  background: rgba(230,27,111,0.35);
  transform: translate(-50%, -50%);
  animation: tapRipple 0.5s ease-out forwards;
}

@keyframes tapRipple {
  0%   { width: 0; height: 0; opacity: 1; }
  100% { width: 80px; height: 80px; opacity: 0; }
}

/* ─── NAVBAR ─── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 28px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding 0.4s var(--ease-out), background 0.4s;
}

#navbar.scrolled {
  padding: 16px 60px;
  background: rgba(26,15,34,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--c-border);
}

.nav-logo img { height: 116px; width: auto; }

.nav-links {
  display: flex;
  gap: 20px;
  list-style: none;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-links a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-gray);
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--c-pink);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover, .nav-links a.active { color: var(--c-white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  padding: 10px 28px;
  background: var(--c-pink);
  color: var(--c-white) !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s !important;
  box-shadow: 0 0 0 rgba(230,27,111,0);
}

.nav-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 30px rgba(230,27,111,0.4) !important;
}

.nav-cta::after { display: none !important; }

.nav-mundial {
  padding: 8px 14px;
  background: linear-gradient(135deg, #c8102e, #e8304a);
  color: var(--c-white) !important;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: opacity 0.3s, transform 0.3s var(--ease-out) !important;
}
.nav-mundial:hover {
  opacity: 0.88;
  transform: translateY(-2px) !important;
}
.nav-mundial::after { display: none !important; }

.nav-links li:has(.nav-gourmet) { margin-left: auto; }

.nav-gourmet {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 7px 16px;
  background: transparent;
  border: 1px solid #c8861a !important;
  color: #c8861a !important;
  font-size: 0.65rem !important;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.35;
  white-space: normal;
  text-align: center;
  border-radius: 4px !important;
  position: relative;
  overflow: hidden;
  transition: color 0.35s, border-color 0.35s, transform 0.3s var(--ease-out) !important;
}
.nav-gourmet::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #8b5e3c, #c8861a);
  opacity: 0;
  transition: opacity 0.35s;
  z-index: 0;
}
.nav-gourmet span {
  position: relative;
  z-index: 1;
  display: block;
}
.nav-gourmet .gourmet-icon {
  font-size: 0.9rem;
  line-height: 1;
  margin-bottom: 1px;
}
.nav-gourmet:hover {
  color: #fde8c0 !important;
  border-color: #c8861a !important;
  transform: translateY(-2px) !important;
}
.nav-gourmet:hover::before { opacity: 1; }
.nav-gourmet::after { display: none !important; }

/* ─── HAMBURGER (móvil) ─── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--c-white);
  transition: transform 0.3s, opacity 0.3s;
}

/* ─── SECCIONES BASE ─── */
section { position: relative; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 60px;
}

/* ─── ETIQUETA DE SECCIÓN ─── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-pink);
  margin-bottom: 24px;
}

.section-tag::before {
  content: '';
  display: block;
  width: 32px; height: 2px;
  background: var(--c-pink);
}

/* ─── TÍTULOS ─── */
.display-title {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.display-title span {
  background: linear-gradient(135deg, var(--c-purple), var(--c-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

/* ─── BOTONES ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--c-purple), var(--c-pink));
  color: var(--c-white);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(230,27,111,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--c-white);
  border: 1.5px solid rgba(255,255,255,0.25);
}

.btn-outline:hover {
  border-color: var(--c-pink);
  color: var(--c-pink);
  transform: translateY(-3px);
}

.btn-arrow::after {
  content: '→';
  transition: transform 0.3s var(--ease-out);
}

.btn-arrow:hover::after { transform: translateX(6px); }

/* ─── TARJETAS DE SERVICIO ─── */
.service-card {
  background: var(--c-gray-dark);
  border: 1px solid var(--c-border);
  padding: 44px 36px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s var(--ease-out);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-purple), var(--c-pink));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.service-card:hover {
  border-color: var(--c-purple);
  transform: translateY(-6px);
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px; height: 52px;
  margin-bottom: 28px;
  color: var(--c-pink);
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.87rem;
  font-weight: 400;
  color: var(--c-gray);
  line-height: 1.7;
}

/* ─── FOOTER ─── */
footer {
  background: var(--c-deep);
  border-top: 1px solid var(--c-border);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 40px;
}

.footer-brand img { height: 140px; margin-bottom: 20px; }

.footer-brand p {
  font-size: 0.85rem;
  color: var(--c-gray);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-pink);
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  font-size: 0.85rem;
  color: var(--c-gray);
  transition: color 0.3s;
}

.footer-col ul li a:hover { color: var(--c-white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--c-gray);
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  width: 38px; height: 38px;
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-gray);
  font-size: 0.8rem;
  transition: border-color 0.3s, color 0.3s, transform 0.3s;
}

.social-links a:hover {
  border-color: var(--c-pink);
  color: var(--c-pink);
  transform: translateY(-3px);
}

/* ─── ANIMACIONES DE ENTRADA ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ─── WHATSAPP WIDGET ─── */
.wa-widget {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.wa-bubble {
  background: #fff;
  border-radius: 16px 16px 0 16px;
  padding: 16px 20px;
  max-width: 280px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}

.wa-bubble.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.wa-bubble-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.wa-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--c-purple), var(--c-pink));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.wa-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 22px; height: 22px;
  background: none;
  border: none;
  color: #999;
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.wa-close:hover { color: #333; }

.wa-bubble { position: relative; }

.wa-bubble-header div span {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #111;
  line-height: 1.2;
}

.wa-bubble-header div small {
  font-size: 0.68rem;
  color: #25D366;
  font-weight: 600;
}

.wa-bubble p {
  font-size: 0.82rem;
  color: #333;
  line-height: 1.5;
  margin-bottom: 12px;
}

.wa-bubble a {
  display: block;
  background: #25D366;
  color: #fff;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: background 0.3s;
}

.wa-bubble a:hover { background: #1da851; }

.wa-btn {
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 28px rgba(37,211,102,0.45);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
  flex-shrink: 0;
}

.wa-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 36px rgba(37,211,102,0.55);
}

.wa-btn svg { width: 30px; height: 30px; fill: #fff; }

.wa-dot {
  position: absolute;
  top: 2px; right: 2px;
  width: 14px; height: 14px;
  background: var(--c-pink);
  border-radius: 50%;
  border: 2px solid var(--c-bg);
  animation: pulse 2s infinite;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  #navbar, #navbar.scrolled { padding-left: 32px; padding-right: 32px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  #navbar, #navbar.scrolled { padding: 12px 20px; }

  .nav-logo img { height: 52px; max-width: 160px; object-fit: contain; }

  .stat-item { padding: 24px 12px; }
  .stat-number { font-size: 2.2rem; }
  .stat-label { font-size: 0.7rem; }

  .nav-links { display: none; }
  .nav-toggle { display: flex; flex-shrink: 0; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--c-bg);
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 999;
  }

  .nav-links.open a { font-size: 1.2rem; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 20px; text-align: center; }

  /* Evitar scroll horizontal en móvil */
  .mundial-catalog-scroll { margin: 0 -20px; padding: 0 20px 20px; }
}

/* ─── TOUCH DEVICES (pointer:coarse = fiable en Chrome Android) ─── */
@media (pointer: coarse) {
  #cursor, #cursor-ring { display: none !important; }
  .wa-bubble, .wa-bubble.visible {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}
