/* Reset y base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(180deg, #fafafa 0%, #f0f0f5 100%);
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: #1a1a2e;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: #6366f1;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover {
  color: #4f46e5;
}

/* Animaciones */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Header */
.header {
  max-width: 900px;
  margin: 50px auto 0 auto;
  padding: 50px 30px;
  text-align: center;
  animation: fadeInUp 0.6s ease-out;
}

.image img {
  width: 200px;
  height: auto;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.image img:hover {
  transform: scale(1.05);
}

.header p {
  color: #64748b;
  font-size: 15px;
  margin-top: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
}

/* Navegacion */
.items {
  max-width: 900px;
  margin: 24px auto 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  animation: fadeInUp 0.6s ease-out 0.1s both;
}

.items a {
  padding: 12px 24px;
  color: #475569;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  font-size: 14px;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.items a:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  color: #6366f1;
}

.items a[href="#"] {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.items a[href="#"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* Contenido principal */
.text {
  max-width: 900px;
  margin: 24px auto 60px auto;
  background: #fff;
  padding: 60px 70px;
  border-radius: 24px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
  animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Tipografia */
h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1px;
  text-align: center;
  margin-bottom: 40px;
  background: linear-gradient(135deg, #1a1a2e 0%, #6366f1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

h3 {
  font-size: 28px;
  font-weight: 700;
  margin-top: 50px;
  padding-top: 40px;
  border-top: 2px solid #f1f5f9;
  text-align: center;
  color: #1a1a2e;
}

h4 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 45px;
  margin-bottom: 18px;
  color: #1a1a2e;
  display: flex;
  align-items: center;
  gap: 10px;
}

h4::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%);
  border-radius: 2px;
}

h5 {
  font-size: 17px;
  font-weight: 700;
  margin-top: 28px;
  margin-bottom: 14px;
  color: #6366f1;
}

.text p {
  font-size: 17px;
  color: #475569;
  margin-top: 16px;
  line-height: 1.8;
}

.text > p:first-of-type {
  text-align: center;
  color: #94a3b8;
  font-size: 15px;
  font-weight: 500;
}

/* Listas */
.external_policies {
  margin: 18px 0 18px 28px;
  color: #475569;
  font-size: 16px;
  line-height: 2;
}

.external_policies li {
  margin-bottom: 8px;
  transition: transform 0.2s ease;
}

.external_policies li:hover {
  transform: translateX(4px);
}

.external_policies a {
  font-weight: 600;
}

/* Lista de pasos numerados */
.steps-list {
  counter-reset: steps;
  list-style: none;
  margin: 28px 0;
  padding: 0;
}

.steps-list li {
  counter-increment: steps;
  padding: 22px 24px 22px 75px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  position: relative;
  font-size: 16px;
  color: #475569;
  line-height: 1.7;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.steps-list li:hover {
  transform: translateX(6px);
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  border-color: rgba(99, 102, 241, 0.1);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.08);
}

.steps-list li::before {
  content: counter(steps);
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Cajas informativas */
.info-box {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 28px 0;
  border-left: 4px solid #3b82f6;
  transition: transform 0.3s ease;
}

.info-box:hover {
  transform: translateY(-2px);
}

.info-box p {
  margin: 0;
  color: #1e40af;
  font-size: 16px;
  font-weight: 500;
}

.warning-box {
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 28px 0;
  border-left: 4px solid #ef4444;
  transition: transform 0.3s ease;
}

.warning-box:hover {
  transform: translateY(-2px);
}

.warning-box p {
  margin: 0;
  color: #991b1b;
  font-size: 16px;
  font-weight: 500;
}

/* Boton de contacto */
.contact-btn {
  display: inline-block;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
  color: #fff !important;
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 17px;
  margin-top: 20px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
  position: relative;
  overflow: hidden;
}

.contact-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.contact-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.contact-btn:hover::before {
  left: 100%;
}

/* Tablas de datos */
.data-section {
  margin: 28px 0;
  background: #fafbfc;
  border-radius: 16px;
  padding: 24px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}

.data-table tr {
  border-bottom: 1px solid #e2e8f0;
  transition: background 0.2s ease;
}

.data-table tr:hover {
  background: rgba(99, 102, 241, 0.03);
}

.data-table tr:last-child {
  border-bottom: none;
}

.data-table td {
  padding: 16px 12px;
  color: #475569;
  vertical-align: top;
}

.data-table td:first-child {
  width: 40%;
  color: #1a1a2e;
  font-weight: 600;
  padding-right: 20px;
}

.data-table td:last-child {
  width: 60%;
  color: #64748b;
}

/* FAQ */
.faq-item {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 16px;
  padding: 26px 28px;
  margin: 18px 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

.faq-item:hover {
  transform: translateY(-3px);
  background: #fff;
  border-color: rgba(99, 102, 241, 0.15);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.1);
}

.faq-item p:first-child {
  margin: 0 0 14px 0;
  color: #1a1a2e;
  font-weight: 700;
  font-size: 17px;
}

.faq-item p:last-of-type {
  margin: 0;
  color: #475569;
}

.faq-item .external_policies {
  margin-top: 14px;
  margin-bottom: 0;
}

/* Footer */
.footer-note {
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
  margin-top: 50px;
  padding-top: 30px;
  border-top: 2px solid #f1f5f9;
  line-height: 1.9;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    margin-top: 25px;
    padding: 35px 20px;
  }

  .image img {
    width: 160px;
  }

  .items {
    gap: 8px;
  }

  .items a {
    padding: 10px 18px;
    font-size: 13px;
  }

  .text {
    margin: 20px 16px 40px 16px;
    padding: 35px 25px;
    border-radius: 20px;
  }

  h1 {
    font-size: 30px;
    margin-bottom: 30px;
  }

  h3 {
    font-size: 24px;
    margin-top: 40px;
    padding-top: 30px;
  }

  h4 {
    font-size: 20px;
    margin-top: 35px;
  }

  h4::before {
    height: 20px;
  }

  h5 {
    font-size: 16px;
  }

  .text p {
    font-size: 16px;
  }

  .steps-list li {
    padding: 18px 18px 18px 65px;
    font-size: 15px;
  }

  .steps-list li::before {
    width: 36px;
    height: 36px;
    font-size: 14px;
    left: 16px;
    border-radius: 10px;
  }

  .data-section {
    padding: 18px;
  }

  .data-table td {
    display: block;
    width: 100% !important;
    padding: 10px 8px;
  }

  .data-table td:first-child {
    padding-bottom: 4px;
    background: transparent;
  }

  .data-table td:last-child {
    padding-top: 0;
    padding-bottom: 18px;
  }

  .data-table tr {
    display: block;
    padding: 8px 0;
  }

  .info-box,
  .warning-box {
    padding: 20px 22px;
  }

  .faq-item {
    padding: 22px 24px;
  }

  .external_policies {
    font-size: 15px;
    margin-left: 22px;
  }

  .contact-btn {
    padding: 14px 30px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .items {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .items a {
    width: 100%;
    text-align: center;
    padding: 12px 20px;
  }

  h1 {
    font-size: 26px;
  }

  h4 {
    font-size: 18px;
  }

  .steps-list li {
    padding: 16px 14px 16px 55px;
  }

  .steps-list li::before {
    width: 32px;
    height: 32px;
    font-size: 13px;
    left: 12px;
  }
}

/* Efecto de scroll suave para elementos */
@media (prefers-reduced-motion: no-preference) {
  .steps-list li,
  .faq-item,
  .info-box,
  .warning-box,
  .data-table tr {
    animation: fadeInUp 0.4s ease-out backwards;
  }
}
