/* =========================
   CONTENEDOR GENERAL
   ========================= */

.actividades-contenedor {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 20px;
}


/* =========================
   CABECERA
   ========================= */

.actividades-cabecera {
    text-align: center;
    margin-bottom: 45px;
}

.actividades-icono {
    font-size: 42px;
    margin-bottom: 10px;
}

.actividades-cabecera h1 {
    margin: 0;
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.actividades-cabecera p {
    max-width: 700px;
    margin: 15px auto 0;
    line-height: 1.6;
    font-size: 1.6rem;
    color: #666;
}

.nota-actividades {
    margin-top: 35px;
    padding: 18px 20px;

    background: #f7f7f7;
    border-left: 4px solid #e37b2c;

    border-radius: 6px;

    font-size: 1.2rem;
    line-height: 1.6;
    color: #666;
    text-align: center;
}

.nota-actividades strong {
    color: #444;
}

/* =========================
   BLOQUES
   ========================= */

.bloque-actividades {
    margin-bottom: 50px;
}

.bloque-actividades h2 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e37b2c;
}

.sin-actividades {
    padding: 25px;
    text-align: center;
    background: #f7f7f7;
    border-radius: 8px;
    color: #777;
    font-size: 1.25rem;
}


/* =========================
   LISTADO DE ACTIVIDADES
   ========================= */

.lista-actividades {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


/* =========================
   TARJETA
   ========================= */

.actividad-card {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;

    border: 1px solid #e8e8e8;

    box-shadow:
        0 3px 10px rgba(0, 0, 0, 0.06);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.actividad-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.10);
}


/* =========================
   FECHA
   ========================= */

.actividad-fecha {
    width: 135px;
    min-width: 135px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 20px 12px;

    background: #e37b2c;
    color: #fff;

    text-align: center;
}

.actividad-dia {
    display: block;
    font-size: 2.25rem;
    font-weight: bold;
    line-height: 1;
}

