/* ============================================================
   FAXI – Términos y Condiciones Stylesheet
   Reutiliza la misma paleta y tipografía de styles.css
   ============================================================ */

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

:root {
  --orange:        #F59E0B;
  --orange-dark:   #D97706;
  --orange-light:  #FEF3C7;
  --orange-glow:   rgba(245,158,11,0.25);
  --black:         #0A0A0A;
  --dark:          #111827;
  --dark-2:        #1F2937;
  --gray:          #6B7280;
  --gray-light:    #E5E7EB;
  --white:         #FFFFFF;
  --bg-light:      #F8FAFC;
  --blue-gov:      #1D4ED8;
  --blue-gov-light:#EFF6FF;
  --green:         #10B981;
  --yellow-warn:   #FEF9C3;
  --yellow-border: #FDE047;
  --radius:        12px;
  --radius-lg:     20px;
  --shadow:        0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg:     0 16px 48px rgba(0,0,0,0.14);
  --transition:    0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--dark);
  background: var(--bg-light);
}

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

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

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: var(--orange);
  color: var(--black);
  box-shadow: 0 4px 14px var(--orange-glow);
}
.btn--primary:hover { background: var(--orange-dark); transform: translateY(-2px); text-decoration: none; }
.btn--outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn--outline-light:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); text-decoration: none; }
.btn--nav {
  background: var(--orange);
  color: var(--black);
  padding: 10px 20px;
  font-size: 14px;
  border-radius: var(--radius);
}

/* ── NAVBAR ──────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 10px 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 20px rgba(0,0,0,0.08);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
}
.logo-img { height: 32px; width: auto; border-radius: 6px; object-fit: contain; }
.logo-text { color: var(--dark); }

.nav__links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  margin-right: 16px;
}
.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  transition: color var(--transition);
}
.nav__links a:hover { color: var(--orange); }
.nav__link--gov {
  background: var(--blue-gov-light);
  color: var(--blue-gov) !important;
  padding: 6px 14px;
  border-radius: 99px;
  font-weight: 600 !important;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
}
.nav__mobile {
  display: none;
  background: var(--white);
  padding: 16px 24px;
  border-top: 1px solid var(--gray-light);
}
.nav__mobile.open { display: block; }
.nav__mobile ul { display: flex; flex-direction: column; gap: 4px; }
.nav__mobile a {
  display: block;
  padding: 10px 14px;
  font-weight: 500;
  color: var(--dark);
  border-radius: 8px;
  text-decoration: none;
}
.nav__mobile a:hover { background: var(--bg-light); }
.gov-link { color: var(--blue-gov) !important; font-weight: 600 !important; }

/* ── HERO CON GIF ────────────────────────────────────────── */
.tc-hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: flex-end;
}

.tc-hero__gif {
  position: absolute;
  inset: 0;
  background-image: url('faxiAnim.gif');
  background-size: cover;
  background-position: center;
  filter: saturate(0.6) brightness(0.45);
  transform: scale(1.04);
  z-index: 0;
}

.tc-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(7,16,42,0.94) 0%,
    rgba(7,16,42,0.78) 60%,
    rgba(7,16,42,0.55) 100%
  );
  z-index: 1;
}

.tc-hero__inner {
  position: relative;
  z-index: 2;
}

.tc-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}
.tc-breadcrumb a { color: var(--orange); text-decoration: none; }
.tc-breadcrumb a:hover { text-decoration: underline; }

.tc-hero h1 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--orange) 0%, #FBBF24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tc-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 24px;
}

.tc-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tc-meta__item { font-size: 13px; color: rgba(255,255,255,0.45); }
.tc-meta__item strong { color: rgba(255,255,255,0.7); }
.tc-meta__sep { color: rgba(255,255,255,0.2); }

/* ── MAIN LAYOUT ─────────────────────────────────────────── */
.tc-main {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding-top: 60px;
  padding-bottom: 80px;
  align-items: start;
}

/* ── SIDEBAR ─────────────────────────────────────────────── */
.tc-sidebar { position: sticky; top: 90px; }

.tc-sidebar__inner {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-light);
}

.tc-sidebar h3 {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray);
  margin-bottom: 16px;
}

.tc-index {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tc-index__link {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray);
  padding: 7px 12px;
  border-radius: 8px;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all var(--transition);
  line-height: 1.4;
}

