:root {
  --md-primary-fg-color:        #1B5E20;   
  --md-primary-fg-color--light: #4CAF50;   
  --md-primary-fg-color--dark:  #0B3D12;

  --md-accent-fg-color:         #1565C0;   
  --md-accent-bg-color:         #1565C0;

  --md-default-fg-color:        rgba(28, 30, 33, 0.87);
  --md-default-bg-color:        #FFFFFF;

  --md-typeset-a-color:         #e8953b;
  --md-code-bg-color:           #f4f6f8;
  --md-code-fg-color:           #1B5E20;

  --pg-hero-shadow: 0 1px 0 rgba(0,0,0,0.06);
  --pg-accent-color: #1565C0; 
}

/* Dark mode */
[data-md-color-scheme="slate"] {
  --md-default-bg-color:        #0B0F12;
  --md-default-fg-color:        rgba(250, 250, 252, 0.92);

  --md-primary-fg-color:        #34C759;  
  --md-primary-fg-color--light: #6FE28B;
  --md-primary-fg-color--dark:  #1A8F3A;

  --md-accent-fg-color:         #42A5F5;   
  --md-accent-bg-color:         #42A5F5;

  --md-typeset-a-color:         #42A5F5;
  --md-code-bg-color:           #111827;
  --md-code-fg-color:           #A7F3D0;
}

/* ------------------------------
   Tipografía y contenido
--------------------------------- */
sup { font-size: 10px; }

.md-content p,
.md-content li {
  text-align: justify;
  margin-bottom: 0.6rem;
}

.md-content h1, .md-content h2 {
  margin-top: 1rem;
  margin-bottom: 0.4rem;
}

.md-content__inner {
  max-width: 960px;
  margin: auto;
}

/* ------------------------------
   Hero y secciones
--------------------------------- */
.pg-hero {
  padding: 4rem 0 3rem !important;
  color: #fff;
  box-shadow: var(--pg-hero-shadow);
}

.pg-hero .pg-hero__title,
.pg-hero .pg-hero__subtitle {
  color: #ffffff !important;
}

.md-header__title {
  display: flex;
  align-items: center;   
  gap: 0.5rem;      
}

.md-header__title .md-header__topic {
  display: flex;
  align-items: center;  
  font-size: 1.2rem; 
  font-weight: 600;
}

.pg-feature {
  padding: 2rem 0 1rem !important;
}

.pg-cards {
  padding: 1rem 0 2rem !important;
}

/* ------------------------------
   Footer
--------------------------------- */
.md-footer {
  background: #00223b !important;  
  color: #fff !important;
  border-top: 3px solid #000 !important;
  padding: 0.8rem 0 1.2rem 0 !important;
}

.md-footer__inner {
  display:flex; 
  justify-content:space-between; 
  align-items:center;
  padding: 0 1rem;
}

.pg-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}


@media (max-width: 960px) {
  .pg-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-logo, .logo-container { 
    justify-content: center;
  }
}


.footer-logo {
  display: flex;
  justify-content: center;   
  align-items: center;   
  gap: 1.5rem;           
}

.footer-logo .pgtec-logo {
  height: 150px !important;   
  width: auto !important;
  object-fit: contain;
  opacity: .95;
  margin-right: 0.75rem;
}

.footer-logo .vrain-logo {
  height: 32px !important;  
  width: auto !important;
  object-fit: contain;
  opacity: .95;
  margin-right: 0.75rem;
  filter: none !important;  
}

.pg-h4 {
  margin: 0 0 .4rem 0;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;   
}

/* ------------------------------
   Logos
--------------------------------- */
.md-header__button.md-logo img {
  height: 42px !important;  
  width: auto !important;
}

.logo-container {
  display: flex;
  justify-content: center;   
  align-items: center;
  gap: 1.2rem;
  margin: .5rem 0;
}

.logo-container img {
  height: 55px !important;  
  width: auto !important;
  object-fit: contain !important;
}

.logo-container .gva-logo {
  height: 90px !important;
  width: auto !important;
  object-fit: contain !important;
}

.pg-disclaimer {
  font-size: 0.72rem;     
  line-height: 1.35;
  margin-top: 1rem;
  max-width: 700px;       
  opacity: .85;
  margin-left: auto;
  margin-right: auto; 
  text-align: center;
}

/* ------------------------------
   Cards
--------------------------------- */
.grid.cards > ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.grid.cards a {
  color: #eda85e !important;
  font-weight: 600;
  text-decoration: none;
}

.grid.cards a:hover {
  color: #c7792a !important;
  text-decoration: underline;
}

.grid.cards .card {
  border: 1px solid var(--md-default-fg-color--lightest);
  border-radius: .4rem;
  background: var(--md-default-bg-color);
  padding: 1rem;
  box-shadow: var(--md-shadow-z1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.grid.cards .card h3 {
  margin: 0 0 .5rem;
  font-weight: 600;
}

.grid.cards .card p {
  margin: 0 0 .75rem;
}

.grid.cards .card a {
  color: var(--md-typeset-a-color);
  font-weight: 500;
  text-decoration: none;
}

.grid.cards .card a:hover {
  text-decoration: underline;
}

.grid.cards.cols-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

/* ------------------------------
   Navegación y botones
--------------------------------- */
.md-button {
  font-size: 0.9rem;
  padding: 0.35rem 0.9rem;
  border-radius: 6px;
  margin: 0.25rem 0.4rem;
}

.md-nav__link:hover,
.md-nav__link:focus {
  color: #c97113 !important;
}

.md-nav__link--active,
.md-nav__link--active:focus,
.md-nav__link--active:hover {
  color: #e0821e !important;
  font-weight: 600;
}

.md-nav__link--active::before {
  background-color: #e0821e !important;
}

.pg-prevnext {
  background: #00223b;  
  padding: 0.6rem 1.2rem;
  margin: 0 auto;      
  max-width: none !important;  
  width: 100% !important;
  border-radius: 0;             
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
}

.pg-prevnext a {
  color: #fff !important;
  font-weight: 500;
}

.pg-prevnext .md-footer__title {
  font-size: 0.9rem;
}

.md-search__icon {
  color: #fff !important;
  fill: #fff !important;
}

.md-nav__list > .md-nav__item > .md-nav__link {
  font-weight: 700 !important;
}

.md-nav__list .md-nav__list .md-nav__link {
  font-weight: 400 !important;
}

.md-typeset a {
  color: #e0821e;
  word-break: break-word;
}

.md-typeset a:hover,
.md-typeset a:focus {
  color: #c97113 !important;
}
