/* ============================================
   HUMAN UNIVERSAL NATION - MAIN STYLES
   NACIÓN HUMANA UNIVERSAL - ESTILOS PRINCIPALES
   ============================================ */

:root {
  --ocean-deep: #0B3B5E;
  --ocean-mid: #1B6B87;
  --ocean-light: #2A9D8F;
  --turquoise: #48C9B0;
  --sand-light: #F4E9CD;
  --sand-warm: #E8D5A8;
  --cream: #FFF8EE;
  --white: #FFFFFF;
  --dark-text: #1E2F3A;
  --gray-text: #5A6E7A;
  --accent-gold: #D4AF37;
  --accent-coral: #E76F51;
  --bg-primary: var(--cream);
  --bg-secondary: var(--sand-light);
  --bg-card: var(--white);
  --bg-header: rgba(11, 59, 94, 0.95);
  --border-light: #E0D6C0;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
}

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

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--dark-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========== HEADER ========== */
.site-header {
  background: var(--bg-header);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--turquoise);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.8rem 2rem;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo img {
  height: 50px;
  width: auto;
}

.logo-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.5px;
}

.logo-text h1 span {
  color: var(--turquoise);
}

.logo-text p {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
}

/* ========== USER BUTTONS ========== */
.user-buttons {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.btn-login {
  background: transparent;
  border: 1px solid var(--turquoise);
  color: var(--turquoise);
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-login:hover {
  background: rgba(72, 201, 176, 0.1);
  transform: translateY(-1px);
}

.btn-register {
  background: var(--turquoise);
  border: none;
  color: var(--ocean-deep);
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.2s;
}

.btn-register:hover {
  background: var(--ocean-light);
  color: white;
  transform: translateY(-1px);
}

.user-greeting {
  color: var(--turquoise);
  font-weight: 600;
  font-size: 0.9rem;
}

.btn-logout {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s;
}

.btn-logout:hover {
  background: var(--accent-coral);
  transform: translateY(-1px);
}

/* ========== LANGUAGE SWITCHER ========== */
.lang-switcher {
  display: flex;
  gap: 0.5rem;
  margin-right: 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  padding-right: 1rem;
}

.lang-btn {
  background: transparent;
  border: 1.5px solid var(--turquoise);
  color: var(--turquoise);
  padding: 0.4rem 0.9rem;
  border-radius: 30px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  min-width: 50px;
}

.lang-btn:hover {
  background: rgba(72, 201, 176, 0.15);
  transform: translateY(-1px);
}

.lang-btn.active {
  background: var(--turquoise);
  color: var(--ocean-deep);
  box-shadow: 0 2px 8px rgba(72, 201, 176, 0.3);
}

/* ========== TABS ========== */
.tabs-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 2px solid var(--border-light);
  margin: 2rem 0 1.5rem;
  padding-bottom: 0.5rem;
}

.tab-btn {
  background: transparent;
  border: none;
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-text);
  cursor: pointer;
  border-radius: 40px;
  transition: all 0.2s;
}

.tab-btn:hover {
  color: var(--ocean-mid);
  background: rgba(27, 107, 135, 0.1);
}

.tab-btn.active {
  color: var(--ocean-deep);
  background: var(--sand-warm);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-pane.active-pane {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========== HERO SECTION ========== */
.hero-section {
  text-align: center;
  padding: 3rem 2rem 4rem;
  background: linear-gradient(135deg, var(--ocean-deep) 0%, var(--ocean-mid) 100%);
  border-radius: 32px;
  margin-bottom: 2rem;
  color: white;
}

.hero-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-section .highlight {
  color: var(--turquoise);
}

.hero-section p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

/* ========== CARDS ========== */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 1.8rem;
  transition: all 0.3s;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--turquoise);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-family: 'Playfair Display', serif;
  color: var(--ocean-deep);
  margin-bottom: 0.75rem;
  font-size: 1.3rem;
}