.tc-index__link:hover,
.tc-index__link.active {
  background: var(--orange-light);
  color: var(--orange-dark);
  border-left-color: var(--orange);
  text-decoration: none;
}

/* ── ARTICLE BODY ────────────────────────────────────────── */
.tc-body { max-width: 800px; }

/* Alert destacado */
.tc-alert {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: #FFF7ED;
  border: 2px solid var(--orange);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 48px;
}
.tc-alert__icon { font-size: 28px; flex-shrink: 0; margin-top: 2px; }
.tc-alert strong { display: block; font-size: 16px; color: var(--dark); margin-bottom: 8px; }
.tc-alert p { font-size: 14px; color: var(--gray); line-height: 1.7; margin: 0; }

/* Section */
.tc-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--gray-light);
  position: relative;
  scroll-margin-top: 100px;
}

.tc-section__number {
  position: absolute;
  top: -16px;
  left: 40px;
  background: var(--orange);
  color: var(--black);
  font-size: 12px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: 99px;
  letter-spacing: 0.05em;
}

.tc-section h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 20px;
  padding-top: 4px;
}

.tc-section p {
  font-size: 15px;
  color: var(--gray);
  margin-bottom: 16px;
  line-height: 1.8;
}
.tc-section p:last-child { margin-bottom: 0; }

.tc-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  padding-left: 8px;
}

.tc-section ul li {
  font-size: 15px;
  color: var(--gray);
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}

.tc-section ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.4;
}

.tc-section strong { color: var(--dark); }

/* Subtítulo dentro de sección (h3) */
.tc-section h3.tc-subtitle {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin: 24px 0 10px;
  line-height: 1.4;
}
.tc-section h3.tc-subtitle:first-of-type { margin-top: 8px; }

/* Highlight box */
.tc-highlight {
  background: var(--bg-light);
  border-left: 4px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 20px 0;
}
.tc-highlight p { margin: 0; font-size: 15px; }

.tc-highlight--blue {
  background: var(--blue-gov-light);
  border-color: var(--blue-gov);
}

.tc-highlight--warning {
  background: var(--yellow-warn);
  border-color: var(--yellow-border);
}

/* Contact cards */
.tc-contact-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}

.tc-contact-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--gray-light);
}
.tc-contact-card span:first-child { font-size: 24px; flex-shrink: 0; }
.tc-contact-card div { display: flex; flex-direction: column; gap: 4px; }
.tc-contact-card strong { font-size: 14px; color: var(--dark); }
.tc-contact-card a,
.tc-contact-card span:last-child { font-size: 13px; color: var(--gray); }

/* CTA final */
.tc-cta {
  text-align: center;
  background: linear-gradient(135deg, #07102a, #0f3460);
  border-radius: var(--radius-lg);
  padding: 56px 40px;
  margin-top: 8px;
  position: relative;
  overflow: hidden;
}
.tc-cta::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(245,158,11,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.tc-cta__logo {
  height: 48px;
  width: auto;
  border-radius: 10px;
  margin: 0 auto 20px;
  display: block;
}

.tc-cta h3 { font-size: 28px; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.tc-cta > p { font-size: 16px; color: rgba(255,255,255,0.6); margin-bottom: 28px; }

.tc-cta__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
  position: relative;
}

.tc-cta__back {
  display: inline-block;
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}
.tc-cta__back:hover { color: var(--orange); }

/* ── FOOTER ──────────────────────────────────────────────── */
.tc-footer {
  background: var(--dark);
  padding: 28px 0;
}
.tc-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.tc-footer p { font-size: 13px; color: rgba(255,255,255,0.35); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .tc-main { grid-template-columns: 220px 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav__links { display: none; }
  .btn--nav { display: none; }
  .nav__burger { display: flex; }

  .tc-main { grid-template-columns: 1fr; }
  .tc-sidebar { position: static; }

  .tc-section { padding: 28px 20px; }
  .tc-section__number { left: 20px; }
  .tc-contact-cards { grid-template-columns: 1fr; }
  .tc-cta { padding: 36px 20px; }
  .tc-meta { flex-direction: column; gap: 6px; }
  .tc-meta__sep { display: none; }
}

@media (max-width: 480px) {
  .tc-hero { padding: 130px 0 48px; }
  .tc-cta__buttons { flex-direction: column; }
  .tc-cta__buttons .btn { width: 100%; justify-content: center; }
}
