/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #1e293b;
  background-color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  font-weight: 800;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

/* Colors */
:root {
  --primary-blue: #2563eb;
  --primary-blue-dark: #1d4ed8;
  --primary-blue-light: #3b82f6;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
}

.text-primary {
  color: var(--primary-blue);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 0.5rem;
}

.btn-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
  color: white;
  box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-blue-dark), #1e40af);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px 0 rgba(37, 99, 235, 0.35);
}

.btn-secondary {
  background: white;
  color: var(--primary-blue);
  border-color: var(--primary-blue);
}

.btn-secondary:hover {
  background: var(--primary-blue);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--slate-700);
  border-color: var(--slate-300);
}

.btn-outline:hover {
  background: var(--slate-50);
  border-color: var(--slate-400);
}

.btn-outline-white {
  background: transparent;
  color: white;
  border-color: white;
}

.btn-outline-white:hover {
  background: white;
  color: var(--primary-blue);
}

.full-width {
  width: 100%;
}

/* Icons */
.icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-200);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.logo {
  height: 2.5rem;

}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: var(--slate-700);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

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

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn span {
  width: 1.5rem;
  height: 2px;
  background: var(--slate-700);
  margin: 2px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--slate-600);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.dashboard-img {
  width: 100%;
  height: auto;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Benefits Section */
.benefits {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--slate-600);
  max-width: 600px;
  margin: 0 auto;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.benefit-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--slate-200);
  text-align: center;
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.benefit-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--primary-blue);
}

.benefit-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.benefit-card p {
  color: var(--slate-600);
  margin: 0;
}

