/* ========================================================= */
/*                     1. BASE GENERAL                       */
/* ========================================================= */

body {
    margin: 0;
    background-color: #e6e2d8;
    color: #000;
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}

/* ========================================================= */
/*                        2. CABECERA                        */
/* ========================================================= */

.cabecera {
    width: 100%;
    max-width: 1000px;
    aspect-ratio: 834 / 131;
    background: url('../barners/glamour.gif') center/contain no-repeat;
    margin: 0 auto;
    min-height: 131px;
}

/* ========================================================= */
/*                    3. MENÚ ESCRITORIO                     */
/* ========================================================= */

.nav {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background: #212121;
}

.nav-toggle {
    display: none; /* solo se oculta en escritorio */
    font-size: 2rem;
    color: #fff;
    background: #212121;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

.nav ul {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    margin: 0;
    white-space: nowrap;
}

.nav > ul > li {
    flex: 1;
    text-align: center;
    position: relative;
}

.nav > ul > li > a {
    display: block;
    padding: 15px 0;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    font-size: clamp(0.8rem, 2vw, 1.1rem);
}

.nav > ul > li > a:hover {
    background: #55ff00;
    color: #333;
}

/* SUBMENÚ */
.nav ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: max-content;
    min-width: 100%;
    background: #424542;
    padding: 10px 0;
    white-space: nowrap;
    z-index: 1000;
}

.nav li:hover > ul {
    display: block;
}

.nav ul ul li a {
    display: block;
    padding: 8px 12px;
    color: #fff;
    text-decoration: none;
    text-align: left;
}

.nav ul ul li a:hover {
    background: #55ff00;
    color: #333;
}

/* ========================================================= */
/*                        4. MENÚ MÓVIL                      */
/* ========================================================= */

@media (max-width: 768px) {


    .nav-toggle {
        display: inline-block;
        background: #212121;
        padding: 0.5rem 0.8rem;
        margin: 0.5rem;
        border-radius: 6px;
        z-index: 2000;
        position: relative;
    }


    .nav {
        width: 100%;
        float: none;
    }

    .nav li:hover > ul {
        display: none !important;
    }

    .nav > ul {
        display: none;
        flex-direction: column;
        background: #212121;
        width: 100%;
    }

    .nav.active > ul {
        display: flex;
    }

    .nav > ul > li {
        width: 100%;
        text-align: left;
    }

    .nav > ul > li > a {
        padding: 1rem;
        border-bottom: 1px solid #333;
    }

    .nav ul ul {
        display: none;
        position: static;
        width: 100%;
        background: #333;
        padding: 0;
    }

    .nav li.open > ul {
        display: block !important;
    }

    .nav ul ul li a {
        padding: 0.8rem 1.5rem;
    }
}

/* ========================================================= */
/*                    5. CONTENEDOR GENERAL                  */
/* ========================================================= */

.contenedor {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem;
    background: #FAFAD2;
    box-sizing: border-box;
    clear: both;
}

.divJuntaMonitores {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
}

.divJuntaMonitores img {
    width: 100%;
    max-width: 600px;
    height: auto;
    display: block;
}
.junta-wrapper {
    max-width: 700px;
    margin: 30px auto;
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.15);
}

.junta-wrapper h2 {
    text-align: center;
    margin-top: 0;
}

.junta-wrapper table {
    width: 100%;
    margin: 0 auto;
}

.junta-wrapper td {
    padding: 8px 5px;
    vertical-align: top;
}
/* ========================================================= */
/*                6. AGENDA DIARIA (INDEX)                   */
/* ========================================================= */

.agenda-dia {
    width: 100%;
    max-width: 900px;
    margin: 2rem auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    overflow: hidden;
}

.agenda-titulo {
    background: #222;
    color: #fff;
    padding: 1rem;
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
}

.agenda-contenido {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
    background-color: #fff;
}

.agenda-imagen img {
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    display: block;
}

.agenda-botones {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 180px;
}

