/* ================================================
   shared.css — Estilos base compartidos por todas
   las páginas de GestiónProp
   ================================================ */

/* ===== CSS RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --primary: #1d4ed8;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --success: #22c55e;
  --success-light: #dcfce7;
  --error: #ef4444;
  --error-light: #fef2f2;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --bg-white: #ffffff;
  --bg-gray: #f9fafb;
  --bg-gray-100: #f3f4f6;
  --border-color: #e5e7eb;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-primary: 0 10px 40px -10px rgba(29, 78, 216, 0.4);

  /* Border radius */
  --radius-sm: 0.375rem;
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-white);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; height: auto; }


/* ===== UTILITIES ===== */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px)  { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

.text-gradient {
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary-dark);
  color: white;
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 50px -10px rgba(29, 78, 216, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover { background: var(--bg-gray); }

.btn-ingresar {
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--primary-dark);
  background: rgba(29, 78, 216, 0.07);
  border: 1.5px solid rgba(29, 78, 216, 0.2);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-ingresar:hover {
  background: rgba(29, 78, 216, 0.12);
  border-color: rgba(29, 78, 216, 0.4);
  color: var(--primary-dark);
}

.btn-ghost {
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: transparent;
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.btn-ghost:hover {
  background: var(--bg-gray);
  color: var(--text-primary);
}

.btn-white {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.btn-white:hover {
  background: var(--bg-gray);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-outline-white:hover { background: rgba(255, 255, 255, 0.1); }

.btn-sm { padding: 0.625rem 1.5rem; font-size: 0.875rem; }


/* ===== SECTION HELPERS ===== */
.section-header {
  text-align: center;
  max-width: 768px;
  margin: 0 auto 4rem;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(29, 78, 216, 0.1);
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-secondary);
}


/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.7; }
}

@keyframes spin { to { transform: rotate(360deg); } }

.animate-fade-in-up   { animation: fadeInUp 0.8s ease forwards; opacity: 0; }
.animate-fade-in-left { animation: fadeInLeft 0.8s ease forwards; opacity: 0; }
.animate-float        { animation: float 3s ease-in-out infinite; }
.animate-pulse-slow   { animation: pulse 2s ease-in-out infinite; }

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }


/* ===== SCROLL REVEAL ===== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal:nth-child(1) { transition-delay: 0.1s; }
.scroll-reveal:nth-child(2) { transition-delay: 0.2s; }
.scroll-reveal:nth-child(3) { transition-delay: 0.3s; }
.scroll-reveal:nth-child(4) { transition-delay: 0.4s; }
.scroll-reveal:nth-child(5) { transition-delay: 0.5s; }
.scroll-reveal:nth-child(6) { transition-delay: 0.6s; }
.scroll-reveal:nth-child(7) { transition-delay: 0.7s; }
.scroll-reveal:nth-child(8) { transition-delay: 0.8s; }


/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: var(--transition);
  padding: 1rem 0;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  padding: 0.75rem 0;
}

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

.logo img {
  height: 60px;
  width: auto;
  display: block;
}

.nav-desktop { display: none; }

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 2.5rem;
  }
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active { color: var(--primary); }

.header-actions { display: none; }

@media (min-width: 1024px) {
  .header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius);
  background: var(--bg-gray);
  font-size: 1.25rem;
  color: var(--text-primary);
}

@media (min-width: 1024px) { .menu-toggle { display: none; } }

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%; left: 1rem; right: 1rem;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 1rem;
  margin-top: 0.5rem;
  border: 1px solid var(--border-color);
}

.mobile-menu.active {
  display: block;
  animation: fadeInUp 0.3s ease;
}

.mobile-nav-link {
  display: block;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.mobile-nav-link:hover {
  background: rgba(29, 78, 216, 0.05);
  color: var(--primary);
}

.mobile-menu hr {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 0.75rem 0;
}


/* ===== FOOTER ===== */
.footer {
  background: #111827;
  color: white;
}

.footer-main { padding: 4rem 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 2rem;
  }
}

.footer-logo img {
  height: 50px;
  width: auto;
  display: block;
  margin-bottom: 1.5rem;
}

.footer-description {
  font-size: 0.9375rem;
  color: #9ca3af;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-contact a,
.footer-contact div {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: #9ca3af;
  transition: var(--transition);
}

.footer-contact a:hover { color: white; }
.footer-contact i { font-size: 0.875rem; width: 1rem; }

.footer-column h4 {
  font-size: 1rem;
  font-weight: 500;
  color: white;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9375rem;
  color: #9ca3af;
  transition: var(--transition);
}

.footer-links a:hover { color: white; }

.footer-bottom {
  border-top: 1px solid #374151;
  padding: 1.5rem 0;
}

.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-bottom-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-copyright {
  font-size: 0.875rem;
  color: #6b7280;
}

.footer-social { display: flex; gap: 0.75rem; }

.footer-social a {
  width: 2.5rem;
  height: 2.5rem;
  background: #1f2937;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary);
  color: white;
}
