/* ==========================================================================
   NUEVA ALIANZA DEL SUR N° 101 - OFFICIAL STYLESHEET
   Design Theme: Masonic Midnight Blue & Rich Gold Luxury
   ========================================================================== */

:root {
  --color-bg-base: #040810;
  --color-bg-surface: #08111e;
  --color-bg-surface-elevated: rgba(13, 24, 43, 0.75);
  --color-bg-card: rgba(10, 20, 36, 0.65);
  
  --color-gold-light: #fef0c7;
  --color-gold-primary: #d4af37;
  --color-gold-metallic: linear-gradient(135deg, #f9f0d1 0%, #d4af37 45%, #aa771c 80%, #ffd978 100%);
  --color-gold-border: rgba(212, 175, 55, 0.3);
  --color-gold-glow: rgba(212, 175, 55, 0.4);

  --color-blue-royal: #133974;
  --color-blue-accent: #1e529e;
  --color-blue-glow: rgba(30, 82, 158, 0.35);

  --color-text-main: #f0f4f8;
  --color-text-muted: #94a3b8;
  --color-text-gold: #e2be5a;

  --font-serif: 'Cinzel', serif, Georgia;
  --font-sans: 'Montserrat', sans-serif, -apple-system;
  
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--color-bg-base);
  color: var(--color-text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 20%, #0d1e38 0%, #060c18 60%, #02050a 100%);
}

/* Canvas for Celestial Stars */
#stars-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* Ambient Glow Orbs */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 1;
}

.glow-top {
  width: 550px;
  height: 550px;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(30, 82, 158, 0.25) 0%, rgba(212, 175, 55, 0.12) 60%, transparent 80%);
}

.glow-bottom {
  width: 600px;
  height: 400px;
  bottom: -150px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(19, 57, 116, 0.15) 60%, transparent 80%);
}

/* Containers & Wrapper */
.page-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(4, 8, 16, 0.6);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-mini-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.35);
  transition: var(--transition-smooth);
}

.brand-mini-logo:hover {
  transform: scale(1.08) rotate(5deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-jurisdiction {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--color-gold-light);
}

.brand-rite {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--color-gold-primary);
  font-weight: 500;
}

/* Status Pill */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-gold-light);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px #22c55e;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 3rem 0 4rem;
}

/* Sacred Heading */
.sacred-heading {
  text-align: center;
  margin-bottom: 2rem;
}

.acronym {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  color: var(--color-gold-primary);
  font-weight: 600;
  text-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
}

.divider-gold {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.6rem auto 0;
  width: 140px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold-primary), transparent);
  position: relative;
}

.divider-diamond {
  width: 6px;
  height: 6px;
  background-color: var(--color-gold-light);
  transform: rotate(45deg);
  box-shadow: 0 0 8px var(--color-gold-primary);
}

/* Hero Section */
.hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Emblem Showcase */
.emblem-wrapper {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0.5rem auto 2.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.emblem-aura {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.3) 0%, rgba(30, 82, 158, 0.4) 50%, transparent 75%);
  filter: blur(25px);
  animation: aura-breathe 4s infinite alternate ease-in-out;
}

@keyframes aura-breathe {
  0% { transform: scale(0.92); opacity: 0.7; }
  100% { transform: scale(1.12); opacity: 1; }
}

.emblem-frame {
  position: relative;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  padding: 4px;
  background: var(--color-gold-metallic);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6), 0 0 35px rgba(212, 175, 55, 0.35);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s;
  cursor: pointer;
}

.emblem-frame:hover {
  transform: scale(1.04) translateY(-4px);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.8), 0 0 50px rgba(212, 175, 55, 0.55);
}

.emblem-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
  display: block;
}