.agenda-boton-titulo {
    font-weight: bold;
    text-align: center;
    margin-bottom: 0.5rem;
}

.agenda-boton {
    display: block;
    padding: 0.5rem;
    background: #8eca8e;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}

.agenda-boton:hover {
    background: #013ADF;
}

.agenda-boton.activo {
    background: #55ff00;
    color: #000;
}
.convocatoria-contenido {
  max-width: 900px;
    margin: 0 auto;

    padding: 0.8rem 1.6rem; /* ↑ más aire a izquierda/derecha */
    padding-left: 1.6rem !important;
    padding-right: 1.6rem !important;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.55;
    color: #222;

    text-align: justify;
}

.convocatoria-contenido pre {
    margin-left: 6rem;   /* igual que tu padding lateral */
    padding-left: 0;       /* evita doble sangría */
    white-space: pre-wrap; /* permite que el texto se ajuste al ancho */
    font-family: inherit;  /* usa la misma fuente que el resto */
    font-size: inherit;
}


@media (max-width: 768px) {
    .agenda-contenido {
        flex-direction: column;
        align-items: center;
    }

    .agenda-botones {
        width: 100%;
        max-width: 400px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem;
    }

    .agenda-boton-titulo {
        grid-column: span 2;
    }
}

/* ========================================================= */
/*        TÍTULO DE SECCIÓN: PRÓXIMAS ACTIVIDADES            */
/* ========================================================= */

.titulo-proximas {
    width: 100%;
    background: #222;
    color: #fff;
    text-align: center;
    padding: 0.8rem 0;
    font-size: 1.4rem;
    font-weight: bold;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* ========================= */
/*     MENÚ DE AÑOS          */
/* ========================= */

.menu-anios {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    max-height: 8rem;
    overflow-y: auto;
    padding: 1rem 0;
    margin-bottom: 1.5rem;
}

.pestania {
    padding: 0.5rem 1rem;
    background: #8eca8e;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.2s;
}

.pestania:hover {
    background: #013ADF;
}

.pestania.activo {
    background: #55ff00;
    color: #000;
}

/* ========================================================= */
/*                     PÁGINA ACTIVIDADES                    */
/* ========================================================= */

.carteles-fedriani {
    margin-top: 40px;
    text-align: center;
}

.cartel-dos {
    display: flex;
    gap: 10px;
}

.cartel-item img,
.cartel-uno img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.cartel-dos .cartel-item {
    width: 50%;
}

.sin-carteles {
    margin-top: 15px;
    font-style: italic;
    color: #666;
}

/* Carrusel */
.carrusel {
    position: relative;
    overflow: hidden;
}

.carrusel-inner {
    display: flex;
    transition: transform 0.4s ease;
}

.carrusel-item {
    min-width: 50%;
    padding: 5px;
}

.carrusel-item img {
    width: 100%;
    border-radius: 6px;
}

/* Navegación */
.carrusel-nav {
    margin-top: 10px;
}

.carrusel-nav button {
    padding: 6px 12px;
    margin: 0 5px;
    cursor: pointer;
}

/* Dots */
.carrusel-dots {
    margin-top: 10px;
    text-align: center;
}

.carrusel-dots .dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 4px;
    background: #bbb;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.carrusel-dots .dot.active {
    background: #333;
}

@media (max-width: 768px) {
    .cartel-dos {
        flex-direction: column;
    }

    .cartel-dos .cartel-item {
        width: 100%;
    }

    .carrusel-item {
        min-width: 100%;
    }
}

.galeria-carteles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    justify-items: center;
}

.cartel {
    width: 100%;
    max-width: 300px;
}

.cartel img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .galeria-carteles {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .galeria-carteles {
        grid-template-columns: 1fr;
    }
}

/* ===========================
   ESTILO GENERAL
   =========================== */
body.plan-bimensual {
    font-family: "Segoe UI", Arial, sans-serif;
    margin: 40px;
    color: #222;
    line-height: 1.5;
    background: #fff;
}

/* ===========================
   TITULOS
   =========================== */
h1 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