/* Trust Section */
.trust {
  padding: 5rem 0;
  background: var(--slate-50);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.trust-item {
  text-align: center;
}

.trust-icon {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.trust-icon svg {
  width: 2rem;
  height: 2rem;
  color: var(--primary-blue);
}

.trust-item h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.trust-item p {
  color: var(--slate-600);
  margin: 0;
}

/* CTA Section */
.cta {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
  color: white;
}

.cta-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-content p {
  font-size: 1.125rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  background: var(--slate-900);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: var(--slate-400);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-logo {
  height: 2.5rem;
  width: auto;
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--slate-800);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.social-link:hover {
  background: var(--primary-blue);
}

.social-link svg {
  width: 1.25rem;
  height: 1.25rem;
}

.footer-bottom {
  border-top: 1px solid var(--slate-800);
  padding-top: 2rem;
  text-align: center;
  color: var(--slate-400);
}

/* Page Specific Styles */
/* .main-content {
  padding-top: 4rem;
} */

.page-hero {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  text-align: center;
}

.page-hero h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.hero-divider {
  width: 6rem;
  height: 4px;
  background: var(--primary-blue);
  margin: 0 auto 2rem;
}

/* About Page */
.historia {
  padding: 4rem 0;
}

.historia-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.historia-text h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.historia-text p {
  font-size: 1.125rem;
  color: var(--slate-600);
  margin-bottom: 1rem;
}

.mision-vision {
  padding: 4rem 0;
  background: var(--slate-50);
}

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.mv-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  border-left: 4px solid var(--primary-blue);
}

.mv-card.vision {
  border-left-color: var(--slate-900);
}

.mv-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.mv-card p {
  color: var(--slate-600);
  margin: 0;
}

.valores {
  padding: 4rem 0;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.valor-card {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  text-align: center;
  border: 1px solid var(--slate-200);
  transition: all 0.3s ease;
}

.valor-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.valor-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.valor-icon.blue {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.valor-icon.blue svg {
  color: var(--primary-blue);
}

.valor-icon.gray {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.valor-icon.gray svg {
  color: var(--slate-900);
}

.valor-icon svg {
  width: 2rem;
  height: 2rem;
}

/* Services Page */
.services-grid-section {
  padding: 4rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.service-card {
  background: rgb(249, 249, 249);
  padding: 2rem;
  border-radius: 1rem;
  border-top: 4px solid var(--primary-blue);
  width: 100%;
  max-width: 400px;
  transition: all 0.4s ease !important;
}

.service-card.gray {
  border-top-color: var(--slate-900);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    background: #f0f0f0;
}

.service-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-card.blue .service-icon {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.service-card.blue .service-icon svg {
  color: var(--primary-blue);
}

.service-card.gray .service-icon {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.service-card.gray .service-icon svg {
  color: var(--slate-900);
}

.service-icon svg {
  width: 2rem;
  height: 2rem;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.service-card ul {
  list-style: none;
  color: var(--slate-600);
}

.service-card ul li {
  margin-bottom: 0.5rem;
}

.services-cta {
  padding: 4rem 0;
  background: var(--slate-50);
  text-align: center;
}

.services-cta h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.services-cta p {
  font-size: 1.125rem;
  color: var(--slate-600);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Contact Page */
.contact-section {
  padding: 4rem 0;
}

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

.contact-form-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  border: 1px solid var(--slate-200);
}

.contact-form-card h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--slate-700);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 2px solid var(--slate-300);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.contact-info h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon.blue {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
}

.contact-icon.blue svg {
  color: var(--primary-blue);
}

.contact-icon.gray {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.contact-icon.gray svg {
  color: var(--slate-900);
}

.contact-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.contact-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.25rem;
}

.contact-item p {
  color: var(--slate-600);
  margin: 0;
}

.map-placeholder {
  background: white;
  padding: 1rem;
  border-radius: 1rem;
  border: 1px solid var(--slate-200);
}

.map-content {
  width: 100%;
  height: 16rem;
  background: var(--slate-100);
  border-radius: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--slate-500);
}

.map-content svg {
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.5rem;
}

.inspirational {
  padding: 4rem 0;
  background: var(--slate-50);
  text-align: center;
}

.inspirational blockquote {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--slate-900);
  max-width: 800px;
  margin: 0 auto;
}

/* Login Page */
.login-body {
  background: linear-gradient(135deg, #dbeafe 0%, #f1f5f9 100%);
  min-height: 100vh;
}

.login-container {
  padding: 2rem 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 8rem);
}

.login-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 480px;
}

.login-logo {
  text-align: center;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.login-logo-img {
  height: 3rem;
  width: auto;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h2 {
  font-size: 2rem;
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.login-header p {
  color: var(--slate-600);
  margin: 0;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.login-btn {
  background: linear-gradient(135deg, var(--primary-blue), var(--primary-blue-dark));
  padding: 1rem;
  font-size: 1rem;
  box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.25);
}

.login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.35);
}

.login-links {
  text-align: center;
}

.forgot-password {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  display: block;
  margin-bottom: 1rem;
}

.forgot-password:hover {
  text-decoration: underline;
}

.signup-link {
  color: var(--slate-600);
  font-size: 0.875rem;
}

.signup-link a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
}

.signup-link a:hover {
  text-decoration: underline;
}

.loader {
  border: 3px solid #f3f3f3; /* gris claro */
  border-top: 3px solid #2563eb; /* azul primario */
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
  animation: spin 0.8s linear infinite;
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  text-align: center;
  align-items: center;
  gap: 0.5rem;
}

/* Alert éxito */
.alert-success {
  background-color: #e6f4ff;        /* azul muy claro */
  border: 1px solid #2563eb;        /* azul UpkeepPro */
  color: #1e40af;                   /* azul oscuro */
}

/* Alert error */
.alert-error {
  background-color: #fee2e2;        /* rojo claro */
  border: 1px solid #dc2626;        /* rojo fuerte */
  color: #7f1d1d;                   /* rojo oscuro */
}

/* Alert info */
.alert-info {
  background-color: #f0f9ff;        /* celeste claro */
  border: 1px solid #0ea5e9;        /* celeste fuerte */
  color: #075985;                   /* celeste oscuro */
}

/* Alert warning */
.alert-warning {
  background-color: #fff7ed;        /* naranja claro */
  border: 1px solid #f97316;        /* naranja fuerte */
  color: #7c2d12;                   /* naranja oscuro */
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .historia-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .mv-grid {
    grid-template-columns: 1fr;
  }

  .valores-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .page-hero h1 {
    font-size: 2rem;
  }

  .section-header h2 {
    font-size: 1.75rem;
  }

  .cta-content h2 {
    font-size: 1.75rem;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .valores-grid {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
