/*
  AME - carreras/consejo.css
  Extraido desde estilos inline para centralizar mantenimiento.
  Paginas ES usan este archivo cuando el estilo es compartido.
*/

/* --- ESTILOS AISLADOS CON PREFIJOS --- */
      /* Parrafos de contenido */
      .uni-academias-p {
        margin-bottom: 15px;
        font-size: 1rem;
        font-family: Arial, sans-serif;
      }
        :root {
            --azul-principal: #004A98;
            --azul-secundario: #00B2E3;
            --gris-fondo: #f4f6f9;
        }

        main.container {
            font-family: "Segoe UI", Arial, sans-serif;
            color: #333;
        }
        main.container > .container {
            max-width: 1100px;
            margin: auto;
            padding: 20px;
        }

        .card {
            background: white;
            border-radius: 10px;
            padding: 20px;
            margin-bottom: 25px;
            box-shadow: 0 4px 10px rgba(0,0,0,0.06);
        }

        .card h2 {
            margin-top: 0;
            color: var(--azul-principal);
            border-bottom: 2px solid #e6eef8;
            font-family: OpenSans-ExtraBold, Arial, sans-serif;
            padding-bottom: 8px;
        }

        .list {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .list li a {
            display: block;
            padding: 12px 8px;
            color: var(--azul-principal);
            text-decoration: none;
            font-weight: 500;
        }

        .list li a:hover {
            background: #f1f7ff;
            color: var(--azul-secundario);
        }

        .list li a.is-preview-active {
            background: #00b2e3;
            color: #fff;
            font-weight: 700;
        }

        .document-preview {
            margin-top: 20px;
            border: 1px solid #d8e5f2;
            border-radius: 8px;
            overflow: hidden;
            background: #fff;
        }

        .document-preview[hidden] {
            display: none;
        }

        .document-preview-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 12px 16px;
            background: #f1f7ff;
            border-bottom: 1px solid #d8e5f2;
        }

        .document-preview-header h3 {
            margin: 0;
            color: var(--azul-principal);
            font-size: 1rem;
        }

        .document-preview-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            align-items: center;
            justify-content: flex-end;
        }

        .document-preview-open {
            color: var(--azul-principal);
            font-weight: 700;
            text-decoration: none;
            white-space: nowrap;
        }

        .document-preview-close {
            padding: 7px 12px;
            border: 0;
            border-radius: 6px;
            background: var(--azul-principal);
            color: #fff;
            cursor: pointer;
            font-weight: 700;
        }

        .document-preview-open:hover {
            color: var(--azul-secundario);
        }

        .document-preview-close:hover {
            background: var(--azul-secundario);
        }

        .document-preview iframe {
            width: 100%;
            height: min(75vh, 720px);
            min-height: 420px;
            border: 0;
            display: block;
        }

        /* ACTAS POR ANO */
        .actas input[type="radio"] {
            display: none;
        }

        .actas .botones {
            display: flex;
            justify-content: center;
            gap: 12px;
            margin: 15px 0;
        }

        .actas label {
            padding: 8px 20px;
            background: #eaeaea;
            border-radius: 20px;
            cursor: pointer;
            font-weight: bold;
            color: var(--azul-principal);
        }

        #a2026:checked ~ .botones label[for="a2026"],
        #a2025:checked ~ .botones label[for="a2025"],
        #a2024:checked ~ .botones label[for="a2024"],
        #a2023:checked ~ .botones label[for="a2023"],
        #a2022:checked ~ .botones label[for="a2022"],
        #a2021:checked ~ .botones label[for="a2021"],
        #a2020:checked ~ .botones label[for="a2020"]
        {
            background: #00b2e3;
            color: white;
        }

        .listas .lista {
            display: none;
            margin-top: 15px;
        }

        #a2026:checked ~ .listas .a2026,
        #a2025:checked ~ .listas .a2025,
        #a2024:checked ~ .listas .a2024,
        #a2023:checked ~ .listas .a2023,
        #a2022:checked ~ .listas .a2022,
        #a2021:checked ~ .listas .a2021,
        #a2020:checked ~ .listas .a2020{
            display: block;
        }

        .tabs {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap; /* permite que los botones bajen a otra fila */
        }

        .tabs label {
            cursor: pointer;
            padding: 6px 12px;
            border-radius: 4px;
            transition: transform 0.2s, background-color 0.2s, color 0.2s;
            display: inline-block;
            white-space: nowrap;
        }

        .tabs label:hover {
            transform: scale(1.1);
            background-color: #00b2e3; /* color de fondo al pasar */
            color: white; /* color del texto al pasar */
        }

        .tabs label a {
            text-decoration: none;
            color: inherit; /* hereda el color del label */
        }

        .txt-close {
            display: none;
        }

        #menu-toggle:checked + .menu-icon .txt-open {
            display: none;
        }

        #menu-toggle:checked + .menu-icon .txt-close {
            display: inline;
        }

        .menu-icon {
            display: none;
            background: #004A98;
            color: white;
            padding: 10px;
            border-radius: 6px;
            text-align: center;
            cursor: pointer;
            font-weight: bold;
        }

        @media (max-width: 768px) {
            .menu-icon {
                display: block;
                margin-bottom: 10px;
            }

            .tabs {
                display: none;
                flex-direction: column;
                gap: 6px;
            }

            .actas .tabs {
                display: none;
                flex-direction: column;
                gap: 6px;
            }

            /* ESTA ES LA CLAVE */
            #menu-toggle:checked ~ .actas .tabs {
                display: flex;
            }

            .tabs label {
                width: 100%;
                text-align: center;
            }

            .document-preview-header {
                align-items: flex-start;
                flex-direction: column;
            }

            .document-preview iframe {
                min-height: 360px;
            }
            #a2026:checked ~ .botones label[for="a2026"],
            #a2025:checked ~ .botones label[for="a2025"],
            #a2024:checked ~ .botones label[for="a2024"],
            #a2023:checked ~ .botones label[for="a2023"],
            #a2022:checked ~ .botones label[for="a2022"],
            #a2021:checked ~ .botones label[for="a2021"],
            #a2020:checked ~ .botones label[for="a2020"] {
                transform: none; /* sin escala en mobile */
            }
        }
        /* Desktop: escala boton seleccionado */
        @media (min-width: 769px) {
            #a2026:checked ~ .botones label[for="a2026"],
            #a2025:checked ~ .botones label[for="a2025"],
            #a2024:checked ~ .botones label[for="a2024"],
            #a2023:checked ~ .botones label[for="a2023"],
            #a2022:checked ~ .botones label[for="a2022"],
            #a2021:checked ~ .botones label[for="a2021"],
            #a2020:checked ~ .botones label[for="a2020"] {
                transform: scale(1.1);
            }
        }