h2 {
    text-align: center;
    font-size: 22px;
    margin-top: 0;
    margin-bottom: 25px;
    color: #444;
}

/* ===========================
   BLOQUE LEGAL
   =========================== */
.legal {
    background: #f7f7f7;
    border-left: 4px solid #888;
    padding: 12px 15px;
    margin: 25px 0;
    font-size: 14px;
    text-align: justify;
}

/* ===========================
   TITULO DE CADA MES
   =========================== */
.mes {
    margin-top: 35px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
}

/* ===========================
   ACTIVIDADES
   =========================== */
.actividad {
    margin: 18px 0 25px 15px;
    padding-left: 10px;
    border-left: 3px solid #bbb;
}

.actividad strong {
    font-size: 17px;
    color: #000;
}

.actividad p {
    margin: 3px 0;
}

/* ===========================
   IMpreSIÓN
   =========================== */
@media print {

    body {
        margin: 20mm;
        font-size: 12pt;
    }

    .legal {
        background: none;
        border-left: 3px solid #000;
    }

    .mes {
        page-break-after: avoid;
    }

    .actividad {
        page-break-inside: avoid;
    }

    /* Opcional: dividir en dos páginas (mes impar / mes par) */
    .page-break {
        page-break-before: always;
    }
}

/* ========================================================= */
/*                    8. ÁLBUM DE FOTOS                      */
/* ========================================================= */

