/* === WALTER PEÑALOZA – MAIN STYLESHEET === */
/* Design: Prestige Institucional + Digital Modern */
/* Colors: Navy #0d2856, Blue #0077b6, Gold #f5c800, White #fff */

:root {
  --navy:    #0d2856;
  --blue:    #0077b6;
  --celeste: #00b4d8;
  --gold:    #f5c800;
  --gold-d:  #c9a200;
  --white:   #ffffff;
  --light:   #eef5fb;
  --gray:    #6b7a99;
  --dark:    #091a36;
  --success: #22c55e;
  --error:   #ef4444;
  --radius:  12px;
  --radius-lg: 20px;
  --shadow:  0 4px 24px rgba(0,0,0,.12);
  --shadow-lg: 0 16px 48px rgba(0,0,0,.18);
  --transition: all .3s cubic-bezier(.4,0,.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Outfit', sans-serif;
  background: #fff;
  color: #1a2a4a;
  overflow-x: hidden;
  line-height: 1.65;
}

/* TYPOGRAPHY */
h1,h2,h3 { font-family: 'Playfair Display', serif; line-height: 1.2; }
.gold { color: var(--gold); }
a { text-decoration: none; color: inherit; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 4px; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(9,26,54,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(245,200,0,.15);
  transition: var(--transition);
}
.navbar.scrolled {
  background: rgba(9,26,54,.98);
  box-shadow: 0 4px 30px rgba(0,0,0,.3);
}
.nav-container {
  max-width: 1300px; margin: 0 auto;
  padding: 0 1.5rem;
  display: flex; align-items: center; gap: 2rem;
  height: 68px;
}
.nav-brand {
  display: flex; align-items: center; gap: .8rem;
  flex-shrink: 0;
}
.nav-logo { width: 42px; height: 42px; object-fit: contain; mix-blend-mode: screen; }
.nav-title { display: flex; flex-direction: column; color: #fff; line-height: 1.2; }
.nav-title strong { font-size: .95rem; font-family: 'Playfair Display', serif; }
.nav-title small { font-size: .7rem; color: var(--gold); letter-spacing: .05em; }

.nav-menu {
  display: flex; align-items: center; gap: .25rem;
  list-style: none; margin-left: auto;
}
.nav-menu a {
  color: rgba(255,255,255,.85); font-size: .88rem; font-weight: 500;
  padding: .5rem .85rem; border-radius: 8px;
  transition: var(--transition);
  display: block;
}
.nav-menu a:hover { color: var(--gold); background: rgba(245,200,0,.08); }
.nav-btn {
  background: rgba(245,200,0,.12) !important;
  border: 1px solid rgba(245,200,0,.3) !important;
  color: var(--gold) !important;
  border-radius: 8px !important;
}
.nav-btn:hover { background: var(--gold) !important; color: var(--dark) !important; }
.nav-btn-admin { background: rgba(0,119,182,.2) !important; border-color: var(--blue) !important; color: var(--celeste) !important; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--dark); border: 1px solid rgba(245,200,0,.1);
  border-radius: var(--radius); min-width: 220px;
  padding: .5rem; box-shadow: var(--shadow-lg);
  z-index: 200;
}
.dropdown li { list-style: none; }
.dropdown a { padding: .6rem 1rem; border-radius: 8px; font-size: .85rem; white-space: nowrap; }
.has-dropdown:hover .dropdown { display: block; animation: fadeDown .2s ease; }

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .5rem;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--gold); border-radius: 2px;
  transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh; position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 6rem 1.5rem 4rem;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(0,119,182,.35) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(245,200,0,.12) 0%, transparent 50%),
              linear-gradient(160deg, #040e20 0%, #0d2856 40%, #071830 100%);
}
.hero-particles {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(245,200,0,.6) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 70%, rgba(0,180,216,.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 50%, rgba(255,255,255,.3) 0%, transparent 100%);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative; z-index: 1; text-align: center;
  max-width: 800px; width: 100%;
}
.hero-badge {
  display: inline-block;
  background: rgba(245,200,0,.12); border: 1px solid rgba(245,200,0,.4);
  color: var(--gold); font-size: .8rem; letter-spacing: .15em; font-weight: 600;
  padding: .4rem 1.2rem; border-radius: 50px;
  margin-bottom: 1.5rem;
  animation: fadeInUp .6s ease both;
}
.hero-logo {
  width: 160px; height: 160px; object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 40px rgba(245,200,0,.4));
  margin-bottom: 1.5rem;
  animation: fadeInUp .7s .1s ease both;
}
.animate-float { animation: float 4s ease-in-out infinite; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.8rem); color: #fff;
  line-height: 1.1; margin-bottom: 1rem;
  animation: fadeInUp .7s .2s ease both;
}
.hero-subtitle-text {
  color: rgba(255,255,255,.7); font-size: .75em;
  letter-spacing: .1em; font-weight: 400;
}
.hero-desc {
  color: rgba(255,255,255,.7); font-size: 1.05rem;
  margin-bottom: 2rem;
  animation: fadeInUp .7s .3s ease both;
}
.hero-hymn {
  display: flex; align-items: center; gap: 1rem;
  justify-content: center; margin-bottom: 2rem;
  animation: fadeInUp .7s .35s ease both;
}
.hero-hymn audio { border-radius: 50px; height: 38px; }
.hymn-label { color: rgba(255,255,255,.7); font-size: .85rem; }
.hero-stats {
  display: flex; gap: 2rem; justify-content: center;
  margin-bottom: 2.5rem;
  animation: fadeInUp .7s .4s ease both;
}
.stat { text-align: center; }
.stat-num {
  display: block; font-family: 'Playfair Display', serif;
  font-size: 2rem; color: var(--gold); font-weight: 900;
  line-height: 1;
}
.stat-lbl { font-size: .75rem; color: rgba(255,255,255,.6); letter-spacing: .06em; }
.hero-cta {
  display: flex; gap: 1rem; justify-content: center;
  animation: fadeInUp .7s .5s ease both;
}
.hero-scroll-indicator {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 1;
}
.scroll-arrow {
  width: 24px; height: 24px;
  border-right: 2px solid rgba(245,200,0,.5);
  border-bottom: 2px solid rgba(245,200,0,.5);
  transform: rotate(45deg);
  animation: bounce 1.5s infinite;
}
@keyframes bounce { 0%,100%{transform:rotate(45deg) translateY(0)} 50%{transform:rotate(45deg) translateY(6px)} }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: 10px;
  font-weight: 600; font-size: .9rem;
  transition: var(--transition); border: none; cursor: pointer;
  font-family: 'Outfit', sans-serif;
}
.btn-gold {
  background: var(--gold); color: var(--dark);
}
.btn-gold:hover { background: #ffe033; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,200,0,.35); }
.btn-outline {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: rgba(245,200,0,.06); }
.btn-outline-light {
  background: transparent; color: rgba(255,255,255,.85);
  border: 1.5px solid rgba(255,255,255,.25);
}
.btn-outline-light:hover { border-color: var(--gold); color: var(--gold); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: #0066a0; transform: translateY(-2px); }

/* ===== APPS BAR ===== */
.apps-bar {
  background: var(--navy);
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  padding: 1rem 1.5rem;
  position: relative; z-index: 2;
}
.apps-container {
  max-width: 1300px; margin: 0 auto;
  display: flex; gap: 1rem; justify-content: center;
  flex-wrap: wrap;
}
.app-link {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  color: rgba(255,255,255,.8); font-size: .78rem; font-weight: 500;
  padding: .6rem 1.2rem; border-radius: 10px;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,.08);
}
.app-link:hover { background: rgba(245,200,0,.1); color: var(--gold); border-color: rgba(245,200,0,.3); transform: translateY(-2px); }
.app-icon { font-size: 1.4rem; }
.app-link-ext { border-color: rgba(0,180,216,.2); }
.app-link-ext:hover { color: var(--celeste); border-color: var(--celeste); background: rgba(0,180,216,.08); }

/* ===== SECTIONS ===== */
.section { padding: 5rem 1.5rem; }
.section-dark { background: var(--dark); }
.section-light { background: var(--light); }
.container { max-width: 1300px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-tag {
  display: inline-block;
  background: rgba(0,119,182,.1); color: var(--blue);
  font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  padding: .3rem .9rem; border-radius: 50px;
  border: 1px solid rgba(0,119,182,.2);
  margin-bottom: .75rem;
}
.section-dark .section-tag { background: rgba(0,180,216,.1); color: var(--celeste); border-color: rgba(0,180,216,.2); }
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.6rem); margin-bottom: .75rem;
  color: var(--navy);
}
.section-dark .section-title { color: #fff; }
.section-light .section-title { color: var(--navy); }
.section-desc { color: var(--gray); max-width: 600px; margin: 0 auto; }
.section-dark .section-desc { color: rgba(255,255,255,.6); }
.section-action { text-align: center; margin-top: 2.5rem; }

/* ===== FILTER TABS ===== */
.filter-tabs {
  display: flex; gap: .5rem; flex-wrap: wrap;
  justify-content: center; margin-bottom: 2.5rem;
}
.filter-tab {
  padding: .45rem 1.1rem; border-radius: 50px;
  border: 1.5px solid rgba(0,119,182,.2);
  background: none; color: var(--gray);
  font-family: 'Outfit', sans-serif; font-size: .83rem; font-weight: 500;
  cursor: pointer; transition: var(--transition);
}
.filter-tab.active, .filter-tab:hover {
  background: var(--blue); color: #fff; border-color: var(--blue);
}

/* ===== POSTS GRID ===== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.post-card {
  background: #fff; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow);
  transition: var(--transition);
  border: 1px solid rgba(0,119,182,.08);
  animation: fadeInUp .5s ease both;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-pinned { border: 2px solid var(--gold); }
.post-card-link { display: block; }
.post-card-img {
  height: 200px; overflow: hidden; position: relative;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #0d2856, #0077b6);
}
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card-img img { transform: scale(1.05); }
.post-placeholder-icon { font-size: 3.5rem; opacity: .7; }
.post-pin-badge {
  position: absolute; top: .75rem; left: .75rem;
  background: var(--gold); color: var(--dark);
  font-size: .7rem; font-weight: 700; padding: .25rem .6rem; border-radius: 50px;
}
.post-type-badge {
  position: absolute; top: .75rem; right: .75rem;
  color: #fff; font-size: .7rem; font-weight: 700;
  padding: .25rem .6rem; border-radius: 50px;
}
.post-card-body { padding: 1.25rem; }
.post-card-title {
  font-size: 1.05rem; font-family: 'Playfair Display', serif;
  color: var(--navy); margin-bottom: .5rem; line-height: 1.35;
}
.post-card:hover .post-card-title { color: var(--blue); }
.post-card-excerpt { color: var(--gray); font-size: .85rem; line-height: 1.55; margin-bottom: 1rem; }
.post-card-meta { display: flex; gap: 1rem; font-size: .75rem; color: #aab; }

/* ===== GALLERY ===== */
.gallery-tabs {
  display: flex; gap: .5rem; flex-wrap: wrap;
  justify-content: center; margin-bottom: 2.5rem;
}
.gallery-tab {
  padding: .45rem 1.1rem; border-radius: 50px;
  border: 1.5px solid rgba(255,255,255,.15);
  background: none; color: rgba(255,255,255,.7);
  font-family: 'Outfit', sans-serif; font-size: .83rem; font-weight: 500;
  cursor: pointer; transition: var(--transition);
}
.gallery-tab.active, .gallery-tab:hover {
  background: var(--gold); color: var(--dark); border-color: var(--gold);
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; cursor: pointer;
  border: 2px solid transparent; transition: var(--transition);
}
.gallery-item:hover { border-color: var(--gold); transform: scale(1.02); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(9,26,54,.85) 0%, transparent 50%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1rem; opacity: 0; transition: opacity .3s;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-level-badge {
  display: inline-block; background: var(--gold); color: var(--dark);
  font-size: .65rem; font-weight: 700; padding: .2rem .5rem;
  border-radius: 50px; margin-bottom: .35rem; align-self: flex-start;
}
.gallery-title { color: #fff; font-size: .9rem; font-weight: 600; }
.gallery-desc { color: rgba(255,255,255,.7); font-size: .78rem; margin-top: .25rem; }

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.92);
  align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
}
.lightbox.active { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius); box-shadow: 0 0 60px rgba(0,0,0,.8); }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  color: #fff; font-size: 1.2rem; width: 44px; height: 44px;
  border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.lightbox-close:hover { background: var(--error); }