.card p {
  color: var(--gray-text);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ========== VOTING SYSTEM ========== */
.voting-system {
  background: var(--bg-secondary);
  border-radius: 20px;
  padding: 2rem;
  margin: 2rem 0;
  border-left: 4px solid var(--accent-gold);
}

.voting-conditions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.condition {
  flex: 1;
  background: var(--bg-card);
  padding: 1.2rem;
  border-radius: 12px;
  min-width: 180px;
}

.condition strong {
  color: var(--ocean-deep);
  display: block;
  margin-bottom: 0.5rem;
}

/* ========== ETHICAL LIST ========== */
.ethical-list {
  list-style: none;
  margin-top: 1rem;
}

.ethical-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}

/* ========== GALLERY ========== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.gallery-item {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: transform 0.3s;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery-item .caption {
  padding: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-text);
  border-top: 1px solid var(--border-light);
}

.img-full {
  width: 100%;
  border-radius: 16px;
  margin: 1.5rem 0;
  border: 1px solid var(--border-light);
}

/* ========== TIMELINE ========== */
.timeline {
  margin: 2rem 0;
}

.timeline-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: 12px;
  border-left: 3px solid var(--accent-gold);
}

.timeline-year {
  min-width: 100px;
  font-weight: 700;
  color: var(--accent-gold);
  font-size: 1.1rem;
}

/* ========== DONATION BOX ========== */
.donation-box {
  background: linear-gradient(135deg, #1A3A4A 0%, #0F2A3A 100%);
  border-radius: 24px;
  padding: 2.5rem;
  text-align: center;
  margin: 2rem 0;
  color: white;
}

.donation-box h3 {
  color: var(--turquoise);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.donation-box p {
  opacity: 0.9;
  max-width: 500px;
  margin: 0 auto;
}

.donation-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ========== BUTTONS ========== */
.btn-primary,
.btn-outline,
.btn-secondary {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--ocean-light);
  color: white;
}

.btn-primary:hover {
  background: var(--turquoise);
  transform: translateY(-2px);
}

.btn-outline {
  border: 2px solid var(--ocean-light);
  color: var(--ocean-light);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(42, 157, 143, 0.1);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--sand-warm);
  color: var(--ocean-deep);
}

/* ========== MODALS ========== */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: var(--white);
  padding: 2rem;
  border-radius: 24px;
  max-width: 450px;
  width: 90%;
  position: relative;
  box-shadow: var(--shadow-md);
}

.close-modal {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--gray-text);
  transition: color 0.2s;
}

.close-modal:hover {
  color: var(--accent-coral);
}

.modal-content input,
.modal-content select {
  width: 100%;
  padding: 0.8rem;
  margin: 0.8rem 0;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
}

.modal-content button {
  width: 100%;
  padding: 0.8rem;
  margin-top: 0.5rem;
}

/* ========== CONTACT FORM ========== */
.contact-form {
  max-width: 500px;
  margin: 1.5rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  padding: 0.8rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  font-family: 'Inter', sans-serif;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--turquoise);
}

/* ========== FOOTER ========== */
footer {
  background: var(--ocean-deep);
  color: white;
  padding: 2rem;
  text-align: center;
  margin-top: 3rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

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

/* ========== UTILITIES ========== */
.text-center {
  text-align: center;
}

.mt-4 {
  margin-top: 2rem;
}

.mb-4 {
  margin-bottom: 2rem;
}

.hidden {
  display: none;
}

/* ========== NOTIFICATIONS ========== */
.custom-notification {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--ocean-light);
  color: white;
  padding: 12px 24px;
  border-radius: 40px;
  z-index: 2000;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .tabs-nav {
    justify-content: center;
  }
  
  .tab-btn {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  
  .hero-section h2 {
    font-size: 1.8rem;
  }
  
  .header-container {
    flex-direction: column;
    text-align: center;
  }
  
  .logo {
    flex-direction: column;
    text-align: center;
  }
  
  .timeline-item {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .user-buttons {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .lang-switcher {
    margin-right: 0;
    padding-right: 0;
    border-right: none;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 2rem 1rem;
  }
  
  .hero-section h2 {
    font-size: 1.5rem;
  }
  
  .card {
    padding: 1.2rem;
  }
  
  .donation-box {
    padding: 1.5rem;
  }
}