/* ============================================================
   PLP CONSULTORES INTEGRALES — shared.css
   Estilos base compartidos por todas las páginas
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── Variables ── */
:root {
  --navy:       #1B2A6B;
  --navy-dark:  #111C4E;
  --navy-light: #263480;
  --gold:       #C9A84C;
  --gold-light: #E2C97A;
  --gold-dark:  #A8852D;
  --white:      #FFFFFF;
  --off-white:  #F8F7F4;
  --gray-100:   #F0EEE9;
  --gray-200:   #E2DED6;
  --gray-500:   #8E8880;
  --gray-700:   #4A4640;
  --text:       #1E1C1A;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --shadow-sm:  0 2px 8px rgba(27,42,107,.08);
  --shadow-md:  0 8px 32px rgba(27,42,107,.12);
  --shadow-lg:  0 20px 60px rgba(27,42,107,.18);
  --transition: .3s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); color: var(--text); background: var(--white); line-height: 1.65; overflow-x: hidden; }
img  { max-width: 100%; height: auto; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }

/* ── Utilities ── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .75rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.section-label::before { content:''; display:block; width:28px; height:2px; background:var(--gold); }

.section-title {
  font-family: var(--font-display); font-size: clamp(2rem,4vw,3rem);
  font-weight: 700; color: var(--navy); line-height: 1.15; margin-bottom: 16px;
}
.section-subtitle { font-size: 1.05rem; color: var(--gray-500); max-width: 560px; line-height: 1.75; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 50px;
  font-family: var(--font-body); font-size: .9rem; font-weight: 600;
  cursor: pointer; transition: var(--transition); border: 2px solid transparent; white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--navy-dark); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,168,76,.35); }
.btn-outline  { background: transparent; color: var(--white); border-color: rgba(255,255,255,.5); }
.btn-outline:hover  { background: rgba(255,255,255,.1); border-color: var(--white); transform: translateY(-2px); }
.btn-navy    { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover    { background: var(--navy-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.fade-up { opacity:0; transform:translateY(32px); transition: opacity .7s cubic-bezier(.4,0,.2,1), transform .7s cubic-bezier(.4,0,.2,1); }
.fade-up.visible { opacity:1; transform:translateY(0); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top:0; left:0; right:0; z-index:1000;
  padding: 0 24px;
  transition: background var(--transition), box-shadow var(--transition);
}
.navbar.scrolled { background: rgba(17,28,78,.97); backdrop-filter: blur(12px); box-shadow: 0 4px 24px rgba(0,0,0,.2); }

.navbar__inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; height: 80px;
}

.navbar__logo { display:flex; align-items:center; gap:12px; }
.navbar__logo img { height:52px; width:52px; object-fit:contain; border-radius:50%; background:white; padding:3px; display:block; flex-shrink:0; }
.navbar__logo-text { display:flex; flex-direction:column; line-height:1.2; }
.navbar__logo-text span:first-child { font-family:var(--font-display); font-size:1.25rem; font-weight:700; color:var(--white); }
.navbar__logo-text span:last-child  { font-size:.65rem; font-weight:500; letter-spacing:.1em; text-transform:uppercase; color:var(--gold); }

.navbar__links { display:flex; align-items:center; gap:36px; }
.navbar__links a { font-size:.875rem; font-weight:500; color:rgba(255,255,255,.8); transition:color var(--transition); position:relative; }
.navbar__links a::after { content:''; position:absolute; bottom:-4px; left:0; width:0; height:2px; background:var(--gold); transition:width var(--transition); }
.navbar__links a:hover, .navbar__links a.active { color:var(--white); }
.navbar__links a:hover::after, .navbar__links a.active::after { width:100%; }

.navbar__cta { display:none !important; }
.hamburger { display:none; flex-direction:column; gap:5px; cursor:pointer; padding:6px; border:none; background:none; }
.hamburger span { display:block; width:24px; height:2px; background:var(--white); transition:var(--transition); border-radius:2px; }
.hamburger.open span:nth-child(1) { transform:translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity:0; }
.hamburger.open span:nth-child(3) { transform:translateY(-7px) rotate(-45deg); }

.mobile-nav {
  display:none; position:fixed; top:80px; left:0; right:0;
  background:var(--navy-dark); padding:24px; z-index:999;
  flex-direction:column; border-top:1px solid rgba(201,168,76,.3);
  transform:translateY(-20px); opacity:0; transition:var(--transition);
}
.mobile-nav.open { display:flex; transform:translateY(0); opacity:1; }
.mobile-nav a { color:rgba(255,255,255,.85); padding:14px 0; font-size:1rem; font-weight:500; border-bottom:1px solid rgba(255,255,255,.08); transition:color var(--transition); }
.mobile-nav a:last-child { border-bottom:none; }
.mobile-nav a:hover { color:var(--gold); }

/* ============================================================
   PAGE HERO BANNER (páginas internas)
   ============================================================ */