/* ===== TIKTOK ===== */
.tiktok-grid {
  display: flex; gap: 1.5rem; flex-wrap: wrap; justify-content: center;
}
.tiktok-card { display: flex; justify-content: center; }
.tiktok-link-card {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  width: 200px; padding: 2rem; border-radius: var(--radius);
  background: rgba(0,119,182,.1); border: 1px solid rgba(0,180,216,.2);
  color: var(--celeste); transition: var(--transition);
}
.tiktok-link-card:hover { background: rgba(0,180,216,.2); transform: translateY(-4px); }
.tiktok-icon { font-size: 3rem; }
.tiktok-add-card {
  display: flex; align-items: center; justify-content: center;
  width: 200px; padding: 2rem; border-radius: var(--radius);
  border: 2px dashed rgba(245,200,0,.3); color: var(--gold);
  font-size: .9rem;
}
.tiktok-add-card a { color: var(--gold); }

/* ===== DOCUMENTS ===== */
.docs-tabs {
  display: flex; gap: 1rem; margin-bottom: 2rem;
  border-bottom: 2px solid rgba(0,119,182,.12);
  padding-bottom: 0;
}
.docs-tab {
  padding: .75rem 1.5rem; border: none; background: none;
  font-family: 'Outfit', sans-serif; font-size: .9rem; font-weight: 600;
  color: var(--gray); cursor: pointer; border-bottom: 3px solid transparent;
  margin-bottom: -2px; transition: var(--transition);
}
.docs-tab.active { color: var(--blue); border-bottom-color: var(--blue); }
.docs-panel { display: none; }
.docs-panel.active { display: block; animation: fadeInUp .3s ease; }
.docs-grid { display: flex; flex-direction: column; gap: 1rem; }
.doc-card {
  display: flex; align-items: center; gap: 1.25rem;
  background: #fff; border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow);
  border: 1px solid rgba(0,119,182,.08);
  transition: var(--transition);
}
.doc-card:hover { transform: translateX(4px); border-color: var(--blue); }
.doc-icon { font-size: 2rem; flex-shrink: 0; }
.doc-info { flex: 1; }
.doc-info h4 { font-family: 'Playfair Display', serif; font-size: 1rem; color: var(--navy); margin-bottom: .25rem; }
.doc-info p { color: var(--gray); font-size: .83rem; margin-bottom: .25rem; }
.doc-meta { font-size: .75rem; color: #aaa; }
.doc-download {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0; transition: var(--transition);
}
.doc-download:hover { background: var(--gold); color: var(--dark); transform: scale(1.1); }

/* ===== APPS GRID LARGE ===== */
.apps-grid-large {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.app-card {
  display: flex; align-items: center; gap: 1.25rem;
  background: #fff; border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow);
  border: 1px solid rgba(0,119,182,.1);
  transition: var(--transition);
  color: var(--navy);
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue); }
.app-card-icon { font-size: 2.2rem; flex-shrink: 0; }
.app-card-info { flex: 1; }
.app-card-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: .25rem; }
.app-card-info p { font-size: .83rem; color: var(--gray); }
.app-card-arrow { color: var(--blue); font-size: 1.3rem; font-weight: 700; transition: transform .2s; }
.app-card:hover .app-card-arrow { transform: translateX(4px); }
.app-card-fun { border-color: rgba(245,200,0,.2); }
.app-card-fun:hover { border-color: var(--gold); }
.app-card-fun .app-card-arrow { color: var(--gold); }
.app-card-ext { border-style: dashed; border-color: rgba(0,180,216,.2); }
.app-card-ext:hover { border-color: var(--celeste); }
.app-card-ext .app-card-arrow { color: var(--celeste); }