/* Southern Cross Constellation Accent */
.southern-cross-constellation {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.star {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px #ffd700, 0 0 14px #fff;
  opacity: 0.85;
}

.star-1 { bottom: -20px; left: 50%; transform: translateX(-50%); animation: twinkle 3s infinite ease-in-out; }
.star-2 { bottom: 10px; left: 15%; animation: twinkle 3.5s infinite ease-in-out 0.5s; }
.star-3 { bottom: 10px; right: 15%; animation: twinkle 2.8s infinite ease-in-out 1s; }
.star-4 { bottom: 35px; left: 45%; animation: twinkle 4s infinite ease-in-out 1.5s; }
.star-5 { bottom: 5px; right: 35%; width: 3px; height: 3px; animation: twinkle 2.5s infinite ease-in-out 0.8s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* Titles */
.main-title {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.title-prefix {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  color: var(--color-gold-light);
  text-transform: uppercase;
  font-weight: 500;
}

.title-highlight {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: var(--color-gold-metallic);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 20px rgba(212, 175, 55, 0.25);
  line-height: 1.15;
}

.title-number {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--color-gold-light);
}

.institution-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 650px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.institution-subtitle strong {
  color: var(--color-text-main);
  font-weight: 600;
}

.rite-tag {
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--color-gold-primary);
  font-weight: 500;
  letter-spacing: 0.05em;
  font-size: 0.95rem;
}

/* Under Construction Main Card */
.construction-card {
  position: relative;
  width: 100%;
  max-width: 760px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-gold-border);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.1);
  margin-bottom: 2.5rem;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.construction-card:hover {
  border-color: rgba(212, 175, 55, 0.5);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.65), 0 0 25px rgba(212, 175, 55, 0.15);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(30, 82, 158, 0.4), rgba(212, 175, 55, 0.2));
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--color-gold-light);
  margin-bottom: 1.25rem;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--color-gold-light);
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.card-description {
  font-size: 1.02rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* Architectural Progress Bar */
.progress-container {
  max-width: 520px;
  margin: 0 auto 2rem;
  text-align: left;
}

.progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 0.55rem;
  font-weight: 500;
}

.progress-title {
  color: var(--color-text-muted);
}

.progress-percent {
  color: var(--color-gold-primary);
  font-weight: 600;
}

.progress-bar-track {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.progress-bar-fill {
  width: 82%;
  height: 100%;
  background: linear-gradient(90deg, #133974 0%, #d4af37 60%, #fff0a8 100%);
  border-radius: 9999px;
  position: relative;
}

.progress-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: progress-shimmer 2.5s infinite linear;
}

@keyframes progress-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Pillars / Values */
.pillars-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  padding-top: 1rem;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.pillar-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.pillar-symbol {
  color: var(--color-gold-primary);
  font-size: 0.8rem;
}

.pillar-name {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--color-gold-light);
  text-transform: uppercase;
}

.pillar-divider {
  color: rgba(212, 175, 55, 0.3);
}

/* Information Cards Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 900px;
  margin-bottom: 2.5rem;
}

.info-card {
  background: rgba(10, 20, 36, 0.55);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: left;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-smooth);
}

.info-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-gold-primary);
  background: rgba(13, 26, 48, 0.7);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.info-card-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--color-gold-primary);
  margin-bottom: 0.75rem;
}

.info-card-header h3 {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-gold-light);
}

.info-card p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

.info-highlight {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--color-gold-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-link {
  color: var(--color-gold-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.contact-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* Action Section / Gold Button */
.action-section {
  margin-top: 0.5rem;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.85rem;
  border-radius: 9999px;
  background: var(--color-gold-metallic);
  color: #040810;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
  transition: var(--transition-smooth);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.5);
  filter: brightness(1.08);
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-block {
  width: 100%;
  justify-content: center;
  border-radius: 10px;
  margin-top: 0.5rem;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 5, 10, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  padding: 1.5rem;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-gold-primary);
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  padding: 2.25rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(212, 175, 55, 0.2);
  transform: translateY(20px) scale(0.96);
  transition: var(--transition-smooth);
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close:hover {
  color: var(--color-gold-light);
}

.modal-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.modal-logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 0.5rem;
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--color-gold-light);
}

.modal-header p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: left;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.form-group input,
.form-group textarea {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: #fff;
  font-family: inherit;
  transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-gold-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.form-feedback {
  font-size: 0.9rem;
  text-align: center;
  margin-top: 0.5rem;
  min-height: 1.2rem;
}

/* Footer */
.site-footer {
  padding: 3rem 0 2.5rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), transparent);
  margin-bottom: 1.75rem;
}

.footer-motto {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--color-gold-light);
  letter-spacing: 0.05em;
  font-style: italic;
  margin-bottom: 0.75rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.footer-security {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.25);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-top: 0.5rem;
}

/* Responsive Breakpoints */
@media (max-width: 860px) {
  .title-highlight {
    font-size: 2rem;
  }
  .info-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
  }
  .emblem-wrapper {
    width: 220px;
    height: 220px;
  }
  .emblem-frame {
    width: 200px;
    height: 200px;
  }
}

@media (max-width: 540px) {
  .title-highlight {
    font-size: 1.6rem;
  }
  .title-prefix {
    font-size: 0.9rem;
  }
  .title-number {
    font-size: 1.35rem;
  }
  .construction-card {
    padding: 1.75rem 1.25rem;
  }
  .card-title {
    font-size: 1.35rem;
  }
  .card-description {
    font-size: 0.92rem;
  }
  .pillars-grid {
    gap: 0.75rem;
  }
  .pillar-name {
    font-size: 0.85rem;
  }
}
