:root {
  --rossio-blue: #1681A8;
  --rossio-blue-dark: #13556E;
  --rossio-bg: #F0F1F2;
  --rossio-panel: #FAFAFB;
  --rossio-text: #000B16;
  --rossio-muted: #4C4C4C;
  --rossio-border: #DEE2E6;
}

html {
  font-size: 16px;
  background: var(--rossio-bg);
}

body {
  margin: 0;
  color: var(--rossio-text);
  background: var(--rossio-bg);
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: var(--rossio-blue);
  text-decoration: none;
}

a:hover,
a:focus {
  color: var(--rossio-blue-dark);
  text-decoration: underline;
}

#wrapper {
  min-height: 100vh;
}

#header {
  background: var(--rossio-bg);
  box-shadow: 0 3px 10px rgba(38, 107, 193, 0.08);
}

#content table,
#footer table {
  width: min(1120px, calc(100vw - 48px)) !important;
}

#header > table {
  width: min(1120px, calc(100vw - 48px)) !important;
  margin-right: auto;
  margin-left: auto;
}

#header > table > tbody > tr > td > table,
#header > table > tr > td > table {
  width: min(1120px, calc(100vw - 48px)) !important;
  margin-right: auto;
  margin-left: auto;
}

#header table table {
  min-height: 88px;
  width: min(1120px, calc(100vw - 48px)) !important;
  margin-right: auto;
  margin-left: auto;
}

#header td {
  background: transparent !important;
}

#header img[src*="rossiologodark"] {
  width: 170px !important;
  height: auto !important;
  display: block;
  margin: 20px 0;
}

.idioma {
  margin: 0;
  color: var(--rossio-muted);
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04rem;
  text-transform: uppercase;
}

#content {
  padding: 4.5rem 0 3rem;
}

#content > td,
#content > table,
#content td[background] {
  background: transparent !important;
}

#content > td > table,
#content > table {
  border-collapse: separate;
  border-spacing: 0;
}

#content td {
  font-size: 0.95rem;
}

#content td.texto,
.texto {
  display: block;
  box-sizing: border-box;
  height: auto !important;
  min-height: 340px;
  overflow: auto;
  padding: 2.2rem 2.4rem 2.6rem;
  background: #fff !important;
  border-radius: 0.45rem;
  box-shadow: 0 30px 30px rgba(64, 75, 103, 0.06);
}

.titulo {
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  color: var(--rossio-text);
}

#content table > tbody > tr:first-child .titulo,
#content table > tr:first-child .titulo {
  display: block;
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04rem;
}

.texto > .titulo,
.texto p.titulo {
  margin: 1.4rem 0 1rem;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.35;
}

.texto p.footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin: 0 0 1.8rem;
  padding: 0 0 1.2rem;
  border-bottom: 1px solid var(--rossio-border);
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
}

.texto p.footer br,
.divider {
  display: none;
}

.texto p.footer a,
.texto ol a {
  color: var(--rossio-text);
}

.texto p.footer a:hover,
.texto ol a:hover {
  color: var(--rossio-blue);
}

.texto ol {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.75rem;
  padding: 0;
  margin: 1.5rem 0 2.5rem;
  list-style: none;
}

.texto ol li {
  padding: 1rem 1.1rem;
  background: var(--rossio-panel);
  border: 1px solid var(--rossio-border);
  border-radius: 0.45rem;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-weight: 600;
}

form.nospace {
  margin: 0;
}

form table,
form table[width="100%"] {
  width: 100% !important;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 0.75rem;
}

form td {
  box-sizing: border-box;
  padding: 0.25rem 0.5rem !important;
  color: var(--rossio-muted);
  font-weight: 600;
}

form td:first-child {
  width: 10rem !important;
}

form td:last-child {
  width: auto !important;
}

input,
select,
textarea {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 2.7rem;
  color: var(--rossio-text);
  background: #fff;
  border: 1px solid #E0E0E0;
  border-radius: 0.313rem;
  font-family: "Open Sans", Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  padding: 0.55rem 0.7rem;
}

input[type="text"],
select,
textarea {
  width: 100%;
}

input[type="submit"],
button {
  min-height: 2.8rem;
  padding: 0.7rem 1.4rem;
  color: #fff;
  background: var(--rossio-blue);
  border: 0;
  border-radius: 0.25rem;
  cursor: pointer;
  font-family: "Montserrat", Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03rem;
  text-transform: uppercase;
}

input[type="submit"]:hover,
button:hover {
  background: var(--rossio-blue-dark);
}

#footer {
  padding: 1.4rem 0 2rem;
  background: var(--rossio-bg);
  color: var(--rossio-muted);
}

#footer table {
  border-top: 1px solid var(--rossio-border);
  padding-top: 1rem;
}

#footer img {
  opacity: 0.68;
}

A.footer:link,
A.footer:visited,
A.footer:active,
.footer,
.mail,
.mail a {
  color: var(--rossio-muted);
}

A.footer:hover,
.mail a:hover {
  color: var(--rossio-blue);
}

.nospace {
  margin-top: 0;
  margin-bottom: 0;
}

@media (max-width: 768px) {
  #content table,
  #footer table {
    width: min(100%, calc(100vw - 28px)) !important;
  }

  #header > table {
    width: min(100%, calc(100vw - 28px)) !important;
    margin-right: auto;
    margin-left: auto;
  }

  #header > table > tbody > tr > td > table,
  #header > table > tr > td > table {
    width: min(100%, calc(100vw - 28px)) !important;
    margin-right: auto;
    margin-left: auto;
  }

  #header table table {
    width: min(100%, calc(100vw - 28px)) !important;
    margin-right: auto;
    margin-left: auto;
  }

  #header table table tr,
  #header table table td {
    display: block;
    width: 100% !important;
    text-align: left;
  }

  #content {
    padding: 2.5rem 0 2rem;
  }

  #content td.texto,
  .texto {
    padding: 1.5rem;
  }

  form table,
  form tbody,
  form tr,
  form td {
    display: block;
    width: 100% !important;
  }

  form td:first-child,
  form td:last-child {
    width: 100% !important;
  }
}
