/* Main stylesheet for the OPUcheck / LTP portal. */

:root{
  --bg: #ffffff;
  --fg: #303340;
  --muted: #6b7280;
  --line: #e5e7eb;
  --panel: #f9f9f9;

  --accent: #65bc7b;      /* green */
  --accent-2: #ddac6a;    /* orange - color principal de referencia */
  --link: #1172c1;

  --max: 1200px;
  --pad: 30px;
  --radius: 25px;
  --shadow: 0 15px 33px rgba(130,130,130,.6);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
}

a{ color: var(--link); text-decoration: none; }
a:hover{ text-decoration: underline; }

.wrap{
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* Header */
header{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: transparent;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

.topbar{
  display:flex;
  align-items:center;
  gap: 20px;
  padding: 31px 0;
  transition: padding 0.3s ease;
}

.brand{
  display:flex;
  align-items:center;
  min-width: 220px;
}
.brand img{
  height: 76px;
  width:auto;
  transition: height 0.3s ease;
}

/* Header shrunk on scroll */
header.shrunk{
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}

header.shrunk .topbar{
  padding: 15px 0;
}

header.shrunk .brand img{
  height: 50px;
}

.nav{
  margin-left: auto;
  display:flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.nav-toggle{
  display:none;
  margin-left:auto;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(0,0,0,.06);
}
.nav-toggle:focus{ outline: 3px solid rgba(17,114,193,.25); outline-offset: 2px; }

.nav a{
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--fg);
  /* text-transform: uppercase; */
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(255,255,255,0.8);
  transition: all 0.3s ease;
}
.nav a:hover{
  background: rgba(255,255,255,0.9);
  border-color: var(--line);
  text-decoration:none;
}
.nav a.active{
  background: rgba(255,255,255,0.9);
  border-color: var(--line);
}

/* Nav con fondo cuando header está reducido */
header.shrunk .nav a{
  text-shadow: none;
}
header.shrunk .nav a:hover,
header.shrunk .nav a.active{
  background: var(--panel);
}

/* Animaciones */
@keyframes slideUpIn {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDownIn {
  from {
    opacity: 0;
    transform: translateY(-40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero */
.hero{
  background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0) 16%),
              var(--hero-bg, url('../img/splash-pricing-background-scaled.jpg'));
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  border-bottom: 1px solid var(--line);
  padding: 100px 0 60px;
}
.hero-inner{
  text-align: center;
  display:grid;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}
.hero-logo{
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  animation: slideUpIn 0.8s ease-out 0.2s both;
}
.hero-logo img{
  max-width: 300px;
  height: auto;
}
.hero h1{
  margin:0;
  font-size: 45px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--fg);
  animation: slideDownIn 0.8s ease-out 0.4s both;
}
.hero p{
  margin:0;
  color: var(--fg);
  font-size: 18px;
  animation: slideUpIn 0.8s ease-out 0.6s both;
}

.badges{
  display:flex;
  flex-wrap: nowrap;
  gap: 30px;
  align-items:center;
  justify-content: space-around;
  padding: 40px;
  background: rgba(255,255,255,0.8);
  border-radius: 25px;
  box-shadow: var(--shadow);
  animation: slideUpIn 0.8s ease-out 0.8s both;
}
.badges a{
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  flex: 1;
  max-width: 120px;
}
.badges a:hover{
  transform: scale(1.15);
}
.badges img{
  height: 80px;
  width:auto;
  max-width: 130px;
  object-fit: contain;
}

/* Main */
main{
  padding: 100px 0 44px;
  background: var(--panel);
}
.section{
  padding: 40px 0;
}
.card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px;
  margin-bottom: 40px;
}
.section h2{
  margin: 0 0 25px;
  font-size: 60px;
  line-height: 1.1;
  color: var(--fg);
  text-align: center;
}
.section h3{
  margin: 18px 0 8px;
  font-size: 18px;
  color: var(--accent-2);
}
.section p{
  margin: 10px 0;
  text-align: justify;
}
.section img{
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Listas especiales */
.team-list{
  list-style: none;
  padding: 0;
  margin: 25px 0;
}
.team-list li{
  padding: 10px 0 10px 40px;
  position: relative;
  color: var(--fg);
}
.team-list li:before{
  content: '»';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  background: var(--accent-2);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
}

.publications-list{
  list-style: none;
  padding: 0;
  margin: 25px 0;
}
.publications-list li{
  padding: 20px;
  margin-bottom: 15px;
  position: relative;
  border-left: 5px solid var(--accent-2);
  background: rgba(221,172,106,0.08);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
  transition: all 0.3s ease;
}
.publications-list li:hover{
  box-shadow: 0 4px 12px rgba(221,172,106,.2);
  transform: translateX(4px);
}
.publications-list li p{
  margin: 10px 0;
  line-height: 1.7;
}
.publications-list li p:first-child{
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 12px;
  font-size: 15px;
}
.publications-list li a{
  display: inline-block;
  background: var(--accent-2);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 8px;
}
.publications-list li a:hover{
  background: #c9985a;
  transform: scale(1.05);
  text-decoration: none;
}

/* Alert Box para ARB */
.arb-alert{
  background: #fff;
  border: 5px solid var(--accent-2);
  border-radius: 12px;
  padding: 25px;
  margin: 25px 0;
  box-shadow: 0 0 33px rgba(0,0,0,.32);
}
.arb-alert p{
  text-align: left;
}

/* Publication Highlight Box */
.publication-highlight{
  background: linear-gradient(135deg, rgba(221,172,106,0.1) 0%, rgba(101,188,123,0.05) 100%);
  border: 3px solid var(--accent-2);
  border-radius: 15px;
  padding: 25px;
  margin: 25px 0;
  box-shadow: 0 4px 15px rgba(221,172,106,.2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.publication-content{
  flex: 1;
  min-width: 300px;
}

.publication-content p{
  margin: 8px 0;
  line-height: 1.6;
  color: var(--fg);
}

.publication-content p:first-child{
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 10px;
}

.publication-content p em{
  color: var(--muted);
  font-style: italic;
  font-size: 14px;
}

.publication-content p:last-child{
  font-weight: 600;
  color: var(--accent-2);
  margin-top: 12px;
}

.publication-link{
  display: flex;
  align-items: center;
  gap: 10px;
}

.publication-link .download-btn{
  background: var(--accent-2);
  color: white;
  border-color: var(--accent-2);
  padding: 12px 24px;
  font-size: 14px;
  white-space: nowrap;
}

.publication-link .download-btn:hover{
  background: #c9985a;
  border-color: #c9985a;
}

/* Tables */
table{
  width: 100%;
  border-collapse: collapse;
  margin: 25px 0;
  font-size: 14px;
}
th, td{
  border: 1px solid var(--line);
  padding: 12px 15px;
  vertical-align: top;
  text-align: left;
}
th{
  background: var(--panel);
  font-weight: 600;
  color: var(--fg);
}

/* Alternancia de colores en filas */
tbody tr:nth-child(odd){
  background: #ffffff;
}
tbody tr:nth-child(even){
  background: #f9f9f9;
}

/* Releases Table - Filas de separación para versiones */
.releases-table tr.current_release{
  background: var(--accent-2);
  color: white;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  padding: 15px;
  border: 1px solid var(--accent-2);
}

.releases-table tr.current_release td{
  background: var(--accent-2);
  color: white;
  padding: 15px;
  border: 1px solid var(--accent-2);
}

.releases-table tr.current_release td strong{
  color: white;
}

.releases-table thead tr th{
  background: var(--accent-2);
  color: white;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  padding: 15px;
}

.releases-table tr.version-separator{
  background: linear-gradient(90deg, rgba(221,172,106,0.25) 0%, rgba(221,172,106,0.15) 100%);
  border-top: 2px solid rgba(221,172,106,0.6);
  border-bottom: 2px solid rgba(221,172,106,0.6);
  font-weight: 700;
  font-size: 15px;
}

.releases-table tr.version-separator td{
  background: linear-gradient(90deg, rgba(221,172,106,0.25) 0%, rgba(221,172,106,0.15) 100%);
  border: 1px solid rgba(221,172,106,0.4);
  padding: 14px 15px;
  color: var(--fg);
}

.releases-table tr.version-separator td strong{
  color: var(--fg);
}

/* Botones de descarga */
.download-btn{
  display: inline-block;
  background: white;
  color: #333;
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,.08);
}
.download-btn:hover{
  background: var(--accent-2);
  color: white;
  border-color: var(--accent-2);
  box-shadow: 0 4px 8px rgba(221,172,106,.3);
  text-decoration: none;
  transform: translateY(-1px);
}

td a{
  color: var(--link);
  font-weight: 500;
}

.grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 980px){
  .grid{ grid-template-columns: 2fr 1fr; }
}

.note{
  font-size: 13px;
  color: var(--muted);
  border-left: 4px solid rgba(101,188,123,.5);
  padding: 8px 12px;
  background: rgba(101,188,123,.08);
  border-radius: 10px;
}

/* Subscribe Section */
#Subscribe .card {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

#Subscribe .card > div:first-child {
  justify-content: center;
}

/* Forms */
.form{
  display:flex;
  flex-direction: column;
  gap: 10px;
  max-width: 520px;
}
input[type="email"]{
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 14px;
}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--fg);
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover{
  text-decoration:none;
  background: var(--panel);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.btn.primary{
  border-color: rgba(221,172,106,.55);
  background: var(--accent-2);
  color: #fff;
}
.btn.primary:hover{
  background: #c9985a;
}
small{ color: var(--muted); font-size: 13px; }

/* Footer */
footer{
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 18px 0 26px;
  color: var(--muted);
  font-size: 13px;
}
.footer-row{
  display:flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items:center;
  justify-content: space-between;
}

.meta{ color: var(--muted); font-size: 13px; }


/* --- Responsive navigation & layout --- */
@media (max-width: 900px){
  .topbar{
    flex-wrap: wrap;
    padding: 20px 0;
  }
  .brand{ min-width: 0; }
  .brand img{ height: 60px; }

  .nav-toggle{ display:inline-flex; align-items:center; justify-content:center; }

  .nav{
    width: 100%;
    margin-left: 0;
    order: 3;
    justify-content: flex-start;
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0 6px;
  }
  .nav.open{ display:flex; }
  .nav a{
    display:block;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
  }

  .hero{
    padding: 60px 0 40px;
  }
  .hero h1{
    font-size: 32px;
  }

  .section h2{
    font-size: 36px;
  }

  .grid{ gap: 14px; }

  table{
    display:block;
    overflow-x:auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 520px){
  :root{ --pad: 20px; }
  .card{ padding: 20px; }
  .hero h1{
    font-size: 28px;
  }
  .section h2{
    font-size: 28px;
  }
  .badges{
    gap: 15px;
    padding: 20px;
    flex-wrap: wrap;
  }
  .badges a{
    max-width: 100px;
  }
  .badges img{
    height: 60px;
    max-width: 100px;
  }
  .publication-highlight{
    flex-direction: column;
    align-items: stretch;
  }
  .publication-content{
    min-width: auto;
  }
  .publication-link{
    justify-content: center;
  }
  .publication-link .download-btn{
    width: 100%;
    text-align: center;
  }
}

/* =========================================================
   OPUcheck nav button (in the static LTP header)
   ========================================================= */
.nav a.nav-opucheck {
  background: var(--accent-2);
  color: #fff !important;
  border-color: var(--accent-2) !important;
  text-shadow: none;
  font-weight: 700;
}
.nav a.nav-opucheck:hover {
  background: #c9985a;
  border-color: #c9985a !important;
  text-decoration: none;
}

/* File size indicator in releases table */
.file-size {
  font-size: 0.85em;
  color: var(--muted);
  font-weight: normal;
}

/* File group header in hierarchical releases structure. */
.file-group-header {
  background: #f0f0f0;
  border-top: 1px solid #ddd !important;
}

.file-group-header td {
  background: #f0f0f0 !important;
  font-weight: bold;
  padding-top: 12px !important;
  padding-bottom: 8px !important;
  color: var(--fg);
}

/* React root starts hidden; index.html inline style toggles display */

