/* ========================================
   Crédito Social - CSS Principal
   Versión estática compilada
   ======================================== */

/* Reset y Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: "Open Sans", system-ui, sans-serif;
  line-height: 1.6;
  color: #1a1a2e;
  background-color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Variables CSS */
:root {
  /* Colores de marca */
  --brand-navy: #1e3a5f;
  --brand-navy-dark: #152a45;
  --brand-gold: #e8b800ff;
  --brand-gold-light: #ffcc00ff;

  /* Colores semánticos */
  --color-background: #ffffff;
  --color-foreground: #1a1a2e;
  --color-card: #ffffff;
  --color-card-foreground: #1a1a2e;
  --color-primary: #1e3a5f;
  --color-primary-foreground: #f8f9fa;
  --color-secondary: #f4f6f8;
  --color-secondary-foreground: #1a1a2e;
  --color-muted: #f4f6f8;
  --color-muted-foreground: #64748b;
  --color-accent: #c9a227;
  --color-accent-foreground: #1a1a2e;
  --color-border: #e2e8f0;
  --color-input: #e2e8f0;
  --color-destructive: #ef4444;

  /* Sombras */
  --shadow-soft: 0 2px 8px rgba(30, 58, 95, 0.06);
  --shadow-card: 0 4px 12px rgba(30, 58, 95, 0.08);
  --shadow-medium: 0 8px 24px rgba(30, 58, 95, 0.12);
  --shadow-strong: 0 12px 32px rgba(30, 58, 95, 0.16);

  /* Espaciado */
  --container-max: 1280px;
  --section-padding-y: 5rem;
  --section-padding-x: 1.5rem;
}

/* Tipografía */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-foreground);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Contenedores */
.container-wide {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--section-padding-x);
}

.section-padding {
  padding: var(--section-padding-y) 0;
}

/* Utilidades */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.font-bold {
  font-weight: 700;
}
.font-semibold {
  font-weight: 600;
}
.font-medium {
  font-weight: 500;
}

/* Botón CTA Principal */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: linear-gradient(
    135deg,
    var(--brand-gold) 0%,
    var(--brand-gold-light) 100%
  );
  color: var(--color-foreground);
  font-weight: 600;
  font-size: 1.125rem;
  border-radius: 0.375rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(201, 162, 39, 0.4);
  text-decoration: none;
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(201, 162, 39, 0.5);
}

.btn-cta:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Botón secundario */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  background: transparent;
  color: var(--color-primary-foreground);
  font-weight: 600;
  font-size: 1.125rem;
  border-radius: 0.375rem;
  border: 2px solid rgba(248, 249, 250, 0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: rgba(248, 249, 250, 0.1);
}

/* Divisor de sección */
.section-divider {
  width: 4rem;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--brand-gold) 0%,
    var(--brand-gold-light) 100%
  );
  border-radius: 2px;
  margin: 0 auto;
}

/* ========================================
   HEADER
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-soft);
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.header-logo img {
  height: 2.5rem;
  width: auto;
}

.header-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.header-links a {
  color: rgba(26, 26, 46, 0.8);
  font-weight: 500;
  transition: color 0.2s;
}

.header-links a:hover {
  color: var(--color-primary);
}

.header-cta {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

@media (min-width: 768px) {
  .header-nav {
    height: 5rem;
  }

  .header-logo img {
    height: 3rem;
  }

  .header-links {
    display: flex;
  }

  .header-cta {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?w=1920&q=80");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(30, 58, 95, 0.95) 0%,
    rgba(21, 42, 69, 0.9) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: var(--color-primary-foreground);
  padding-top: 5rem;
  max-width: 56rem;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.25rem;
  color: var(--color-primary-foreground);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.hero h1 .text-gradient {
  background: linear-gradient(
    135deg,
    var(--brand-gold) 0%,
    var(--brand-gold-light) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(248, 249, 250, 0.9);
  margin-bottom: 2rem;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 32rem;
  margin: 0 auto;
}

.hero-stat {
  text-align: center;
}

.hero-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand-gold);
}

.hero-stat-label {
  font-size: 0.75rem;
  color: rgba(248, 249, 250, 0.7);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
}

.hero-scroll .material-icons {
  font-size: 2.5rem;
  color: rgba(248, 249, 250, 0.6);
  animation: bounce 2s infinite;
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

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

  .hero-stat-value {
    font-size: 1.875rem;
  }

  .hero-stat-label {
    font-size: 0.875rem;
  }

  .hero-stats {
    gap: 2rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.75rem;
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* ========================================
   BENEFITS SECTION
   ======================================== */
.benefits {
  background: var(--color-background);
}

.benefits-header {
  text-align: center;
  margin-bottom: 3rem;
}

