/* ============================================
   ACENCY - ESTILOS LEGALES
   Color primario: #29DBCB (turquesa)
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: #F7F7F7;
  color: #1A1A1A;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
header {
  background: linear-gradient(135deg, #29DBCB 0%, #1FC4B5 100%);
  padding: 40px 0;
  text-align: center;
}

.logo-text {
  font-size: 42px;
  font-weight: 800;
  color: #1A1A1A;
  letter-spacing: -1px;
}

.tagline {
  color: rgba(26, 26, 26, 0.8);
  font-size: 16px;
  margin-top: 8px;
  font-weight: 500;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
main {
  flex: 1;
  padding: 40px 0;
}

.docs-section {
  margin-bottom: 40px;
}

.docs-section h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 16px;
  padding-left: 4px;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

/* ============================================
   DOCUMENT CARDS
   ============================================ */
.doc-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #FFFFFF;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1.5px solid #F2F2F2;
  text-decoration: none;
  color: #1A1A1A;
  transition: all 0.2s ease;
}

.doc-card:hover {
  border-color: rgba(41, 219, 203, 0.35);
  box-shadow: 0 4px 12px rgba(41, 219, 203, 0.12);
  transform: translateY(-2px);
}

.doc-icon {
  width: 44px;
  height: 44px;
  background: rgba(41, 219, 203, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #29DBCB;
}

.doc-title {
  font-size: 14px;
  font-weight: 600;
  color: #1A1A1A;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: #1A1A1A;
  padding: 24px 0;
  text-align: center;
}

footer p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
}

/* ============================================
   DOCUMENT PAGE STYLES
   ============================================ */
.doc-header {
  background: linear-gradient(135deg, #29DBCB 0%, #1FC4B5 100%);
  padding: 30px 0;
}

.doc-header .container {
  display: flex;
  align-items: center;
  gap: 16px;
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: #1A1A1A;
  text-decoration: none;
  transition: background 0.2s;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.doc-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: #1A1A1A;
}

.doc-content {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 32px;
  margin: 24px 0;
  border: 1px solid #F2F2F2;
}

.doc-content h2 {
  font-size: 18px;
  font-weight: 700;
  color: #1A1A1A;
  margin: 24px 0 12px;
}

.doc-content h2:first-child {
  margin-top: 0;
}

.doc-content p {
  color: #616161;
  font-size: 14px;
  margin-bottom: 12px;
}

.doc-content ul, .doc-content ol {
  color: #616161;
  font-size: 14px;
  margin-bottom: 12px;
  padding-left: 24px;
}

.doc-content li {
  margin-bottom: 8px;
}

.doc-placeholder {
  background: rgba(41, 219, 203, 0.08);
  border: 2px dashed rgba(41, 219, 203, 0.3);
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  color: #616161;
}

.doc-placeholder svg {
  color: #29DBCB;
  margin-bottom: 12px;
}

.last-updated {
  text-align: right;
  font-size: 12px;
  color: #BDBDBD;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #F2F2F2;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 600px) {
  header {
    padding: 30px 0;
  }

  .logo-text {
    font-size: 32px;
  }

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

  .doc-content {
    padding: 20px;
  }

  .doc-header h1 {
    font-size: 20px;
  }
}