.actividad-mes {
    display: block;
    margin-top: 6px;

    font-size: 1.05rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.actividad-anio {
    display: block;
    margin-top: 4px;

    font-size: 0.9rem;
    opacity: 0.9;
}


/* =========================
   INFORMACIÓN
   ========================= */

.actividad-info {
    flex: 1;
    padding: 22px 25px;
}

.actividad-info h3 {
    margin: 0 0 8px 0;

    font-size: 1.45rem;
    line-height: 1.35;

    color: #333;
}

.actividad-grupo {
    margin: 0 0 16px;

    font-size: 1.3rem;
    font-weight: 500;

    color: #e37b2c;
}

.actividad-contacto {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;

    font-size: 1.25rem;
    line-height: 1.5;

    color: #666;
}


/* =========================
   ACTIVIDADES REALIZADAS
   ========================= */

.actividades-realizadas {
    margin-top: 60px;
}

.actividad-realizada {
    opacity: 0.82;
}

.actividad-realizada .actividad-fecha {
    background: #9d9d9d;
}

.etiqueta-realizada {
    display: inline-block;

    margin-bottom: 8px;
    padding: 4px 10px;

    border-radius: 20px;

    background: #eeeeee;
    color: #666;

    font-size: 0.78rem;
    font-weight: bold;

    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.telefono-enlace {
    color: inherit;
    text-decoration: none;
}

.telefono-enlace:hover {
    color: #e37b2c;
    text-decoration: underline;
}


/* =========================
   RESPONSIVE
   TABLET
   ========================= */

@media (max-width: 900px) {

    .actividades-contenedor {
        width: 94%;
        padding: 40px 15px;
    }

    .actividad-fecha {
        width: 120px;
        min-width: 120px;
    }

    .actividad-info {
        padding: 20px;
    }

    .actividad-info h3 {
        font-size: 1.35rem;
    }
}


/* =========================
   RESPONSIVE
   MÓVIL
   ========================= */

@media (max-width: 600px) {

    .nota-actividades {
    margin-top: 35px;
    padding: 18px 20px;

    background: #f7f7f7;
    border-left: 4px solid #e37b2c;

    border-radius: 6px;

    font-size: 0.8rem;
    line-height: 1.6;
    color: #666;
    text-align: center;
}


    .actividades-contenedor {
        width: 100%;
        padding: 30px 15px;
        box-sizing: border-box;
    }

    .actividades-cabecera {
        margin-bottom: 35px;
    }

    .actividades-icono {
        font-size: 36px;
    }

    .actividades-cabecera h1 {
        font-size: 1.7rem;
    }

    .actividades-cabecera p {
        font-size: 1.3rem;
        line-height: 1.55;
    }

    .bloque-actividades {
        margin-bottom: 40px;
    }

    .bloque-actividades h2 {
        font-size: 1.2rem;
    }

    .actividad-card {
        flex-direction: column;
    }

    .actividad-fecha {
        width: 100%;
        min-width: 0;

        box-sizing: border-box;

        flex-direction: row;
        gap: 8px;

        padding: 12px 15px;
    }

    .actividad-dia {
        font-size: 1.55rem;
    }

    .actividad-mes {
        margin-top: 0;
        font-size: 1rem;
    }

    .actividad-anio {
        margin-top: 0;
        font-size: 0.9rem;
    }

    .actividad-info {
        padding: 18px;
    }

    .actividad-info h3 {
        font-size: 1.25rem;
    }

    .actividad-grupo {
        font-size: 1rem;
    }

    .actividad-contacto {
        flex-direction: column;
        gap: 8px;

        font-size: 1rem;
    }

    .etiqueta-realizada {
        font-size: 0.72rem;
    }
}

/* =========================
   ADMIN - FORMULARIO
   ========================= */

.admin-formulario {
    margin-bottom: 50px;
    padding: 28px 30px;

    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;

    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
}

.admin-formulario h2 {
    margin-top: 0;
    margin-bottom: 22px;
    font-size: 1.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
}

.admin-formulario form {
    max-width: 760px;
}

.campo-formulario {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 16px;
}

.campo-formulario label {
    width: 210px;
    min-width: 210px;

    font-weight: 600;
    color: #333;
}

.campo-formulario input {
    flex: 1;
    min-width: 0;

    padding: 10px 12px;

    border: 1px solid #d8d8d8;
    border-radius: 6px;

    font-size: 1rem;
    color: #333;
    background: #fff;

    box-sizing: border-box;
}

.campo-formulario input:focus {
    outline: none;
    border-color: #e37b2c;
    box-shadow: 0 0 0 3px rgba(227, 123, 44, 0.12);
}


/* =========================
   MENSAJES
   ========================= */

.mensaje-ok,
.mensaje-error {
    margin-bottom: 18px;
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 0.98rem;
    line-height: 1.5;
}

.mensaje-ok {
    background: #eef8ee;
    border: 1px solid #b9dfb9;
    color: #2f6b2f;
}

.mensaje-error {
    background: #fff1f1;
    border: 1px solid #e3b3b3;
    color: #9b2f2f;
}


/* =========================
   ACCIONES DEL FORMULARIO
   ========================= */

.acciones-formulario {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    margin-left: 228px;
}

.boton-guardar,
.boton-cancelar,
.boton-editar,
.boton-borrar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 10px 16px;

    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.boton-guardar {
    border: 1px solid #e37b2c;
    background: #e37b2c;
    color: #fff;
}

.boton-guardar:hover {
    background: #cf6c22;
    border-color: #cf6c22;
}

.boton-cancelar {
    border: 1px solid #d8d8d8;
    background: #f5f5f5;
    color: #444;
}

.boton-cancelar:hover {
    background: #ebebeb;
}


/* =========================
   ACCIONES DE CADA ACTIVIDAD
   ========================= */

.acciones-actividad {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.acciones-actividad form {
    margin: 0;
}

.boton-editar {
    border: 1px solid #d8d8d8;
    background: #f5f5f5;
    color: #333;
}

.boton-editar:hover {
    background: #ebebeb;
}

.boton-borrar {
    border: 1px solid #d97a7a;
    background: #fff5f5;
    color: #a33a3a;
}

.boton-borrar:hover {
    background: #fdeaea;
}
/*
.boton-editar:before {
    content: "✏";
    font-size: 0.95rem;
}

.boton-borrar:before {
    content: "🗑";
    font-size: 0.95rem;
}*/


/* =========================
   RESPONSIVE ADMIN
   ========================= */

@media (max-width: 700px) {

    .admin-formulario {
        padding: 22px 18px;
    }

    .admin-formulario h2 {
        font-size: 1.3rem;
        margin-bottom: 18px;
    }

    .campo-formulario {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .campo-formulario label {
        width: auto;
        min-width: 0;
    }

    .acciones-formulario {
        margin-left: 0;
        flex-direction: column;
        align-items: stretch;
    }

    .boton-guardar,
    .boton-cancelar {
        width: 100%;
    }

    .acciones-actividad {
        gap: 8px;
    }
}

/* =========================
   NAVEGACIÓN SUPERIOR
   ========================= */

.actividades-contenedor {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 25px 20px 50px;
}

.navegacion-actividades {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;

    margin-top: 0;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.boton-nav-actividades {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 10px 16px;

    border: 1px solid #d8d8d8;
    border-radius: 6px;

    background: #f7f7f7;
    color: #444;

    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.boton-nav-actividades:hover {
    background: #eeeeee;
    transform: translateY(-1px);
}


/* BOTÓN VOLVER */
/*
.boton-volver-grupos:before {
    content: "←";
    font-size: 1.25rem;
    font-weight: bold;
    color: #666;
}*/


/* BOTÓN ADMIN */

.boton-admin-actividades {
    border-color: #e37b2c;
    color: #e37b2c;
    background: #fff;
}
/*
.boton-admin-actividades:before {
    content: "⚿";
    font-size: 1.25rem;
    color: #e37b2c;
}*/

.boton-admin-actividades:hover {
    background: #e37b2c;
    color: #fff;
}

/*
.boton-admin-actividades:hover:before {
    color: #fff;
}*/


/* AJUSTE CABECERA */

.actividades-cabecera {
    text-align: center;
    margin-bottom: 45px;
    margin-top: 5px;
}


/* RESPONSIVE */

@media (max-width: 600px) {

    .actividades-contenedor {
        width: 100%;
        padding: 18px 15px 30px;
        box-sizing: border-box;
    }

    .navegacion-actividades {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        margin-bottom: 14px;
    }

    .boton-nav-actividades {
        width: 100%;
        box-sizing: border-box;
    }
}