.benefits-header h2 {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

.benefits-header p {
  color: var(--color-muted-foreground);
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 1rem auto 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.benefit-card {
  background: var(--color-card);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.benefit-icon {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--brand-navy) 0%,
    var(--brand-navy-dark) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.benefit-icon .material-icons {
  font-size: 1.75rem;
  color: var(--brand-gold);
}

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

.benefit-card p {
  color: var(--color-muted-foreground);
  font-size: 0.9375rem;
}

@media (min-width: 768px) {
  .benefits-header h2 {
    font-size: 2.25rem;
  }

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

@media (min-width: 1024px) {
  .benefits-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================
   HOW IT WORKS SECTION
   ======================================== */
.how-it-works {
  background: var(--color-secondary);
}

.how-it-works-header {
  text-align: center;
  margin-bottom: 3rem;
}

.how-it-works-header h2 {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

.how-it-works-header p {
  color: var(--color-muted-foreground);
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 1rem auto 0;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  position: relative;
}

.step-card {
  position: relative;
  background: var(--color-card);
  border-radius: 0.75rem;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-card);
}

.step-number {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--brand-gold) 0%,
    var(--brand-gold-light) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-foreground);
  margin: 0 auto 1rem;
}

.step-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.step-card p {
  color: var(--color-muted-foreground);
  font-size: 0.9375rem;
}

@media (min-width: 768px) {
  .how-it-works-header h2 {
    font-size: 2.25rem;
  }

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

@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials {
  background: var(--color-background);
}

.testimonials-header {
  text-align: center;
  margin-bottom: 3rem;
}

.testimonials-header h2 {
  font-size: 1.875rem;
  margin-bottom: 1rem;
}

.testimonials-header p {
  color: var(--color-muted-foreground);
  font-size: 1.125rem;
  max-width: 42rem;
  margin: 1rem auto 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.testimonial-card {
  background: var(--color-card);
  border-radius: 0.75rem;
  padding: 1.5rem 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(226, 232, 240, 0.5);
  transition: all 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-medium);
}

.testimonial-stars {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.testimonial-stars .material-icons {
  font-size: 1.25rem;
  color: var(--brand-gold);
}

.testimonial-content {
  color: rgba(26, 26, 46, 0.9);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(30, 58, 95, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-avatar .material-icons {
  color: var(--color-primary);
}

.testimonial-name {
  font-weight: 600;
  color: var(--color-foreground);
}

.testimonial-role {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

@media (min-width: 768px) {
  .testimonials-header h2 {
    font-size: 2.25rem;
  }

  .testimonials-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* ========================================
   CONTACT FORM SECTION
   ======================================== */
.contact {
  background: var(--color-secondary);
}

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

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

.contact-info > p {
  color: var(--color-muted-foreground);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.contact-benefits {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-benefit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-benefit-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-benefit-icon .material-icons {
  font-size: 1rem;
  color: var(--brand-gold);
}

.contact-form-wrapper {
  background: var(--color-card);
  border-radius: 0.75rem;
  padding: 1.5rem;
  box-shadow: var(--shadow-medium);
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

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

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-foreground);
  margin-bottom: 0.375rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  border: 1px solid var(--color-input);
  background: var(--color-background);
  color: var(--color-foreground);
  font-size: 1rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-group input::placeholder {
  color: var(--color-muted-foreground);
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-checkbox input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin-top: 0.25rem;
  accent-color: var(--color-primary);
}

.form-checkbox label {
  font-size: 0.875rem;
  color: var(--color-muted-foreground);
}

.form-checkbox a {
  color: var(--color-primary);
  text-decoration: underline;
}

.form-checkbox a:hover {
  color: var(--brand-navy-dark);
}

.form-error {
  color: var(--color-destructive);
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

.form-submit {
  width: 100%;
}

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

@media (min-width: 768px) {
  .contact-info h2 {
    font-size: 2.25rem;
  }

  .contact-form-wrapper {
    padding: 2rem;
  }
}

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

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: linear-gradient(
    135deg,
    var(--brand-navy) 0%,
    var(--brand-navy-dark) 100%
  );
  color: var(--color-primary-foreground);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(248, 249, 250, 0.1);
}

.footer-brand p {
  color: rgba(248, 249, 250, 0.7);
  font-size: 0.9375rem;
  margin-top: 1rem;
  max-width: 20rem;
}

.footer-logo img {
  height: 2.5rem;
  width: auto;
}

.footer-section h4 {
  font-size: 1.125rem;
  color: var(--color-primary-foreground);
  margin-bottom: 1rem;
}

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

.footer-section a {
  color: rgba(248, 249, 250, 0.8);
  font-size: 0.875rem;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: var(--brand-gold);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(248, 249, 250, 0.8);
  font-size: 0.875rem;
}

.footer-contact-item .material-icons {
  font-size: 1.125rem;
  color: var(--brand-gold);
}

.footer-bottom {
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-bottom p {
  color: rgba(248, 249, 250, 0.6);
  font-size: 0.875rem;
}

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

.footer-social a {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(248, 249, 250, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.footer-social a:hover {
  background: var(--brand-gold);
}

.footer-social .material-icons {
  font-size: 1.25rem;
  color: var(--color-primary-foreground);
}

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

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

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

/* ========================================
   ANIMATIONS (animate.css simplificado)
   ======================================== */
.animate-fadeInUp {
  animation: fadeInUp 0.8s ease-out;
}

.animate-fadeIn {
  animation: fadeIn 1s ease-out;
}

.animate-delay-1 {
  animation-delay: 0.3s;
  animation-fill-mode: both;
}

.animate-delay-2 {
  animation-delay: 0.6s;
  animation-fill-mode: both;
}

.animate-delay-3 {
  animation-delay: 0.9s;
  animation-fill-mode: both;
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ========================================
   UTILITIES
   ======================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Material Icons */
.material-icons {
  font-family: "Material Icons";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
}

/* Spin animation */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.animate-spin {
  animation: spin 1s linear infinite;
}
