/*
=== MIAPP UNLP STYLES ===
Base styles for MiApp UNLP application
*/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  --primary: #02535e;
  --primary-light: #0b8f99;
  --secondary: rgb(6, 189, 112);
  --soft-black: #333;
  --soft-white: #e6e3e3;
}

html {
  scroll-behavior: smooth;
}

/* Base styles */
a {
  color: var(--primary);
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #000;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}

::-webkit-scrollbar-thumb {
  background: rgba(2, 83, 94, 0.3);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(2, 83, 94, 0.5);
}

/* Header styles */
.header {
  background: var(--primary);
  padding: 0 2rem;
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo-section {
  display: flex;
  align-items: center;
}

.app-logo img {
  height: 32px;
}

.header-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 0.4rem 0.8rem;
  border-radius: 5px;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
}

.nav-link.active {
  color: white;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Mobile menu overlay */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background: rgba(2, 83, 94, 0.97);
  backdrop-filter: blur(10px);
  z-index: 1000;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
}

.mobile-menu-overlay.show,
.mobile-menu-overlay.active {
  right: 0;
}

.mobile-menu-overlay .close-mobile-menu {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu-overlay nav {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu-overlay a {
  color: white;
  text-decoration: none;
  padding: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 0.875rem;
  font-weight: 600;
}

.mobile-menu-overlay a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-menu-overlay a.active {
  background: rgba(255, 255, 255, 0.15);
}

.mobile-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-backdrop.show,
.mobile-menu-backdrop.active {
  opacity: 1;
  visibility: visible;
}

/* Layout */
.wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  animation: fadeIn 0.6s ease-out;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

/* Footer */
.footer {
  background: #f2f2f2;
  color: #000;
  padding: 0 2rem;
  height: 100px;
  font-size: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  height: 60px;
}

/* Home page specific styles */
.hero-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
}

.phone-mockup {
  width: 280px;
  height: 560px;
  background: white;
  border-radius: 35px;
  padding: 15px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
  position: relative;
  flex-shrink: 0;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 6px;
  background: #333;
  border-radius: 3px;
  z-index: 2;
}

.swiper {
  width: 100%;
  height: 100%;
  border-radius: 25px;
  overflow: hidden;
}

.swiper-slide>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-area {
  flex: 1;
  max-width: 500px;
  min-height: 400px;
  overflow: hidden;
}

.slide-content {
  flex: 1;
  transition: opacity 0.3s ease;
}

.content-area h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #000;
}

.content-area p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #000;
  margin-bottom: 1rem;
}

.download-buttons {
  display: flex;
  gap: 1rem;
  flex-direction: row;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 2rem;
  justify-content: flex-start;
}

.store-btn {
  background: var(--primary);
  color: white;
  padding: 0.8rem 1.2rem;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.875rem;
  height: 48px;
  width: 170px;
  justify-content: center;
  flex-shrink: 0;
}

.store-btn:hover {
  background: var(--primary-light);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Swiper customization */
.swiper-pagination {
  position: relative !important;
  margin-top: 1.5rem !important;
  bottom: auto !important;
}

.swiper-pagination-bullet {
  background: rgba(2, 83, 94, 0.3) !important;
  opacity: 1 !important;
}

.swiper-pagination-bullet-active {
  background: var(--primary) !important;
  transform: scale(1.2);
}

/* Policy pages */
.policy-content {
  max-width: 1140px;
  margin: 0 auto;
  color: #000;
  padding: 0;
}

.policy-content h1 {
  color: #000;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.policy-content h2 {
  color: #000;
  font-size: 0.95rem;
  font-weight: 700;
  margin: 2rem 0 0.5rem;
  scroll-margin-top: 120px;
}

.policy-content h3 {
  color: #000;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 1rem 0 0.5rem;
}

.policy-content p {
  font-size: 0.95rem;
  line-height: 20px;
  margin-bottom: 0.5rem;
  color: #000;
}

.policy-content ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.policy-content li {
  font-size: 0.95rem;
  line-height: 20px;
  margin-bottom: 0.25rem;
}

.policy-content .toc {
  margin-bottom: 1.5rem;
}

.policy-content .toc h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.policy-content .toc a {
  color: var(--primary);
  font-size: 0.95rem;
  line-height: 20px;
  text-decoration: none;
}

.policy-content .toc a:hover {
  text-decoration: underline;
}

/* Error page */
.error-page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  text-align: center;
  padding: 20px;
}

.error-content h1 {
  font-size: 6rem;
  margin-bottom: 10px;
  font-weight: bold;
  color: var(--primary);
}

.error-content h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #000;
}

.error-content p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  color: #333;
}

.btn-home {
  display: inline-block;
  padding: 12px 24px;
  background: var(--primary);
  color: white;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}

.btn-home:hover {
  background: var(--primary-light);
  transform: scale(1.05);
}

/* Boton para volver arriba */
.btnTop {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: none;
  padding: 12px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 90;
}

.btnTop:hover {
  background: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-container {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .phone-mockup {
    width: 250px;
    height: 500px;
  }

  .swiper-slide>img {
    object-fit: contain;
  }

  .download-buttons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .header-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .wrapper {
    padding: 1.5rem 1rem;
  }

  .content-area p {
    font-size: 0.95rem;
  }

  .policy-content {
    padding: 0;
  }

  .mobile-menu-overlay {
    display: block;
  }
}