.fila-albumes {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.albumFotos {
    width: 30%;
    text-align: center;
}

.albumFotosImg {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .fila-albumes {
        flex-wrap: wrap;
        justify-content: center;
    }

    .albumFotos {
        width: 80%;
    }
}

/* ========================================================= */
/*                        9. SOCIOS                          */
/* ========================================================= */

.login-box {
    max-width: 380px;
    margin: 3rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

.login-box h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-box label {
    display: block;
    margin-top: 1rem;
    font-weight: 600;
}

.login-box input {
    width: 100%;
    padding: .7rem;
    margin-top: .3rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.login-box button {
    width: 100%;
    margin-top: 1.5rem;
    padding: .8rem;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}

.login-box button:hover {
    background: #004c99;
}

@media (max-width: 768px) {
    .login-box {
        max-width: 100%;
        width: 100%;
        margin: 1.5rem auto;
        padding: 1.5rem;
    }
}

/* BLOQUE DE WIDGETS */
.widget-bloque {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.5rem;
}

/* Cada widget */
.widget-facebook,
.widget-fotos {
    flex: 1;
    text-align: center;
}

/* ========================================================= */
/*                WIDGET FACEBOOK + FOTOS (CORREGIDO)        */
/* ========================================================= */

/* CONTENEDOR GENERAL: dos columnas en escritorio */
.widget-bloque {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 1.5rem;
    background: #FAFAD2;
    box-sizing: border-box;
}

/* Cada widget ocupa la mitad en escritorio */
.widget-facebook {
    width: 100%;
    min-width: 280px; /* evita que Facebook lo considere "0" */
}
.widget-fotos {
    flex: 1 1 45%;
    max-width: 45%;
    text-align: center;
}
.widget-facebook iframe {
    width: 100% !important;
    min-width: 100% !important;
}

/* FACEBOOK RESPONSIVE */
.widget-facebook .fb-page,
.widget-facebook iframe,
.widget-facebook span,
.widget-facebook > div {
    width: 100% !important;
    max-width: 100% !important;
}

/* FOTOS RESPONSIVE */
.widget-fotos img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Título debajo de cada widget */
.widget-titulo {
    margin-top: 0.8rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
}

/* BOTÓN INFERIOR */
.widget-boton {
    text-align: center;
    padding: 1.5rem;
}

.widget-boton a {
    display: inline-block;
    background: #444;
    color: #fff;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    font-size: 1.2rem;
    text-decoration: none;
    transition: 0.3s;
}

.widget-boton a:hover {
    background: #222;
}

/* MÓVIL: uno debajo del otro */
@media (max-width: 768px) {
    .widget-facebook,
    .widget-fotos {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .widget-bloque {
        padding: 1rem;
        gap: 20px;
    }
}







/* ========================================================= */
/*                        10. PRIVADO                        */
/* ========================================================= */

.privado-menu {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
}

.privado-menu li {
    margin-bottom: 1rem;
}

.privado-menu a {
    font-size: 1.1rem;
    color: #0066cc;
    text-decoration: none;
}

.privado-menu a:hover {
    text-decoration: underline;
}

.readonly {
    background-color: #f0f0f0;
    color: #555;
    border: 1px solid #ccc;
    cursor: not-allowed;
}

/* Layout 50/50 */
.privado-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-top: 2rem;
}

.privado-layout .login-box {
    flex: 1;
    max-width: 50%;
}

.privado-botones {
    flex: 1;
    max-width: 50%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.boton-privado {
    display: block;
    padding: 0.9rem 1rem;
    background: #0066cc;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background .2s ease;
    width: 80%;
}

.boton-privado:hover {
    background: #004c99;
}

@media (max-width: 768px) {
    .privado-layout {
        flex-direction: column;
        align-items: stretch;
    }

    .privado-layout .login-box,
    .privado-botones {
        max-width: 100%;
        width: 100%;
    }

    .boton-privado {
        width: 100%;
    }
}

/* ========================================================= */
/*                         11. ACTAS                         */
/* ========================================================= */

.actas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-top: 2rem;
}

.acta-boton {
    display: block;
    padding: 1rem;
    background: #0066cc;
    color: #fff;
    text-align: center;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background .2s ease;
}

.acta-boton:hover {
    background: #3aa76d;
}

@media (max-width: 768px) {
    .actas-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================================= */
/*                        12. CONTACTO                       */
/* ========================================================= */

.contacto-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
}

.contacto-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: transform .2s ease, box-shadow .2s ease;
}

.contacto-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.contacto-icon {
    flex-shrink: 0;
}

.contacto-info h3 {
    margin: 0 0 .3rem 0;
    font-size: 1.2rem;
    color: #333;
}

.contacto-info a {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.contacto-info a:hover {
    text-decoration: underline;
}

.contacto-info p {
    margin: .3rem 0;
    line-height: 1.4;
}

.imagenancho {
    width: 100%;
    height: auto;
}

/* ========================================================= */
/*                       13. ESTATUTOS                       */
/* ========================================================= */

.Texto {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1.2rem;
    font-size: 1.05rem;
    line-height: 1.65;
    color: #222;
}

.Texto .titulo-centro {
    text-align: center;
    font-size: 1.3rem;
    margin: 2rem 0 1rem 0;
}

.Texto p {
    margin-bottom: 1.2rem;
}

.Texto ol {
    margin: 1rem 0 1.5rem 2rem;
    padding-left: 1rem;
}

.Texto ol li {
    margin-bottom: 0.6rem;
}

.Texto strong {
    font-weight: 700;
}

.Texto em {
    font-style: italic;
}

.justificado {
    text-align: justify;
}

@media (max-width: 768px) {
    .Texto {
        font-size: 1rem;
        line-height: 1.6;
        padding: 0 1rem;
    }

    .Texto .titulo-centro {
        font-size: 1.2rem;
        margin: 1.5rem 0 0.8rem 0;
    }

    .Texto ol {
        margin-left: 1.2rem;
    }
}

/* ========================================================= */
/*                     14. UTILIDADES                        */
/* ========================================================= */

.imagenancho {
    width: 100%;
    height: auto;
}

/* ========================================================= */
/*              15. FIX DEFINITIVO MENÚ MÓVIL                */
/* ========================================================= */

@media (max-width: 768px) {

    .nav > ul {
        display: none !important;
        flex-direction: column !important;
        background: #212121 !important;
        width: 100% !important;
    }

    .nav.active > ul {
        display: flex !important;
    }

    .nav ul ul {
        display: none !important;
    }

    .nav li.open > ul {
        display: block !important;
    }
}


