﻿/* ==========================================
   PORTAL CFDI
   portalcfdi.webintegral.net
   ========================================== */

:root {
  /* Marca */

  --primary: #0B4F7D;
  --primary-dark: #083B5C;
  --primary-light: #DDECF7;
  --secondary: #F28C28;
  --secondary-dark: #D67210;
  /* Estados */

  --success: #198754;
  --warning: #FFC107;
  --danger: #DC3545;
  --info: #0DCAF0;
  /* Grises */

  --gray-100: #F8F9FA;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-500: #6C757D;
  --gray-700: #495057;
  --gray-900: #212529;
  /* Layout */

  --header-height: 70px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,.05);
  --shadow: 0 4px 16px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.12);
  /* Tipografía */

  --font-main: "Segoe UI", Tahoma, Arial, sans-serif;
}

/* ==========================================
   RESET
   ========================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: #ffffff;
}

/* ==========================================
   LAYOUT
   ========================================== */

.container-cfdi {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================
   TICKER SUPERIOR
   ========================================== */

.top-bar {
  background: var(--warning);
  color: #000;
  font-size: .9rem;
  padding: 8px 15px;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,.1);
}

/* ==========================================
   HEADER
   ========================================== */

.header {
  background: white;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-content {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

/* ==========================================
   MENU
   ========================================== */

.menu {
  display: flex;
  gap: 20px;
}

  .menu a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    transition: .2s;
  }

    .menu a:hover {
      color: var(--primary);
    }

/* ==========================================
   HERO
   ========================================== */

.hero {
  background: linear-gradient( 135deg, var(--primary), var(--primary-dark) );
  color: white;
  padding: 80px 20px;
}

  .hero h1 {
    margin-top: 0;
    font-size: 3rem;
    font-weight: 700;
  }

  .hero p {
    font-size: 1.15rem;
    opacity: .95;
  }

/* ==========================================
   TITULOS
   ========================================== */

.section {
  padding: 60px 0;
}

.section-title {
  color: var(--primary);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

/* ==========================================
   TARJETAS
   ========================================== */

.card {
  background: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 20px;
  height: 100%;
}

.card-hover {
  transition: .25s;
}

  .card-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
  }

/* ==========================================
   BOTONES
   ========================================== */

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: .2s;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

  .btn-primary:hover {
    background: var(--primary-dark);
  }

.btn-secondary {
  background: var(--secondary);
  color: white;
}

  .btn-secondary:hover {
    background: var(--secondary-dark);
  }

/* ==========================================
   TABLAS
   ========================================== */

.table-cfdi {
  width: 100%;
  border-collapse: collapse;
}

  .table-cfdi th {
    background: var(--primary);
    color: white;
    text-align: left;
    padding: 10px;
  }

  .table-cfdi td {
    padding: 10px;
    border-bottom: 1px solid var(--gray-300);
  }

/* ==========================================
   ALERTAS
   ========================================== */

.alert {
  padding: 15px;
  border-radius: var(--radius-sm);
  margin-bottom: 15px;
}

.alert-success {
  background: #D1E7DD;
  color: #0F5132;
}

.alert-warning {
  background: #FFF3CD;
  color: #664D03;
}

.alert-danger {
  background: #F8D7DA;
  color: #842029;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
  background: #002B42;
  color: white;
  padding: 40px 20px;
  margin-top: 50px;
}

  .footer a {
    color: white;
  }

/* ==========================================
   UTILIDADES
   ========================================== */

.text-center {
  text-align: center;
}

.mt-1 {
  margin-top: 10px;
}

.mt-2 {
  margin-top: 20px;
}

.mt-3 {
  margin-top: 30px;
}

.mb-1 {
  margin-bottom: 10px;
}

.mb-2 {
  margin-bottom: 20px;
}

.mb-3 {
  margin-bottom: 30px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {

  .menu {
    flex-wrap: wrap;
    gap: 10px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}