.page-hero {
  min-height: 280px;
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  display: flex; align-items: flex-end;
  padding: 100px 24px 48px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: none; /* removed grid overlay */
}
.page-hero::after {
  content: '';
  position: absolute;
  right: -80px; top: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(201,168,76,.12) 0%, transparent 70%);
}
.page-hero__inner { max-width: 1160px; margin: 0 auto; position: relative; z-index: 1; width: 100%; }
.page-hero__label { font-size:.75rem; font-weight:600; letter-spacing:.14em; text-transform:uppercase; color:var(--gold); margin-bottom:10px; }
.page-hero__title { font-family:var(--font-display); font-size:clamp(2.2rem,5vw,3.5rem); font-weight:700; color:var(--white); line-height:1.1; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background:var(--navy-dark); color:rgba(255,255,255,.7); padding:64px 24px 32px; }
.footer__inner { max-width:1160px; margin:0 auto; }
.footer__top {
  display:grid; grid-template-columns:2fr 1fr 1fr; gap:60px;
  padding-bottom:48px; border-bottom:1px solid rgba(255,255,255,.08); margin-bottom:32px;
}
.footer__brand img { height:56px; width:56px; object-fit:contain; border-radius:50%; background:white; padding:3px; margin-bottom:16px; }
.footer__brand-name    { font-family:var(--font-display); font-size:1.2rem; font-weight:700; color:var(--white); margin-bottom:4px; }
.footer__brand-tagline { font-size:.75rem; color:var(--gold); text-transform:uppercase; letter-spacing:.1em; margin-bottom:16px; }
.footer__brand-desc    { font-size:.875rem; line-height:1.7; max-width:280px; }
.footer__col-title     { color:var(--white); font-weight:700; font-size:.9rem; text-transform:uppercase; letter-spacing:.08em; margin-bottom:20px; }
.footer__links         { display:flex; flex-direction:column; gap:10px; }
.footer__links a       { font-size:.875rem; color:rgba(255,255,255,.6); transition:color var(--transition); }
.footer__links a:hover { color:var(--gold); }
.footer__contact-items { display:flex; flex-direction:column; gap:12px; }
.footer__contact-item  { display:flex; align-items:flex-start; gap:10px; font-size:.875rem; }
.footer__contact-item span:first-child { font-size:1rem; flex-shrink:0; margin-top:1px; }
.footer__bottom { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; }
.footer__copy  { font-size:.82rem; color:rgba(255,255,255,.4); }
.footer__copy strong { color:var(--gold); }
.footer__divider { width:1px; height:16px; background:rgba(255,255,255,.2); display:inline-block; margin:0 12px; vertical-align:middle; }

/* ============================================================
   WHATSAPP FLOTANTE
   ============================================================ */
.whatsapp-float { position:fixed; bottom:32px; right:32px; z-index:900; display:flex; flex-direction:column; align-items:flex-end; gap:12px; }
.whatsapp-float__bubble { background:var(--white); color:var(--navy); padding:10px 16px; border-radius:12px 12px 0 12px; font-size:.82rem; font-weight:600; box-shadow:var(--shadow-md); white-space:nowrap; opacity:0; transform:translateY(10px) scale(.9); transition:var(--transition); pointer-events:none; }
.whatsapp-float:hover .whatsapp-float__bubble { opacity:1; transform:translateY(0) scale(1); }
.whatsapp-float__wrapper { position:relative; width:60px; height:60px; }
.whatsapp-float__btn { position:relative; z-index:2; width:60px; height:60px; background:#25D366; border-radius:50%; display:flex; align-items:center; justify-content:center; box-shadow:0 6px 24px rgba(37,211,102,.4); transition:var(--transition); cursor:pointer; }
.whatsapp-float__btn:hover { transform:scale(1.1); box-shadow:0 10px 32px rgba(37,211,102,.5); }
.whatsapp-float__btn svg { width:30px; height:30px; fill:white; }
.whatsapp-float__pulse { position:absolute; top:0; left:0; z-index:1; width:60px; height:60px; border-radius:50%; background:rgba(37,211,102,.35); animation:wa-pulse 2.5s ease-out infinite; }
@keyframes wa-pulse { 0%{transform:scale(1);opacity:.8} 100%{transform:scale(2.2);opacity:0} }

/* ============================================================
   RESPONSIVE COMPARTIDO
   ============================================================ */
@media (max-width:900px) {
  .navbar__links, .navbar__cta .btn { display:none; }
  .hamburger { display:flex; }
  .footer__top { grid-template-columns:1fr 1fr; }
  .footer__brand { grid-column:1 / -1; }
}
@media (max-width:640px) {
  .footer__top { grid-template-columns:1fr; gap:36px; }
  .footer__bottom { flex-direction:column; text-align:center; }
  .whatsapp-float { bottom:20px; right:20px; }
}

/* DOCUMENTS / Presentaciones */
.documents { padding: 56px 24px; background: var(--off-white); }
.documents .container { display:flex; flex-direction:column; gap:18px; }
.documents-grid { display:grid; grid-template-columns: repeat(2,1fr); gap:20px; margin-top:12px; }
.document-card { background: var(--white); border-radius: 12px; padding:18px; display:flex; gap:16px; align-items:center; border:1px solid var(--gray-200); box-shadow: var(--shadow-sm); }
.document-card__thumb { width:96px; height:96px; background: linear-gradient(135deg, var(--navy), var(--navy-light)); color:var(--white); display:flex; align-items:center; justify-content:center; border-radius:8px; font-weight:700; font-size:.95rem; }
.document-card__meta { flex:1; }
.document-card__title { font-weight:700; color:var(--navy); margin-bottom:6px; }
.document-card__desc { color:var(--gray-500); font-size:.95rem; margin-bottom:10px; }
.document-card__actions { display:flex; gap:10px; align-items:center; }
.document-card .btn { padding:10px 18px; border-radius:8px; }

@media (max-width:900px) { .documents-grid { grid-template-columns:1fr; } }
