:root {
    --pico-font-size: 95%;
    --brand-1:#0d47a1; 
    --brand-2:#1565c0;
    --tw-bg-opacity: 1;
    --bg:rgb(16 25 34 / var(--tw-bg-opacity, 1));
    --surface:#111827;
    --surface-2:#1f2937;
    --text-muted:#cbd5e1;
    --focus:#facc15;
    --bg-2:rgb(17 115 212 / var(--tw-text-opacity, 1));
    --bg-text:#ffffff;
    --color-rojo:#f87b7b;
    --botones:rgb(17 115 212 / var(--tw-bg-opacity, 1));
    --barra:rgb(17 115 212 / var(--tw-bg-opacity, 1))
}

body{
    margin:0;
    line-height: 1.6;
    background-color: var(--bg);
    color: var(--bg-text);
    font-family: inter,system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
select:focus-visible,
input:focus-visible{
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

a{
    color: inherit;
    text-decoration: none;
}


header{   
    display: flex;
    align-items: center;
    justify-content:space-between;
    font-size: 1em;
    padding-left:0.75rem;
    padding-bottom:0.75rem;
    border-bottom-width:1px;
    border-color: rgb(255 255 255 / 0.1);
    border-style: solid;
    box-sizing: border-box;
    gap:1em;
    padding-top: 5px;
}

.header-logo{
  display: flex;
  align-items: center;
  gap:0.5em;
}

.header-logo h1{
    color: var(--bg-text);
    font-size: 1.5em;
    margin:0;
}

.header-svg{
    height:2.5em;
}

.header-svg a{
    display:block;
    height:100%;
}

.header-text-logo{
    display: flex;
    align-items: center;
    height: 100%;
    font-size: 1.9em;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
    user-select: none;
}

.header-text-logo .logo-rpt{
    color: #ffffff;
}

.header-text-logo .logo-dot{
    color: #8ab2df;
}

.header-text-logo .logo-ovh{
    color: #1565c0;
}

/* Ocultar por defecto el menú en móvil */
.header-nav {
  display: none;
  position: absolute;
  top: 56px; /* Ajusta según altura de tu header */
  left: 0;
  right: 0;
  background: var(--surface);
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
  box-shadow: 0 18px 36px rgba(0,0,0,0.35);
  color: var(--bg-text);
  z-index: 100;
}



.header-nav ul {
    list-style: none;
    margin: 0;
    padding: 1em 0;
}
.header-nav ul li {
    margin: 0;
    padding: 0.8em;
}

.header-nav ul li a{
    text-decoration: none;
    color: var(--bg-text);
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.8em 1em;
    border: 1px solid transparent;
    border-radius: 0.75em;
    transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}

.header-nav ul li a:hover{
    background-color: rgb(21 101 192 / 0.18);
    border-color: rgb(255 255 255 / 0.16);
}

.header-social-links{
    display: none;
}

.header-social-links a{
    color: inherit;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    align-content: center;
    flex-wrap: nowrap;
    gap: 0.25em;
    flex-direction: row;
}

#starts{
    display: flex;
    justify-content: center;
    align-items: center;
    color:var(--bg-text);
}

.starred-button-icon{
    color: #eac54f;
}

.menu-toggle {
  display: none;
}

.menu-icon {
  display: block;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
  color: var(--bg-text);
}
/* Mostrar menú cuando el toggle está marcado */
.menu-toggle:checked + .menu-icon + .header-nav {
  display: block;
}

/* Estilo horizontal y visible siempre en escritorio */
@media (min-width: 768px) {
    .menu-icon {
        display: none;
    }
    header {
        display: flex;
        align-items: center;
        justify-content:center;
        font-size: 1em;
        padding-left:0.75rem;
        padding-bottom:0.75rem;
        border-bottom-width:1px;
        border-color: rgb(255 255 255 / 0.1);
        border-style: solid;
        box-sizing: border-box;
        gap:6em;
    }
    .header-nav{
        position: relative;
        color:var(--bg-text);
        list-style: none;
        display: flex;
        top:0;
        left:0;
        gap: 1rem;
        margin: 0;
        padding: 0.25rem;
        background-color: rgb(255 255 255 / 0.06);
        border: 1px solid rgb(255 255 255 / 0.12);
        border-radius: 0.9rem;
        box-shadow: none;
    }
    .header-nav ul {
        display: flex;
        gap: 0.25rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }
    .header-nav ul li {
        margin: 0;
        padding: 0;
    }
    .header-nav li a {
        padding: 0.55rem 0.95rem;
        color: var(--text-muted);
        text-decoration: none;
        font-weight: 600;
        border-radius: 0.6rem;
        border: 1px solid transparent;
        line-height: 1;
        display: flex;
        align-items: center;
        gap: 0.45rem;
        transition: color .2s, background-color .2s, border-color .2s;
    }
    .header-nav li a:hover {
        color: var(--bg-text);
        background-color: rgb(21 101 192 / 0.28);
        border-color: rgb(255 255 255 / 0.18);
    }

    .header-social-links{
        display: flex;
        color: var(--bg-text);
    }

    .header-social-links svg{
        color: var(--bg-text);
    }

    .header-social-links svg:hover{
        color: var(--bg2);
    }
}







main{
  padding-left:0.5rem;
  padding-right:0.5rem;
  max-width:80rem;
  margin:0 auto;
}

.main-titulo h1{
  color: var(--bg-text);
  font-size: 2em;
  margin-bottom: 0.2em;
  text-align: center;
  
}

.main-titulo p{
  color: rgb(148 163 184 / var(--tw-text-opacity, 1));
  font-size: 1em;
  margin-bottom: 1em;
  text-align: center;
}


footer {
    border-color:rgb(255 255 255 / 0.1);
    border-style: solid;
    border-top-width:1px;
    background-color:rgb(17 115 212 / 0.05);
    padding: 2em 1em 6em 1em;
    color: var(--bg-text);
    text-align: center;
}
.footer-social-links {
  display: flex;
  justify-content: center;
  gap: 1em;
  margin-top: 1em;
}
.footer-social-links a {
  text-decoration: none;
  color: rgb(var(--bg-text));
}

.footer-social-links a svg {
  text-decoration: none;
  color: var(--bg-text);
}

.footer-social-links a:hover {
  color: var(--gray-dark);
  background-color: var(--brand-2);
}

.footer-fuente-de-informacion{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1em;
}

.footer-coffee{
    background-color: #ffffff;
    padding: 0.3em 0.1em 0.1em 0.1em;
    border-radius: 0.3em;
}

.footer-portal{
    background-color: rgb(255 255 255 / 0.91);
    padding: 0.4em 0.2em 0.2em 0.2em;
    border-radius: 0.3em;
    max-width: 170px;
}

.footer-contacto{
    margin-top: 1em;
    font-size: 0.9em;
    color: var(--color-rojo);
    text-align: center;
}


.footer-contacto strong{
    color: var(--bg-text);
}

@media (max-width: 767px) {
    :root{
        --pico-font-size: 100%;
    }

    body{
        font-size: 16px;
        background: linear-gradient(180deg, #0f172a 0%, #111827 45%, #0f172a 100%);
    }

    header{
        position: sticky;
        top: 0;
        z-index: 110;
        background-color: rgb(15 23 42 / 0.96);
        backdrop-filter: blur(12px);
        padding: 0.75rem;
    }

    .header-logo h1{
        font-size: 1.35rem;
    }

    .menu-icon{
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border: 1px solid rgb(255 255 255 / 0.16);
        border-radius: 0.75rem;
        background-color: rgb(255 255 255 / 0.06);
    }

    .header-nav{
        top: 68px;
        padding: 0.4rem 0.75rem 0.8rem;
    }

    .header-nav ul{
        padding: 0;
    }

    .header-nav ul li{
        padding: 0.25rem 0;
    }

    .header-nav ul li a:hover,
    .header-nav ul li a:focus-visible{
        background-color: rgb(37 99 235 / 0.24);
        border-color: var(--focus);
    }

    main{
        width: 100%;
        box-sizing: border-box;
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .main-titulo h1{
        font-size: clamp(1.55rem, 8vw, 2.15rem);
        line-height: 1.15;
    }

    .main-titulo p{
        color: var(--text-muted);
        font-size: 1rem;
        line-height: 1.65;
    }

    footer{
        padding: 1.5rem 0.85rem 5rem;
        color: var(--text-muted);
    }

    .footer-fuente-de-informacion{
        align-items: center;
        flex-direction: column;
        gap: 0.75rem;
    }
}