/* ===== CONTACT ===== */
.contact-layout {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem;
}
.form-title { font-size: 1.2rem; font-family: 'Playfair Display', serif; color: #fff; margin-bottom: 1.25rem; }
.comment-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .82rem; color: rgba(255,255,255,.7); font-weight: 500; }
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 10px; padding: .75rem 1rem;
  color: #fff; font-family: 'Outfit', sans-serif; font-size: .9rem;
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none; border-color: var(--gold);
  background: rgba(255,255,255,.08);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255,255,255,.3); }
.captcha-group input { max-width: 150px; }

.alert {
  padding: .9rem 1.25rem; border-radius: 10px; margin-bottom: 1rem;
  font-size: .88rem; font-weight: 500;
}
.alert-success { background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.3); color: #4ade80; }
.alert-error { background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.3); color: #f87171; }

/* Comments */
.approved-comments { margin-bottom: 2rem; }
.comment-item {
  display: flex; gap: 1rem; margin-bottom: 1.25rem;
  padding-bottom: 1.25rem; border-bottom: 1px solid rgba(255,255,255,.07);
}
.comment-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--celeste));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.comment-body strong { color: #fff; font-size: .9rem; }
.comment-date { color: rgba(255,255,255,.4); font-size: .75rem; margin-left: .5rem; }
.comment-body p { color: rgba(255,255,255,.7); font-size: .85rem; margin-top: .25rem; }

.contact-info { background: rgba(255,255,255,.04); border-radius: var(--radius); padding: 1.5rem; }
.contact-item { display: flex; gap: .75rem; margin-bottom: .75rem; color: rgba(255,255,255,.7); font-size: .88rem; }
.contact-item span:first-child { flex-shrink: 0; }
.social-links { display: flex; gap: .75rem; margin-top: 1.25rem; flex-wrap: wrap; }
.social-btn {
  padding: .5rem 1rem; border-radius: 8px;
  font-size: .8rem; font-weight: 600;
  transition: var(--transition);
}
.tiktok-btn { background: rgba(0,0,0,.4); color: #fff; border: 1px solid rgba(255,255,255,.15); }
.tiktok-btn:hover { background: #010101; }
.facebook-btn { background: rgba(24,119,242,.2); color: #60a5fa; border: 1px solid rgba(24,119,242,.3); }
.facebook-btn:hover { background: #1877f2; color: #fff; }
.whatsapp-btn { background: rgba(37,211,102,.15); color: #4ade80; border: 1px solid rgba(37,211,102,.3); }
.whatsapp-btn:hover { background: #25d366; color: #fff; }

/* ===== FOOTER ===== */
.footer {
  background: #040e20; border-top: 2px solid var(--gold);
  padding: 4rem 1.5rem 0;
}
.footer-container {
  max-width: 1300px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer-brand { display: flex; align-items: flex-start; gap: 1rem; }
.footer-logo { width: 60px; height: 60px; object-fit: contain; flex-shrink: 0; mix-blend-mode: screen; }
.footer-brand strong { color: var(--gold); font-family: 'Playfair Display', serif; font-size: .95rem; }
.footer-brand p { color: rgba(255,255,255,.5); font-size: .8rem; margin-top: .3rem; }
.footer-brand small { color: rgba(255,255,255,.35); font-size: .73rem; }
.footer-links h4 { color: var(--gold); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links a {
  display: block; color: rgba(255,255,255,.55); font-size: .85rem;
  padding: .3rem 0; transition: var(--transition);
}
.footer-links a:hover { color: var(--celeste); padding-left: .3rem; }
.footer-bottom {
  max-width: 1300px; margin: 0 auto;
  display: flex; justify-content: space-between;
  padding: 1.5rem 0; flex-wrap: wrap; gap: .5rem;
  color: rgba(255,255,255,.35); font-size: .78rem;
}
.footer-bottom a { color: var(--gold); }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.empty-state {
  text-align: center; padding: 4rem; color: var(--gray);
  font-size: .95rem;
}

/* ===== LOGIN PAGE ===== */
.login-page {
  min-height: 100vh;
  background: radial-gradient(ellipse at 30% 50%, rgba(0,119,182,.3) 0%, transparent 60%),
              linear-gradient(160deg, #040e20 0%, #0d2856 100%);
  display: flex; align-items: center; justify-content: center; padding: 2rem;
}
.login-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(245,200,0,.2);
  border-radius: var(--radius-lg); padding: 2.5rem;
  width: 100%; max-width: 440px;
  backdrop-filter: blur(20px);
}
.login-logo { text-align: center; margin-bottom: 1.5rem; }
.login-logo img { width: 90px; mix-blend-mode: screen; }
.login-title { text-align: center; color: #fff; font-size: 1.5rem; margin-bottom: .4rem; }
.login-sub { text-align: center; color: rgba(255,255,255,.5); font-size: .85rem; margin-bottom: 2rem; }
.login-form { display: flex; flex-direction: column; gap: 1rem; }
.login-form label { font-size: .82rem; color: rgba(255,255,255,.7); font-weight: 500; }
.login-form input {
  width: 100%; background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 10px; padding: .8rem 1rem;
  color: #fff; font-size: .95rem;
  font-family: 'Outfit', sans-serif;
  transition: var(--transition);
}
.login-form input:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.1); }
.login-btn {
  width: 100%; padding: .9rem; background: var(--gold); color: var(--dark);
  border: none; border-radius: 10px; font-size: 1rem; font-weight: 700;
  cursor: pointer; font-family: 'Outfit', sans-serif;
  transition: var(--transition); margin-top: .5rem;
}
.login-btn:hover { background: #ffe033; transform: translateY(-2px); }
.login-error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: #f87171; padding: .75rem 1rem; border-radius: 8px; font-size: .85rem; }
.login-back { text-align: center; margin-top: 1.25rem; }
.login-back a { color: var(--celeste); font-size: .85rem; }

/* ===== ADMIN PANEL ===== */
.admin-layout { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.admin-sidebar {
  background: var(--dark);
  border-right: 1px solid rgba(255,255,255,.07);
  padding: 1.5rem 1rem;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar .logo { text-align: center; padding: 1rem 0 2rem; border-bottom: 1px solid rgba(255,255,255,.07); margin-bottom: 1.5rem; }
.admin-sidebar .logo img { width: 60px; mix-blend-mode: screen; }
.admin-sidebar .logo h3 { color: var(--gold); font-size: .85rem; margin-top: .5rem; font-family: 'Outfit', sans-serif; }
.admin-nav a {
  display: flex; align-items: center; gap: .75rem;
  color: rgba(255,255,255,.7); font-size: .88rem;
  padding: .75rem 1rem; border-radius: 10px;
  transition: var(--transition); margin-bottom: .2rem;
}
.admin-nav a:hover, .admin-nav a.active {
  background: rgba(245,200,0,.1); color: var(--gold);
}
.admin-nav .nav-section { color: rgba(255,255,255,.3); font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 1rem 1rem .4rem; }
.admin-main { background: var(--light); }
.admin-topbar {
  background: #fff; padding: 1rem 2rem;
  border-bottom: 1px solid rgba(0,0,0,.08);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100; box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.admin-topbar h1 { font-size: 1.3rem; color: var(--navy); }
.admin-topbar .user-info { display: flex; align-items: center; gap: 1rem; }
.admin-topbar .user-badge { background: var(--navy); color: var(--gold); padding: .35rem .85rem; border-radius: 20px; font-size: .78rem; font-weight: 600; }
.admin-content { padding: 2rem; }
.admin-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.admin-card {
  background: #fff; border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
  border-left: 4px solid var(--blue);
  transition: var(--transition);
}
.admin-card:hover { transform: translateY(-3px); }
.admin-card-num { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: var(--navy); font-weight: 900; }
.admin-card-lbl { color: var(--gray); font-size: .85rem; margin-top: .25rem; }
.admin-card-gold { border-left-color: var(--gold); }
.admin-card-green { border-left-color: #22c55e; }
.admin-card-red { border-left-color: var(--error); }

/* Admin tables */
.admin-table-wrap { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.admin-table-head { padding: 1.25rem 1.5rem; border-bottom: 1px solid rgba(0,0,0,.06); display: flex; justify-content: space-between; align-items: center; }
.admin-table-head h3 { font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 700; color: var(--navy); }
table { width: 100%; border-collapse: collapse; }
thead th { background: var(--light); color: var(--gray); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: .75rem 1.5rem; text-align: left; }
tbody td { padding: 1rem 1.5rem; border-bottom: 1px solid rgba(0,0,0,.04); font-size: .88rem; color: var(--navy); }
tbody tr:hover { background: rgba(0,119,182,.03); }
.badge { display: inline-block; padding: .2rem .6rem; border-radius: 50px; font-size: .72rem; font-weight: 700; }
.badge-published { background: rgba(34,197,94,.12); color: #16a34a; }
.badge-draft { background: rgba(107,114,153,.1); color: var(--gray); }
.badge-pending { background: rgba(245,200,0,.12); color: #a16207; }
.badge-approved { background: rgba(34,197,94,.12); color: #16a34a; }
.badge-rejected { background: rgba(239,68,68,.12); color: var(--error); }
.action-btns { display: flex; gap: .5rem; }
.action-btn {
  padding: .3rem .7rem; border-radius: 6px; font-size: .75rem; font-weight: 600;
  border: none; cursor: pointer; font-family: 'Outfit', sans-serif;
  transition: var(--transition);
}
.action-btn-blue { background: rgba(0,119,182,.1); color: var(--blue); }
.action-btn-blue:hover { background: var(--blue); color: #fff; }
.action-btn-green { background: rgba(34,197,94,.1); color: #16a34a; }
.action-btn-green:hover { background: #16a34a; color: #fff; }
.action-btn-red { background: rgba(239,68,68,.1); color: var(--error); }
.action-btn-red:hover { background: var(--error); color: #fff; }
.action-btn-gold { background: rgba(245,200,0,.1); color: var(--gold-d); }
.action-btn-gold:hover { background: var(--gold); color: var(--dark); }

/* Admin forms */
.admin-form-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 2rem; }
.admin-form-card h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(0,0,0,.07); }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.admin-form-group { display: flex; flex-direction: column; gap: .4rem; }
.admin-form-group.full { grid-column: 1/-1; }
.admin-form-group label { font-size: .82rem; color: var(--gray); font-weight: 600; }
.admin-form-group input,
.admin-form-group select,
.admin-form-group textarea {
  padding: .7rem 1rem; border: 1.5px solid rgba(0,0,0,.1);
  border-radius: 8px; font-family: 'Outfit', sans-serif; font-size: .9rem;
  color: var(--navy); transition: var(--transition);
}
.admin-form-group input:focus,
.admin-form-group select:focus,
.admin-form-group textarea:focus { outline: none; border-color: var(--blue); }

/* ===== POST PAGE ===== */
.post-page { padding-top: 80px; min-height: 100vh; }
.post-hero {
  background: linear-gradient(160deg, #040e20 0%, #0d2856 100%);
  padding: 4rem 1.5rem; text-align: center;
}
.post-hero-type { display: inline-block; background: var(--gold); color: var(--dark); padding: .25rem .8rem; border-radius: 50px; font-size: .75rem; font-weight: 700; margin-bottom: 1rem; }
.post-hero-title { font-size: clamp(1.5rem, 3vw, 2.5rem); color: #fff; max-width: 800px; margin: 0 auto 1rem; }
.post-hero-meta { color: rgba(255,255,255,.55); font-size: .88rem; }
.post-body { max-width: 820px; margin: 0 auto; padding: 3rem 1.5rem; }
.post-body img { max-width: 100%; border-radius: var(--radius); margin: 1.5rem 0; }
.post-body h2, .post-body h3 { font-family: 'Playfair Display', serif; color: var(--navy); margin: 1.5rem 0 .75rem; }
.post-body p { color: var(--navy); line-height: 1.8; margin-bottom: 1rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .footer-container { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .contact-layout { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
}
@media (max-width: 768px) {
  .nav-menu {
    display: none; position: fixed; top: 68px; left: 0; right: 0;
    background: var(--dark); flex-direction: column; align-items: stretch;
    padding: 1rem; gap: .25rem; border-bottom: 1px solid rgba(245,200,0,.1);
  }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: flex; }
  .has-dropdown .dropdown { position: static; display: none; box-shadow: none; border: none; margin-left: 1rem; background: rgba(255,255,255,.03); }
  .has-dropdown.open .dropdown { display: block; }
  .hero-stats { gap: 1rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .form-row { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr; }
  .apps-grid-large { grid-template-columns: 1fr; }
  .admin-form-grid { grid-template-columns: 1fr; }
}
